cad-project
v1.2.7
Published
# example
Downloads
9
Readme
cad-project
example
<auto-cad ref="autoCad" path="data/123321.vds" :getEntityReFunc="reGetEntity" :getPointReFunc="reGetPoint" :ids="example" :showToolbar='true'/>
props
function onAfterInit 图纸加载完毕回调 / document loaded function
function getEntityReFunc 点击获取实体回调 / click 2 get entity
function getPointReFunc 点击获取坐标 / click 2 get x,y
Array ids 初始加载根据元素Id变更颜色 / after init change entity color by HandleId
console.log(this.$refs.autoCad) to see inner function
function deleteEntity 删除元素 / delete entity from handle id
function deleteEities 删除多个元素 / delete entities from ids
function canvasRedraw 重新绘画 / redraw cad canvas
function getVdcanvas 获取 vdcanvas 对象 / get vdcanvas object
查看内部方法(增加图片/绘画实体)等
showToolbar 是否显示底部工具栏,默认true,可选false
showDia 函数,是否显示弹窗
returnXY 函数,获取屏幕的像素位置