当前位置: 首页 > wzjs >正文

口碑好的秦皇岛网站建设哪里有dz论坛如何seo

口碑好的秦皇岛网站建设哪里有,dz论坛如何seo,图书馆网站建设的作用,有什么免费做代理的网站大家好,这次使用的是AntV的蚂蚁数据可视化X6框架,类似于审批流的场景等,代码如下: X6框架参考网址:https://x6.antv.vision/zh/examples/showcase/practices#bpmn 可以进入该网址,直接复制下方代码进行调试…

大家好,这次使用的是AntV的蚂蚁数据可视化X6框架,类似于审批流的场景等,代码如下:
X6框架参考网址:https://x6.antv.vision/zh/examples/showcase/practices#bpmn
可以进入该网址,直接复制下方代码进行调试或观察。
效果图如下:
在这里插入图片描述

<canvas id="container"></canvas>
import { Graph, Cell } from '@antv/x6'const data = [{"id": "1","shape": "event","width": 40,"height": 40,"position": {"x": 50,"y": 180}},{"id": "2","shape": "activity","width": 100,"height": 60,"position": {"x": 20,"y": 280},"label": "请假申请"},{"id": "3","shape": "bpmn-edge","source": "1","target": "2"},{"id": "4","shape": "gateway","width": 55,"height": 55,"position": {"x": 170,"y": 282.5}},{"id": "5","shape": "bpmn-edge","source": "2","target": "4"},{"id": "6","shape": "activity","width": 100,"height": 60,"position": {"x": 300,"y": 240},"label": "领导审批"},{"id": "7","shape": "activity","width": 100,"height": 60,"position": {"x": 300,"y": 320},"label": "人事审批"},{"id": "8","shape": "bpmn-edge","source": "4","target": "6"},{"id": "9","shape": "bpmn-edge","source": "4","target": "7"},{"id": "10","shape": "gateway","width": 55,"height": 55,"position": {"x": 460,"y": 282.5}},{"id": "11","shape": "bpmn-edge","source": "6","target": "10"},{"id": "12","shape": "bpmn-edge","source": "7","target": "10"},{"id": "13","shape": "activity","width": 100,"height": 60,"position": {"x": 560,"y": 280},"label": "人事审批"},{"id": "14","shape": "bpmn-edge","source": "10","target": "13"},{"id": "15","shape": "event","width": 40,"height": 40,"position": {"x": 710,"y": 290},"attrs": {"body": {"strokeWidth": 4}}},{"id": "16","shape": "bpmn-edge","source": "13","target": "15"}
]
// 设置event类型节点的样式(起点和终点的样式)
Graph.registerNode('event',{inherit: 'circle',attrs: {body: {strokeWidth: 2,stroke: '#5F95FF',fill: '#FFF',},},},true,
)
// 设置activity类型节点的样式
Graph.registerNode('activity',{inherit: 'rect',markup: [{tagName: 'rect',selector: 'body',},{tagName: 'image',selector: 'img',},{tagName: 'text',selector: 'label',},],attrs: {body: {rx: 6,ry: 6,stroke: '#5F95FF',fill: '#EFF4FF',strokeWidth: 1,},img: {x: 6,y: 6,width: 16,height: 16,'xlink:href':'https://gw.alipayobjects.com/mdn/rms_43231b/afts/img/A*pwLpRr7QPGwAAAAAAAAAAAAAARQnAQ',},label: {fontSize: 12,fill: '#262626',},},},true,
)
// 设置gateway类型节点的样式
Graph.registerNode('gateway',{inherit: 'polygon',attrs: {body: {refPoints: '0,10 10,0 20,10 10,20',strokeWidth: 2,stroke: '#5F95FF',fill: '#EFF4FF',},label: {text: '+',fontSize: 40,fill: '#5F95FF',},},},true,
)
// 设置bpmn-edge类型线段的样式
Graph.registerEdge('bpmn-edge',{inherit: 'edge',attrs: {line: {stroke: '#A2B1C3',strokeWidth: 2,},},},true,
)
// 设置展示canvas图表的容器
const graph = new Graph({container: document.getElementById('container')!,connecting: {router: 'orth',},
})// 处理一下数据的格式,开始渲染图表
const cells = []
data.forEach((item: any) => {if (item.shape === 'bpmn-edge') {cells.push(graph.createEdge(item))} else {cells.push(graph.createNode(item))}
})
graph.resetCells(cells)
graph.zoomToFit({ padding: 10, maxScale: 1 })
http://www.dtcms.com/wzjs/28201.html

相关文章:

  • 像美团这种网站怎么做的大数据营销精准营销
  • 电子商务平台官网关键词seo排名公司
  • 做电商网站哪里好seo在线培训课程
  • 做微课的网站有哪些方面网站维护中
  • 保定建站软件搭建一个网站需要多少钱
  • 福建建设管理中心网站河北seo网络优化培训
  • 扬州住房城乡建设局网站足球世界排名国家
  • 网站前端设计招聘网站建设百度推广
  • 长春建个网站需要多少钱?线上推广软件
  • php网站后台模板下载不了seo英文怎么读
  • 一带一路网站建设规划书seo按照搜索引擎的
  • 如何做网站哪个站推广重庆seo网站
  • 南京优质网站建设方案网络营销方案设计
  • 做电商需要知道的几个网站吗高德北斗导航
  • 免费安全网站认证关键词举例
  • wordpress控制台地址快排seo排名软件
  • wordpress做社区网站网络推广免费平台
  • 类似b站的网站怎么做的电商运营基础知识
  • 做系统后怎么找回网站收藏夹网络营销知识
  • 给网站做rssseo搜索引擎优化怎么做
  • 微信网页网站怎么做怎么自己创建网址
  • 旅游便宜的网站建设微博推广费用一般多少
  • app公司网站建设价格网站更新seo
  • 国外企业网站模板网络营销概述ppt
  • 外贸建站与推广如何做人体内脉搏多少是标准的?百度关键词指数查询工具
  • 产品设计师网站新站优化案例
  • app 微信 网站三合一小程序定制开发公司
  • 菜单宣传网站怎么做的什么是软文
  • tp框架做餐饮网站安徽seo网络优化师
  • 求购做网站武汉seo人才