dcim-topology2d 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/activity-diagram/index.d.ts +5 -0
- package/activity-diagram/index.js +6 -0
- package/activity-diagram/index.js.map +1 -0
- package/activity-diagram/src/final/final.d.ts +2 -0
- package/activity-diagram/src/final/final.js +10 -0
- package/activity-diagram/src/final/final.js.map +1 -0
- package/activity-diagram/src/final/final.rect.d.ts +3 -0
- package/activity-diagram/src/final/final.rect.js +11 -0
- package/activity-diagram/src/final/final.rect.js.map +1 -0
- package/activity-diagram/src/final/index.d.ts +2 -0
- package/activity-diagram/src/final/index.js +3 -0
- package/activity-diagram/src/final/index.js.map +1 -0
- package/activity-diagram/src/fork/fork.anchor.d.ts +3 -0
- package/activity-diagram/src/fork/fork.anchor.js +28 -0
- package/activity-diagram/src/fork/fork.anchor.js.map +1 -0
- package/activity-diagram/src/fork/fork.d.ts +2 -0
- package/activity-diagram/src/fork/fork.js +25 -0
- package/activity-diagram/src/fork/fork.js.map +1 -0
- package/activity-diagram/src/fork/fork.rect.d.ts +3 -0
- package/activity-diagram/src/fork/fork.rect.js +9 -0
- package/activity-diagram/src/fork/fork.rect.js.map +1 -0
- package/activity-diagram/src/fork/index.d.ts +3 -0
- package/activity-diagram/src/fork/index.js +4 -0
- package/activity-diagram/src/fork/index.js.map +1 -0
- package/activity-diagram/src/register.d.ts +1 -0
- package/activity-diagram/src/register.js +13 -0
- package/activity-diagram/src/register.js.map +1 -0
- package/activity-diagram/src/swimlaneH/index.d.ts +2 -0
- package/activity-diagram/src/swimlaneH/index.js +3 -0
- package/activity-diagram/src/swimlaneH/index.js.map +1 -0
- package/activity-diagram/src/swimlaneH/swimlaneH.d.ts +2 -0
- package/activity-diagram/src/swimlaneH/swimlaneH.js +27 -0
- package/activity-diagram/src/swimlaneH/swimlaneH.js.map +1 -0
- package/activity-diagram/src/swimlaneH/swimlaneH.rect.d.ts +3 -0
- package/activity-diagram/src/swimlaneH/swimlaneH.rect.js +9 -0
- package/activity-diagram/src/swimlaneH/swimlaneH.rect.js.map +1 -0
- package/activity-diagram/src/swimlaneV/index.d.ts +2 -0
- package/activity-diagram/src/swimlaneV/index.js +3 -0
- package/activity-diagram/src/swimlaneV/index.js.map +1 -0
- package/activity-diagram/src/swimlaneV/swimlaneV.d.ts +2 -0
- package/activity-diagram/src/swimlaneV/swimlaneV.js +27 -0
- package/activity-diagram/src/swimlaneV/swimlaneV.js.map +1 -0
- package/activity-diagram/src/swimlaneV/swimlaneV.rect.d.ts +3 -0
- package/activity-diagram/src/swimlaneV/swimlaneV.rect.js +9 -0
- package/activity-diagram/src/swimlaneV/swimlaneV.rect.js.map +1 -0
- package/chart-diagram/index.d.ts +3 -0
- package/chart-diagram/index.js +4 -0
- package/chart-diagram/index.js.map +1 -0
- package/chart-diagram/src/echarts/echarts.min.js +22 -0
- package/chart-diagram/src/echarts/index.d.ts +4 -0
- package/chart-diagram/src/echarts/index.js +104 -0
- package/chart-diagram/src/echarts/index.js.map +1 -0
- package/chart-diagram/src/register.d.ts +1 -0
- package/chart-diagram/src/register.js +12 -0
- package/chart-diagram/src/register.js.map +1 -0
- package/class-diagram/index.d.ts +2 -0
- package/class-diagram/index.js +3 -0
- package/class-diagram/index.js.map +1 -0
- package/class-diagram/src/class/class.d.ts +3 -0
- package/class-diagram/src/class/class.js +56 -0
- package/class-diagram/src/class/class.js.map +1 -0
- package/class-diagram/src/class/class.rect.d.ts +5 -0
- package/class-diagram/src/class/class.rect.js +16 -0
- package/class-diagram/src/class/class.rect.js.map +1 -0
- package/class-diagram/src/class/index.d.ts +2 -0
- package/class-diagram/src/class/index.js +3 -0
- package/class-diagram/src/class/index.js.map +1 -0
- package/class-diagram/src/register.d.ts +1 -0
- package/class-diagram/src/register.js +7 -0
- package/class-diagram/src/register.js.map +1 -0
- package/core/index.d.ts +8 -0
- package/core/index.js +26 -0
- package/core/index.js.map +1 -0
- package/core/src/activeLayer.d.ts +55 -0
- package/core/src/activeLayer.js +679 -0
- package/core/src/activeLayer.js.map +1 -0
- package/core/src/animateLayer.d.ts +23 -0
- package/core/src/animateLayer.js +227 -0
- package/core/src/animateLayer.js.map +1 -0
- package/core/src/calling.d.ts +37 -0
- package/core/src/calling.js +253 -0
- package/core/src/canvas.d.ts +19 -0
- package/core/src/canvas.js +81 -0
- package/core/src/canvas.js.map +1 -0
- package/core/src/common.d.ts +102 -0
- package/core/src/common.js +1254 -0
- package/core/src/core.d.ts +104 -0
- package/core/src/core.js +2281 -0
- package/core/src/core.js.map +1 -0
- package/core/src/divLayer.d.ts +61 -0
- package/core/src/divLayer.js +485 -0
- package/core/src/divLayer.js.map +1 -0
- package/core/src/healps/changeData.d.ts +8 -0
- package/core/src/healps/changeData.js +205 -0
- package/core/src/healps/index.d.ts +1 -0
- package/core/src/healps/index.js +1 -0
- package/core/src/hoverLayer.d.ts +32 -0
- package/core/src/hoverLayer.js +199 -0
- package/core/src/hoverLayer.js.map +1 -0
- package/core/src/layer.d.ts +5 -0
- package/core/src/layer.js +11 -0
- package/core/src/layer.js.map +1 -0
- package/core/src/middles/arrows/circle.d.ts +3 -0
- package/core/src/middles/arrows/circle.js +20 -0
- package/core/src/middles/arrows/circle.js.map +1 -0
- package/core/src/middles/arrows/diamond.d.ts +3 -0
- package/core/src/middles/arrows/diamond.js +28 -0
- package/core/src/middles/arrows/diamond.js.map +1 -0
- package/core/src/middles/arrows/line.d.ts +4 -0
- package/core/src/middles/arrows/line.js +42 -0
- package/core/src/middles/arrows/line.js.map +1 -0
- package/core/src/middles/arrows/triangle.d.ts +3 -0
- package/core/src/middles/arrows/triangle.js +25 -0
- package/core/src/middles/arrows/triangle.js.map +1 -0
- package/core/src/middles/default.anchor.d.ts +2 -0
- package/core/src/middles/default.anchor.js +9 -0
- package/core/src/middles/default.anchor.js.map +1 -0
- package/core/src/middles/default.d.ts +12 -0
- package/core/src/middles/default.js +257 -0
- package/core/src/middles/default.js.map +1 -0
- package/core/src/middles/default.rect.d.ts +3 -0
- package/core/src/middles/default.rect.js +19 -0
- package/core/src/middles/default.rect.js.map +1 -0
- package/core/src/middles/index.d.ts +3 -0
- package/core/src/middles/index.js +4 -0
- package/core/src/middles/index.js.map +1 -0
- package/core/src/middles/lines/curve.d.ts +10 -0
- package/core/src/middles/lines/curve.js +127 -0
- package/core/src/middles/lines/curve.js.map +1 -0
- package/core/src/middles/lines/line.d.ts +4 -0
- package/core/src/middles/lines/line.js +11 -0
- package/core/src/middles/lines/line.js.map +1 -0
- package/core/src/middles/lines/mind.d.ts +6 -0
- package/core/src/middles/lines/mind.js +90 -0
- package/core/src/middles/lines/mind.js.map +1 -0
- package/core/src/middles/lines/polyline.d.ts +7 -0
- package/core/src/middles/lines/polyline.js +309 -0
- package/core/src/middles/lines/polyline.js.map +1 -0
- package/core/src/middles/nodes/arbitrarygraph.anchor.d.ts +2 -0
- package/core/src/middles/nodes/arbitrarygraph.anchor.js +18 -0
- package/core/src/middles/nodes/arbitrarygraph.d.ts +2 -0
- package/core/src/middles/nodes/arbitrarygraph.js +17 -0
- package/core/src/middles/nodes/arrow.anchor.d.ts +2 -0
- package/core/src/middles/nodes/arrow.anchor.js +7 -0
- package/core/src/middles/nodes/arrow.anchor.js.map +1 -0
- package/core/src/middles/nodes/arrow.d.ts +4 -0
- package/core/src/middles/nodes/arrow.js +44 -0
- package/core/src/middles/nodes/arrow.js.map +1 -0
- package/core/src/middles/nodes/arrow.rect.d.ts +7 -0
- package/core/src/middles/nodes/arrow.rect.js +23 -0
- package/core/src/middles/nodes/arrow.rect.js.map +1 -0
- package/core/src/middles/nodes/circle.anchor.d.ts +2 -0
- package/core/src/middles/nodes/circle.anchor.js +18 -0
- package/core/src/middles/nodes/circle.anchor.js.map +1 -0
- package/core/src/middles/nodes/circle.d.ts +2 -0
- package/core/src/middles/nodes/circle.js +7 -0
- package/core/src/middles/nodes/circle.js.map +1 -0
- package/core/src/middles/nodes/circle.rect.d.ts +3 -0
- package/core/src/middles/nodes/circle.rect.js +27 -0
- package/core/src/middles/nodes/circle.rect.js.map +1 -0
- package/core/src/middles/nodes/cloud.anchor.d.ts +2 -0
- package/core/src/middles/nodes/cloud.anchor.js +9 -0
- package/core/src/middles/nodes/cloud.anchor.js.map +1 -0
- package/core/src/middles/nodes/cloud.d.ts +2 -0
- package/core/src/middles/nodes/cloud.js +11 -0
- package/core/src/middles/nodes/cloud.js.map +1 -0
- package/core/src/middles/nodes/cloud.rect.d.ts +3 -0
- package/core/src/middles/nodes/cloud.rect.js +9 -0
- package/core/src/middles/nodes/cloud.rect.js.map +1 -0
- package/core/src/middles/nodes/cube.anchor.d.ts +2 -0
- package/core/src/middles/nodes/cube.anchor.js +10 -0
- package/core/src/middles/nodes/cube.anchor.js.map +1 -0
- package/core/src/middles/nodes/cube.d.ts +2 -0
- package/core/src/middles/nodes/cube.js +5 -0
- package/core/src/middles/nodes/cube.js.map +1 -0
- package/core/src/middles/nodes/cube.model.d.ts +14 -0
- package/core/src/middles/nodes/cube.model.js +64 -0
- package/core/src/middles/nodes/cube.model.js.map +1 -0
- package/core/src/middles/nodes/cube.rect.d.ts +3 -0
- package/core/src/middles/nodes/cube.rect.js +11 -0
- package/core/src/middles/nodes/cube.rect.js.map +1 -0
- package/core/src/middles/nodes/diamond.d.ts +2 -0
- package/core/src/middles/nodes/diamond.js +11 -0
- package/core/src/middles/nodes/diamond.js.map +1 -0
- package/core/src/middles/nodes/diamond.rect.d.ts +3 -0
- package/core/src/middles/nodes/diamond.rect.js +27 -0
- package/core/src/middles/nodes/diamond.rect.js.map +1 -0
- package/core/src/middles/nodes/file.d.ts +2 -0
- package/core/src/middles/nodes/file.js +16 -0
- package/core/src/middles/nodes/file.js.map +1 -0
- package/core/src/middles/nodes/formtable.d.ts +2 -0
- package/core/src/middles/nodes/formtable.js +100 -0
- package/core/src/middles/nodes/hexagon.anchor.d.ts +2 -0
- package/core/src/middles/nodes/hexagon.anchor.js +21 -0
- package/core/src/middles/nodes/hexagon.anchor.js.map +1 -0
- package/core/src/middles/nodes/hexagon.d.ts +2 -0
- package/core/src/middles/nodes/hexagon.js +14 -0
- package/core/src/middles/nodes/hexagon.js.map +1 -0
- package/core/src/middles/nodes/hexagon.rect.d.ts +3 -0
- package/core/src/middles/nodes/hexagon.rect.js +14 -0
- package/core/src/middles/nodes/hexagon.rect.js.map +1 -0
- package/core/src/middles/nodes/image.anchor.d.ts +2 -0
- package/core/src/middles/nodes/image.anchor.js +12 -0
- package/core/src/middles/nodes/image.anchor.js.map +1 -0
- package/core/src/middles/nodes/image.rect.d.ts +3 -0
- package/core/src/middles/nodes/image.rect.js +65 -0
- package/core/src/middles/nodes/image.rect.js.map +1 -0
- package/core/src/middles/nodes/line.anchor.d.ts +2 -0
- package/core/src/middles/nodes/line.anchor.js +13 -0
- package/core/src/middles/nodes/line.anchor.js.map +1 -0
- package/core/src/middles/nodes/line.d.ts +2 -0
- package/core/src/middles/nodes/line.js +9 -0
- package/core/src/middles/nodes/line.js.map +1 -0
- package/core/src/middles/nodes/line.rect.d.ts +3 -0
- package/core/src/middles/nodes/line.rect.js +9 -0
- package/core/src/middles/nodes/line.rect.js.map +1 -0
- package/core/src/middles/nodes/message.anchor.d.ts +2 -0
- package/core/src/middles/nodes/message.anchor.js +9 -0
- package/core/src/middles/nodes/message.anchor.js.map +1 -0
- package/core/src/middles/nodes/message.d.ts +2 -0
- package/core/src/middles/nodes/message.js +14 -0
- package/core/src/middles/nodes/message.js.map +1 -0
- package/core/src/middles/nodes/message.rect.d.ts +3 -0
- package/core/src/middles/nodes/message.rect.js +10 -0
- package/core/src/middles/nodes/message.rect.js.map +1 -0
- package/core/src/middles/nodes/pentagon.anchor.d.ts +2 -0
- package/core/src/middles/nodes/pentagon.anchor.js +10 -0
- package/core/src/middles/nodes/pentagon.anchor.js.map +1 -0
- package/core/src/middles/nodes/pentagon.d.ts +2 -0
- package/core/src/middles/nodes/pentagon.js +12 -0
- package/core/src/middles/nodes/pentagon.js.map +1 -0
- package/core/src/middles/nodes/pentagon.rect.d.ts +3 -0
- package/core/src/middles/nodes/pentagon.rect.js +23 -0
- package/core/src/middles/nodes/pentagon.rect.js.map +1 -0
- package/core/src/middles/nodes/pentagram.anchor.d.ts +2 -0
- package/core/src/middles/nodes/pentagram.anchor.js +10 -0
- package/core/src/middles/nodes/pentagram.anchor.js.map +1 -0
- package/core/src/middles/nodes/pentagram.d.ts +2 -0
- package/core/src/middles/nodes/pentagram.js +11 -0
- package/core/src/middles/nodes/pentagram.js.map +1 -0
- package/core/src/middles/nodes/pentagram.rect.d.ts +3 -0
- package/core/src/middles/nodes/pentagram.rect.js +11 -0
- package/core/src/middles/nodes/pentagram.rect.js.map +1 -0
- package/core/src/middles/nodes/people.d.ts +2 -0
- package/core/src/middles/nodes/people.js +17 -0
- package/core/src/middles/nodes/people.js.map +1 -0
- package/core/src/middles/nodes/people.rect.d.ts +3 -0
- package/core/src/middles/nodes/people.rect.js +9 -0
- package/core/src/middles/nodes/people.rect.js.map +1 -0
- package/core/src/middles/nodes/rectangle.d.ts +2 -0
- package/core/src/middles/nodes/rectangle.js +25 -0
- package/core/src/middles/nodes/rectangle.js.map +1 -0
- package/core/src/middles/nodes/rectangle.rect.d.ts +3 -0
- package/core/src/middles/nodes/rectangle.rect.js +11 -0
- package/core/src/middles/nodes/rectangle.rect.js.map +1 -0
- package/core/src/middles/nodes/tablePagination.d.ts +2 -0
- package/core/src/middles/nodes/tablePagination.js +106 -0
- package/core/src/middles/nodes/text.d.ts +8 -0
- package/core/src/middles/nodes/text.js +295 -0
- package/core/src/middles/nodes/text.js.map +1 -0
- package/core/src/middles/nodes/triangle.anchor.d.ts +2 -0
- package/core/src/middles/nodes/triangle.anchor.js +9 -0
- package/core/src/middles/nodes/triangle.anchor.js.map +1 -0
- package/core/src/middles/nodes/triangle.d.ts +2 -0
- package/core/src/middles/nodes/triangle.js +10 -0
- package/core/src/middles/nodes/triangle.js.map +1 -0
- package/core/src/middles/nodes/triangle.rect.d.ts +3 -0
- package/core/src/middles/nodes/triangle.rect.js +23 -0
- package/core/src/middles/nodes/triangle.rect.js.map +1 -0
- package/core/src/models/data.d.ts +26 -0
- package/core/src/models/data.js +77 -0
- package/core/src/models/data.js.map +1 -0
- package/core/src/models/direction.d.ts +7 -0
- package/core/src/models/direction.js +9 -0
- package/core/src/models/direction.js.map +1 -0
- package/core/src/models/event.d.ts +13 -0
- package/core/src/models/event.js +16 -0
- package/core/src/models/event.js.map +1 -0
- package/core/src/models/index.d.ts +9 -0
- package/core/src/models/index.js +10 -0
- package/core/src/models/index.js.map +1 -0
- package/core/src/models/line.d.ts +53 -0
- package/core/src/models/line.js +442 -0
- package/core/src/models/line.js.map +1 -0
- package/core/src/models/node.d.ts +95 -0
- package/core/src/models/node.js +944 -0
- package/core/src/models/node.js.map +1 -0
- package/core/src/models/pen.d.ts +122 -0
- package/core/src/models/pen.js +362 -0
- package/core/src/models/pen.js.map +1 -0
- package/core/src/models/point.d.ts +25 -0
- package/core/src/models/point.js +59 -0
- package/core/src/models/point.js.map +1 -0
- package/core/src/models/rect.d.ts +22 -0
- package/core/src/models/rect.js +93 -0
- package/core/src/models/rect.js.map +1 -0
- package/core/src/models/status.d.ts +10 -0
- package/core/src/models/status.js +13 -0
- package/core/src/models/status.js.map +1 -0
- package/core/src/mqtt.d.ts +14 -0
- package/core/src/mqtt.js +82 -0
- package/core/src/mqtt.js.map +1 -0
- package/core/src/mqtt.min.d.ts +2 -0
- package/core/src/mqtt.min.js +2447 -0
- package/core/src/mqtt.min.js.map +1 -0
- package/core/src/offscreen.d.ts +16 -0
- package/core/src/offscreen.js +70 -0
- package/core/src/offscreen.js.map +1 -0
- package/core/src/options.d.ts +66 -0
- package/core/src/options.js +42 -0
- package/core/src/options.js.map +1 -0
- package/core/src/poll.js +39 -0
- package/core/src/preview.d.ts +29 -0
- package/core/src/preview.js +247 -0
- package/core/src/renderLayer.d.ts +36 -0
- package/core/src/renderLayer.js +187 -0
- package/core/src/renderLayer.js.map +1 -0
- package/core/src/socket.d.ts +10 -0
- package/core/src/socket.js +51 -0
- package/core/src/socket.js.map +1 -0
- package/core/src/utils/browser.d.ts +1 -0
- package/core/src/utils/browser.js +4 -0
- package/core/src/utils/browser.js.map +1 -0
- package/core/src/utils/canvas.d.ts +13 -0
- package/core/src/utils/canvas.js +84 -0
- package/core/src/utils/canvas.js.map +1 -0
- package/core/src/utils/construction.d.ts +41 -0
- package/core/src/utils/construction.js +36 -0
- package/core/src/utils/conversion.d.ts +0 -0
- package/core/src/utils/conversion.js +0 -0
- package/core/src/utils/dom.d.ts +8 -0
- package/core/src/utils/dom.js +67 -0
- package/core/src/utils/dom.js.map +1 -0
- package/core/src/utils/index.d.ts +9 -0
- package/core/src/utils/index.js +10 -0
- package/core/src/utils/index.js.map +1 -0
- package/core/src/utils/math.d.ts +3 -0
- package/core/src/utils/math.js +118 -0
- package/core/src/utils/math.js.map +1 -0
- package/core/src/utils/onmousevent.d.ts +5 -0
- package/core/src/utils/onmousevent.js +57 -0
- package/core/src/utils/padding.d.ts +7 -0
- package/core/src/utils/padding.js +47 -0
- package/core/src/utils/padding.js.map +1 -0
- package/core/src/utils/rect.d.ts +7 -0
- package/core/src/utils/rect.js +72 -0
- package/core/src/utils/rect.js.map +1 -0
- package/core/src/utils/uuid.d.ts +4 -0
- package/core/src/utils/uuid.js +13 -0
- package/core/src/utils/uuid.js.map +1 -0
- package/flow-diagram/index.d.ts +12 -0
- package/flow-diagram/index.js +13 -0
- package/flow-diagram/index.js.map +1 -0
- package/flow-diagram/src/comment/comment.anchor.d.ts +2 -0
- package/flow-diagram/src/comment/comment.anchor.js +5 -0
- package/flow-diagram/src/comment/comment.anchor.js.map +1 -0
- package/flow-diagram/src/comment/comment.d.ts +2 -0
- package/flow-diagram/src/comment/comment.js +10 -0
- package/flow-diagram/src/comment/comment.js.map +1 -0
- package/flow-diagram/src/comment/index.d.ts +2 -0
- package/flow-diagram/src/comment/index.js +3 -0
- package/flow-diagram/src/comment/index.js.map +1 -0
- package/flow-diagram/src/data/data.anchor.d.ts +2 -0
- package/flow-diagram/src/data/data.anchor.js +8 -0
- package/flow-diagram/src/data/data.anchor.js.map +1 -0
- package/flow-diagram/src/data/data.d.ts +2 -0
- package/flow-diagram/src/data/data.js +12 -0
- package/flow-diagram/src/data/data.js.map +1 -0
- package/flow-diagram/src/data/data.rect.d.ts +3 -0
- package/flow-diagram/src/data/data.rect.js +9 -0
- package/flow-diagram/src/data/data.rect.js.map +1 -0
- package/flow-diagram/src/data/index.d.ts +3 -0
- package/flow-diagram/src/data/index.js +4 -0
- package/flow-diagram/src/data/index.js.map +1 -0
- package/flow-diagram/src/db/db.d.ts +2 -0
- package/flow-diagram/src/db/db.js +14 -0
- package/flow-diagram/src/db/db.js.map +1 -0
- package/flow-diagram/src/db/db.rect.d.ts +4 -0
- package/flow-diagram/src/db/db.rect.js +9 -0
- package/flow-diagram/src/db/db.rect.js.map +1 -0
- package/flow-diagram/src/db/index.d.ts +2 -0
- package/flow-diagram/src/db/index.js +3 -0
- package/flow-diagram/src/db/index.js.map +1 -0
- package/flow-diagram/src/display/display.anchor.d.ts +2 -0
- package/flow-diagram/src/display/display.anchor.js +8 -0
- package/flow-diagram/src/display/display.anchor.js.map +1 -0
- package/flow-diagram/src/display/display.d.ts +2 -0
- package/flow-diagram/src/display/display.js +13 -0
- package/flow-diagram/src/display/display.js.map +1 -0
- package/flow-diagram/src/display/display.rect.d.ts +3 -0
- package/flow-diagram/src/display/display.rect.js +9 -0
- package/flow-diagram/src/display/display.rect.js.map +1 -0
- package/flow-diagram/src/display/index.d.ts +3 -0
- package/flow-diagram/src/display/index.js +4 -0
- package/flow-diagram/src/display/index.js.map +1 -0
- package/flow-diagram/src/document/document.anchor.d.ts +2 -0
- package/flow-diagram/src/document/document.anchor.js +8 -0
- package/flow-diagram/src/document/document.anchor.js.map +1 -0
- package/flow-diagram/src/document/document.d.ts +2 -0
- package/flow-diagram/src/document/document.js +15 -0
- package/flow-diagram/src/document/document.js.map +1 -0
- package/flow-diagram/src/document/document.rect.d.ts +3 -0
- package/flow-diagram/src/document/document.rect.js +9 -0
- package/flow-diagram/src/document/document.rect.js.map +1 -0
- package/flow-diagram/src/document/index.d.ts +3 -0
- package/flow-diagram/src/document/index.js +4 -0
- package/flow-diagram/src/document/index.js.map +1 -0
- package/flow-diagram/src/externStorage/externStorage.anchor.d.ts +2 -0
- package/flow-diagram/src/externStorage/externStorage.anchor.js +8 -0
- package/flow-diagram/src/externStorage/externStorage.anchor.js.map +1 -0
- package/flow-diagram/src/externStorage/externStorage.d.ts +2 -0
- package/flow-diagram/src/externStorage/externStorage.js +12 -0
- package/flow-diagram/src/externStorage/externStorage.js.map +1 -0
- package/flow-diagram/src/externStorage/externStorage.rect.d.ts +3 -0
- package/flow-diagram/src/externStorage/externStorage.rect.js +9 -0
- package/flow-diagram/src/externStorage/externStorage.rect.js.map +1 -0
- package/flow-diagram/src/externStorage/index.d.ts +3 -0
- package/flow-diagram/src/externStorage/index.js +4 -0
- package/flow-diagram/src/externStorage/index.js.map +1 -0
- package/flow-diagram/src/internalStorage/index.d.ts +2 -0
- package/flow-diagram/src/internalStorage/index.js +3 -0
- package/flow-diagram/src/internalStorage/index.js.map +1 -0
- package/flow-diagram/src/internalStorage/internalStorage.d.ts +2 -0
- package/flow-diagram/src/internalStorage/internalStorage.js +16 -0
- package/flow-diagram/src/internalStorage/internalStorage.js.map +1 -0
- package/flow-diagram/src/internalStorage/internalStorage.rect.d.ts +3 -0
- package/flow-diagram/src/internalStorage/internalStorage.rect.js +10 -0
- package/flow-diagram/src/internalStorage/internalStorage.rect.js.map +1 -0
- package/flow-diagram/src/manually/index.d.ts +3 -0
- package/flow-diagram/src/manually/index.js +4 -0
- package/flow-diagram/src/manually/index.js.map +1 -0
- package/flow-diagram/src/manually/manually.anchor.d.ts +2 -0
- package/flow-diagram/src/manually/manually.anchor.js +8 -0
- package/flow-diagram/src/manually/manually.anchor.js.map +1 -0
- package/flow-diagram/src/manually/manually.d.ts +2 -0
- package/flow-diagram/src/manually/manually.js +12 -0
- package/flow-diagram/src/manually/manually.js.map +1 -0
- package/flow-diagram/src/manually/manually.rect.d.ts +3 -0
- package/flow-diagram/src/manually/manually.rect.js +9 -0
- package/flow-diagram/src/manually/manually.rect.js.map +1 -0
- package/flow-diagram/src/parallel/index.d.ts +2 -0
- package/flow-diagram/src/parallel/index.js +3 -0
- package/flow-diagram/src/parallel/index.js.map +1 -0
- package/flow-diagram/src/parallel/parallel.anchor.d.ts +2 -0
- package/flow-diagram/src/parallel/parallel.anchor.js +6 -0
- package/flow-diagram/src/parallel/parallel.anchor.js.map +1 -0
- package/flow-diagram/src/parallel/parallel.d.ts +2 -0
- package/flow-diagram/src/parallel/parallel.js +9 -0
- package/flow-diagram/src/parallel/parallel.js.map +1 -0
- package/flow-diagram/src/queue/index.d.ts +2 -0
- package/flow-diagram/src/queue/index.js +3 -0
- package/flow-diagram/src/queue/index.js.map +1 -0
- package/flow-diagram/src/queue/queue.d.ts +2 -0
- package/flow-diagram/src/queue/queue.js +9 -0
- package/flow-diagram/src/queue/queue.js.map +1 -0
- package/flow-diagram/src/queue/queue.rect.d.ts +3 -0
- package/flow-diagram/src/queue/queue.rect.js +11 -0
- package/flow-diagram/src/queue/queue.rect.js.map +1 -0
- package/flow-diagram/src/register.d.ts +1 -0
- package/flow-diagram/src/register.js +26 -0
- package/flow-diagram/src/register.js.map +1 -0
- package/flow-diagram/src/subprocess/index.d.ts +2 -0
- package/flow-diagram/src/subprocess/index.js +3 -0
- package/flow-diagram/src/subprocess/index.js.map +1 -0
- package/flow-diagram/src/subprocess/subprocess.d.ts +2 -0
- package/flow-diagram/src/subprocess/subprocess.js +16 -0
- package/flow-diagram/src/subprocess/subprocess.js.map +1 -0
- package/flow-diagram/src/subprocess/subprocess.rect.d.ts +3 -0
- package/flow-diagram/src/subprocess/subprocess.rect.js +9 -0
- package/flow-diagram/src/subprocess/subprocess.rect.js.map +1 -0
- package/layout/index.d.ts +2 -0
- package/layout/index.js +3 -0
- package/layout/index.js.map +1 -0
- package/layout/src/align.d.ts +3 -0
- package/layout/src/align.js +67 -0
- package/layout/src/align.js.map +1 -0
- package/layout/src/layout.d.ts +9 -0
- package/layout/src/layout.js +50 -0
- package/layout/src/layout.js.map +1 -0
- package/myShape-diagram/myShape.js +196 -0
- package/myShape-diagram/myShape.ts +1 -0
- package/package.json +15 -0
- package/sequence-diagram/index.d.ts +3 -0
- package/sequence-diagram/index.js +4 -0
- package/sequence-diagram/index.js.map +1 -0
- package/sequence-diagram/src/focus/focus.anchor.d.ts +2 -0
- package/sequence-diagram/src/focus/focus.anchor.js +15 -0
- package/sequence-diagram/src/focus/focus.anchor.js.map +1 -0
- package/sequence-diagram/src/focus/focus.d.ts +2 -0
- package/sequence-diagram/src/focus/focus.js +13 -0
- package/sequence-diagram/src/focus/focus.js.map +1 -0
- package/sequence-diagram/src/focus/focus.rect.d.ts +3 -0
- package/sequence-diagram/src/focus/focus.rect.js +9 -0
- package/sequence-diagram/src/focus/focus.rect.js.map +1 -0
- package/sequence-diagram/src/focus/index.d.ts +3 -0
- package/sequence-diagram/src/focus/index.js +4 -0
- package/sequence-diagram/src/focus/index.js.map +1 -0
- package/sequence-diagram/src/lifeline/index.d.ts +3 -0
- package/sequence-diagram/src/lifeline/index.js +4 -0
- package/sequence-diagram/src/lifeline/index.js.map +1 -0
- package/sequence-diagram/src/lifeline/lifeline.anchor.d.ts +2 -0
- package/sequence-diagram/src/lifeline/lifeline.anchor.js +9 -0
- package/sequence-diagram/src/lifeline/lifeline.anchor.js.map +1 -0
- package/sequence-diagram/src/lifeline/lifeline.d.ts +2 -0
- package/sequence-diagram/src/lifeline/lifeline.js +35 -0
- package/sequence-diagram/src/lifeline/lifeline.js.map +1 -0
- package/sequence-diagram/src/lifeline/lifeline.rect.d.ts +3 -0
- package/sequence-diagram/src/lifeline/lifeline.rect.js +9 -0
- package/sequence-diagram/src/lifeline/lifeline.rect.js.map +1 -0
- package/sequence-diagram/src/register.d.ts +1 -0
- package/sequence-diagram/src/register.js +8 -0
- package/sequence-diagram/src/register.js.map +1 -0
@@ -0,0 +1,205 @@
|
|
1
|
+
//let DETAILDATA = null;
|
2
|
+
export function setConfItemNode(pen, syn_synata) {
|
3
|
+
if (!pen.data) return
|
4
|
+
if(pen.data instanceof Array) {
|
5
|
+
let _syn = ''
|
6
|
+
let isResetVal = false
|
7
|
+
let isResetFontColor = false
|
8
|
+
const {areaData, assetData, kpiData, tagData, asset} = syn_synata
|
9
|
+
pen.data.map((d) => {
|
10
|
+
const key = d.key;
|
11
|
+
let value = d.value;
|
12
|
+
const assetItem = assetData[value];
|
13
|
+
const areaItem = areaData[value];
|
14
|
+
const kpiItem = kpiData[value];
|
15
|
+
if(key === 'tagId') value = d.tagId ? d.tagId : d.value
|
16
|
+
const tagItem = tagData[value];
|
17
|
+
//console.log('key===========', d)
|
18
|
+
if (key === 'assetKey' && d.value === 'assetName' && asset) {
|
19
|
+
pen.text = asset.assetName;
|
20
|
+
}else if (key === 'assetId' && assetItem) {
|
21
|
+
_syn = assetItem;
|
22
|
+
// if(value === '264'){console.log('_syn',_syn,pen.name,parseInt(_syn.state))}
|
23
|
+
}else if (key === 'areaId' && areaItem) {
|
24
|
+
_syn = areaItem;
|
25
|
+
}else if (key === 'tagId' && tagItem) {
|
26
|
+
_syn = tagItem;
|
27
|
+
if(_syn.kpiName !== '通讯状态' || pen.name !== 'circle'){
|
28
|
+
isResetVal = true
|
29
|
+
}
|
30
|
+
const isControl = parseInt(tagItem.isControlDis); // 是否可控,0可控,1不可控
|
31
|
+
//d.isControlDis = isControlDis
|
32
|
+
if(!isControl) {
|
33
|
+
d.tagVal = value
|
34
|
+
d.controlParams = tagItem
|
35
|
+
//Object.assign(d, tagItem)
|
36
|
+
}
|
37
|
+
}else if (key === 'kpiAddr' && kpiItem) {
|
38
|
+
_syn = kpiItem;
|
39
|
+
isResetVal = true
|
40
|
+
const isControl = parseInt(kpiItem.isControlDis); // 是否可控,0可控,1不可控
|
41
|
+
//d.isControlDis = isControlDis
|
42
|
+
if(!isControl) {
|
43
|
+
d.tagVal = value
|
44
|
+
d.controlParams = kpiItem
|
45
|
+
// delete kpiItem[value]
|
46
|
+
// Object.assign(d, kpiItem)
|
47
|
+
}
|
48
|
+
}
|
49
|
+
})
|
50
|
+
// const type = parseInt(_syn.type) // 是否是开关量
|
51
|
+
// 显示的值
|
52
|
+
if (isResetVal) pen.text = `${_syn.value}${_syn.unit}`;
|
53
|
+
const state = parseInt(_syn.state)
|
54
|
+
if(!state && state !== 0) return
|
55
|
+
const name = pen.name
|
56
|
+
// 显示的颜色
|
57
|
+
let color = ''
|
58
|
+
switch (state) {
|
59
|
+
case 0: // 正常告警
|
60
|
+
color = '#FF0000';
|
61
|
+
break;
|
62
|
+
case 1: // 离线告警, 通讯开关告警
|
63
|
+
color = '#6d6d6d';
|
64
|
+
break;
|
65
|
+
case 2: // 未告警
|
66
|
+
case 3: // 无告警
|
67
|
+
let defaulColor = ''
|
68
|
+
if (name === 'text') {
|
69
|
+
defaulColor = 'defaultFontColor'
|
70
|
+
}else if(name === 'line') {
|
71
|
+
defaulColor = 'defaultStrokeStyle'
|
72
|
+
}else {
|
73
|
+
defaulColor = 'defaultFillStyle'
|
74
|
+
}
|
75
|
+
color = pen[defaulColor]
|
76
|
+
break;
|
77
|
+
case 4: // 故障报警
|
78
|
+
color = '#D38C00';
|
79
|
+
break;
|
80
|
+
}
|
81
|
+
|
82
|
+
// 显示的属性
|
83
|
+
if (name === 'text') {
|
84
|
+
pen.font.color = color
|
85
|
+
}else if(name === 'line') {
|
86
|
+
pen.strokeStyle = color
|
87
|
+
pen.text = ''
|
88
|
+
}else {
|
89
|
+
pen.fillStyle = color
|
90
|
+
}
|
91
|
+
|
92
|
+
if (name === 'electricFan') setFanData(pen, _syn)
|
93
|
+
}else {
|
94
|
+
if (pen.elementRendered) pen.elementRendered = false;
|
95
|
+
if(pen.data.params && pen.data.echarts) {
|
96
|
+
const { echartDataValue } = syn_synata;
|
97
|
+
//const seriesData = pen.data.echarts.option.series.length > 1 ? echartDataValue : echartData
|
98
|
+
const seriesData = echartDataValue;
|
99
|
+
if(seriesData) pen.data.echarts = setStatisticalData(pen, seriesData)
|
100
|
+
}
|
101
|
+
}
|
102
|
+
return pen
|
103
|
+
}
|
104
|
+
export function setStatisticalData(pen, echartData) {
|
105
|
+
const node = Object.assign({}, pen);
|
106
|
+
const displayMode = parseInt(node.data.echarts.option.displayMode);
|
107
|
+
const chartData = echartData[node.data.params.id];
|
108
|
+
if ((displayMode === 1 || displayMode === 2) && chartData){ // 折线图,柱状图
|
109
|
+
//const xData = [], seriesData = [];
|
110
|
+
const staticForType = node.data.params.staticForType ? node.data.params.staticForType : '';//统计类型:日,周,月,年
|
111
|
+
const seriesNodes = node.data.echarts.option.series;
|
112
|
+
// 双轴曲线
|
113
|
+
if(seriesNodes.length > 1 || node.data.params.curveNum > 1){
|
114
|
+
const chartOptions = staticForType ? chartData[`${staticForType}_Data`] : chartData;
|
115
|
+
const legendData = [];
|
116
|
+
if(!chartOptions) return;
|
117
|
+
node.data.echarts.option.xAxis[0].data = chartOptions.XData;
|
118
|
+
let legend = node.data.echarts.option.legend;
|
119
|
+
if(chartOptions.seriesData.length) {
|
120
|
+
//循环给每条统计数据赋值
|
121
|
+
seriesNodes.map((item, index) => {
|
122
|
+
const { name, data } = chartOptions.seriesData[index];
|
123
|
+
item.name = name;
|
124
|
+
item.data = data;
|
125
|
+
legendData.push(name);
|
126
|
+
});
|
127
|
+
legend.data = legendData;
|
128
|
+
}else {
|
129
|
+
node.data.echarts.option.legend = [];
|
130
|
+
node.data.echarts.option.series = []
|
131
|
+
}
|
132
|
+
}else {
|
133
|
+
const chartOptions = staticForType ? chartData[`${staticForType}_Data`] : chartData;
|
134
|
+
if(chartOptions) {
|
135
|
+
node.data.echarts.option.xAxis[0].data = chartOptions.XData;
|
136
|
+
node.data.echarts.option.series[0].data = chartOptions.seriesData;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
140
|
+
if (displayMode === 5 && chartData){ // 饼图
|
141
|
+
const colors = node.data.echarts.option.color;
|
142
|
+
const seriesData = [];
|
143
|
+
chartData.map((chd, index) => {
|
144
|
+
seriesData.push({
|
145
|
+
itemStyle: { color: colors[index] },
|
146
|
+
name: chd.name,
|
147
|
+
value: chd.value
|
148
|
+
})
|
149
|
+
})
|
150
|
+
node.data.echarts.option.series[0].data = seriesData;
|
151
|
+
}
|
152
|
+
if(displayMode === 6 && chartData){ // 仪表盘
|
153
|
+
node.appearance.title.text = chartData.name;
|
154
|
+
node.data.echarts.option.title.text = chartData.name;
|
155
|
+
node.data.echarts.option.series[0].data[0].value = chartData.value;
|
156
|
+
}
|
157
|
+
return node.data.echarts;
|
158
|
+
}
|
159
|
+
export function setNodeEvents(item, pen) {
|
160
|
+
|
161
|
+
}
|
162
|
+
|
163
|
+
export function setFanData(pen, syncData) {
|
164
|
+
if (!syncData) return
|
165
|
+
pen.text = ''
|
166
|
+
pen.rotate = 0;
|
167
|
+
pen.animateCycleIndex = 0;
|
168
|
+
pen.animateFrames = [];
|
169
|
+
pen.animateCycle = 0;
|
170
|
+
pen.animateDuration = 0;
|
171
|
+
let runState = false
|
172
|
+
let percentage = 1
|
173
|
+
const value = parseInt(syncData.v)
|
174
|
+
if(pen.fanValType == '1'){
|
175
|
+
if(value > pen.fanMinVal && value <= pen.fanMaxVal) {
|
176
|
+
runState = true
|
177
|
+
percentage = value/(pen.fanMaxVal-pen.fanMinVal)
|
178
|
+
}
|
179
|
+
}else if(pen.fanValType == '2'){
|
180
|
+
if(pen.fanNorVal === value) runState = true
|
181
|
+
}
|
182
|
+
if(runState){
|
183
|
+
addAnimateByRevolve(pen, percentage)
|
184
|
+
pen.animatePlay = true
|
185
|
+
}else{
|
186
|
+
pen.animatePlay = false
|
187
|
+
}
|
188
|
+
}
|
189
|
+
|
190
|
+
export function addAnimateByRevolve(pen, percentage) {
|
191
|
+
let time = 200/pen.fanSpeed/percentage
|
192
|
+
const state = JSON.parse(JSON.stringify(pen))
|
193
|
+
delete state.TID
|
194
|
+
delete state.animateFrames
|
195
|
+
delete state.animateStart
|
196
|
+
delete state.elementRendered
|
197
|
+
state.rotate = 360 * pen.fanRevolve
|
198
|
+
pen.animateFrames.push({
|
199
|
+
duration: time,
|
200
|
+
linear: true,
|
201
|
+
state
|
202
|
+
});
|
203
|
+
pen.animateDuration = time;
|
204
|
+
|
205
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './changeData';
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './changeData';
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { TopologyData } from './models/data';
|
2
|
+
import { Rect } from './models/rect';
|
3
|
+
import { Point } from './models/point';
|
4
|
+
import { Line } from './models/line';
|
5
|
+
import { Node } from './models/node';
|
6
|
+
import { Options } from './options';
|
7
|
+
import { Layer } from './layer';
|
8
|
+
export declare class HoverLayer extends Layer {
|
9
|
+
options: Options;
|
10
|
+
protected data: TopologyData;
|
11
|
+
line: Line;
|
12
|
+
initLine: Line;
|
13
|
+
node: Node;
|
14
|
+
hoverLineCP: Point;
|
15
|
+
lasthoverLineCP: Point;
|
16
|
+
dockAnchor: Point;
|
17
|
+
hoverAnchorIndex: number;
|
18
|
+
dockLineX: number;
|
19
|
+
dockLineY: number;
|
20
|
+
root: Node;
|
21
|
+
dragRect: Rect;
|
22
|
+
constructor(options: Options, TID: String);
|
23
|
+
lineTo(to: Point, toArrow?: string): void;
|
24
|
+
lineFrom(from: Point): void;
|
25
|
+
lineMove(pt: Point, initPos: {
|
26
|
+
x: number;
|
27
|
+
y: number;
|
28
|
+
}): void;
|
29
|
+
render(ctx: CanvasRenderingContext2D): void;
|
30
|
+
getRoot(node: Node): any;
|
31
|
+
clear(): void;
|
32
|
+
}
|
@@ -0,0 +1,199 @@
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
2
|
+
var extendStatics = function (d, b) {
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
6
|
+
return extendStatics(d, b);
|
7
|
+
};
|
8
|
+
return function (d, b) {
|
9
|
+
extendStatics(d, b);
|
10
|
+
function __() { this.constructor = d; }
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
12
|
+
};
|
13
|
+
})();
|
14
|
+
import { Point } from './models/point';
|
15
|
+
import { Node } from './models/node';
|
16
|
+
import { PenType } from './models/pen';
|
17
|
+
import { Store } from 'le5le-store';
|
18
|
+
import { Lock } from './models/status';
|
19
|
+
import { Layer } from './layer';
|
20
|
+
var HoverLayer = /** @class */ (function (_super) {
|
21
|
+
__extends(HoverLayer, _super);
|
22
|
+
function HoverLayer(options, TID) {
|
23
|
+
if (options === void 0) { options = {}; }
|
24
|
+
var _this = _super.call(this, TID) || this;
|
25
|
+
_this.options = options;
|
26
|
+
_this.hoverAnchorIndex = -1;
|
27
|
+
_this.dockLineX = 0;
|
28
|
+
_this.dockLineY = 0;
|
29
|
+
_this.data = Store.get(_this.generateStoreKey('topology-data'));
|
30
|
+
Store.set(_this.generateStoreKey('LT:HoverLayer'), _this);
|
31
|
+
return _this;
|
32
|
+
}
|
33
|
+
HoverLayer.prototype.lineTo = function (to, toArrow) {
|
34
|
+
if (toArrow === void 0) { toArrow = 'triangleSolid'; }
|
35
|
+
if (!this.line || this.line.locked) {
|
36
|
+
return;
|
37
|
+
}
|
38
|
+
this.line.setTo(to, toArrow);
|
39
|
+
if (this.line.from.id || this.line.to.id) {
|
40
|
+
this.line.calcControlPoints();
|
41
|
+
}
|
42
|
+
Store.set(this.generateStoreKey('pts-') + this.line.id, null);
|
43
|
+
Store.set(this.generateStoreKey('LT:updateLines'), [this.line]);
|
44
|
+
};
|
45
|
+
HoverLayer.prototype.lineFrom = function (from) {
|
46
|
+
if (this.line.locked) {
|
47
|
+
return;
|
48
|
+
}
|
49
|
+
this.line.setFrom(from, this.line.fromArrow);
|
50
|
+
if (this.line.from.id || this.line.to.id) {
|
51
|
+
this.line.calcControlPoints();
|
52
|
+
}
|
53
|
+
Store.set(this.generateStoreKey('pts-') + this.line.id, null);
|
54
|
+
Store.set(this.generateStoreKey('LT:updateLines'), [this.line]);
|
55
|
+
};
|
56
|
+
HoverLayer.prototype.lineMove = function (pt, initPos) {
|
57
|
+
if (this.line.locked) {
|
58
|
+
return;
|
59
|
+
}
|
60
|
+
var x = pt.x - initPos.x;
|
61
|
+
var y = pt.y - initPos.y;
|
62
|
+
this.line.setTo(new Point(this.initLine.to.x + x, this.initLine.to.y + y), this.line.toArrow);
|
63
|
+
this.line.setFrom(new Point(this.initLine.from.x + x, this.initLine.from.y + y), this.line.fromArrow);
|
64
|
+
for (var i = 0; i < this.initLine.controlPoints.length; ++i) {
|
65
|
+
this.line.controlPoints[i].x = this.initLine.controlPoints[i].x + x;
|
66
|
+
this.line.controlPoints[i].y = this.initLine.controlPoints[i].y + y;
|
67
|
+
}
|
68
|
+
Store.set(this.generateStoreKey('pts-') + this.line.id, null);
|
69
|
+
Store.set(this.generateStoreKey('LT:updateLines'), [this.line]);
|
70
|
+
};
|
71
|
+
HoverLayer.prototype.render = function (ctx) {
|
72
|
+
var _this = this;
|
73
|
+
if (this.data.locked === Lock.NoEvent) {
|
74
|
+
return;
|
75
|
+
}
|
76
|
+
ctx.fillStyle = this.options.hoverColor;
|
77
|
+
ctx.save();
|
78
|
+
// anchors
|
79
|
+
if (this.options.alwaysAnchor) {
|
80
|
+
this.data.pens.forEach(function (pen) {
|
81
|
+
if (pen.type === PenType.Line) {
|
82
|
+
return;
|
83
|
+
}
|
84
|
+
if (pen.hideAnchor) {
|
85
|
+
return;
|
86
|
+
}
|
87
|
+
for (var _i = 0, _a = pen.rotatedAnchors; _i < _a.length; _i++) {
|
88
|
+
var anchor = _a[_i];
|
89
|
+
if (anchor.hidden) {
|
90
|
+
continue;
|
91
|
+
}
|
92
|
+
ctx.beginPath();
|
93
|
+
ctx.arc(anchor.x, anchor.y, anchor.radius || _this.options.anchorRadius, 0, Math.PI * 2);
|
94
|
+
ctx.strokeStyle = anchor.strokeStyle || _this.options.hoverColor;
|
95
|
+
ctx.fillStyle = anchor.fillStyle || _this.options.anchorFillStyle;
|
96
|
+
ctx.fill();
|
97
|
+
ctx.stroke();
|
98
|
+
}
|
99
|
+
});
|
100
|
+
}
|
101
|
+
ctx.restore();
|
102
|
+
if (this.node && !this.data.locked) {
|
103
|
+
if (!this.node.getTID()) {
|
104
|
+
this.node.setTID(this.TID);
|
105
|
+
}
|
106
|
+
this.root = this.getRoot(this.node) || this.node;
|
107
|
+
if (this.root) {
|
108
|
+
ctx.save();
|
109
|
+
ctx.strokeStyle = this.options.dragColor;
|
110
|
+
ctx.globalAlpha = 0.2;
|
111
|
+
if (this.root.rotate) {
|
112
|
+
ctx.translate(this.root.rect.center.x, this.root.rect.center.y);
|
113
|
+
ctx.rotate(((this.root.rotate + this.root.offsetRotate) * Math.PI) / 180);
|
114
|
+
ctx.translate(-this.root.rect.center.x, -this.root.rect.center.y);
|
115
|
+
}
|
116
|
+
ctx.beginPath();
|
117
|
+
ctx.strokeRect(this.root.rect.x, this.root.rect.y, this.root.rect.width, this.root.rect.height);
|
118
|
+
ctx.restore();
|
119
|
+
}
|
120
|
+
if (!this.options.hideAnchor) {
|
121
|
+
for (var i = 0; i < this.node.rotatedAnchors.length; ++i) {
|
122
|
+
if (this.node.locked ||
|
123
|
+
this.node.hideAnchor ||
|
124
|
+
(this.node.rotatedAnchors[i].hidden && this.hoverAnchorIndex !== i)) {
|
125
|
+
continue;
|
126
|
+
}
|
127
|
+
ctx.beginPath();
|
128
|
+
ctx.arc(this.node.rotatedAnchors[i].x, this.node.rotatedAnchors[i].y, this.node.rotatedAnchors[i].radius || this.options.anchorRadius, 0, Math.PI * 2);
|
129
|
+
ctx.strokeStyle =
|
130
|
+
this.node.rotatedAnchors[i].strokeStyle || this.options.hoverColor;
|
131
|
+
ctx.fillStyle =
|
132
|
+
this.node.rotatedAnchors[i].fillStyle ||
|
133
|
+
this.options.anchorFillStyle;
|
134
|
+
ctx.fill();
|
135
|
+
ctx.stroke();
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}
|
139
|
+
if (this.dockAnchor) {
|
140
|
+
ctx.save();
|
141
|
+
ctx.beginPath();
|
142
|
+
ctx.arc(this.dockAnchor.x, this.dockAnchor.y, this.dockAnchor.radius || this.options.anchorRadius, 0, Math.PI * 2);
|
143
|
+
ctx.strokeStyle = this.options.dockStrokeStyle;
|
144
|
+
ctx.fillStyle = this.options.dockFillStyle;
|
145
|
+
ctx.fill();
|
146
|
+
ctx.stroke();
|
147
|
+
ctx.restore();
|
148
|
+
}
|
149
|
+
if (this.hoverLineCP) {
|
150
|
+
ctx.beginPath();
|
151
|
+
ctx.arc(this.hoverLineCP.x, this.hoverLineCP.y, 5, 0, Math.PI * 2);
|
152
|
+
ctx.fill();
|
153
|
+
}
|
154
|
+
ctx.strokeStyle = this.options.hoverColor + '80';
|
155
|
+
ctx.lineWidth = 1;
|
156
|
+
if (this.dockLineX > 0) {
|
157
|
+
var size = Store.get(this.generateStoreKey('LT:size'));
|
158
|
+
ctx.beginPath();
|
159
|
+
ctx.moveTo(this.dockLineX, 0);
|
160
|
+
ctx.lineTo(this.dockLineX, size.height);
|
161
|
+
ctx.stroke();
|
162
|
+
}
|
163
|
+
if (this.dockLineY > 0) {
|
164
|
+
var size = Store.get(this.generateStoreKey('LT:size'));
|
165
|
+
ctx.beginPath();
|
166
|
+
ctx.moveTo(0, this.dockLineY);
|
167
|
+
ctx.lineTo(size.width, this.dockLineY);
|
168
|
+
ctx.stroke();
|
169
|
+
}
|
170
|
+
// Select nodes by drag.
|
171
|
+
if (this.dragRect) {
|
172
|
+
ctx.fillStyle = this.options.dragColor + '30';
|
173
|
+
ctx.strokeStyle = this.options.dragColor;
|
174
|
+
ctx.beginPath();
|
175
|
+
ctx.strokeRect(this.dragRect.x, this.dragRect.y, this.dragRect.width, this.dragRect.height);
|
176
|
+
ctx.fillRect(this.dragRect.x, this.dragRect.y, this.dragRect.width, this.dragRect.height);
|
177
|
+
}
|
178
|
+
};
|
179
|
+
HoverLayer.prototype.getRoot = function (node) {
|
180
|
+
if (!node.parentId) {
|
181
|
+
return null;
|
182
|
+
}
|
183
|
+
for (var _i = 0, _a = this.data.pens; _i < _a.length; _i++) {
|
184
|
+
var item = _a[_i];
|
185
|
+
if (item instanceof Node && item.id === node.parentId) {
|
186
|
+
var n = this.getRoot(item);
|
187
|
+
return n ? n : item;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
return null;
|
191
|
+
};
|
192
|
+
HoverLayer.prototype.clear = function () {
|
193
|
+
this.node = null;
|
194
|
+
this.line = null;
|
195
|
+
};
|
196
|
+
return HoverLayer;
|
197
|
+
}(Layer));
|
198
|
+
export { HoverLayer };
|
199
|
+
//# sourceMappingURL=hoverLayer.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hoverLayer.js","sourceRoot":"","sources":["../../../packages/core/src/hoverLayer.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEvC,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACrC,OAAO,EAAO,OAAO,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC;IAAgC,8BAAK;IAmBnC,oBAAmB,OAAqB,EAAE,GAAW;QAAlC,wBAAA,EAAA,YAAqB;QAAxC,YACE,kBAAM,GAAG,CAAC,SAGX;QAJkB,aAAO,GAAP,OAAO,CAAc;QAPxC,sBAAgB,GAAG,CAAC,CAAC,CAAC;QAEtB,eAAS,GAAG,CAAC,CAAC;QACd,eAAS,GAAG,CAAC,CAAC;QAMZ,KAAI,CAAC,IAAI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AAC;IACH,YAAC;AAAD,CAAC,AAVD,IAUC"}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { Point } from '../../models/point';
|
2
|
+
export declare function circleSolid(ctx: CanvasRenderingContext2D, from: Point, to: Point, size: number, fillStyle?: string): void;
|
3
|
+
export declare function circle(ctx: CanvasRenderingContext2D, from: Point, to: Point, size: number): void;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
export function circleSolid(ctx, from, to, size, fillStyle) {
|
2
|
+
size += ctx.lineWidth * 3;
|
3
|
+
var r = size / 2;
|
4
|
+
if (ctx.lineWidth < 2) {
|
5
|
+
ctx.lineWidth = 2;
|
6
|
+
}
|
7
|
+
ctx.translate(to.x, to.y);
|
8
|
+
ctx.rotate(Math.atan2(to.y - from.y, to.x - from.x));
|
9
|
+
ctx.translate(-to.x, -to.y - ctx.lineWidth / 10);
|
10
|
+
ctx.arc(to.x - r - ctx.lineWidth / 2, to.y, r, 0, 2 * Math.PI);
|
11
|
+
ctx.stroke();
|
12
|
+
if (fillStyle) {
|
13
|
+
ctx.fillStyle = fillStyle;
|
14
|
+
}
|
15
|
+
ctx.fill();
|
16
|
+
}
|
17
|
+
export function circle(ctx, from, to, size) {
|
18
|
+
circleSolid(ctx, from, to, size, '#fff');
|
19
|
+
}
|
20
|
+
//# sourceMappingURL=circle.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"circle.js","sourceRoot":"","sources":["../../../../../packages/core/src/middles/arrows/circle.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,WAAW,CAAC,GAA6B,EAAE,IAAW,EAAE,EAAS,EAAE,IAAY,EAAE,SAAkB;IACjH,IAAI,IAAI,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC;IAC1B,IAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;IACnB,IAAI,GAAG,CAAC,SAAS,GAAG,CAAC,EAAE;QACrB,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC;KACnB;IACD,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;IAC1B,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IACrD,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,SAAS,GAAG,EAAE,CAAC,CAAC;IACjD,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,SAAS,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;IAC/D,GAAG,CAAC,MAAM,EAAE,CAAC;IACb,IAAI,SAAS,EAAE;QACb,GAAG,CAAC,SAAS,GAAG,SAAS,CAAC;KAC3B;IACD,GAAG,CAAC,IAAI,EAAE,CAAC;AACb,CAAC;AAED,MAAM,UAAU,MAAM,CAAC,GAA6B,EAAE,IAAW,EAAE,EAAS,EAAE,IAAY;IACxF,WAAW,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAC3C,CAAC"}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { Point } from '../../models/point';
|
2
|
+
export declare function diamondSolid(ctx: CanvasRenderingContext2D, from: Point, to: Point, size: number, fillStyle?: string): void;
|
3
|
+
export declare function diamond(ctx: CanvasRenderingContext2D, from: Point, to: Point, size: number): void;
|
@@ -0,0 +1,28 @@
|
|
1
|
+
export function diamondSolid(ctx, from, to, size, fillStyle) {
|
2
|
+
size += ctx.lineWidth * 3;
|
3
|
+
var r = size / 2;
|
4
|
+
var arrowWidth = ctx.lineWidth / 10;
|
5
|
+
if (ctx.lineWidth < 2) {
|
6
|
+
ctx.lineWidth = 2;
|
7
|
+
arrowWidth = 0;
|
8
|
+
}
|
9
|
+
ctx.translate(to.x, to.y);
|
10
|
+
ctx.rotate(Math.atan2(to.y - from.y, to.x - from.x));
|
11
|
+
ctx.translate(-to.x - ctx.lineWidth + arrowWidth * 5, -to.y);
|
12
|
+
ctx.moveTo(to.x, to.y + arrowWidth);
|
13
|
+
ctx.lineTo(to.x, to.y - arrowWidth);
|
14
|
+
ctx.lineTo(to.x - r, to.y - r / 2);
|
15
|
+
ctx.lineTo(to.x - size, to.y - arrowWidth);
|
16
|
+
ctx.lineTo(to.x - size, to.y + arrowWidth);
|
17
|
+
ctx.lineTo(to.x - r, to.y + r / 2);
|
18
|
+
ctx.closePath();
|
19
|
+
ctx.stroke();
|
20
|
+
if (fillStyle) {
|
21
|
+
ctx.fillStyle = fillStyle;
|
22
|
+
}
|
23
|
+
ctx.fill();
|
24
|
+
}
|
25
|
+
export function diamond(ctx, from, to, size) {
|
26
|
+
diamondSolid(ctx, from, to, size, '#fff');
|
27
|
+
}
|
28
|
+
//# sourceMappingURL=diamond.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"diamond.js","sourceRoot":"","sources":["../../../../../packages/core/src/middles/arrows/diamond.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,YAAY,CAC1B,GAA6B,EAC7B,IAAW,EACX,EAAS,EACT,IAAY,EACZ,SAAkB;IAElB,IAAI,IAAI,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC;IAC1B,IAAM,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC;IACnB,IAAI,UAAU,GAAG,GAAG,CAAC,SAAS,GAAG,EAAE,CAAC;IACpC,IAAI,GAAG,CAAC,SAAS,GAAG,CAAC,EAAE;QACrB,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC;QAClB,UAAU,GAAG,CAAC,CAAC;KAChB;IACD,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC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AE,IAAW,EAAE,EAAS,EAAE,IAAY;IACzF,YAAY,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAC5C,CAAC"}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { Point } from '../../models/point';
|
2
|
+
export declare function line(ctx: CanvasRenderingContext2D, from: Point, to: Point, size: number): void;
|
3
|
+
export declare function lineUp(ctx: CanvasRenderingContext2D, from: Point, to: Point, size: number): void;
|
4
|
+
export declare function lineDown(ctx: CanvasRenderingContext2D, from: Point, to: Point, size: number): void;
|
@@ -0,0 +1,42 @@
|
|
1
|
+
export function line(ctx, from, to, size) {
|
2
|
+
size += ctx.lineWidth * 3;
|
3
|
+
ctx.translate(to.x, to.y);
|
4
|
+
ctx.rotate(Math.atan2(to.y - from.y, to.x - from.x));
|
5
|
+
ctx.translate(-to.x - ctx.lineWidth / 5, -to.y - ctx.lineWidth / 5);
|
6
|
+
ctx.moveTo(to.x, to.y);
|
7
|
+
ctx.lineTo(to.x - size, to.y - size / 3);
|
8
|
+
ctx.moveTo(to.x, to.y);
|
9
|
+
ctx.lineTo(to.x - size, to.y + size / 3);
|
10
|
+
ctx.stroke();
|
11
|
+
}
|
12
|
+
export function lineUp(ctx, from, to, size) {
|
13
|
+
size += ctx.lineWidth * 3;
|
14
|
+
ctx.translate(to.x, to.y);
|
15
|
+
ctx.rotate(Math.atan2(to.y - from.y, to.x - from.x));
|
16
|
+
ctx.translate(-to.x - ctx.lineWidth / 5, -to.y - ctx.lineWidth / 5);
|
17
|
+
if (to.x > from.x) {
|
18
|
+
ctx.moveTo(to.x, to.y);
|
19
|
+
ctx.lineTo(to.x - size, to.y - size / 3);
|
20
|
+
}
|
21
|
+
else {
|
22
|
+
ctx.moveTo(to.x, to.y);
|
23
|
+
ctx.lineTo(to.x - size, to.y + size / 3);
|
24
|
+
}
|
25
|
+
ctx.stroke();
|
26
|
+
}
|
27
|
+
export function lineDown(ctx, from, to, size) {
|
28
|
+
size += ctx.lineWidth * 3;
|
29
|
+
ctx.translate(to.x, to.y);
|
30
|
+
ctx.rotate(Math.atan2(to.y - from.y, to.x - from.x));
|
31
|
+
ctx.translate(-to.x - ctx.lineWidth / 5, -to.y - ctx.lineWidth / 5);
|
32
|
+
if (to.x < from.x) {
|
33
|
+
ctx.moveTo(to.x, to.y);
|
34
|
+
ctx.lineTo(to.x - size, to.y - size / 3);
|
35
|
+
}
|
36
|
+
else {
|
37
|
+
ctx.moveTo(to.x, to.y);
|
38
|
+
ctx.lineTo(to.x - size, to.y + size / 3);
|
39
|
+
}
|
40
|
+
ctx.stroke();
|
41
|
+
}
|
42
|
+
//# sourceMappingURL=line.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"line.js","sourceRoot":"","sources":["../../../../../packages/core/src/middles/arrows/line.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,IAAI,CAAC,GAA6B,EAAE,IAAW,EAAE,EAAS,EAAE,IAAY;IACtF,IAAI,IAAI,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC;IAC1B,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;IAC1B,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IACrD,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,SAAS,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC;IACpE,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;IACvB,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,EAA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C"}
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { Point } from '../../models/point';
|
2
|
+
export declare function triangleSolid(ctx: CanvasRenderingContext2D, from: Point, to: Point, size?: number, fillStyle?: string): void;
|
3
|
+
export declare function triangle(ctx: CanvasRenderingContext2D, from: Point, to: Point, size: number): void;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
export function triangleSolid(ctx, from, to, size, fillStyle) {
|
2
|
+
size += ctx.lineWidth * 3;
|
3
|
+
var arrowWidth = ctx.lineWidth / 10;
|
4
|
+
if (ctx.lineWidth < 2) {
|
5
|
+
ctx.lineWidth = 2;
|
6
|
+
arrowWidth = 0;
|
7
|
+
}
|
8
|
+
ctx.translate(to.x, to.y);
|
9
|
+
ctx.rotate(Math.atan2(to.y - from.y, to.x - from.x));
|
10
|
+
ctx.translate(-to.x - ctx.lineWidth + arrowWidth * 5, -to.y);
|
11
|
+
ctx.moveTo(to.x, to.y + arrowWidth);
|
12
|
+
ctx.lineTo(to.x, to.y - arrowWidth);
|
13
|
+
ctx.lineTo(to.x - size, to.y - size / 3);
|
14
|
+
ctx.lineTo(to.x - size, to.y + size / 3);
|
15
|
+
ctx.closePath();
|
16
|
+
ctx.stroke();
|
17
|
+
if (fillStyle) {
|
18
|
+
ctx.fillStyle = fillStyle;
|
19
|
+
}
|
20
|
+
ctx.fill();
|
21
|
+
}
|
22
|
+
export function triangle(ctx, from, to, size) {
|
23
|
+
triangleSolid(ctx, from, to, size, '#fff');
|
24
|
+
}
|
25
|
+
//# sourceMappingURL=triangle.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"triangle.js","sourceRoot":"","sources":["../../../../../packages/core/src/middles/arrows/triangle.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,aAAa,CAC3B,GAA6B,EAC7B,IAAW,EACX,EAAS,EACT,IAAa,EACb,SAAkB;IAElB,IAAI,IAAI,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC;IAC1B,IAAI,UAAU,GAAG,G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