0.0.15 • Published 8 days ago
graphics-tools v0.0.15
Graphics Tools
install:
npm i graphics-tools
import:
import GraphicsTools from 'graphics-tools';
Vue.use(GraphicsTools);
vue use:
<GraphicsTools/>
Support props:
props: {
//右侧事件列表的宽度
rightSectionWidth: {
type: String,
},
//默认点的颜色
defaultPointColor: {
type: String,
},
//默认线条颜色
defaultLineColor: {
type: String,
},
//是否区分不同类型线的颜色
isShowColorfulLine: {
type: Boolean,
},
//是否显示绘制形状中间的文本,ex:3D标注
isShowCenterText: {
type: Boolean,
},
//相机id
cameraId: {
type: [String, Number],
},
// 图片链接
imgUrl: {
type: String,
},
// 右侧的配置项,有哪些题目
tagsConf: {
type: Object,
},
//支持更改线颜色
colorfulLabelNames: {
type: Object,
},
// 标注内容
markData: {
type: Object,
},
// 默认的过滤图形
defaultFilter: Array,
//是否显示过滤图形 -> default:false
showFilterGraphics: false,
//是否显示:提示 -> 2d门线 default:false
isTipsCanvas: false,
},
graphics-tools安装依赖请使用node最新版本
设置镜像 publish.sh保持一致: 发布到公共npm: npm config set registry https://registry.npmjs.org/ 发布到私服npm: npm config set registry https://npm.aibee.cn/(503)
发布: sh publish.sh 登录npm npm publish 发包至登录账户的Packages下