dcim-topology2d 3.0.2
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,118 @@
|
|
1
|
+
// https://github.com/PimpTrizkit/PJs/wiki/12.-Shade,-Blend-and-Convert-a-Web-Color-(pSBC.js)
|
2
|
+
// Version 4.0
|
3
|
+
export function pSBC(p, c0, c1, l) {
|
4
|
+
var r, g, b, P, f, t, h, a = typeof c1 === 'string';
|
5
|
+
var i = parseInt, m = Math.round;
|
6
|
+
if (typeof p !== 'number' ||
|
7
|
+
p < -1 ||
|
8
|
+
p > 1 ||
|
9
|
+
typeof c0 !== 'string' ||
|
10
|
+
(c0[0] !== 'r' && c0[0] !== '#') ||
|
11
|
+
(c1 && !a)) {
|
12
|
+
return null;
|
13
|
+
}
|
14
|
+
var pSBCr = function (d) {
|
15
|
+
var _a;
|
16
|
+
var n = d.length;
|
17
|
+
var x = {};
|
18
|
+
if (n > 9) {
|
19
|
+
(_a = d = d.split(','), r = _a[0], g = _a[1], b = _a[2], a = _a[3], _a), (n = d.length);
|
20
|
+
if (n < 3 || n > 4) {
|
21
|
+
return null;
|
22
|
+
}
|
23
|
+
(x.r = i(r[3] === 'a' ? r.slice(5) : r.slice(4))), (x.g = i(g)), (x.b = i(b)), (x.a = a ? parseFloat(a) : -1);
|
24
|
+
}
|
25
|
+
else {
|
26
|
+
if (n === 8 || n === 6 || n < 4) {
|
27
|
+
return null;
|
28
|
+
}
|
29
|
+
if (n < 6) {
|
30
|
+
d = '#' + d[1] + d[1] + d[2] + d[2] + d[3] + d[3] + (n > 4 ? d[4] + d[4] : '');
|
31
|
+
}
|
32
|
+
d = i(d.slice(1), 16);
|
33
|
+
if (n === 9 || n === 5) {
|
34
|
+
(x.r = (d >> 24) & 255), (x.g = (d >> 16) & 255), (x.b = (d >> 8) & 255), (x.a = m((d & 255) / 0.255) / 1000);
|
35
|
+
}
|
36
|
+
else {
|
37
|
+
(x.r = d >> 16), (x.g = (d >> 8) & 255), (x.b = d & 255), (x.a = -1);
|
38
|
+
}
|
39
|
+
}
|
40
|
+
return x;
|
41
|
+
};
|
42
|
+
(h = c0.length > 9),
|
43
|
+
(h = a ? (c1.length > 9 ? true : c1 === 'c' ? !h : false) : h),
|
44
|
+
(f = pSBCr(c0)),
|
45
|
+
(P = p < 0),
|
46
|
+
(t = c1 && c1 !== 'c' ? pSBCr(c1) : P ? { r: 0, g: 0, b: 0, a: -1 } : { r: 255, g: 255, b: 255, a: -1 }),
|
47
|
+
(p = P ? p * -1 : p),
|
48
|
+
(P = 1 - p);
|
49
|
+
if (!f || !t) {
|
50
|
+
return null;
|
51
|
+
}
|
52
|
+
if (l) {
|
53
|
+
(r = m(P * f.r + p * t.r)), (g = m(P * f.g + p * t.g)), (b = m(P * f.b + p * t.b));
|
54
|
+
}
|
55
|
+
else {
|
56
|
+
(r = m(Math.pow((P * Math.pow(f.r, 2) + p * Math.pow(t.r, 2)), 0.5))),
|
57
|
+
(g = m(Math.pow((P * Math.pow(f.g, 2) + p * Math.pow(t.g, 2)), 0.5))),
|
58
|
+
(b = m(Math.pow((P * Math.pow(f.b, 2) + p * Math.pow(t.b, 2)), 0.5)));
|
59
|
+
}
|
60
|
+
(a = f.a), (t = t.a), (f = a >= 0 || t >= 0), (a = f ? (a < 0 ? t : t < 0 ? a : a * P + t * p) : 0);
|
61
|
+
if (h) {
|
62
|
+
return 'rgb' + (f ? 'a(' : '(') + r + ',' + g + ',' + b + (f ? ',' + m(a * 1000) / 1000 : '') + ')';
|
63
|
+
}
|
64
|
+
else {
|
65
|
+
return ('#' +
|
66
|
+
(4294967296 + r * 16777216 + g * 65536 + b * 256 + (f ? m(a * 255) : 0)).toString(16).slice(1, f ? undefined : -2));
|
67
|
+
}
|
68
|
+
}
|
69
|
+
export function abs(num, percent) {
|
70
|
+
if (+percent) {
|
71
|
+
return +percent;
|
72
|
+
}
|
73
|
+
if (!percent || percent[percent.length - 1] !== '%') {
|
74
|
+
return 0;
|
75
|
+
}
|
76
|
+
percent = percent.substr(0, percent.length - 1);
|
77
|
+
return (num * +percent) / 100;
|
78
|
+
}
|
79
|
+
export function ptInPolyXY(pt, poly) {
|
80
|
+
if(!pt || !poly || !poly.length) return;
|
81
|
+
let c = false;
|
82
|
+
const x = pt.x, y = pt.y;
|
83
|
+
for (let l = poly.length, i = 0, j = l-1; i < l; j = i++) {
|
84
|
+
let xj = poly[j].x, yj = poly[j].y, xi = poly[i].x, yi = poly[i].y;
|
85
|
+
let where = (yi - yj) * (x - xi) - (xi - xj) * (y - yi);
|
86
|
+
if (yj < yi) {
|
87
|
+
if (y >= yj && y < yi) {
|
88
|
+
if (where == 0) return true;
|
89
|
+
if (where > 0) {
|
90
|
+
if (y == yj) {
|
91
|
+
if (y > poly[j == 0 ? l-1 : j-1].y) {
|
92
|
+
c = !c;
|
93
|
+
}
|
94
|
+
} else {
|
95
|
+
c = !c;
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}
|
99
|
+
} else if (yi < yj) {
|
100
|
+
if (y > yi && y <= yj) {
|
101
|
+
if (where == 0) return true;
|
102
|
+
if (where < 0) {
|
103
|
+
if (y == yj) {
|
104
|
+
if (y < poly[j == 0 ? l-1 : j-1].y) {
|
105
|
+
c = !c;
|
106
|
+
}
|
107
|
+
} else {
|
108
|
+
c = !c;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
}
|
112
|
+
} else if (y == yi && (x >= xj && x <= xi || x >= xi && x <= xj)) {
|
113
|
+
return true;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
return c;
|
117
|
+
}
|
118
|
+
//# sourceMappingURL=math.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"math.js","sourceRoot":"","sources":["../../../../packages/core/src/utils/math.ts"],"names":[],"mappings":"AAAA,6FAA6F;AAC7F,cAAc;AACd,MAAM,UAAU,IAAI,CAAC,CAAM,EAAE,EAAO,EAAE,EAAQ,EAAE,CAAO;IACrD,IAAI,CAAC,EACH,CAAC,EACD,CAAC,EACD,CAAC,EACD,CAAC,EACD,CAAC,EACD,CAAC,EACD,CAAC,GAAQ,OAAO,EAAE,KAAK,QAAQ,CAA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Fun(type: string, data: any): object;
|
2
|
+
export declare function mousDownFun(type: string, eventNode: object): object;
|
3
|
+
export declare function omouseEventPrototDoWindowFn(eventNode: object, node: object): string;
|
4
|
+
// export declare function abs(num: number, percent: number | string): number;
|
5
|
+
// export declare function pointInPoly(pt: number, poly: []): boolean;
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { ptInPolyXY } from './math';
|
2
|
+
import { moveDataType, downDataType } from './construction'
|
3
|
+
// 执行window函数
|
4
|
+
export function omouseEventPrototDoWindowFn (eventNode, node) {
|
5
|
+
|
6
|
+
window[eventNode.value](node, eventNode.params);
|
7
|
+
|
8
|
+
};
|
9
|
+
export function mousMoveFun(type, pos, data) {
|
10
|
+
let params = {
|
11
|
+
order: 0,
|
12
|
+
hoverNode: null,
|
13
|
+
eventNode: null,
|
14
|
+
moveType: 'None'
|
15
|
+
}
|
16
|
+
// 不存在节点
|
17
|
+
if(!data || data.length <= 0) return params;
|
18
|
+
|
19
|
+
for (var _i = 0, _a = data; _i < _a.length; _i++) {
|
20
|
+
var item = _a[_i];
|
21
|
+
const isPoint = ptInPolyXY(pos, item.rotatedAnchors);
|
22
|
+
if(isPoint) {
|
23
|
+
params.hoverNode = item;
|
24
|
+
params.order = _i;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
// 不在此节点上停留
|
28
|
+
if(!params.hoverNode) return params;
|
29
|
+
|
30
|
+
params.hoverNode.events.map((item) => {
|
31
|
+
const type = parseInt(item.type);
|
32
|
+
if(type === 0 || type === 1) {
|
33
|
+
params.moveType = moveDataType.Nodes;
|
34
|
+
params.eventNode = item;
|
35
|
+
}
|
36
|
+
});
|
37
|
+
|
38
|
+
return params;
|
39
|
+
}
|
40
|
+
export function mousDownFun(type, eventNode) {
|
41
|
+
let params = {};
|
42
|
+
const action = eventNode ? parseInt(eventNode.action) : 0;
|
43
|
+
if(action === 3) {
|
44
|
+
params.eventType = downDataType.Window; // 打开会话窗口
|
45
|
+
}else if(action === 7){
|
46
|
+
params.eventType = downDataType.Showhide; // 链接跳转
|
47
|
+
params.value = eventNode.value;
|
48
|
+
}else if(action === 8){
|
49
|
+
params.eventType = downDataType.Tabswitch; // Tab切换
|
50
|
+
} else {
|
51
|
+
params.eventType = downDataType.Target; // 链接跳转
|
52
|
+
}
|
53
|
+
return params;
|
54
|
+
}
|
55
|
+
export function mouseUpFun() {
|
56
|
+
|
57
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
/**
|
2
|
+
* turn padding into [top, right, bottom, left]
|
3
|
+
* @param {Number|Array} padding input padding
|
4
|
+
* @return {array} output
|
5
|
+
*/
|
6
|
+
export var formatPadding = function (padding) {
|
7
|
+
var top = 0;
|
8
|
+
var left = 0;
|
9
|
+
var right = 0;
|
10
|
+
var bottom = 0;
|
11
|
+
if (typeof padding === 'number') {
|
12
|
+
top = left = right = bottom = padding;
|
13
|
+
}
|
14
|
+
else if (typeof padding === 'string') {
|
15
|
+
var intPadding = parseInt(padding, 10);
|
16
|
+
top = left = right = bottom = intPadding;
|
17
|
+
}
|
18
|
+
else if (Array.isArray(padding)) {
|
19
|
+
top = padding[0];
|
20
|
+
right = !isNil(padding[1]) ? padding[1] : padding[0];
|
21
|
+
bottom = !isNil(padding[2]) ? padding[2] : padding[0];
|
22
|
+
left = !isNil(padding[3]) ? padding[3] : right;
|
23
|
+
}
|
24
|
+
return [top, right, bottom, left];
|
25
|
+
};
|
26
|
+
/**
|
27
|
+
* Checks if `value` is `null` or `undefined`.
|
28
|
+
*
|
29
|
+
* @since 4.0.0
|
30
|
+
* @category Lang
|
31
|
+
* @param {*} value The value to check.
|
32
|
+
* @returns {boolean} Returns `true` if `value` is nullish, else `false`.
|
33
|
+
* @example
|
34
|
+
*
|
35
|
+
* isNil(null)
|
36
|
+
* // => true
|
37
|
+
*
|
38
|
+
* isNil(void 0)
|
39
|
+
* // => true
|
40
|
+
*
|
41
|
+
* isNil(NaN)
|
42
|
+
* // => false
|
43
|
+
*/
|
44
|
+
function isNil(value) {
|
45
|
+
return value == null;
|
46
|
+
}
|
47
|
+
//# sourceMappingURL=padding.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"padding.js","sourceRoot":"","sources":["../../../../packages/core/src/utils/padding.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,CAAC,IAAM,aAAa,GAAG,UAAC,OAAgB;IAC5C,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,MAAM,GAAG,CAAC,CAAC;IAEf,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QAC/B,GAAG,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;KACvC;SAAM,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QACtC,IAAM,UAAU,GAAG,QAAQ,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;QACzC,GAAG,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM,GAAG,UAAU,CAAC;KAC1C;SAAM,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QACjC,GAAG,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;QACjB,KAAK,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACrD,MAAM,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QACtD,IAAI,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC;KAChD;IACD,OAAO,CAAC,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;AACpC,CAAC,CAAC;AAEF;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAS,KAAK,CAAC,KAAU;IACvB,OAAO,KAAK,IAAI,IAAI,CAAC;AACvB,CAAC"}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { Pen } from '../models/pen';
|
2
|
+
import { Rect } from '../models/rect';
|
3
|
+
import { Node } from '../models/node'
|
4
|
+
import { Point } from '../models/point'
|
5
|
+
export declare function conversionpts(pen: Node): Point;
|
6
|
+
export declare function conversionPenData(pen: any): [];
|
7
|
+
export declare function getRect(pens: Pen[]): Rect;
|
@@ -0,0 +1,72 @@
|
|
1
|
+
import { Node } from '../models/node';
|
2
|
+
import { Line } from '../models/line';
|
3
|
+
import {PenType} from '../models/pen';
|
4
|
+
import { getBezierPoint } from '../middles/lines/curve';
|
5
|
+
import { Rect } from '../models/rect';
|
6
|
+
export function conversionpts(pen) {
|
7
|
+
var pts = pen.rect.toPoints();
|
8
|
+
if (pen.rotate) {
|
9
|
+
for (var _a = 0, pts_1 = pts; _a < pts_1.length; _a++) {
|
10
|
+
var pt = pts_1[_a];
|
11
|
+
pt.rotate(pen.rotate, pen.rect.center);
|
12
|
+
}
|
13
|
+
}
|
14
|
+
return pts;
|
15
|
+
}
|
16
|
+
export function conversionPenData(pen) {
|
17
|
+
let item = null;
|
18
|
+
const points = [];
|
19
|
+
if(pen.type === PenType.Node){
|
20
|
+
item = new Node(pen);
|
21
|
+
const pts = conversionpts(item);
|
22
|
+
points.push.apply(points, pts);
|
23
|
+
}else {
|
24
|
+
item = new Line(pen);
|
25
|
+
if (item.name === 'curve') {
|
26
|
+
for (var i = 0.01; i < 1; i += 0.02) {
|
27
|
+
points.push(getBezierPoint(i, item.from, item.controlPoints[0], item.controlPoints[1], item.to));
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
return points;
|
32
|
+
};
|
33
|
+
export function getRect(pens) {
|
34
|
+
var x1 = 99999;
|
35
|
+
var y1 = 99999;
|
36
|
+
var x2 = -99999;
|
37
|
+
var y2 = -99999;
|
38
|
+
var points = [];
|
39
|
+
for (var _i = 0, pens_1 = pens; _i < pens_1.length; _i++) {
|
40
|
+
var item = pens_1[_i];
|
41
|
+
if (item instanceof Node) {
|
42
|
+
const pts = conversionpts(item);
|
43
|
+
points.push.apply(points, pts);
|
44
|
+
}else if(item instanceof Line) {
|
45
|
+
if (item.name === 'curve') {
|
46
|
+
for (var i = 0.01; i < 1; i += 0.02) {
|
47
|
+
points.push(getBezierPoint(i, item.from, item.controlPoints[0], item.controlPoints[1], item.to));
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}else {
|
51
|
+
const newPoint = conversionPenData(item);
|
52
|
+
points.push.apply(points, newPoint);
|
53
|
+
}
|
54
|
+
}
|
55
|
+
for (var _b = 0, points_1 = points; _b < points_1.length; _b++) {
|
56
|
+
var item = points_1[_b];
|
57
|
+
if (x1 > item.x) {
|
58
|
+
x1 = item.x;
|
59
|
+
}
|
60
|
+
if (y1 > item.y) {
|
61
|
+
y1 = item.y;
|
62
|
+
}
|
63
|
+
if (x2 < item.x) {
|
64
|
+
x2 = item.x;
|
65
|
+
}
|
66
|
+
if (y2 < item.y) {
|
67
|
+
y2 = item.y;
|
68
|
+
}
|
69
|
+
}
|
70
|
+
return new Rect(x1, y1, x2 - x1, y2 - y1);
|
71
|
+
}
|
72
|
+
//# sourceMappingURL=rect.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"rect.js","sourceRoot":"","sources":["../../../../packages/core/src/utils/rect.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;A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AAM,IAAI,eAAA;QACb,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE;YACf,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;SACb;QACD,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE;YACf,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;SACb;QACD,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE;YACf,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;SACb;QACD,IAAI,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE;YACf,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;SACb;KACF;IAED,OAAO,IAAI,IAAI,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;AAC5C,CAAC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export function s4() {
|
2
|
+
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
|
3
|
+
}
|
4
|
+
export function s8() {
|
5
|
+
return (((1 + Math.random()) * 0x100000000) | 0).toString(16).substring(1);
|
6
|
+
}
|
7
|
+
export function s12() {
|
8
|
+
return s4() + s8();
|
9
|
+
}
|
10
|
+
export function s16() {
|
11
|
+
return s8() + s8();
|
12
|
+
}
|
13
|
+
//# sourceMappingURL=uuid.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"uuid.js","sourceRoot":"","sources":["../../../../packages/core/src/utils/uuid.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,EAAE;IAChB,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AACzE,CAAC;AAED,MAAM,UAAU,EAAE;IAChB,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;AAC7E,CAAC;AAED,MAAM,UAAU,GAAG;IACjB,OAAO,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC;AACrB,CAAC;AAED,MAAM,UAAU,GAAG;IACjB,OAAO,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC;AACrB,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
export * from './src/data';
|
2
|
+
export * from './src/subprocess';
|
3
|
+
export * from './src/db';
|
4
|
+
export * from './src/document';
|
5
|
+
export * from './src/internalStorage';
|
6
|
+
export * from './src/externStorage';
|
7
|
+
export * from './src/queue';
|
8
|
+
export * from './src/manually';
|
9
|
+
export * from './src/display';
|
10
|
+
export * from './src/parallel';
|
11
|
+
export * from './src/comment';
|
12
|
+
export * from './src/register';
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export * from './src/data';
|
2
|
+
export * from './src/subprocess';
|
3
|
+
export * from './src/db';
|
4
|
+
export * from './src/document';
|
5
|
+
export * from './src/internalStorage';
|
6
|
+
export * from './src/externStorage';
|
7
|
+
export * from './src/queue';
|
8
|
+
export * from './src/manually';
|
9
|
+
export * from './src/display';
|
10
|
+
export * from './src/parallel';
|
11
|
+
export * from './src/comment';
|
12
|
+
export * from './src/register';
|
13
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../packages/flow-diagram/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"comment.anchor.js","sourceRoot":"","sources":["../../../../packages/flow-diagram/src/comment/comment.anchor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAQ,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAExD,MAAM,UAAU,kBAAkB,CAAC,IAAU;IAC3C,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;AAChG,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export function flowComment(ctx, node) {
|
2
|
+
ctx.beginPath();
|
3
|
+
var offsetX = node.rect.width / 4;
|
4
|
+
ctx.moveTo(node.rect.x + offsetX, node.rect.y);
|
5
|
+
ctx.lineTo(node.rect.x, node.rect.y);
|
6
|
+
ctx.lineTo(node.rect.x, node.rect.ey);
|
7
|
+
ctx.lineTo(node.rect.x + offsetX, node.rect.ey);
|
8
|
+
ctx.stroke();
|
9
|
+
}
|
10
|
+
//# sourceMappingURL=comment.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"comment.js","sourceRoot":"","sources":["../../../../packages/flow-diagram/src/comment/comment.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,WAAW,CAAC,GAA6B,EAAE,IAAU;IACnE,GAAG,CAAC,SAAS,EAAE,CAAC;IAChB,IAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;IACpC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC/C,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACrC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACtC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAChD,GAAG,CAAC,MAAM,EAAE,CAAC;AACf,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/flow-diagram/src/comment/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Point, Direction } from 'dcim-topology/core';
|
2
|
+
export function flowDataAnchors(node) {
|
3
|
+
node.anchors.push(new Point(node.rect.x + node.rect.width / 14, node.rect.y + node.rect.height / 2, Direction.Left));
|
4
|
+
node.anchors.push(new Point(node.rect.x + (node.rect.width * 4) / 7, node.rect.y, Direction.Up));
|
5
|
+
node.anchors.push(new Point(node.rect.x + (node.rect.width * 13) / 14, node.rect.y + node.rect.height / 2, Direction.Right));
|
6
|
+
node.anchors.push(new Point(node.rect.x + (node.rect.width * 3) / 7, node.rect.ey, Direction.Bottom));
|
7
|
+
}
|
8
|
+
//# sourceMappingURL=data.anchor.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"data.anchor.js","sourceRoot":"","sources":["../../../../packages/flow-diagram/src/data/data.anchor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAQ,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAExD,MAAM,UAAU,eAAe,CAAC,IAAU;IACx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|
6
|
+
ctx.lineTo(node.rect.x + node.rect.width - offsetX, node.rect.ey);
|
7
|
+
ctx.lineTo(node.rect.x, node.rect.ey);
|
8
|
+
ctx.closePath();
|
9
|
+
(node.fillStyle || node.bkType) && ctx.fill();
|
10
|
+
ctx.stroke();
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=data.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"data.js","sourceRoot":"","sources":["../../../../packages/flow-diagram/src/data/data.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,QAAQ,CAAC,GAA6B,EAAE,IAAU;IAChE,GAAG,CAAC,SAAS,EAAE,CAAC;IAChB,IAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;IACpC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC/C,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACtC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAClE,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACtC,GAAG,CAAC,SAAS,EAAE,CAAC;IAChB,CAAC,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,IAAI,EAAE,CAAC;IAC9C,GAAG,CAAC,MAAM,EAAE,CAAC;AACf,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Rect } from 'dcim-topology/core';
|
2
|
+
export function flowDataIconRect(node) {
|
3
|
+
node.iconRect = new Rect(0, 0, 0, 0);
|
4
|
+
}
|
5
|
+
export function flowDataTextRect(node) {
|
6
|
+
node.textRect = new Rect(node.rect.x + node.rect.width / 7, node.rect.y, (node.rect.width * 5) / 7, node.rect.height);
|
7
|
+
node.fullTextRect = node.textRect;
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=data.rect.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"data.rect.js","sourceRoot":"","sources":["../../../../packages/flow-diagram/src/data/data.rect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,UAAU,gBAAgB,CAAC,IAAU;IACzC,IAAI,CAAC,QAAQ,GAAG,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AACvC,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,IAAU;IACzC,IAAI,CAAC,QAAQ,GAAG,IAAI,IAAI,CACtB,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,EACjC,IAAI,CAAC,IAAI,CAAC,CAAC,EACX,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,CAAC,EACzB,IAAI,CAAC,IAAI,CAAC,MAAM,CACjB,CAAC;IACF,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,QAAQ,CAAC;AACpC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/flow-diagram/src/data/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export function flowDb(ctx, node) {
|
2
|
+
ctx.beginPath();
|
3
|
+
var offsetY = node.rect.height / 7;
|
4
|
+
ctx.moveTo(node.rect.x, node.rect.y + offsetY);
|
5
|
+
ctx.bezierCurveTo(node.rect.x, (node.rect.y - offsetY / 2) | 0, node.rect.ex, (node.rect.y - offsetY / 2) | 0, node.rect.ex, node.rect.y + offsetY);
|
6
|
+
ctx.lineTo(node.rect.ex, node.rect.ey - offsetY);
|
7
|
+
ctx.bezierCurveTo(node.rect.ex, (node.rect.ey + offsetY / 2) | 0, node.rect.x, (node.rect.ey + offsetY / 2) | 0, node.rect.x, node.rect.ey - offsetY);
|
8
|
+
ctx.closePath();
|
9
|
+
ctx.moveTo(node.rect.x, node.rect.ey - offsetY);
|
10
|
+
ctx.bezierCurveTo(node.rect.x, (node.rect.ey - offsetY * 2) | 0, node.rect.ex, (node.rect.ey - offsetY * 2) | 0, node.rect.ex, node.rect.ey - offsetY);
|
11
|
+
(node.fillStyle || node.bkType) && ctx.fill();
|
12
|
+
ctx.stroke();
|
13
|
+
}
|
14
|
+
//# sourceMappingURL=db.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"db.js","sourceRoot":"","sources":["../../../../packages/flow-diagram/src/db/db.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,MAAM,CAAC,GAA6B,EAAE,IAAU;IAC9D,GAAG,CAAC,SAAS,EAAE,CAAC;IAChB,IAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;IACrC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC;IAC/C,GAAG,CAAC,aAAa,CACf,IAAI,CAAC,IAAI,CAAC,CAAC,EACX,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,GAAG,CAAC,CAAC,GAAG,CAAC,EAC/B,IAAI,CAAC,IAAI,CAAC,EAAE,EACZ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG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,CAAC,MAAM,EAAE,CAAC;AACf,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Rect } from 'dcim-topology/core';
|
2
|
+
export function flowDbIconRect(node) {
|
3
|
+
node.iconRect = new Rect(0, 0, 0, 0);
|
4
|
+
}
|
5
|
+
export function flowDbTextRect(node) {
|
6
|
+
node.textRect = new Rect(node.rect.x, node.rect.y + node.rect.height / 8, node.rect.width, (node.rect.height * 5) / 8);
|
7
|
+
node.fullTextRect = node.textRect;
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=db.rect.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"db.rect.js","sourceRoot":"","sources":["../../../../packages/flow-diagram/src/db/db.rect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,UAAU,cAAc,CAAC,IAAU;IACvC,IAAI,CAAC,QAAQ,GAAG,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AACvC,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,IAAU;IACvC,IAAI,CAAC,QAAQ,GAAG,IAAI,IAAI,CACtB,IAAI,CAAC,IAAI,CAAC,CAAC,EACX,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAClC,IAAI,CAAC,IAAI,CAAC,KAAK,EACf,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,CAC3B,CAAC;IACF,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,QAAQ,CAAC;AACpC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/flow-diagram/src/db/index.ts"],"names":[],"mappings":"AAAA,cAAc,MAAM,CAAC;AACrB,cAAc,WAAW,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Point, Direction } from 'dcim-topology/core';
|
2
|
+
export function flowDisplayAnchors(node) {
|
3
|
+
node.anchors.push(new Point(node.rect.x, node.rect.y + node.rect.height / 2, Direction.Left));
|
4
|
+
node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.y, Direction.Up));
|
5
|
+
node.anchors.push(new Point(node.rect.x + node.rect.width, node.rect.y + node.rect.height / 2, Direction.Right));
|
6
|
+
node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.y + node.rect.height, Direction.Bottom));
|
7
|
+
}
|
8
|
+
//# sourceMappingURL=display.anchor.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"display.anchor.js","sourceRoot":"","sources":["../../../../packages/flow-diagram/src/display/display.anchor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAQ,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAExD,MAAM,UAAU,kBAAkB,CAAC,IAAU;IAC3C,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IAC9F,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3F,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IACjH,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;AACpH,CAAC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export function flowDisplay(ctx, node) {
|
2
|
+
ctx.beginPath();
|
3
|
+
var offsetX = node.rect.width / 8;
|
4
|
+
ctx.moveTo(node.rect.x + offsetX, node.rect.y);
|
5
|
+
ctx.lineTo(node.rect.ex - offsetX, node.rect.y);
|
6
|
+
ctx.bezierCurveTo(node.rect.ex + offsetX / 3, node.rect.y, node.rect.ex + offsetX / 3, node.rect.ey, node.rect.ex - offsetX, node.rect.ey);
|
7
|
+
ctx.lineTo(node.rect.x + offsetX, node.rect.ey);
|
8
|
+
ctx.lineTo(node.rect.x, node.rect.y + node.rect.height / 2);
|
9
|
+
ctx.closePath();
|
10
|
+
(node.fillStyle || node.bkType) && ctx.fill();
|
11
|
+
ctx.stroke();
|
12
|
+
}
|
13
|
+
//# sourceMappingURL=display.js.map
|