Vector.js创建交互图形示例代码
代码语言:html
所属分类:其他
代码描述:Vector.js创建交互图形示例代码
代码标签: Vector.js 创建 交互 图形 示例 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" dir="ltr"> <head> <meta charset="utf-8"> <title>Getting Started</title> <link rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/js/module/vectorjs/library.css"> </head> <body> <div id="my-interactive"></div> <script type="module" > import Interactive from "//repo.bfw.wiki/bfwrepo/js/module/vectorjs/elements/interactive.js"; // Construct an interactive within the HTML element with the id "my-interactive" let myInteractive = new Interactive("my-interactive"); myInteractive.border = true; myInteractive.dropdownControl(0, 10, ["red", "green", "blue"], 0); let radio = myInteractive.radioControl(10, 150, ["r.........完整代码请登录后点击上方下载按钮下载查看
网友评论0