dcim-topology2d 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- package/activity-diagram/index.d.ts +5 -0
- package/activity-diagram/index.js +6 -0
- package/activity-diagram/index.js.map +1 -0
- package/activity-diagram/src/final/final.d.ts +2 -0
- package/activity-diagram/src/final/final.js +10 -0
- package/activity-diagram/src/final/final.js.map +1 -0
- package/activity-diagram/src/final/final.rect.d.ts +3 -0
- package/activity-diagram/src/final/final.rect.js +11 -0
- package/activity-diagram/src/final/final.rect.js.map +1 -0
- package/activity-diagram/src/final/index.d.ts +2 -0
- package/activity-diagram/src/final/index.js +3 -0
- package/activity-diagram/src/final/index.js.map +1 -0
- package/activity-diagram/src/fork/fork.anchor.d.ts +3 -0
- package/activity-diagram/src/fork/fork.anchor.js +28 -0
- package/activity-diagram/src/fork/fork.anchor.js.map +1 -0
- package/activity-diagram/src/fork/fork.d.ts +2 -0
- package/activity-diagram/src/fork/fork.js +25 -0
- package/activity-diagram/src/fork/fork.js.map +1 -0
- package/activity-diagram/src/fork/fork.rect.d.ts +3 -0
- package/activity-diagram/src/fork/fork.rect.js +9 -0
- package/activity-diagram/src/fork/fork.rect.js.map +1 -0
- package/activity-diagram/src/fork/index.d.ts +3 -0
- package/activity-diagram/src/fork/index.js +4 -0
- package/activity-diagram/src/fork/index.js.map +1 -0
- package/activity-diagram/src/register.d.ts +1 -0
- package/activity-diagram/src/register.js +13 -0
- package/activity-diagram/src/register.js.map +1 -0
- package/activity-diagram/src/swimlaneH/index.d.ts +2 -0
- package/activity-diagram/src/swimlaneH/index.js +3 -0
- package/activity-diagram/src/swimlaneH/index.js.map +1 -0
- package/activity-diagram/src/swimlaneH/swimlaneH.d.ts +2 -0
- package/activity-diagram/src/swimlaneH/swimlaneH.js +27 -0
- package/activity-diagram/src/swimlaneH/swimlaneH.js.map +1 -0
- package/activity-diagram/src/swimlaneH/swimlaneH.rect.d.ts +3 -0
- package/activity-diagram/src/swimlaneH/swimlaneH.rect.js +9 -0
- package/activity-diagram/src/swimlaneH/swimlaneH.rect.js.map +1 -0
- package/activity-diagram/src/swimlaneV/index.d.ts +2 -0
- package/activity-diagram/src/swimlaneV/index.js +3 -0
- package/activity-diagram/src/swimlaneV/index.js.map +1 -0
- package/activity-diagram/src/swimlaneV/swimlaneV.d.ts +2 -0
- package/activity-diagram/src/swimlaneV/swimlaneV.js +27 -0
- package/activity-diagram/src/swimlaneV/swimlaneV.js.map +1 -0
- package/activity-diagram/src/swimlaneV/swimlaneV.rect.d.ts +3 -0
- package/activity-diagram/src/swimlaneV/swimlaneV.rect.js +9 -0
- package/activity-diagram/src/swimlaneV/swimlaneV.rect.js.map +1 -0
- package/chart-diagram/index.d.ts +3 -0
- package/chart-diagram/index.js +4 -0
- package/chart-diagram/index.js.map +1 -0
- package/chart-diagram/src/echarts/echarts.min.js +22 -0
- package/chart-diagram/src/echarts/index.d.ts +4 -0
- package/chart-diagram/src/echarts/index.js +104 -0
- package/chart-diagram/src/echarts/index.js.map +1 -0
- package/chart-diagram/src/register.d.ts +1 -0
- package/chart-diagram/src/register.js +12 -0
- package/chart-diagram/src/register.js.map +1 -0
- package/class-diagram/index.d.ts +2 -0
- package/class-diagram/index.js +3 -0
- package/class-diagram/index.js.map +1 -0
- package/class-diagram/src/class/class.d.ts +3 -0
- package/class-diagram/src/class/class.js +56 -0
- package/class-diagram/src/class/class.js.map +1 -0
- package/class-diagram/src/class/class.rect.d.ts +5 -0
- package/class-diagram/src/class/class.rect.js +16 -0
- package/class-diagram/src/class/class.rect.js.map +1 -0
- package/class-diagram/src/class/index.d.ts +2 -0
- package/class-diagram/src/class/index.js +3 -0
- package/class-diagram/src/class/index.js.map +1 -0
- package/class-diagram/src/register.d.ts +1 -0
- package/class-diagram/src/register.js +7 -0
- package/class-diagram/src/register.js.map +1 -0
- package/core/index.d.ts +8 -0
- package/core/index.js +26 -0
- package/core/index.js.map +1 -0
- package/core/src/activeLayer.d.ts +55 -0
- package/core/src/activeLayer.js +679 -0
- package/core/src/activeLayer.js.map +1 -0
- package/core/src/animateLayer.d.ts +23 -0
- package/core/src/animateLayer.js +227 -0
- package/core/src/animateLayer.js.map +1 -0
- package/core/src/calling.d.ts +37 -0
- package/core/src/calling.js +253 -0
- package/core/src/canvas.d.ts +19 -0
- package/core/src/canvas.js +81 -0
- package/core/src/canvas.js.map +1 -0
- package/core/src/common.d.ts +102 -0
- package/core/src/common.js +1254 -0
- package/core/src/core.d.ts +104 -0
- package/core/src/core.js +2281 -0
- package/core/src/core.js.map +1 -0
- package/core/src/divLayer.d.ts +61 -0
- package/core/src/divLayer.js +485 -0
- package/core/src/divLayer.js.map +1 -0
- package/core/src/healps/changeData.d.ts +8 -0
- package/core/src/healps/changeData.js +205 -0
- package/core/src/healps/index.d.ts +1 -0
- package/core/src/healps/index.js +1 -0
- package/core/src/hoverLayer.d.ts +32 -0
- package/core/src/hoverLayer.js +199 -0
- package/core/src/hoverLayer.js.map +1 -0
- package/core/src/layer.d.ts +5 -0
- package/core/src/layer.js +11 -0
- package/core/src/layer.js.map +1 -0
- package/core/src/middles/arrows/circle.d.ts +3 -0
- package/core/src/middles/arrows/circle.js +20 -0
- package/core/src/middles/arrows/circle.js.map +1 -0
- package/core/src/middles/arrows/diamond.d.ts +3 -0
- package/core/src/middles/arrows/diamond.js +28 -0
- package/core/src/middles/arrows/diamond.js.map +1 -0
- package/core/src/middles/arrows/line.d.ts +4 -0
- package/core/src/middles/arrows/line.js +42 -0
- package/core/src/middles/arrows/line.js.map +1 -0
- package/core/src/middles/arrows/triangle.d.ts +3 -0
- package/core/src/middles/arrows/triangle.js +25 -0
- package/core/src/middles/arrows/triangle.js.map +1 -0
- package/core/src/middles/default.anchor.d.ts +2 -0
- package/core/src/middles/default.anchor.js +9 -0
- package/core/src/middles/default.anchor.js.map +1 -0
- package/core/src/middles/default.d.ts +12 -0
- package/core/src/middles/default.js +257 -0
- package/core/src/middles/default.js.map +1 -0
- package/core/src/middles/default.rect.d.ts +3 -0
- package/core/src/middles/default.rect.js +19 -0
- package/core/src/middles/default.rect.js.map +1 -0
- package/core/src/middles/index.d.ts +3 -0
- package/core/src/middles/index.js +4 -0
- package/core/src/middles/index.js.map +1 -0
- package/core/src/middles/lines/curve.d.ts +10 -0
- package/core/src/middles/lines/curve.js +127 -0
- package/core/src/middles/lines/curve.js.map +1 -0
- package/core/src/middles/lines/line.d.ts +4 -0
- package/core/src/middles/lines/line.js +11 -0
- package/core/src/middles/lines/line.js.map +1 -0
- package/core/src/middles/lines/mind.d.ts +6 -0
- package/core/src/middles/lines/mind.js +90 -0
- package/core/src/middles/lines/mind.js.map +1 -0
- package/core/src/middles/lines/polyline.d.ts +7 -0
- package/core/src/middles/lines/polyline.js +309 -0
- package/core/src/middles/lines/polyline.js.map +1 -0
- package/core/src/middles/nodes/arbitrarygraph.anchor.d.ts +2 -0
- package/core/src/middles/nodes/arbitrarygraph.anchor.js +18 -0
- package/core/src/middles/nodes/arbitrarygraph.d.ts +2 -0
- package/core/src/middles/nodes/arbitrarygraph.js +17 -0
- package/core/src/middles/nodes/arrow.anchor.d.ts +2 -0
- package/core/src/middles/nodes/arrow.anchor.js +7 -0
- package/core/src/middles/nodes/arrow.anchor.js.map +1 -0
- package/core/src/middles/nodes/arrow.d.ts +4 -0
- package/core/src/middles/nodes/arrow.js +44 -0
- package/core/src/middles/nodes/arrow.js.map +1 -0
- package/core/src/middles/nodes/arrow.rect.d.ts +7 -0
- package/core/src/middles/nodes/arrow.rect.js +23 -0
- package/core/src/middles/nodes/arrow.rect.js.map +1 -0
- package/core/src/middles/nodes/circle.anchor.d.ts +2 -0
- package/core/src/middles/nodes/circle.anchor.js +18 -0
- package/core/src/middles/nodes/circle.anchor.js.map +1 -0
- package/core/src/middles/nodes/circle.d.ts +2 -0
- package/core/src/middles/nodes/circle.js +7 -0
- package/core/src/middles/nodes/circle.js.map +1 -0
- package/core/src/middles/nodes/circle.rect.d.ts +3 -0
- package/core/src/middles/nodes/circle.rect.js +27 -0
- package/core/src/middles/nodes/circle.rect.js.map +1 -0
- package/core/src/middles/nodes/cloud.anchor.d.ts +2 -0
- package/core/src/middles/nodes/cloud.anchor.js +9 -0
- package/core/src/middles/nodes/cloud.anchor.js.map +1 -0
- package/core/src/middles/nodes/cloud.d.ts +2 -0
- package/core/src/middles/nodes/cloud.js +11 -0
- package/core/src/middles/nodes/cloud.js.map +1 -0
- package/core/src/middles/nodes/cloud.rect.d.ts +3 -0
- package/core/src/middles/nodes/cloud.rect.js +9 -0
- package/core/src/middles/nodes/cloud.rect.js.map +1 -0
- package/core/src/middles/nodes/cube.anchor.d.ts +2 -0
- package/core/src/middles/nodes/cube.anchor.js +10 -0
- package/core/src/middles/nodes/cube.anchor.js.map +1 -0
- package/core/src/middles/nodes/cube.d.ts +2 -0
- package/core/src/middles/nodes/cube.js +5 -0
- package/core/src/middles/nodes/cube.js.map +1 -0
- package/core/src/middles/nodes/cube.model.d.ts +14 -0
- package/core/src/middles/nodes/cube.model.js +64 -0
- package/core/src/middles/nodes/cube.model.js.map +1 -0
- package/core/src/middles/nodes/cube.rect.d.ts +3 -0
- package/core/src/middles/nodes/cube.rect.js +11 -0
- package/core/src/middles/nodes/cube.rect.js.map +1 -0
- package/core/src/middles/nodes/diamond.d.ts +2 -0
- package/core/src/middles/nodes/diamond.js +11 -0
- package/core/src/middles/nodes/diamond.js.map +1 -0
- package/core/src/middles/nodes/diamond.rect.d.ts +3 -0
- package/core/src/middles/nodes/diamond.rect.js +27 -0
- package/core/src/middles/nodes/diamond.rect.js.map +1 -0
- package/core/src/middles/nodes/file.d.ts +2 -0
- package/core/src/middles/nodes/file.js +16 -0
- package/core/src/middles/nodes/file.js.map +1 -0
- package/core/src/middles/nodes/formtable.d.ts +2 -0
- package/core/src/middles/nodes/formtable.js +100 -0
- package/core/src/middles/nodes/hexagon.anchor.d.ts +2 -0
- package/core/src/middles/nodes/hexagon.anchor.js +21 -0
- package/core/src/middles/nodes/hexagon.anchor.js.map +1 -0
- package/core/src/middles/nodes/hexagon.d.ts +2 -0
- package/core/src/middles/nodes/hexagon.js +14 -0
- package/core/src/middles/nodes/hexagon.js.map +1 -0
- package/core/src/middles/nodes/hexagon.rect.d.ts +3 -0
- package/core/src/middles/nodes/hexagon.rect.js +14 -0
- package/core/src/middles/nodes/hexagon.rect.js.map +1 -0
- package/core/src/middles/nodes/image.anchor.d.ts +2 -0
- package/core/src/middles/nodes/image.anchor.js +12 -0
- package/core/src/middles/nodes/image.anchor.js.map +1 -0
- package/core/src/middles/nodes/image.rect.d.ts +3 -0
- package/core/src/middles/nodes/image.rect.js +65 -0
- package/core/src/middles/nodes/image.rect.js.map +1 -0
- package/core/src/middles/nodes/line.anchor.d.ts +2 -0
- package/core/src/middles/nodes/line.anchor.js +13 -0
- package/core/src/middles/nodes/line.anchor.js.map +1 -0
- package/core/src/middles/nodes/line.d.ts +2 -0
- package/core/src/middles/nodes/line.js +9 -0
- package/core/src/middles/nodes/line.js.map +1 -0
- package/core/src/middles/nodes/line.rect.d.ts +3 -0
- package/core/src/middles/nodes/line.rect.js +9 -0
- package/core/src/middles/nodes/line.rect.js.map +1 -0
- package/core/src/middles/nodes/message.anchor.d.ts +2 -0
- package/core/src/middles/nodes/message.anchor.js +9 -0
- package/core/src/middles/nodes/message.anchor.js.map +1 -0
- package/core/src/middles/nodes/message.d.ts +2 -0
- package/core/src/middles/nodes/message.js +14 -0
- package/core/src/middles/nodes/message.js.map +1 -0
- package/core/src/middles/nodes/message.rect.d.ts +3 -0
- package/core/src/middles/nodes/message.rect.js +10 -0
- package/core/src/middles/nodes/message.rect.js.map +1 -0
- package/core/src/middles/nodes/pentagon.anchor.d.ts +2 -0
- package/core/src/middles/nodes/pentagon.anchor.js +10 -0
- package/core/src/middles/nodes/pentagon.anchor.js.map +1 -0
- package/core/src/middles/nodes/pentagon.d.ts +2 -0
- package/core/src/middles/nodes/pentagon.js +12 -0
- package/core/src/middles/nodes/pentagon.js.map +1 -0
- package/core/src/middles/nodes/pentagon.rect.d.ts +3 -0
- package/core/src/middles/nodes/pentagon.rect.js +23 -0
- package/core/src/middles/nodes/pentagon.rect.js.map +1 -0
- package/core/src/middles/nodes/pentagram.anchor.d.ts +2 -0
- package/core/src/middles/nodes/pentagram.anchor.js +10 -0
- package/core/src/middles/nodes/pentagram.anchor.js.map +1 -0
- package/core/src/middles/nodes/pentagram.d.ts +2 -0
- package/core/src/middles/nodes/pentagram.js +11 -0
- package/core/src/middles/nodes/pentagram.js.map +1 -0
- package/core/src/middles/nodes/pentagram.rect.d.ts +3 -0
- package/core/src/middles/nodes/pentagram.rect.js +11 -0
- package/core/src/middles/nodes/pentagram.rect.js.map +1 -0
- package/core/src/middles/nodes/people.d.ts +2 -0
- package/core/src/middles/nodes/people.js +17 -0
- package/core/src/middles/nodes/people.js.map +1 -0
- package/core/src/middles/nodes/people.rect.d.ts +3 -0
- package/core/src/middles/nodes/people.rect.js +9 -0
- package/core/src/middles/nodes/people.rect.js.map +1 -0
- package/core/src/middles/nodes/rectangle.d.ts +2 -0
- package/core/src/middles/nodes/rectangle.js +25 -0
- package/core/src/middles/nodes/rectangle.js.map +1 -0
- package/core/src/middles/nodes/rectangle.rect.d.ts +3 -0
- package/core/src/middles/nodes/rectangle.rect.js +11 -0
- package/core/src/middles/nodes/rectangle.rect.js.map +1 -0
- package/core/src/middles/nodes/tablePagination.d.ts +2 -0
- package/core/src/middles/nodes/tablePagination.js +106 -0
- package/core/src/middles/nodes/text.d.ts +8 -0
- package/core/src/middles/nodes/text.js +295 -0
- package/core/src/middles/nodes/text.js.map +1 -0
- package/core/src/middles/nodes/triangle.anchor.d.ts +2 -0
- package/core/src/middles/nodes/triangle.anchor.js +9 -0
- package/core/src/middles/nodes/triangle.anchor.js.map +1 -0
- package/core/src/middles/nodes/triangle.d.ts +2 -0
- package/core/src/middles/nodes/triangle.js +10 -0
- package/core/src/middles/nodes/triangle.js.map +1 -0
- package/core/src/middles/nodes/triangle.rect.d.ts +3 -0
- package/core/src/middles/nodes/triangle.rect.js +23 -0
- package/core/src/middles/nodes/triangle.rect.js.map +1 -0
- package/core/src/models/data.d.ts +26 -0
- package/core/src/models/data.js +77 -0
- package/core/src/models/data.js.map +1 -0
- package/core/src/models/direction.d.ts +7 -0
- package/core/src/models/direction.js +9 -0
- package/core/src/models/direction.js.map +1 -0
- package/core/src/models/event.d.ts +13 -0
- package/core/src/models/event.js +16 -0
- package/core/src/models/event.js.map +1 -0
- package/core/src/models/index.d.ts +9 -0
- package/core/src/models/index.js +10 -0
- package/core/src/models/index.js.map +1 -0
- package/core/src/models/line.d.ts +53 -0
- package/core/src/models/line.js +442 -0
- package/core/src/models/line.js.map +1 -0
- package/core/src/models/node.d.ts +95 -0
- package/core/src/models/node.js +944 -0
- package/core/src/models/node.js.map +1 -0
- package/core/src/models/pen.d.ts +122 -0
- package/core/src/models/pen.js +362 -0
- package/core/src/models/pen.js.map +1 -0
- package/core/src/models/point.d.ts +25 -0
- package/core/src/models/point.js +59 -0
- package/core/src/models/point.js.map +1 -0
- package/core/src/models/rect.d.ts +22 -0
- package/core/src/models/rect.js +93 -0
- package/core/src/models/rect.js.map +1 -0
- package/core/src/models/status.d.ts +10 -0
- package/core/src/models/status.js +13 -0
- package/core/src/models/status.js.map +1 -0
- package/core/src/mqtt.d.ts +14 -0
- package/core/src/mqtt.js +82 -0
- package/core/src/mqtt.js.map +1 -0
- package/core/src/mqtt.min.d.ts +2 -0
- package/core/src/mqtt.min.js +2447 -0
- package/core/src/mqtt.min.js.map +1 -0
- package/core/src/offscreen.d.ts +16 -0
- package/core/src/offscreen.js +70 -0
- package/core/src/offscreen.js.map +1 -0
- package/core/src/options.d.ts +66 -0
- package/core/src/options.js +42 -0
- package/core/src/options.js.map +1 -0
- package/core/src/poll.js +39 -0
- package/core/src/preview.d.ts +29 -0
- package/core/src/preview.js +247 -0
- package/core/src/renderLayer.d.ts +36 -0
- package/core/src/renderLayer.js +187 -0
- package/core/src/renderLayer.js.map +1 -0
- package/core/src/socket.d.ts +10 -0
- package/core/src/socket.js +51 -0
- package/core/src/socket.js.map +1 -0
- package/core/src/utils/browser.d.ts +1 -0
- package/core/src/utils/browser.js +4 -0
- package/core/src/utils/browser.js.map +1 -0
- package/core/src/utils/canvas.d.ts +13 -0
- package/core/src/utils/canvas.js +84 -0
- package/core/src/utils/canvas.js.map +1 -0
- package/core/src/utils/construction.d.ts +41 -0
- package/core/src/utils/construction.js +36 -0
- package/core/src/utils/conversion.d.ts +0 -0
- package/core/src/utils/conversion.js +0 -0
- package/core/src/utils/dom.d.ts +8 -0
- package/core/src/utils/dom.js +67 -0
- package/core/src/utils/dom.js.map +1 -0
- package/core/src/utils/index.d.ts +9 -0
- package/core/src/utils/index.js +10 -0
- package/core/src/utils/index.js.map +1 -0
- package/core/src/utils/math.d.ts +3 -0
- package/core/src/utils/math.js +118 -0
- package/core/src/utils/math.js.map +1 -0
- package/core/src/utils/onmousevent.d.ts +5 -0
- package/core/src/utils/onmousevent.js +57 -0
- package/core/src/utils/padding.d.ts +7 -0
- package/core/src/utils/padding.js +47 -0
- package/core/src/utils/padding.js.map +1 -0
- package/core/src/utils/rect.d.ts +7 -0
- package/core/src/utils/rect.js +72 -0
- package/core/src/utils/rect.js.map +1 -0
- package/core/src/utils/uuid.d.ts +4 -0
- package/core/src/utils/uuid.js +13 -0
- package/core/src/utils/uuid.js.map +1 -0
- package/flow-diagram/index.d.ts +12 -0
- package/flow-diagram/index.js +13 -0
- package/flow-diagram/index.js.map +1 -0
- package/flow-diagram/src/comment/comment.anchor.d.ts +2 -0
- package/flow-diagram/src/comment/comment.anchor.js +5 -0
- package/flow-diagram/src/comment/comment.anchor.js.map +1 -0
- package/flow-diagram/src/comment/comment.d.ts +2 -0
- package/flow-diagram/src/comment/comment.js +10 -0
- package/flow-diagram/src/comment/comment.js.map +1 -0
- package/flow-diagram/src/comment/index.d.ts +2 -0
- package/flow-diagram/src/comment/index.js +3 -0
- package/flow-diagram/src/comment/index.js.map +1 -0
- package/flow-diagram/src/data/data.anchor.d.ts +2 -0
- package/flow-diagram/src/data/data.anchor.js +8 -0
- package/flow-diagram/src/data/data.anchor.js.map +1 -0
- package/flow-diagram/src/data/data.d.ts +2 -0
- package/flow-diagram/src/data/data.js +12 -0
- package/flow-diagram/src/data/data.js.map +1 -0
- package/flow-diagram/src/data/data.rect.d.ts +3 -0
- package/flow-diagram/src/data/data.rect.js +9 -0
- package/flow-diagram/src/data/data.rect.js.map +1 -0
- package/flow-diagram/src/data/index.d.ts +3 -0
- package/flow-diagram/src/data/index.js +4 -0
- package/flow-diagram/src/data/index.js.map +1 -0
- package/flow-diagram/src/db/db.d.ts +2 -0
- package/flow-diagram/src/db/db.js +14 -0
- package/flow-diagram/src/db/db.js.map +1 -0
- package/flow-diagram/src/db/db.rect.d.ts +4 -0
- package/flow-diagram/src/db/db.rect.js +9 -0
- package/flow-diagram/src/db/db.rect.js.map +1 -0
- package/flow-diagram/src/db/index.d.ts +2 -0
- package/flow-diagram/src/db/index.js +3 -0
- package/flow-diagram/src/db/index.js.map +1 -0
- package/flow-diagram/src/display/display.anchor.d.ts +2 -0
- package/flow-diagram/src/display/display.anchor.js +8 -0
- package/flow-diagram/src/display/display.anchor.js.map +1 -0
- package/flow-diagram/src/display/display.d.ts +2 -0
- package/flow-diagram/src/display/display.js +13 -0
- package/flow-diagram/src/display/display.js.map +1 -0
- package/flow-diagram/src/display/display.rect.d.ts +3 -0
- package/flow-diagram/src/display/display.rect.js +9 -0
- package/flow-diagram/src/display/display.rect.js.map +1 -0
- package/flow-diagram/src/display/index.d.ts +3 -0
- package/flow-diagram/src/display/index.js +4 -0
- package/flow-diagram/src/display/index.js.map +1 -0
- package/flow-diagram/src/document/document.anchor.d.ts +2 -0
- package/flow-diagram/src/document/document.anchor.js +8 -0
- package/flow-diagram/src/document/document.anchor.js.map +1 -0
- package/flow-diagram/src/document/document.d.ts +2 -0
- package/flow-diagram/src/document/document.js +15 -0
- package/flow-diagram/src/document/document.js.map +1 -0
- package/flow-diagram/src/document/document.rect.d.ts +3 -0
- package/flow-diagram/src/document/document.rect.js +9 -0
- package/flow-diagram/src/document/document.rect.js.map +1 -0
- package/flow-diagram/src/document/index.d.ts +3 -0
- package/flow-diagram/src/document/index.js +4 -0
- package/flow-diagram/src/document/index.js.map +1 -0
- package/flow-diagram/src/externStorage/externStorage.anchor.d.ts +2 -0
- package/flow-diagram/src/externStorage/externStorage.anchor.js +8 -0
- package/flow-diagram/src/externStorage/externStorage.anchor.js.map +1 -0
- package/flow-diagram/src/externStorage/externStorage.d.ts +2 -0
- package/flow-diagram/src/externStorage/externStorage.js +12 -0
- package/flow-diagram/src/externStorage/externStorage.js.map +1 -0
- package/flow-diagram/src/externStorage/externStorage.rect.d.ts +3 -0
- package/flow-diagram/src/externStorage/externStorage.rect.js +9 -0
- package/flow-diagram/src/externStorage/externStorage.rect.js.map +1 -0
- package/flow-diagram/src/externStorage/index.d.ts +3 -0
- package/flow-diagram/src/externStorage/index.js +4 -0
- package/flow-diagram/src/externStorage/index.js.map +1 -0
- package/flow-diagram/src/internalStorage/index.d.ts +2 -0
- package/flow-diagram/src/internalStorage/index.js +3 -0
- package/flow-diagram/src/internalStorage/index.js.map +1 -0
- package/flow-diagram/src/internalStorage/internalStorage.d.ts +2 -0
- package/flow-diagram/src/internalStorage/internalStorage.js +16 -0
- package/flow-diagram/src/internalStorage/internalStorage.js.map +1 -0
- package/flow-diagram/src/internalStorage/internalStorage.rect.d.ts +3 -0
- package/flow-diagram/src/internalStorage/internalStorage.rect.js +10 -0
- package/flow-diagram/src/internalStorage/internalStorage.rect.js.map +1 -0
- package/flow-diagram/src/manually/index.d.ts +3 -0
- package/flow-diagram/src/manually/index.js +4 -0
- package/flow-diagram/src/manually/index.js.map +1 -0
- package/flow-diagram/src/manually/manually.anchor.d.ts +2 -0
- package/flow-diagram/src/manually/manually.anchor.js +8 -0
- package/flow-diagram/src/manually/manually.anchor.js.map +1 -0
- package/flow-diagram/src/manually/manually.d.ts +2 -0
- package/flow-diagram/src/manually/manually.js +12 -0
- package/flow-diagram/src/manually/manually.js.map +1 -0
- package/flow-diagram/src/manually/manually.rect.d.ts +3 -0
- package/flow-diagram/src/manually/manually.rect.js +9 -0
- package/flow-diagram/src/manually/manually.rect.js.map +1 -0
- package/flow-diagram/src/parallel/index.d.ts +2 -0
- package/flow-diagram/src/parallel/index.js +3 -0
- package/flow-diagram/src/parallel/index.js.map +1 -0
- package/flow-diagram/src/parallel/parallel.anchor.d.ts +2 -0
- package/flow-diagram/src/parallel/parallel.anchor.js +6 -0
- package/flow-diagram/src/parallel/parallel.anchor.js.map +1 -0
- package/flow-diagram/src/parallel/parallel.d.ts +2 -0
- package/flow-diagram/src/parallel/parallel.js +9 -0
- package/flow-diagram/src/parallel/parallel.js.map +1 -0
- package/flow-diagram/src/queue/index.d.ts +2 -0
- package/flow-diagram/src/queue/index.js +3 -0
- package/flow-diagram/src/queue/index.js.map +1 -0
- package/flow-diagram/src/queue/queue.d.ts +2 -0
- package/flow-diagram/src/queue/queue.js +9 -0
- package/flow-diagram/src/queue/queue.js.map +1 -0
- package/flow-diagram/src/queue/queue.rect.d.ts +3 -0
- package/flow-diagram/src/queue/queue.rect.js +11 -0
- package/flow-diagram/src/queue/queue.rect.js.map +1 -0
- package/flow-diagram/src/register.d.ts +1 -0
- package/flow-diagram/src/register.js +26 -0
- package/flow-diagram/src/register.js.map +1 -0
- package/flow-diagram/src/subprocess/index.d.ts +2 -0
- package/flow-diagram/src/subprocess/index.js +3 -0
- package/flow-diagram/src/subprocess/index.js.map +1 -0
- package/flow-diagram/src/subprocess/subprocess.d.ts +2 -0
- package/flow-diagram/src/subprocess/subprocess.js +16 -0
- package/flow-diagram/src/subprocess/subprocess.js.map +1 -0
- package/flow-diagram/src/subprocess/subprocess.rect.d.ts +3 -0
- package/flow-diagram/src/subprocess/subprocess.rect.js +9 -0
- package/flow-diagram/src/subprocess/subprocess.rect.js.map +1 -0
- package/layout/index.d.ts +2 -0
- package/layout/index.js +3 -0
- package/layout/index.js.map +1 -0
- package/layout/src/align.d.ts +3 -0
- package/layout/src/align.js +67 -0
- package/layout/src/align.js.map +1 -0
- package/layout/src/layout.d.ts +9 -0
- package/layout/src/layout.js +50 -0
- package/layout/src/layout.js.map +1 -0
- package/myShape-diagram/myShape.js +196 -0
- package/myShape-diagram/myShape.ts +1 -0
- package/package.json +15 -0
- package/sequence-diagram/index.d.ts +3 -0
- package/sequence-diagram/index.js +4 -0
- package/sequence-diagram/index.js.map +1 -0
- package/sequence-diagram/src/focus/focus.anchor.d.ts +2 -0
- package/sequence-diagram/src/focus/focus.anchor.js +15 -0
- package/sequence-diagram/src/focus/focus.anchor.js.map +1 -0
- package/sequence-diagram/src/focus/focus.d.ts +2 -0
- package/sequence-diagram/src/focus/focus.js +13 -0
- package/sequence-diagram/src/focus/focus.js.map +1 -0
- package/sequence-diagram/src/focus/focus.rect.d.ts +3 -0
- package/sequence-diagram/src/focus/focus.rect.js +9 -0
- package/sequence-diagram/src/focus/focus.rect.js.map +1 -0
- package/sequence-diagram/src/focus/index.d.ts +3 -0
- package/sequence-diagram/src/focus/index.js +4 -0
- package/sequence-diagram/src/focus/index.js.map +1 -0
- package/sequence-diagram/src/lifeline/index.d.ts +3 -0
- package/sequence-diagram/src/lifeline/index.js +4 -0
- package/sequence-diagram/src/lifeline/index.js.map +1 -0
- package/sequence-diagram/src/lifeline/lifeline.anchor.d.ts +2 -0
- package/sequence-diagram/src/lifeline/lifeline.anchor.js +9 -0
- package/sequence-diagram/src/lifeline/lifeline.anchor.js.map +1 -0
- package/sequence-diagram/src/lifeline/lifeline.d.ts +2 -0
- package/sequence-diagram/src/lifeline/lifeline.js +35 -0
- package/sequence-diagram/src/lifeline/lifeline.js.map +1 -0
- package/sequence-diagram/src/lifeline/lifeline.rect.d.ts +3 -0
- package/sequence-diagram/src/lifeline/lifeline.rect.js +9 -0
- package/sequence-diagram/src/lifeline/lifeline.rect.js.map +1 -0
- package/sequence-diagram/src/register.d.ts +1 -0
- package/sequence-diagram/src/register.js +8 -0
- package/sequence-diagram/src/register.js.map +1 -0
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Rect } from '../../models/rect';
|
2
|
+
export function cloudIconRect(node) {
|
3
|
+
node.iconRect = new Rect(0, 0, 0, 0);
|
4
|
+
}
|
5
|
+
export function cloudTextRect(node) {
|
6
|
+
node.textRect = new Rect(node.rect.x + node.rect.width / 4, node.rect.y + node.rect.height / 4, node.rect.width / 2, (node.rect.height * 6) / 11);
|
7
|
+
node.fullTextRect = node.textRect;
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=cloud.rect.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cloud.rect.js","sourceRoot":"","sources":["../../../../../packages/core/src/middles/nodes/cloud.rect.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,MAAM,UAAU,aAAa,CAAC,IAAU;IACtC,IAAI,CAAC,QAAQ,GAAG,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AACvC,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,IAAU;IACtC,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,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAClC,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,EACnB,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE,CAC5B,CAAC;IACF,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,QAAQ,CAAC;AACpC,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { Point } from '../../models/point';
|
2
|
+
import { Direction } from '../../models/direction';
|
3
|
+
export function cubeAnchors(node) {
|
4
|
+
var offset = node.z * Math.sin((45 * Math.PI) / 180);
|
5
|
+
node.anchors.push(new Point(node.rect.x, node.rect.ey - (node.rect.height - offset) / 2, Direction.Left));
|
6
|
+
node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.y + offset / 2, Direction.Up));
|
7
|
+
node.anchors.push(new Point(node.rect.ex - offset / 2, node.rect.y + node.rect.height / 2, Direction.Right));
|
8
|
+
node.anchors.push(new Point(node.rect.x + (node.rect.width - offset) / 2, node.rect.y + node.rect.height, Direction.Bottom));
|
9
|
+
}
|
10
|
+
//# sourceMappingURL=cube.anchor.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cube.anchor.js","sourceRoot":"","sources":["../../../../../packages/core/src/middles/nodes/cube.anchor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,MAAM,UAAU,WAAW,CAAC,IAAU;IACpC,IAAM,MAAM,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC;IAEvD,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IAC1G,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,MAAM,GAAG,CAAC,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC;IACxG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,MAAM,GAAG,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7G,IAAI,CAAC,OAAO,CAAC,IAAI,CACf,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,CAC1G,CAAC;AACJ,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cube.js","sourceRoot":"","sources":["../../../../../packages/core/src/middles/nodes/cube.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,MAAM,UAAU,IAAI,CAAC,GAA6B,EAAE,IAAU;IAC5D,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AAC1F,CAAC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { Point } from '../../models/point';
|
2
|
+
import { Rect } from '../../models/rect';
|
3
|
+
export declare class Surface {
|
4
|
+
points: Point[];
|
5
|
+
fillStyle: string;
|
6
|
+
strokeStyle: string;
|
7
|
+
constructor(pt1: Point, pt2: Point, pt3: Point, pt4: Point, fillStyle?: string, strokeStyle?: string);
|
8
|
+
render(ctx: CanvasRenderingContext2D): void;
|
9
|
+
}
|
10
|
+
export declare class Cube {
|
11
|
+
surfaces: Surface[];
|
12
|
+
constructor(rect: Rect, z: number, zRotate: number, fillStyle?: string, strokeStyle?: string);
|
13
|
+
render(ctx: CanvasRenderingContext2D): void;
|
14
|
+
}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
import { Point } from '../../models/point';
|
2
|
+
import { pSBC } from '../../utils/math';
|
3
|
+
var Surface = /** @class */ (function () {
|
4
|
+
function Surface(pt1, pt2, pt3, pt4, fillStyle, strokeStyle) {
|
5
|
+
if (fillStyle === void 0) { fillStyle = ''; }
|
6
|
+
if (strokeStyle === void 0) { strokeStyle = ''; }
|
7
|
+
this.points = [];
|
8
|
+
this.fillStyle = '';
|
9
|
+
this.strokeStyle = '';
|
10
|
+
this.points.push(pt1);
|
11
|
+
this.points.push(pt2);
|
12
|
+
this.points.push(pt3);
|
13
|
+
this.points.push(pt4);
|
14
|
+
this.fillStyle = fillStyle;
|
15
|
+
this.strokeStyle = strokeStyle || fillStyle;
|
16
|
+
}
|
17
|
+
Surface.prototype.render = function (ctx) {
|
18
|
+
ctx.save();
|
19
|
+
ctx.fillStyle = this.fillStyle;
|
20
|
+
ctx.strokeStyle = this.strokeStyle;
|
21
|
+
ctx.beginPath();
|
22
|
+
for (var i = 0; i < this.points.length; ++i) {
|
23
|
+
if (i) {
|
24
|
+
ctx.lineTo(this.points[i].x, this.points[i].y);
|
25
|
+
}
|
26
|
+
else {
|
27
|
+
ctx.moveTo(this.points[i].x, this.points[i].y);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
ctx.closePath();
|
31
|
+
this.fillStyle && ctx.fill();
|
32
|
+
ctx.stroke();
|
33
|
+
ctx.restore();
|
34
|
+
};
|
35
|
+
return Surface;
|
36
|
+
}());
|
37
|
+
export { Surface };
|
38
|
+
var Cube = /** @class */ (function () {
|
39
|
+
function Cube(rect, z, zRotate, fillStyle, strokeStyle) {
|
40
|
+
if (fillStyle === void 0) { fillStyle = '#ddd'; }
|
41
|
+
if (strokeStyle === void 0) { strokeStyle = '#ccc'; }
|
42
|
+
this.surfaces = [];
|
43
|
+
var offset = z * Math.sin((45 * Math.PI) / 180);
|
44
|
+
var p1 = new Point(rect.x, rect.y + offset);
|
45
|
+
var p2 = new Point(rect.ex - offset, rect.y + offset);
|
46
|
+
var p3 = new Point(rect.ex - offset, rect.ey);
|
47
|
+
var p4 = new Point(rect.x, rect.ey);
|
48
|
+
// front
|
49
|
+
this.surfaces.push(new Surface(p1, p2, p3, p4, fillStyle, strokeStyle));
|
50
|
+
// up
|
51
|
+
this.surfaces.push(new Surface(p1, new Point(rect.x + offset, rect.y), new Point(rect.ex, rect.y), p2, pSBC(0.5, fillStyle), strokeStyle));
|
52
|
+
// right
|
53
|
+
this.surfaces.push(new Surface(p2, new Point(rect.ex, rect.y), new Point(rect.ex, rect.ey - offset), p3, pSBC(0.6, fillStyle), strokeStyle));
|
54
|
+
}
|
55
|
+
Cube.prototype.render = function (ctx) {
|
56
|
+
for (var _i = 0, _a = this.surfaces; _i < _a.length; _i++) {
|
57
|
+
var item = _a[_i];
|
58
|
+
item.render(ctx);
|
59
|
+
}
|
60
|
+
};
|
61
|
+
return Cube;
|
62
|
+
}());
|
63
|
+
export { Cube };
|
64
|
+
//# sourceMappingURL=cube.model.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cube.model.js","sourceRoot":"","sources":["../../../../../packages/core/src/middles/nodes/cube.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAExC;IAIE,iBAAY,GAAU,EAAE,GAAU,EAAE,GAAU,EAAE,GAAU,EAAE,SAAc,EAAE,WAAgB;QAAhC,0BAAA,EAAA,cAAc;QAAE,4BAAA,EAAA,gBAAgB;QAH5F,WAAM,GAAY,EAAE,CAAC;QACrB,cAAS,GAAG,EAAE,CAAC;QACf,gBAAW,GAAG,EAAE,CAAC;QAEf,IAAI,CAAC,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AAI,OAAO,CACT,EAAE,EACF,IAAI,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC,EAC1B,IAAI,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC,EACpC,EAAE,EACF,IAAI,CAAC,GAAG,EAAE,SAAS,CAAC,EACpB,WAAW,CACZ,CACF,CAAC;IACJ,CAAC;IAED,qBAAM,GAAN,UAAO,GAA6B;QAClC,KAAmB,UAAa,EAAb,KAAA,IAAI,CAAC,QAAQ,EAAb,cAAa,EAAb,IAAa,EAAE;YAA7B,IAAM,IAAI,SAAA;YACb,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;SAClB;IACH,CAAC;IACH,WAAC;AAAD,CAAC,AA3CD,IA2CC"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { Rect } from '../../models/rect';
|
2
|
+
export function cubeIconRect(node) {
|
3
|
+
node.fullIconRect = node.fullTextRect;
|
4
|
+
node.iconRect = new Rect(node.fullIconRect.x, node.fullIconRect.y, node.fullIconRect.width, (node.fullIconRect.height * 2) / 3);
|
5
|
+
}
|
6
|
+
export function cubeTextRect(node) {
|
7
|
+
var offset = node.z * Math.sin((45 * Math.PI) / 180);
|
8
|
+
node.fullTextRect = new Rect(node.rect.x, node.rect.y + offset, node.rect.width - offset, node.rect.height - offset);
|
9
|
+
node.textRect = new Rect(node.fullTextRect.x + 10, node.fullTextRect.y + (node.fullTextRect.height * 2) / 3, node.fullTextRect.width - 20, node.fullTextRect.height / 3 - 5);
|
10
|
+
}
|
11
|
+
//# sourceMappingURL=cube.rect.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cube.rect.js","sourceRoot":"","sources":["../../../../../packages/core/src/middles/nodes/cube.rect.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,MAAM,UAAU,YAAY,CAAC,IAAU;IACrC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;IACtC,IAAI,CAAC,QAAQ,GAAG,IAAI,IAAI,CACtB,IAAI,CAAC,YAAY,CAAC,CAAC,EACnB,IAAI,CAAC,YAAY,CAAC,CAAC,EACnB,IAAI,CAAC,YAAY,CAAC,KAAK,EACvB,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,CACnC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,IAAU;IACrC,IAAM,MAAM,GAAG,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC;IACvD,IAAI,CAAC,YAAY,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC,CAAC;IAErH,IAAI,CAAC,QAAQ,GAAG,IAAI,IAAI,CACtB,IAAI,CAAC,YAAY,CAAC,CAAC,GAAG,EAAE,EACxB,IAAI,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,EACxD,IAAI,CAAC,YAAY,CAAC,KAAK,GAAG,EAAE,EAC5B,IAAI,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,GAAG,CAAC,CACjC,CAAC;AACJ,CAAC"}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export function diamond(ctx, node) {
|
2
|
+
ctx.beginPath();
|
3
|
+
ctx.moveTo(node.rect.x + node.rect.width / 2, node.rect.y);
|
4
|
+
ctx.lineTo(node.rect.x + node.rect.width, node.rect.y + node.rect.height / 2);
|
5
|
+
ctx.lineTo(node.rect.x + node.rect.width / 2, node.rect.y + node.rect.height);
|
6
|
+
ctx.lineTo(node.rect.x, node.rect.y + node.rect.height / 2);
|
7
|
+
ctx.closePath();
|
8
|
+
(node.fillStyle || node.bkType) && ctx.fill();
|
9
|
+
ctx.stroke();
|
10
|
+
}
|
11
|
+
//# sourceMappingURL=diamond.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"diamond.js","sourceRoot":"","sources":["../../../../../packages/core/src/middles/nodes/diamond.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,OAAO,CAAC,GAA6B,EAAE,IAAU;IAC/D,GAAG,CAAC,SAAS,EAAE,CAAC;IAChB,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC3D,GAAG,CAAC,MAAM,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,CAAC,CAAC;IAC9E,GAAG,CAAC,MAAM,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,CAAC,CAAC;IAC9E,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC5D,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,27 @@
|
|
1
|
+
import { Rect } from '../../models/rect';
|
2
|
+
export function diamondIconRect(node) {
|
3
|
+
var w = node.rect.width / 3;
|
4
|
+
var h = node.rect.height / 3;
|
5
|
+
if (w > h) {
|
6
|
+
w = h;
|
7
|
+
}
|
8
|
+
else {
|
9
|
+
h = w;
|
10
|
+
}
|
11
|
+
var top = node.rect.width / 5;
|
12
|
+
if (top < 10) {
|
13
|
+
top = 10;
|
14
|
+
}
|
15
|
+
node.iconRect = new Rect(node.rect.x + (node.rect.width - w) / 2, node.rect.y + top, w, h);
|
16
|
+
}
|
17
|
+
export function diamondTextRect(node) {
|
18
|
+
var bottom = node.rect.height / 10;
|
19
|
+
if (bottom < 5) {
|
20
|
+
bottom = 0;
|
21
|
+
}
|
22
|
+
node.textRect = new Rect(node.rect.x + node.rect.width / 3, node.rect.y + (node.rect.height * 2) / 3 - bottom, node.rect.width / 3, node.rect.height / 3 - 5);
|
23
|
+
var w = node.rect.width / 2;
|
24
|
+
var h = (node.rect.height * 1) / 2;
|
25
|
+
node.fullTextRect = new Rect(node.rect.x + (node.rect.width - w) / 2, node.rect.y + node.rect.height / 4, w, h);
|
26
|
+
}
|
27
|
+
//# sourceMappingURL=diamond.rect.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"diamond.rect.js","sourceRoot":"","sources":["../../../../../packages/core/src/middles/nodes/diamond.rect.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,MAAM,UAAU,eAAe,CAAC,IAAU;IACxC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;IAC5B,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;IAC7B,IAAI,CAAC,GAAG,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,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AAClH,CAAC"}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
export function file(ctx, node) {
|
2
|
+
ctx.beginPath();
|
3
|
+
var offsetX = node.rect.width / 6;
|
4
|
+
ctx.moveTo(node.rect.x, node.rect.y);
|
5
|
+
ctx.lineTo(node.rect.ex - offsetX, node.rect.y);
|
6
|
+
ctx.lineTo(node.rect.ex, node.rect.y + offsetX);
|
7
|
+
ctx.lineTo(node.rect.ex, node.rect.ey);
|
8
|
+
ctx.lineTo(node.rect.x, node.rect.ey);
|
9
|
+
ctx.closePath();
|
10
|
+
ctx.moveTo(node.rect.ex - offsetX, node.rect.y);
|
11
|
+
ctx.lineTo(node.rect.ex - offsetX, node.rect.y + offsetX);
|
12
|
+
ctx.lineTo(node.rect.ex, node.rect.y + offsetX);
|
13
|
+
(node.fillStyle || node.bkType) && ctx.fill();
|
14
|
+
ctx.stroke();
|
15
|
+
}
|
16
|
+
//# sourceMappingURL=file.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"file.js","sourceRoot":"","sources":["../../../../../packages/core/src/middles/nodes/file.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,IAAI,CAAC,GAA6B,EAAE,IAAU;IAC5D,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,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACrC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAChD,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC;IAChD,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACvC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACtC,GAAG,CAAC,SAAS,EAAE,CAAC;IAEhB,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAChD,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC;IAC1D,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC;IAEhD,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,100 @@
|
|
1
|
+
export function formtable(ctx, node) {
|
2
|
+
const { tableHeader, tableBody} = node.formData;
|
3
|
+
const boxWidth = node.rect.width / tableHeader.length;
|
4
|
+
let boxHeight = tableBody && tableBody.length > 0 ? (node.rect.height - node.formStyle.thHeight) / tableBody.length : 44;
|
5
|
+
drawHeader(ctx, node, boxWidth, node.formStyle.thHeight); // boxHeight
|
6
|
+
if(tableBody && tableBody.length > 0) {
|
7
|
+
drawBody(ctx, node, boxWidth, boxHeight);
|
8
|
+
}else {
|
9
|
+
drawEmptyDataInfo(ctx, node, boxHeight, tableBody);
|
10
|
+
}
|
11
|
+
}
|
12
|
+
// 绘制空数据提示语
|
13
|
+
function drawEmptyDataInfo(ctx, node, boxHeight, tableBody) {
|
14
|
+
const currentHeight = node.rect.height - node.formStyle.thHeight;
|
15
|
+
ctx.strokeRect(node.rect.x, node.rect.y + node.formStyle.thHeight, node.rect.width, currentHeight);
|
16
|
+
ctx.font = 'normal 15px "Microsoft YaHei"';
|
17
|
+
ctx.fillStyle = 'rgba(255, 255, 255, 0.9)';
|
18
|
+
if(Array.isArray(tableBody)) {
|
19
|
+
ctx.fillText('没有可显示的数据', node.rect.x + node.rect.width/2 - 60, node.rect.y + currentHeight/2 + node.formStyle.thHeight);
|
20
|
+
}else {
|
21
|
+
ctx.fillText('数据加载中,请稍后 ······', node.rect.x + node.rect.width/2 - 80, node.rect.y + currentHeight/2 + node.formStyle.thHeight);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
// 绘制表头
|
25
|
+
function drawHeader(ctx, node, boxWidth, boxHeight) {
|
26
|
+
ctx.fillStyle = node.formStyle.thRowBgColor; // 表头背景
|
27
|
+
ctx.fillRect(node.rect.x, node.rect.y, node.rect.width, boxHeight);
|
28
|
+
// 第一条横线
|
29
|
+
ctx.beginPath();
|
30
|
+
ctx.moveTo(node.rect.x, node.rect.y);
|
31
|
+
ctx.lineTo(node.rect.x + node.rect.width, node.rect.y);
|
32
|
+
ctx.closePath();
|
33
|
+
ctx.stroke();
|
34
|
+
// 绘制竖线
|
35
|
+
for (let i = 0; i < node.formData.tableHeader.length + 1; i++) {
|
36
|
+
ctx.beginPath();
|
37
|
+
ctx.moveTo(node.rect.x + i * boxWidth, node.rect.y);
|
38
|
+
ctx.lineTo(node.rect.x + i * boxWidth, node.rect.y + boxHeight);
|
39
|
+
ctx.stroke();
|
40
|
+
ctx.closePath();
|
41
|
+
}
|
42
|
+
// 第二条横线
|
43
|
+
ctx.strokeStyle = node.thBottomStrokeStyle;
|
44
|
+
ctx.lineWidth = node.thBottomLineWidth;
|
45
|
+
ctx.beginPath();
|
46
|
+
ctx.moveTo(node.rect.x, node.rect.y + boxHeight);
|
47
|
+
ctx.lineTo(node.rect.x + node.rect.width, node.rect.y + boxHeight);
|
48
|
+
ctx.stroke();
|
49
|
+
ctx.closePath();
|
50
|
+
}
|
51
|
+
// 绘制表体
|
52
|
+
function drawBody(ctx, node, boxWidth, boxHeight) {
|
53
|
+
const { tableHeader, tableBody } = node.formData;
|
54
|
+
ctx.strokeStyle = node.strokeStyle;
|
55
|
+
ctx.lineWidth = node.lineWidth;
|
56
|
+
colRowStyleSet(ctx, node, boxWidth, boxHeight);
|
57
|
+
// 画横线
|
58
|
+
for (let i = 1; i < tableBody.length + 1; i++) {
|
59
|
+
ctx.beginPath();
|
60
|
+
ctx.moveTo(node.rect.x, node.rect.y + node.formStyle.thHeight + i * boxHeight);
|
61
|
+
ctx.lineTo(node.rect.x + node.rect.width, node.rect.y + node.formStyle.thHeight + i * boxHeight);
|
62
|
+
ctx.stroke();
|
63
|
+
ctx.closePath();
|
64
|
+
}
|
65
|
+
// 绘制body竖线
|
66
|
+
for (let i = 0; i < tableHeader.length + 1; i++) {
|
67
|
+
ctx.beginPath();
|
68
|
+
ctx.moveTo(node.rect.x + i * boxWidth, node.rect.y + node.formStyle.thHeight);
|
69
|
+
ctx.lineTo(node.rect.x + i * boxWidth, node.rect.y + node.formStyle.thHeight + boxHeight * tableBody.length);
|
70
|
+
ctx.stroke();
|
71
|
+
ctx.closePath();
|
72
|
+
}
|
73
|
+
|
74
|
+
}
|
75
|
+
|
76
|
+
// 表格列或行及单元格背景色
|
77
|
+
function colRowStyleSet(ctx, node, boxWidth, boxHeight) {
|
78
|
+
const { tbStyle } = node.formStyle;
|
79
|
+
const styleNode = {};
|
80
|
+
if(!tbStyle) return
|
81
|
+
tbStyle.map((item) => {
|
82
|
+
const { row, col, background } = item;
|
83
|
+
let rowOrder = row ? parseInt(row) - 1 : "row";
|
84
|
+
let colOrder = col ? parseInt(col) - 1 : 'col';
|
85
|
+
const rectLinew = rowOrder === 0 ? node.thBottomLineWidth/2 : node.lineWidth/2;
|
86
|
+
const rectBoxHeightw = rowOrder === 0 ? node.thBottomLineWidth + node.lineWidth/2 : node.lineWidth;
|
87
|
+
styleNode[`${rowOrder}-${colOrder}`] = item;
|
88
|
+
ctx.fillStyle = background;
|
89
|
+
if(row && !col) { // 行的属性配置 transparent
|
90
|
+
ctx.fillRect(node.rect.x + node.lineWidth/2, node.rect.y + boxHeight * rowOrder + node.formStyle.thHeight + rectLinew, node.rect.width - node.lineWidth, boxHeight - rectBoxHeightw);
|
91
|
+
}
|
92
|
+
if(!row && col) { // 列的属性配置
|
93
|
+
ctx.fillRect(node.rect.x + boxWidth * colOrder + node.lineWidth/2, node.rect.y + node.formStyle.thHeight + rectLinew, boxWidth - node.lineWidth, node.rect.height - node.formStyle.thHeight - rectBoxHeightw);
|
94
|
+
}
|
95
|
+
if(row && col) { // 列和行的属性配置
|
96
|
+
ctx.fillRect(node.rect.x + boxWidth * colOrder + node.lineWidth/2, node.rect.y + boxHeight * rowOrder + node.formStyle.thHeight + rectLinew, boxWidth - node.lineWidth, boxHeight - rectBoxHeightw);
|
97
|
+
}
|
98
|
+
});
|
99
|
+
node.formData.styleNode = styleNode;
|
100
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { Point } from '../../models/point';
|
2
|
+
import { Direction } from '../../models/direction';
|
3
|
+
export function hexagonAnchors(node) {
|
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
|
+
node.anchors.push(new Point(node.rect.x, node.rect.y + node.rect.height / 2, Direction.Left));
|
8
|
+
var ptLT = new Point(node.rect.x + node.rect.width / 10, node.rect.y + node.rect.height / 4, Direction.Left);
|
9
|
+
ptLT.hidden = true;
|
10
|
+
node.anchors.push(ptLT);
|
11
|
+
var ptRT = new Point(node.rect.x + node.rect.width / 10, node.rect.y + (node.rect.height * 3) / 4, Direction.Left);
|
12
|
+
ptRT.hidden = true;
|
13
|
+
node.anchors.push(ptRT);
|
14
|
+
var ptLB = new Point(node.rect.x + (node.rect.width * 9) / 10, node.rect.y + node.rect.height / 4, Direction.Right);
|
15
|
+
ptLB.hidden = true;
|
16
|
+
node.anchors.push(ptLB);
|
17
|
+
var ptRB = new Point(node.rect.x + (node.rect.width * 9) / 10, node.rect.y + (node.rect.height * 3) / 4, Direction.Right);
|
18
|
+
ptRB.hidden = true;
|
19
|
+
node.anchors.push(ptRB);
|
20
|
+
}
|
21
|
+
//# sourceMappingURL=hexagon.anchor.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hexagon.anchor.js","sourceRoot":"","sources":["../../../../../packages/core/src/middles/nodes/hexagon.anchor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,MAAM,UAAU,cAAc,CAAC,IAAU;IACvC,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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AAC;IACnB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAExB,IAAM,IAAI,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;IACtH,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IACnB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAExB,IAAM,IAAI,GAAG,IAAI,KAAK,CACpB,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,EAAE,EACxC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,EACxC,SAAS,CAAC,KAAK,CAChB,CAAC;IACF,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IACnB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export function hexagon(ctx, node) {
|
2
|
+
ctx.beginPath();
|
3
|
+
var pos = node.rect.width / 5;
|
4
|
+
ctx.moveTo(node.rect.x + pos, node.rect.y);
|
5
|
+
ctx.lineTo(node.rect.x + node.rect.width - pos, node.rect.y);
|
6
|
+
ctx.lineTo(node.rect.x + node.rect.width, node.rect.y + node.rect.height / 2);
|
7
|
+
ctx.lineTo(node.rect.x + node.rect.width - pos, node.rect.y + node.rect.height);
|
8
|
+
ctx.lineTo(node.rect.x + pos, node.rect.y + node.rect.height);
|
9
|
+
ctx.lineTo(node.rect.x, node.rect.y + node.rect.height / 2);
|
10
|
+
ctx.closePath();
|
11
|
+
(node.fillStyle || node.bkType) && ctx.fill();
|
12
|
+
ctx.stroke();
|
13
|
+
}
|
14
|
+
//# sourceMappingURL=hexagon.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hexagon.js","sourceRoot":"","sources":["../../../../../packages/core/src/middles/nodes/hexagon.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,OAAO,CAAC,GAA6B,EAAE,IAAU;IAC/D,GAAG,CAAC,SAAS,EAAE,CAAC;IAEhB,IAAM,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;IAChC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC3C,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7D,GAAG,CAAC,MAAM,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,CAAC,CAAC;IAC9E,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAChF,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,GAAG,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC9D,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC5D,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,14 @@
|
|
1
|
+
import { Rect } from '../../models/rect';
|
2
|
+
export function hexagonIconRect(node) {
|
3
|
+
var w = (node.rect.width * 3) / 5;
|
4
|
+
var h = (node.rect.height * 3) / 4;
|
5
|
+
node.iconRect = new Rect(node.rect.x + node.rect.width / 5 + node.paddingLeftNum, node.rect.y + node.paddingTopNum, w - node.paddingLeftNum - node.paddingRightNum, h - node.paddingTopNum - node.paddingBottomNum);
|
6
|
+
node.fullIconRect = new Rect(node.rect.x + node.rect.width / 5 + node.paddingLeftNum, node.rect.y + node.paddingTopNum, w - node.paddingLeftNum - node.paddingRightNum, node.rect.height - node.paddingTopNum - node.paddingBottomNum);
|
7
|
+
}
|
8
|
+
export function hexagonTextRect(node) {
|
9
|
+
var w = (node.rect.width * 3) / 5;
|
10
|
+
var h = node.rect.height / 4;
|
11
|
+
node.textRect = new Rect(node.rect.x + node.rect.width / 5 + node.paddingLeftNum, node.rect.y + node.rect.height - h + node.paddingTopNum, w - node.paddingLeftNum - node.paddingRightNum, h);
|
12
|
+
node.fullTextRect = new Rect(node.rect.x + node.rect.width / 5 + node.paddingLeftNum, node.rect.y + node.paddingTopNum, w - node.paddingLeftNum - node.paddingRightNum, node.rect.height - node.paddingTopNum - node.paddingBottomNum);
|
13
|
+
}
|
14
|
+
//# sourceMappingURL=hexagon.rect.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"h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CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;IAC/B,IAAI,CAAC,QAAQ,GAAG,IAAI,IAAI,CACtB,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,GAAG,IAAI,CAAC,cAAc,EACvD,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,aAAa,EACvD,CAAC,GAAG,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,eAAe,EAC9C,CAAC,CACF,CAAC;IAEF,IAAI,CAAC,YAAY,GAAG,IAAI,IAAI,CAC1B,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,CAAC,GAAG,IAAI,CAAC,cAAc,EACvD,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,aAAa,EAChC,CAAC,GAAG,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,eAAe,EAC9C,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAC9D,CAAC;AACJ,CAAC"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { Point } from '../../models/point';
|
2
|
+
import { Direction } from '../../models/direction';
|
3
|
+
export function imageAnchors(node) {
|
4
|
+
var textHeight = node.text
|
5
|
+
? node.paddingBottomNum || node.font.lineHeight * node.font.fontSize * (node.textMaxLine || 1)
|
6
|
+
: 0;
|
7
|
+
node.anchors.push(new Point(node.rect.x, node.rect.y + (node.rect.height - textHeight) / 2, Direction.Left));
|
8
|
+
node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.y, Direction.Up));
|
9
|
+
node.anchors.push(new Point(node.rect.x + node.rect.width, node.rect.y + (node.rect.height - textHeight) / 2, Direction.Right));
|
10
|
+
node.anchors.push(new Point(node.rect.x + node.rect.width / 2, node.rect.y + node.rect.height - textHeight, Direction.Bottom));
|
11
|
+
}
|
12
|
+
//# sourceMappingURL=image.anchor.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"image.anchor.js","sourceRoot":"","sources":["../../../../../packages/core/src/middles/nodes/image.anchor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,MAAM,UAAU,YAAY,CAAC,IAAU;IACrC,IAAM,UAAU,GAAG,IAAI,CAAC,IAAI;QAC1B,CAAC,CAAC,IAAI,CAAC,gBAAgB,IAAI,IAAI,CAAC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,WAAW,IAAI,CAAC,CAAC;QAC9F,CAAC,CAAC,CAAC,CAAC;IAEN,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IAC7G,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,CACf,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,UAAU,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,CAC7G,CAAC;IACF,IAAI,CAAC,OAAO,CAAC,IAAI,CACf,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,GAAG,UAAU,EAAE,SAAS,CAAC,MAAM,CAAC,CAC5G,CAAC;AACJ,CAAC"}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import { Rect } from '../../models/rect';
|
2
|
+
import { getLines, getWords } from './text';
|
3
|
+
// import { Store } from 'le5le-store';
|
4
|
+
var txtMarginTop = 5;
|
5
|
+
var minSize = 30;
|
6
|
+
export function imageIconRect(node) {
|
7
|
+
var x = node.rect.x;
|
8
|
+
var y = node.rect.y;
|
9
|
+
var width = node.rect.width;
|
10
|
+
if (node.imageWidth) {
|
11
|
+
width = node.imageWidth;
|
12
|
+
x += (node.rect.width - width) / 2;
|
13
|
+
}
|
14
|
+
var height = node.rect.height - node.textRect.height - txtMarginTop;
|
15
|
+
if (height < minSize) {
|
16
|
+
height = minSize;
|
17
|
+
}
|
18
|
+
var imgHeight = getImgHeight(node);
|
19
|
+
if (imgHeight !== minSize) {
|
20
|
+
height = imgHeight;
|
21
|
+
var txtHeight = node.rect.ey - node.textRect.y;
|
22
|
+
if (txtHeight < 0) {
|
23
|
+
txtHeight = 0;
|
24
|
+
}
|
25
|
+
y += (node.rect.height - txtHeight - height) / 2;
|
26
|
+
}
|
27
|
+
node.iconRect = new Rect(x, y, width, height);
|
28
|
+
node.textRect.y = node.iconRect.ey + txtMarginTop;
|
29
|
+
node.textRect.ey = node.textRect.y + node.textRect.height;
|
30
|
+
node.fullIconRect = node.rect;
|
31
|
+
}
|
32
|
+
export function imageTextRect(node) {
|
33
|
+
var height = 0;
|
34
|
+
var lineHeight = node.font.fontSize * node.font.lineHeight;
|
35
|
+
if (node.textMaxLine) {
|
36
|
+
height = lineHeight * node.textMaxLine;
|
37
|
+
}
|
38
|
+
else {
|
39
|
+
// const canvas = Store.get(node.getTID() + '-LT:offscreen');
|
40
|
+
var lines = getLines(null, getWords(node.text), node.rect.width, node.font.fontSize);
|
41
|
+
height = lineHeight * lines.length;
|
42
|
+
}
|
43
|
+
var top = node.rect.ey - height;
|
44
|
+
var imgHeight = getImgHeight(node);
|
45
|
+
if (top - imgHeight - txtMarginTop < node.rect.y) {
|
46
|
+
top = node.rect.y + imgHeight + txtMarginTop;
|
47
|
+
}
|
48
|
+
node.textRect = new Rect(node.rect.x, top, node.rect.width, height);
|
49
|
+
node.fullTextRect = node.rect;
|
50
|
+
}
|
51
|
+
function getImgHeight(node) {
|
52
|
+
var imgHeight = minSize;
|
53
|
+
if (node.image) {
|
54
|
+
if (node.imageHeight > 0) {
|
55
|
+
imgHeight = node.imageHeight;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
else if (node.icon) {
|
59
|
+
if (node.iconSize > 0) {
|
60
|
+
imgHeight = node.iconSize;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
return imgHeight;
|
64
|
+
}
|
65
|
+
//# sourceMappingURL=image.rect.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"image.rect.js","sourceRoot":"","sources":["../../../../../packages/core/src/middles/nodes/image.rect.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAC5C,uCAAuC;AAEvC,IAAM,YAAY,GAAG,CAAC,CAAC;AACvB,IAAM,OAAO,GAAG,EAAE,CAAC;AAEnB,MAAM,UAAU,aAAa,CAAC,IAAU;IACtC,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;IACpB,IAAI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AC9B;KACF;SAAM,IAAI,IAAI,CAAC,IAAI,EAAE;QACpB,IAAI,IAAI,CAAC,QAAQ,GAAG,CAAC,EAAE;YACrB,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC;SAC3B;KACF;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { Point } from '../../models/point';
|
2
|
+
import { Direction } from '../../models/direction';
|
3
|
+
export function lineAnchors(node) {
|
4
|
+
var y = node.rect.y + node.rect.height / 2;
|
5
|
+
node.anchors.push(new Point(node.rect.x, y, Direction.Left));
|
6
|
+
node.anchors.push(new Point(node.rect.x + node.rect.width, y, Direction.Right));
|
7
|
+
for (var i = node.rect.x + 5; i < node.rect.ex; i += 5) {
|
8
|
+
var pt = new Point(i, y, Direction.Bottom);
|
9
|
+
pt.hidden = true;
|
10
|
+
node.anchors.push(pt);
|
11
|
+
}
|
12
|
+
}
|
13
|
+
//# sourceMappingURL=line.anchor.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"line.anchor.js","sourceRoot":"","sources":["../../../../../packages/core/src/middles/nodes/line.anchor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEnD,MAAM,UAAU,WAAW,CAAC,IAAU;IACpC,IAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;IAC7C,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;IAC7D,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IAChF,KAAK,IAAI,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE;QACtD,IAAM,EAAE,GAAG,IAAI,KAAK,CAClB,CAAC,EACD,CAAC,EACD,SAAS,CAAC,MAAM,CACjB,CAAC;QACF,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;KACvB;AACH,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export function line(ctx, node) {
|
2
|
+
var y = node.rect.y + node.rect.height / 2;
|
3
|
+
ctx.beginPath();
|
4
|
+
ctx.moveTo(node.rect.x, y);
|
5
|
+
ctx.lineTo(node.rect.x + node.rect.width, y);
|
6
|
+
ctx.lineDashOffset = node.lineDashOffset;
|
7
|
+
ctx.stroke();
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=line.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"line.js","sourceRoot":"","sources":["../../../../../packages/core/src/middles/nodes/line.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,IAAI,CAAC,GAA6B,EAAE,IAAU;IAC5D,GAAG,CAAC,SAAS,EAAE,CAAC;IAChB,IAAM,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;IAC7C,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3B,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;IAC7C,GAAG,CAAC,MAAM,EAAE,CAAC;AACf,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Rect } from '../../models/rect';
|
2
|
+
export function lineIconRect(node) {
|
3
|
+
node.iconRect = new Rect(0, 0, 0, 0);
|
4
|
+
}
|
5
|
+
export function lineTextRect(node) {
|
6
|
+
node.fullTextRect = new Rect(node.rect.x + 10, node.rect.y + node.rect.height / 2 - 20, node.rect.width - 20, 20);
|
7
|
+
node.textRect = node.fullTextRect;
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=line.rect.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"line.rect.js","sourceRoot":"","sources":["../../../../../packages/core/src/middles/nodes/line.rect.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,MAAM,UAAU,YAAY,CAAC,IAAU;IACrC,IAAI,CAAC,QAAQ,GAAG,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;AACvC,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,IAAU;IACrC,IAAI,CAAC,YAAY,GAAG,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IAClH,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC;AACpC,CAAC"}
|