MCPcopy Create free account
hub / github.com/alibaba/butterfly / constructor

Method constructor

src/interface/node.js:6–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4
5class Node extends EventEmit3 {
6 constructor() {
7 // id 节点唯一标志
8 // top 坐标y
9 // left 坐标x
10 // group 存在于哪个节点组上
11 // dom 节点的dom元素
12 // draggable 该节点是否能拖动标志,可覆盖全局的
13 // options 数据的透传
14 // _on 节点发送事件
15 // _emit 节点发送事件
16 // _global 全局的配置
17
18
19 // 需要优化的
20 // scope scope相同可拉进group里面
21 // endpoints endpoint对象
22 // _endpointsData 真实的endpoint数据
23 // _isMoving 标识是否在移动做,兼容冒泡
24 super();
25 }
26
27 // 渲染节点
28 draw() {}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected