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,67 @@
|
|
1
|
+
import { Node } from 'dcim-topology/core';
|
2
|
+
export function alignNodes(pens, rect, align) {
|
3
|
+
for (var _i = 0, pens_1 = pens; _i < pens_1.length; _i++) {
|
4
|
+
var item = pens_1[_i];
|
5
|
+
if (!(item instanceof Node)) {
|
6
|
+
continue;
|
7
|
+
}
|
8
|
+
switch (align) {
|
9
|
+
case 'left':
|
10
|
+
item.rect.x = rect.x;
|
11
|
+
break;
|
12
|
+
case 'right':
|
13
|
+
item.rect.x = rect.ex - item.rect.width;
|
14
|
+
break;
|
15
|
+
case 'top':
|
16
|
+
item.rect.y = rect.y;
|
17
|
+
break;
|
18
|
+
case 'bottom':
|
19
|
+
item.rect.y = rect.ey - item.rect.height;
|
20
|
+
break;
|
21
|
+
case 'center':
|
22
|
+
item.rect.x = rect.center.x - item.rect.width / 2;
|
23
|
+
break;
|
24
|
+
case 'middle':
|
25
|
+
item.rect.y = rect.center.y - item.rect.height / 2;
|
26
|
+
break;
|
27
|
+
}
|
28
|
+
item.rect.floor();
|
29
|
+
item.rect.calcCenter();
|
30
|
+
item.init();
|
31
|
+
item.calcChildrenRect();
|
32
|
+
}
|
33
|
+
}
|
34
|
+
export function spaceBetween(pens, distance, direction) {
|
35
|
+
var space = 0;
|
36
|
+
var cnt = 0;
|
37
|
+
var axis = direction == 'width'? 'x': 'y'
|
38
|
+
for (var _i = 0, pens_2 = pens; _i < pens_2.length; _i++) {
|
39
|
+
var item = pens_2[_i];
|
40
|
+
if (!(item instanceof Node)) {
|
41
|
+
continue;
|
42
|
+
}
|
43
|
+
space += item.rect[direction];
|
44
|
+
++cnt;
|
45
|
+
}
|
46
|
+
space = (distance - space) / (cnt - 1);
|
47
|
+
pens = pens.sort(function (a, b) {
|
48
|
+
return a.rect[axis] - b.rect[axis];
|
49
|
+
});
|
50
|
+
var left = 0;
|
51
|
+
for (var _a = 0, pens_3 = pens; _a < pens_3.length; _a++) {
|
52
|
+
var item = pens_3[_a];
|
53
|
+
if (!(item instanceof Node)) {
|
54
|
+
continue;
|
55
|
+
}
|
56
|
+
if (!left) {
|
57
|
+
left = item.rect[axis];
|
58
|
+
}
|
59
|
+
item.rect[axis] = left;
|
60
|
+
left += item.rect[direction] + space;
|
61
|
+
item.rect.floor();
|
62
|
+
item.rect.calcCenter();
|
63
|
+
item.init();
|
64
|
+
item.calcChildrenRect();
|
65
|
+
}
|
66
|
+
}
|
67
|
+
//# sourceMappingURL=align.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"align.js","sourceRoot":"","sources":["../../../packages/layout/src/align.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,IAAI,EAAQ,MAAM,gBAAgB,CAAC;AAEjD,MAAM,UAAU,UAAU,CAAC,IAAW,EAAE,IAAU,EAAE,KAAa;IAC/D,KAAmB,UAAI,EAAJ,aAAI,EAAJ,kBAAI,EAAJ,IAAI,EAAE;QAApB,IAAM,IAAI,aAAA;QACb,IAAI,CAAC,CAAC,IAAI,YAAY,IAAI,CAAC,EAAE;YAC3B,SAAS;SACV;QACD,QAAQ,KAAK,EAAE;YACb,KAAK,MAAM;gBACT,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;gBACrB,MAAM;YACR,KAAK,OAAO;gBACV,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;gBACxC,MAAM;YACR,KAAK,KAAK;gBACR,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;gBACrB,MAAM;YACR,KAAK,QAAQ;gBACX,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC;gBACzC,MAAM;YACR,KAAK,QAAQ;gBACX,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,IA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CAAC,KAAK,GAAG,KAAK,CAAC;QAEhC,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;QAClB,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;QACvB,IAAI,CAAC,IAAI,EAAE,CAAC;QACZ,IAAI,CAAC,gBAAgB,EAAE,CAAC;KACzB;AACH,CAAC"}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { PenType, getRect } from 'dcim-topology/core';
|
2
|
+
import { alignNodes, spaceBetween } from './align';
|
3
|
+
export function layout(pens, params) {
|
4
|
+
var spaceWidth = params.spaceWidth || 30;
|
5
|
+
var spaceHeight = params.spaceHeight || 30;
|
6
|
+
var rect = getRect(pens);
|
7
|
+
var left = rect.x;
|
8
|
+
var top = rect.y;
|
9
|
+
var rows = [];
|
10
|
+
var row = [];
|
11
|
+
var maxHeight = 0;
|
12
|
+
for (var _i = 0, pens_1 = pens; _i < pens_1.length; _i++) {
|
13
|
+
var item = pens_1[_i];
|
14
|
+
if (item.type === PenType.Line) {
|
15
|
+
continue;
|
16
|
+
}
|
17
|
+
if (params.nodeWidth > 0) {
|
18
|
+
item.rect.width = params.nodeWidth;
|
19
|
+
}
|
20
|
+
if (params.nodeHeight > 0) {
|
21
|
+
item.rect.height = params.nodeHeight;
|
22
|
+
}
|
23
|
+
if (item.rect.height > maxHeight) {
|
24
|
+
maxHeight = item.rect.height;
|
25
|
+
}
|
26
|
+
item.rect.x = left;
|
27
|
+
item.rect.y = top;
|
28
|
+
item.rect.init();
|
29
|
+
row.push(item);
|
30
|
+
left += item.rect.width + spaceWidth;
|
31
|
+
if (left > params.maxWidth || (params.maxCount > 0 && row.length >= params.maxCount)) {
|
32
|
+
rows.push(row);
|
33
|
+
row = [];
|
34
|
+
left = rect.x;
|
35
|
+
top += maxHeight + spaceHeight;
|
36
|
+
maxHeight = 0;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
rows.push(row);
|
40
|
+
for (var _a = 0, rows_1 = rows; _a < rows_1.length; _a++) {
|
41
|
+
var item = rows_1[_a];
|
42
|
+
var r = getRect(item);
|
43
|
+
r.width = params.maxWidth;
|
44
|
+
alignNodes(item, r, 'middle');
|
45
|
+
if (params.maxCount > 0) {
|
46
|
+
spaceBetween(item, params.maxWidth);
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
//# sourceMappingURL=layout.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../../packages/layout/src/layout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,UAAU,MAAM,CAAC,IAAW,EAAE,MAOnC;IACC,IAAM,UAAU,GAAG,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC;IAC3C,IAAM,WAAW,GAAG,MAAM,CAAC,WAAW,IAAI,EAAE,CAAC;IAE7C,IAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3B,IAAI,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC;IAClB,IAAI,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC;IAEjB,IAAM,IAAI,GAAU,EAAE,CAAC;IACvB,IAAI,GAAG,GAAU,EAAE,CAAC;IACpB,IAAI,SAAS,GAAG,CAAC,CAAC;IAClB,KAAmB,UAAI,EAAJ,aAAI,EAAJ,kBAAI,EAAJ,IAAI,EAAE;QAApB,IAAM,IAAI,aAAA;QACb,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,CAAC,IAAI,EAAE;YAC9B,SAAS;SACV;QAED,IAAI,MAAM,CAAC,SAAS,GAAG,CAAC,EAAE;YACxB,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC;SACpC;QACD,IAAI,MAAM,CAAC,UAAU,GAAG,CAAC,EAAE;YACzB,IAAI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ACH,CAAC"}
|
@@ -0,0 +1,196 @@
|
|
1
|
+
// 源码版写法
|
2
|
+
import { registerNode } from 'dcim-topology/core'
|
3
|
+
|
4
|
+
// 组件版写法和bundle一致
|
5
|
+
// window.Le5leTopology.registerNode
|
6
|
+
|
7
|
+
// 画骨架
|
8
|
+
|
9
|
+
function drawOuterLine(ctx, node) {
|
10
|
+
const R = Math.floor((node.rect.width - 6) / 2);
|
11
|
+
const r = Math.round((R * 1) / 2);
|
12
|
+
|
13
|
+
ctx.beginPath();
|
14
|
+
// 上半个圆形
|
15
|
+
ctx.arc(node.rect.x + R, node.rect.y + r, r, 0, Math.PI, true);
|
16
|
+
// 下半个圆形
|
17
|
+
const theta = Math.acos((r * 1.0) / R);
|
18
|
+
ctx.arc(
|
19
|
+
node.rect.x + R,
|
20
|
+
node.rect.y + node.rect.height - R,
|
21
|
+
R,
|
22
|
+
theta + Math.PI,
|
23
|
+
-theta,
|
24
|
+
true
|
25
|
+
); // 逆时针
|
26
|
+
ctx.closePath();
|
27
|
+
ctx.stroke();
|
28
|
+
}
|
29
|
+
|
30
|
+
// 画底色
|
31
|
+
function drawBasic(ctx, node) {
|
32
|
+
const lingrad = ctx.createLinearGradient(
|
33
|
+
node.rect.x,
|
34
|
+
node.rect.y,
|
35
|
+
node.rect.width,
|
36
|
+
node.rect.height
|
37
|
+
);
|
38
|
+
lingrad.addColorStop(0, 'mediumvioletred');
|
39
|
+
lingrad.addColorStop(0.2, 'darkorange');
|
40
|
+
lingrad.addColorStop(0.4, 'gold');
|
41
|
+
lingrad.addColorStop(0.6, 'limegreen');
|
42
|
+
lingrad.addColorStop(0.8, 'navy');
|
43
|
+
lingrad.addColorStop(1, 'purple');
|
44
|
+
ctx.fillStyle = lingrad;
|
45
|
+
ctx.fill('evenodd');
|
46
|
+
}
|
47
|
+
|
48
|
+
function getYByValue(node, i) {
|
49
|
+
const R = Math.floor((node.rect.width - 6) / 2);
|
50
|
+
const r = Math.round((R * 1) / 2);
|
51
|
+
|
52
|
+
const min = 0;
|
53
|
+
const max = 40;
|
54
|
+
|
55
|
+
// 刻度线总高度
|
56
|
+
const scale_height = node.rect.height - 2 * R - 2 * r;
|
57
|
+
// 0刻度线所在位置
|
58
|
+
const zero_scale_y = node.rect.height - 2 * R;
|
59
|
+
const dy_dtem = scale_height / (max - min);
|
60
|
+
return zero_scale_y - dy_dtem * node.value;
|
61
|
+
}
|
62
|
+
|
63
|
+
// 画刻度线
|
64
|
+
function drawScale(ctx, node) {
|
65
|
+
const min = 0;
|
66
|
+
const max = 40;
|
67
|
+
const R = Math.floor((node.rect.width - 6) / 2);
|
68
|
+
const r = Math.round((R * 1) / 2);
|
69
|
+
|
70
|
+
for (let i = min; i <= max; i++) {
|
71
|
+
// 画刻度线
|
72
|
+
const y = getYByValue(node, i);
|
73
|
+
ctx.beginPath();
|
74
|
+
ctx.moveTo(R + r, y);
|
75
|
+
if (i % 10 == 0) {
|
76
|
+
ctx.lineWidth = 2;
|
77
|
+
ctx.lineTo(R + r - (r * 2) / 3, y);
|
78
|
+
// ctx.font = "15px bold";
|
79
|
+
ctx.fillText(i + '', R + r, y + 6);
|
80
|
+
ctx.stroke();
|
81
|
+
} else {
|
82
|
+
ctx.lineWidth = 1;
|
83
|
+
if (i % 5 == 0) {
|
84
|
+
ctx.lineTo(R + r - r / 2, y);
|
85
|
+
} else {
|
86
|
+
ctx.lineTo(R + r - r / 3, y);
|
87
|
+
}
|
88
|
+
ctx.stroke();
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
/////////////////////
|
94
|
+
// end 以下代码不完整,代码来自网上改写,仅作参考
|
95
|
+
/////////////////////
|
96
|
+
|
97
|
+
// 自定义图形库绘画函数
|
98
|
+
export function thermometer(ctx, node) {
|
99
|
+
ctx.beginPath();
|
100
|
+
|
101
|
+
drawOuterLine(ctx, node);
|
102
|
+
drawBasic(ctx, node);
|
103
|
+
ctx.clearRect(
|
104
|
+
node.rect.x,
|
105
|
+
node.rect.y,
|
106
|
+
node.rect.width,
|
107
|
+
getYByValue(node, node.value)
|
108
|
+
);
|
109
|
+
drawOuterLine(ctx, node);
|
110
|
+
drawScale(ctx, node);
|
111
|
+
}
|
112
|
+
|
113
|
+
// 自定义图形库绘画函数
|
114
|
+
export function pool(ctx, node) {
|
115
|
+
var wr = node.borderRadius;
|
116
|
+
var hr = node.borderRadius;
|
117
|
+
if (node.borderRadius < 1) {
|
118
|
+
wr = node.rect.width * node.borderRadius;
|
119
|
+
hr = node.rect.height * node.borderRadius;
|
120
|
+
}
|
121
|
+
var r = wr < hr ? wr : hr;
|
122
|
+
if (node.rect.width < 2 * r) {
|
123
|
+
r = node.rect.width / 2;
|
124
|
+
}
|
125
|
+
if (node.rect.height < 2 * r) {
|
126
|
+
r = node.rect.height / 2;
|
127
|
+
}
|
128
|
+
ctx.beginPath();
|
129
|
+
ctx.strokeStyle = "rgba(0,0,0,.0)"
|
130
|
+
var value = (1-node.value) * (node.rect.height - node.lineWidth/2)
|
131
|
+
ctx.moveTo(node.rect.x + node.lineWidth/2, node.rect.y + value);
|
132
|
+
ctx.lineTo(node.rect.ex - node.lineWidth/2, node.rect.y + value);
|
133
|
+
ctx.arcTo(node.rect.ex - node.lineWidth/2, node.rect.y + node.rect.height - node.lineWidth/2, node.rect.x + node.lineWidth/2, node.rect.y + node.rect.height - node.lineWidth/2, r);
|
134
|
+
ctx.arcTo(node.rect.x + node.lineWidth/2, node.rect.y + node.rect.height - node.lineWidth/2, node.rect.x + node.lineWidth/2, node.rect.y, r);
|
135
|
+
ctx.lineTo(node.rect.x + node.lineWidth/2, node.rect.y + value);
|
136
|
+
ctx.closePath();
|
137
|
+
(node.fillStyle || node.bkType) && ctx.fill();
|
138
|
+
ctx.stroke();
|
139
|
+
|
140
|
+
ctx.beginPath();
|
141
|
+
ctx.strokeStyle = node.strokeStyle
|
142
|
+
ctx.lineWidth = node.lineWidth
|
143
|
+
ctx.moveTo(node.rect.x + node.rect.width, node.rect.y);
|
144
|
+
ctx.arcTo(node.rect.x + node.rect.width, node.rect.y + node.rect.height, node.rect.x, node.rect.y + node.rect.height, r);
|
145
|
+
ctx.arcTo(node.rect.x, node.rect.y + node.rect.height, node.rect.x, node.rect.y, r);
|
146
|
+
ctx.arcTo(node.rect.x, node.rect.y, node.rect.x + node.rect.width, node.rect.y, r);
|
147
|
+
// ctx.closePath();
|
148
|
+
(node.fillStyle || node.bkType);
|
149
|
+
ctx.stroke();
|
150
|
+
}
|
151
|
+
|
152
|
+
// 自定义图形库绘画函数
|
153
|
+
export function electricFan(ctx, node) {
|
154
|
+
var wwr = node.rect.width / 2;
|
155
|
+
var hwr = node.rect.height / 2;
|
156
|
+
var hwr = node.rect.height / 2;
|
157
|
+
var x0 = node.rect.x + node.rect.width /2
|
158
|
+
var y0 = node.rect.y + node.rect.height / 2
|
159
|
+
var withinRadius = wwr < hwr ? wwr : hwr;
|
160
|
+
ctx.beginPath();
|
161
|
+
ctx.lineWidth = node.lineWidth
|
162
|
+
ctx.arc(x0,y0,withinRadius,0,2*Math.PI);
|
163
|
+
ctx.closePath();
|
164
|
+
ctx.stroke();
|
165
|
+
ctx.beginPath();
|
166
|
+
ctx.lineWidth = 1;
|
167
|
+
var fanCount = node.fanCount;
|
168
|
+
for(var i = 0; i < fanCount; i++){
|
169
|
+
var fanAngle = 2 * Math.PI / fanCount * i;
|
170
|
+
var x1 = x0 - withinRadius*Math.sin(fanAngle);
|
171
|
+
var y1 = y0 - withinRadius*Math.cos(fanAngle);
|
172
|
+
var xr = x0 - withinRadius*Math.sin(fanAngle)/2;
|
173
|
+
var yr = y0 - withinRadius*Math.cos(fanAngle)/2;
|
174
|
+
ctx.moveTo(x0, y0);
|
175
|
+
ctx.lineTo(x1, y1);
|
176
|
+
ctx.arc(xr, yr, withinRadius/2, Math.PI / 2 - fanAngle,3 * Math.PI / 2 - fanAngle);
|
177
|
+
}
|
178
|
+
ctx.closePath();
|
179
|
+
(node.fillStyle || node.bkType) && ctx.fill();
|
180
|
+
ctx.stroke();
|
181
|
+
ctx.beginPath();
|
182
|
+
ctx.lineWidth = 3;
|
183
|
+
ctx.arc(x0,y0,withinRadius/5,0,2*Math.PI);
|
184
|
+
ctx.closePath();
|
185
|
+
(node.fillStyle || node.bkType) && ctx.fill();
|
186
|
+
ctx.stroke();
|
187
|
+
}
|
188
|
+
|
189
|
+
// 注册自定义图形库
|
190
|
+
export function registerMyShape() {
|
191
|
+
registerNode('electricFan', electricFan);
|
192
|
+
registerNode('pool', pool);
|
193
|
+
registerNode('thermometer', thermometer);
|
194
|
+
}
|
195
|
+
|
196
|
+
// src\views\data.ts 里面加载到工具栏,第一个就是此自定义图形库
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function registerMyShape(): void;
|
package/package.json
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../packages/sequence-diagram/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { Point, Direction } from 'dcim-topology/core';
|
2
|
+
export function sequenceFocusAnchors(node) {
|
3
|
+
node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.y, Direction.Up));
|
4
|
+
node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.ey, Direction.Bottom));
|
5
|
+
var dis = 5;
|
6
|
+
for (var i = dis; node.rect.y + i < node.rect.ey; i = i + dis) {
|
7
|
+
var pt1 = new Point(node.rect.x, node.rect.y + i, Direction.Left);
|
8
|
+
var pt2 = new Point(node.rect.ex, node.rect.y + i, Direction.Right);
|
9
|
+
pt1.hidden = true;
|
10
|
+
pt2.hidden = true;
|
11
|
+
node.anchors.push(pt1);
|
12
|
+
node.anchors.push(pt2);
|
13
|
+
}
|
14
|
+
}
|
15
|
+
//# sourceMappingURL=focus.anchor.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"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,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QACvB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KACxB;AACH,CAAC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export function sequenceFocus(ctx, node) {
|
2
|
+
ctx.beginPath();
|
3
|
+
ctx.rect(node.rect.x, node.rect.y, node.rect.width, node.rect.height);
|
4
|
+
if (this.fillStyle) {
|
5
|
+
ctx.fillStyle = this.fillStyle;
|
6
|
+
}
|
7
|
+
else {
|
8
|
+
ctx.fillStyle = '#fff';
|
9
|
+
}
|
10
|
+
(node.fillStyle || node.bkType) && ctx.fill();
|
11
|
+
ctx.stroke();
|
12
|
+
}
|
13
|
+
//# sourceMappingURL=focus.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"focus.js","sourceRoot":"","sources":["../../../../packages/sequence-diagram/src/focus/focus.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,aAAa,CAAC,GAA6B,EAAE,IAAU;IACrE,GAAG,CAAC,SAAS,EAAE,CAAC;IAChB,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACtE,IAAI,IAAI,CAAC,SAAS,EAAE;QAClB,GAAG,CAAC,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;KAChC;SAAM;QACL,GAAG,CAAC,SAAS,GAAG,MAAM,CAAC;KACxB;IACD,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 sequenceFocusIconRect(node) {
|
3
|
+
node.iconRect = new Rect(0, 0, 0, 0);
|
4
|
+
}
|
5
|
+
export function sequenceFocusTextRect(node) {
|
6
|
+
node.textRect = new Rect(0, 0, 0, 0);
|
7
|
+
node.fullTextRect = node.textRect;
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=focus.rect.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"focus.rect.js","sourceRoot":"","sources":["../../../../packages/sequence-diagram/src/focus/focus.rect.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAE5C,MAAM,UAAU,qBAAqB,CAAC,IAAU;IAC9C,IAAI,CAAC,QAAQ,GAAG,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AACvC,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAC,IAAU;IAC9C,IAAI,CAAC,QAAQ,GAAG,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACrC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,QAAQ,CAAC;AACpC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/sequence-diagram/src/focus/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/sequence-diagram/src/lifeline/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Point, Direction } from 'dcim-topology/core';
|
2
|
+
export function lifelineAnchors(node) {
|
3
|
+
node.anchors.push(new Point(node.rect.x, node.rect.y + 25, 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 + 25, Direction.Right));
|
6
|
+
node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.y + 50, Direction.Bottom));
|
7
|
+
node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.ey, Direction.Bottom));
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=lifeline.anchor.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"lifeline.anchor.js","sourceRoot":"","sources":["../../../../packages/sequence-diagram/src/lifeline/lifeline.anchor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAQ,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAExD,MAAM,UAAU,eAAe,CAAC,IAAU;IACxC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IAC5E,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,EAAE,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IAC/F,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,EAAE,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;IACpG,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,EAAE,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;AAClG,CAAC"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
export function lifeline(ctx, node) {
|
2
|
+
var height = 50;
|
3
|
+
var wr = node.borderRadius;
|
4
|
+
var hr = node.borderRadius;
|
5
|
+
if (node.borderRadius < 1) {
|
6
|
+
wr = node.rect.width * node.borderRadius;
|
7
|
+
hr = node.rect.height * node.borderRadius;
|
8
|
+
}
|
9
|
+
var r = wr < hr ? wr : hr;
|
10
|
+
if (node.rect.width < 2 * r) {
|
11
|
+
r = node.rect.width / 2;
|
12
|
+
}
|
13
|
+
if (height < 2 * r) {
|
14
|
+
r = height / 2;
|
15
|
+
}
|
16
|
+
ctx.beginPath();
|
17
|
+
ctx.moveTo(node.rect.x + r, node.rect.y);
|
18
|
+
ctx.arcTo(node.rect.x + node.rect.width, node.rect.y, node.rect.x + node.rect.width, node.rect.y + height, r);
|
19
|
+
ctx.arcTo(node.rect.x + node.rect.width, node.rect.y + height, node.rect.x, node.rect.y + height, r);
|
20
|
+
ctx.arcTo(node.rect.x, node.rect.y + height, node.rect.x, node.rect.y, r);
|
21
|
+
ctx.arcTo(node.rect.x, node.rect.y, node.rect.x + node.rect.width, node.rect.y, r);
|
22
|
+
ctx.closePath();
|
23
|
+
(node.fillStyle || node.bkType) && ctx.fill();
|
24
|
+
ctx.stroke();
|
25
|
+
ctx.save();
|
26
|
+
ctx.beginPath();
|
27
|
+
ctx.lineWidth = 1;
|
28
|
+
ctx.setLineDash([7, 7]);
|
29
|
+
var middle = node.rect.x + node.rect.width / 2;
|
30
|
+
ctx.moveTo(middle, node.rect.y + height + 1);
|
31
|
+
ctx.lineTo(middle, node.rect.ey);
|
32
|
+
ctx.stroke();
|
33
|
+
ctx.restore();
|
34
|
+
}
|
35
|
+
//# sourceMappingURL=lifeline.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"lifeline.js","sourceRoot":"","sources":["../../../../packages/sequence-diagram/src/lifeline/lifeline.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,QAAQ,CAAC,GAA6B,EAAE,IAAU;IAChE,IAAM,MAAM,GAAG,EAAE,CAAC;IAClB,IAAI,EAAE,GAAG,IAAI,CAAC,YAAY,CAAC;IAC3B,IAAI,EAAE,GAAG,IAAI,CAAC,YAAY,CAAC;IAC3B,IAAI,IAAI,CAAC,YAAY,GAAG,CAAC,EAAE;QACzB,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC;QACzC,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC;KAC3C;IACD,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1B,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,GAAG,CAAC,EAAE;QAC3B,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;KACzB;IACD,IAAI,MAAM,GAAG,CAAC,GAAG,CAAC,EAAE;QAClB,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC;KAChB;IACD,GAAG,CAAC,SAAS,EAAE,CAAC;IAChB,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE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AAS,EAAE,CAAC;IAChB,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC;IAClB,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACxB,IAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;IACjD,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC,CAAC;IAC7C,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACjC,GAAG,CAAC,MAAM,EAAE,CAAC;IACb,GAAG,CAAC,OAAO,EAAE,CAAC;AAChB,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Rect } from 'dcim-topology/core';
|
2
|
+
export function lifelineIconRect(node) {
|
3
|
+
node.iconRect = new Rect(0, 0, 0, 0);
|
4
|
+
}
|
5
|
+
export function lifelineTextRect(node) {
|
6
|
+
node.textRect = new Rect(node.rect.x, node.rect.y, node.rect.width, 50);
|
7
|
+
node.fullTextRect = node.textRect;
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=lifeline.rect.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"lifeline.rect.js","sourceRoot":"","sources":["../../../../packages/sequence-diagram/src/lifeline/lifeline.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,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;IACxE,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,QAAQ,CAAC;AACpC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare function register(): void;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { registerNode } from 'dcim-topology/core';
|
2
|
+
import { lifeline, lifelineAnchors, lifelineIconRect, lifelineTextRect } from './lifeline';
|
3
|
+
import { sequenceFocus, sequenceFocusAnchors, sequenceFocusIconRect, sequenceFocusTextRect } from './focus';
|
4
|
+
export function register() {
|
5
|
+
registerNode('lifeline', lifeline, lifelineAnchors, lifelineIconRect, lifelineTextRect);
|
6
|
+
registerNode('sequenceFocus', sequenceFocus, sequenceFocusAnchors, sequenceFocusIconRect, sequenceFocusTextRect);
|
7
|
+
}
|
8
|
+
//# sourceMappingURL=register.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"register.js","sourceRoot":"","sources":["../../../packages/sequence-diagram/src/register.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC3F,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAE5G,MAAM,UAAU,QAAQ;IACtB,YAAY,CAAC,UAAU,EAAE,QAAQ,EAAE,eAAe,EAAE,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;IACxF,YAAY,CAAC,eAAe,EAAE,aAAa,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,qBAAqB,CAAC,CAAC;AACnH,CAAC"}
|