@qy_better_lib/hooks 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +41 -0
- package/lib/use-chart/default.js +11 -0
- package/lib/use-emit/extend.js +21 -0
- package/lib/use-emit/index.js +21 -0
- package/lib/use-file/index.js +26 -0
- package/lib/use-image/canvastoDataURL.js +7 -0
- package/lib/use-image/canvastoFile.js +9 -0
- package/lib/use-image/dataURLtoFile.js +16 -0
- package/lib/use-image/dataURLtoImage.js +9 -0
- package/lib/use-image/downloadFile.js +9 -0
- package/lib/use-image/filetoDataURL.js +9 -0
- package/lib/use-image/imagetoCanvas.js +41 -0
- package/lib/use-image/index.js +72 -0
- package/lib/use-image/type.js +8 -0
- package/lib/use-image/urltoBlob.js +6 -0
- package/lib/use-image/urltoImage.js +13 -0
- package/lib/use-layout-flow/index.js +120 -0
- package/lib/use-print/index.js +67 -0
- package/lib/use-utils/use-fullscreen.js +24 -0
- package/lib/use-waterMark/index.js +29 -0
- package/lib/use-websocket/index.js +54 -0
- package/package.json +4 -2
- package/lib/_virtual/_cloneBuffer.js +0 -4
- package/lib/_virtual/_commonjs-dynamic-modules.js +0 -6
- package/lib/_virtual/_commonjsHelpers.js +0 -8
- package/lib/_virtual/_nodeUtil.js +0 -4
- package/lib/_virtual/index.js +0 -7
- package/lib/_virtual/isBuffer.js +0 -4
- package/lib/packages/hooks/node_modules/@antv/x6/es/config/index.js +0 -11
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/background.js +0 -134
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/base.js +0 -37
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/coord.js +0 -108
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/css.js +0 -41
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/defs.js +0 -115
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/graph.js +0 -628
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/grid.js +0 -143
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/highlight.js +0 -111
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/mousewheel.js +0 -80
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/options.js +0 -150
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/panning.js +0 -120
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/size.js +0 -62
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/transform.js +0 -255
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/view.js +0 -404
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/virtual-render.js +0 -60
- package/lib/packages/hooks/node_modules/@antv/x6/es/model/animation.js +0 -81
- package/lib/packages/hooks/node_modules/@antv/x6/es/model/cell.js +0 -764
- package/lib/packages/hooks/node_modules/@antv/x6/es/model/collection.js +0 -163
- package/lib/packages/hooks/node_modules/@antv/x6/es/model/edge.js +0 -511
- package/lib/packages/hooks/node_modules/@antv/x6/es/model/model.js +0 -640
- package/lib/packages/hooks/node_modules/@antv/x6/es/model/node.js +0 -490
- package/lib/packages/hooks/node_modules/@antv/x6/es/model/port.js +0 -151
- package/lib/packages/hooks/node_modules/@antv/x6/es/model/registry.js +0 -19
- package/lib/packages/hooks/node_modules/@antv/x6/es/model/store.js +0 -159
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/align.js +0 -49
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/connection.js +0 -56
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/fill.js +0 -28
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/filter.js +0 -28
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/html.js +0 -8
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/index.js +0 -37
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/main.js +0 -66
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/marker.js +0 -82
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/port.js +0 -8
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/raw.js +0 -20
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/ref.js +0 -167
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/stroke.js +0 -33
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/style.js +0 -29
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/text.js +0 -105
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/title.js +0 -41
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/background/flip-x.js +0 -9
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/background/flip-xy.js +0 -9
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/background/flip-y.js +0 -9
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/background/index.js +0 -14
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/background/main.js +0 -10
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/background/watermark.js +0 -21
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-point/anchor.js +0 -29
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-point/bbox.js +0 -10
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-point/boundary.js +0 -66
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-point/index.js +0 -11
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-point/main.js +0 -10
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-point/rect.js +0 -33
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-point/util.js +0 -50
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-strategy/index.js +0 -11
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-strategy/main.js +0 -7
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-strategy/noop.js +0 -4
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-strategy/pin.js +0 -54
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connector/index.js +0 -11
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connector/jumpover.js +0 -117
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connector/loop.js +0 -25
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connector/main.js +0 -12
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connector/normal.js +0 -16
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connector/rounded.js +0 -25
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connector/smooth.js +0 -26
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/edge-anchor/closest.js +0 -18
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/edge-anchor/index.js +0 -11
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/edge-anchor/length.js +0 -7
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/edge-anchor/main.js +0 -10
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/edge-anchor/orth.js +0 -41
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/edge-anchor/ratio.js +0 -7
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/blur.js +0 -12
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/brightness.js +0 -16
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/contrast.js +0 -16
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/drop-shadow.js +0 -22
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/gray-scale.js +0 -12
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/highlight.js +0 -16
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/hue-rotate.js +0 -11
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/index.js +0 -11
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/invert.js +0 -16
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/main.js +0 -24
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/outline.js +0 -20
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/saturate.js +0 -11
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/sepia.js +0 -12
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/util.js +0 -10
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/grid/dot.js +0 -37
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/grid/double-mesh.js +0 -53
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/grid/fixed-dot.js +0 -37
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/grid/index.js +0 -51
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/grid/main.js +0 -10
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/grid/mesh.js +0 -36
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/highlighter/class.js +0 -33
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/highlighter/index.js +0 -20
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/highlighter/main.js +0 -8
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/highlighter/opacity.js +0 -31
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/highlighter/stroke.js +0 -102
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/async.js +0 -32
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/circle.js +0 -36
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/classic.js +0 -63
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/cross.js +0 -26
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/diamond.js +0 -26
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/ellipse.js +0 -16
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/index.js +0 -15
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/main.js +0 -18
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/path.js +0 -16
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/util.js +0 -22
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/node-anchor/bbox.js +0 -39
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/node-anchor/index.js +0 -11
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/node-anchor/main.js +0 -18
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/node-anchor/middle-side.js +0 -29
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/node-anchor/node-center.js +0 -7
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/node-anchor/orth.js +0 -25
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/node-anchor/util.js +0 -54
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-label-layout/index.js +0 -11
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-label-layout/inout.js +0 -46
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-label-layout/main.js +0 -16
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-label-layout/radial.js +0 -29
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-label-layout/side.js +0 -21
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-label-layout/util.js +0 -36
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-layout/absolute.js +0 -5
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-layout/ellipse.js +0 -28
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-layout/index.js +0 -11
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-layout/line.js +0 -37
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-layout/main.js +0 -13
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-layout/util.js +0 -38
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/registry.js +0 -80
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/er.js +0 -33
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/index.js +0 -11
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/loop.js +0 -63
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/main.js +0 -16
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/manhattan/index.js +0 -27
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/manhattan/obstacle-map.js +0 -74
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/manhattan/options.js +0 -106
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/manhattan/router.js +0 -115
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/manhattan/sorted-set.js +0 -46
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/manhattan/util.js +0 -127
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/metro.js +0 -65
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/normal.js +0 -6
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/oneside.js +0 -42
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/orth.js +0 -134
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/util.js +0 -60
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/anchor.js +0 -207
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/arrowhead.js +0 -138
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/boundary.js +0 -81
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/button.js +0 -124
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/editor.js +0 -218
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/index.js +0 -70
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/segments.js +0 -241
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/util.js +0 -30
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/vertices.js +0 -248
- package/lib/packages/hooks/node_modules/@antv/x6/es/renderer/queueJob.js +0 -69
- package/lib/packages/hooks/node_modules/@antv/x6/es/renderer/renderer.js +0 -96
- package/lib/packages/hooks/node_modules/@antv/x6/es/renderer/scheduler.js +0 -287
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/base.js +0 -74
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/circle.js +0 -10
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/edge.js +0 -43
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/ellipse.js +0 -11
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/html.js +0 -128
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/image.js +0 -12
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/path.js +0 -63
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/poly.js +0 -72
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/polygon.js +0 -3
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/polyline.js +0 -3
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/rect.js +0 -9
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/text-block.js +0 -122
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/util.js +0 -72
- package/lib/packages/hooks/node_modules/@antv/x6/es/style/raw.js +0 -163
- package/lib/packages/hooks/node_modules/@antv/x6/es/util/index.js +0 -231
- package/lib/packages/hooks/node_modules/@antv/x6/es/view/attr.js +0 -209
- package/lib/packages/hooks/node_modules/@antv/x6/es/view/cache.js +0 -56
- package/lib/packages/hooks/node_modules/@antv/x6/es/view/cell.js +0 -434
- package/lib/packages/hooks/node_modules/@antv/x6/es/view/edge.js +0 -1074
- package/lib/packages/hooks/node_modules/@antv/x6/es/view/flag.js +0 -45
- package/lib/packages/hooks/node_modules/@antv/x6/es/view/markup.js +0 -231
- package/lib/packages/hooks/node_modules/@antv/x6/es/view/node.js +0 -609
- package/lib/packages/hooks/node_modules/@antv/x6/es/view/tool.js +0 -239
- package/lib/packages/hooks/node_modules/@antv/x6/es/view/view.js +0 -261
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/algorithm/dijkstra.js +0 -26
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/algorithm/priorityqueue.js +0 -85
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/animation/interp.js +0 -29
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/animation/timing.js +0 -206
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/color/index.js +0 -342
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/common/basecoat.js +0 -24
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/common/disposable.js +0 -92
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/css-loader/loader.js +0 -29
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/datauri/index.js +0 -98
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dictionary/dictionary.js +0 -35
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/attr.js +0 -94
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/class.js +0 -55
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/css.js +0 -49
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/data.js +0 -34
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/elem.js +0 -140
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/event/core.js +0 -148
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/event/hook.js +0 -19
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/event/main.js +0 -60
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/event/object.js +0 -90
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/event/special.js +0 -33
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/event/store.js +0 -19
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/event/util.js +0 -111
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/matrix.js +0 -145
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/mousewheel.js +0 -29
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/path.js +0 -219
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/prefix.js +0 -24
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/style.js +0 -8
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/text.js +0 -209
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/transform.js +0 -82
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/event/events.js +0 -48
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/event/util.js +0 -13
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/function/async.js +0 -21
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/function/function.js +0 -29
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/modifier/index.js +0 -31
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/number/number.js +0 -27
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/object/inherit.js +0 -28
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/object/mixins.js +0 -10
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/object/object.js +0 -42
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/platform/index.js +0 -52
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/polyfill/index.js +0 -17
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/size-sensor/index.js +0 -22
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/size-sensor/sensors/index.js +0 -6
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/size-sensor/sensors/object.js +0 -32
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/size-sensor/sensors/observer.js +0 -28
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/size-sensor/sensors/util.js +0 -11
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/string/format.js +0 -11
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/string/hashcode.js +0 -11
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/string/suggestion.js +0 -58
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/string/uuid.js +0 -12
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/text/annotate.js +0 -21
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/text/sanitize.js +0 -6
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/unit/index.js +0 -43
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/vector/index.js +0 -260
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/angle.js +0 -16
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/curve.js +0 -341
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/ellipse.js +0 -135
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/geometry.js +0 -11
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/line.js +0 -286
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/close.js +0 -101
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/curveto.js +0 -118
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/lineto.js +0 -105
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/moveto.js +0 -124
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/normalize.js +0 -191
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/path.js +0 -570
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/segment.js +0 -44
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/util.js +0 -80
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/point.js +0 -319
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/polyline.js +0 -273
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/rectangle.js +0 -361
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/util.js +0 -36
- package/lib/packages/hooks/node_modules/dagre/index.js +0 -21
- package/lib/packages/hooks/node_modules/dagre/lib/acyclic.js +0 -47
- package/lib/packages/hooks/node_modules/dagre/lib/add-border-segments.js +0 -28
- package/lib/packages/hooks/node_modules/dagre/lib/coordinate-system.js +0 -57
- package/lib/packages/hooks/node_modules/dagre/lib/data/list.js +0 -32
- package/lib/packages/hooks/node_modules/dagre/lib/debug.js +0 -29
- package/lib/packages/hooks/node_modules/dagre/lib/graphlib.js +0 -17
- package/lib/packages/hooks/node_modules/dagre/lib/greedy-fas.js +0 -67
- package/lib/packages/hooks/node_modules/dagre/lib/layout.js +0 -267
- package/lib/packages/hooks/node_modules/dagre/lib/lodash.js +0 -69
- package/lib/packages/hooks/node_modules/dagre/lib/nesting-graph.js +0 -71
- package/lib/packages/hooks/node_modules/dagre/lib/normalize.js +0 -44
- package/lib/packages/hooks/node_modules/dagre/lib/order/add-subgraph-constraints.js +0 -24
- package/lib/packages/hooks/node_modules/dagre/lib/order/barycenter.js +0 -32
- package/lib/packages/hooks/node_modules/dagre/lib/order/build-layer-graph.js +0 -32
- package/lib/packages/hooks/node_modules/dagre/lib/order/cross-count.js +0 -41
- package/lib/packages/hooks/node_modules/dagre/lib/order/index.js +0 -50
- package/lib/packages/hooks/node_modules/dagre/lib/order/init-order.js +0 -32
- package/lib/packages/hooks/node_modules/dagre/lib/order/resolve-conflicts.js +0 -61
- package/lib/packages/hooks/node_modules/dagre/lib/order/sort-subgraph.js +0 -46
- package/lib/packages/hooks/node_modules/dagre/lib/order/sort.js +0 -35
- package/lib/packages/hooks/node_modules/dagre/lib/parent-dummy-chains.js +0 -48
- package/lib/packages/hooks/node_modules/dagre/lib/position/bk.js +0 -225
- package/lib/packages/hooks/node_modules/dagre/lib/position/index.js +0 -30
- package/lib/packages/hooks/node_modules/dagre/lib/rank/feasible-tree.js +0 -41
- package/lib/packages/hooks/node_modules/dagre/lib/rank/index.js +0 -36
- package/lib/packages/hooks/node_modules/dagre/lib/rank/network-simplex.js +0 -91
- package/lib/packages/hooks/node_modules/dagre/lib/rank/util.js +0 -34
- package/lib/packages/hooks/node_modules/dagre/lib/util.js +0 -144
- package/lib/packages/hooks/node_modules/dagre/lib/version.js +0 -7
- package/lib/packages/hooks/node_modules/graphlib/index.js +0 -18
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/components.js +0 -21
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/dfs.js +0 -26
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/dijkstra-all.js +0 -18
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/dijkstra.js +0 -38
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/find-cycles.js +0 -18
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/floyd-warshall.js +0 -42
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/index.js +0 -30
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/is-acyclic.js +0 -22
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/postorder.js +0 -15
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/preorder.js +0 -15
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/prim.js +0 -40
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/tarjan.js +0 -34
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/topsort.js +0 -25
- package/lib/packages/hooks/node_modules/graphlib/lib/data/priority-queue.js +0 -56
- package/lib/packages/hooks/node_modules/graphlib/lib/graph.js +0 -210
- package/lib/packages/hooks/node_modules/graphlib/lib/index.js +0 -12
- package/lib/packages/hooks/node_modules/graphlib/lib/json.js +0 -48
- package/lib/packages/hooks/node_modules/graphlib/lib/lodash.js +0 -49
- package/lib/packages/hooks/node_modules/graphlib/lib/version.js +0 -7
- package/lib/packages/hooks/node_modules/lodash/_DataView.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/_Hash.js +0 -22
- package/lib/packages/hooks/node_modules/lodash/_ListCache.js +0 -22
- package/lib/packages/hooks/node_modules/lodash/_Map.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/_MapCache.js +0 -22
- package/lib/packages/hooks/node_modules/lodash/_Promise.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/_Set.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/_SetCache.js +0 -18
- package/lib/packages/hooks/node_modules/lodash/_Stack.js +0 -20
- package/lib/packages/hooks/node_modules/lodash/_Symbol.js +0 -11
- package/lib/packages/hooks/node_modules/lodash/_Uint8Array.js +0 -11
- package/lib/packages/hooks/node_modules/lodash/_WeakMap.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/_apply.js +0 -22
- package/lib/packages/hooks/node_modules/lodash/_arrayEach.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/_arrayFilter.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/_arrayIncludes.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_arrayIncludesWith.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_arrayLikeKeys.js +0 -26
- package/lib/packages/hooks/node_modules/lodash/_arrayMap.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/_arrayPush.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/_arrayReduce.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_arraySome.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_asciiSize.js +0 -11
- package/lib/packages/hooks/node_modules/lodash/_assignMergeValue.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_assignValue.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/_assocIndexOf.js +0 -17
- package/lib/packages/hooks/node_modules/lodash/_baseAssign.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_baseAssignIn.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_baseAssignValue.js +0 -19
- package/lib/packages/hooks/node_modules/lodash/_baseClone.js +0 -70
- package/lib/packages/hooks/node_modules/lodash/_baseCreate.js +0 -23
- package/lib/packages/hooks/node_modules/lodash/_baseEach.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/_baseExtremum.js +0 -19
- package/lib/packages/hooks/node_modules/lodash/_baseFilter.js +0 -17
- package/lib/packages/hooks/node_modules/lodash/_baseFindIndex.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_baseFlatten.js +0 -20
- package/lib/packages/hooks/node_modules/lodash/_baseFor.js +0 -11
- package/lib/packages/hooks/node_modules/lodash/_baseForOwn.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_baseGet.js +0 -18
- package/lib/packages/hooks/node_modules/lodash/_baseGetAllKeys.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/_baseGetTag.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/_baseGt.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/_baseHas.js +0 -13
- package/lib/packages/hooks/node_modules/lodash/_baseHasIn.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/_baseIndexOf.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/_baseIsArguments.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_baseIsEqual.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_baseIsEqualDeep.js +0 -38
- package/lib/packages/hooks/node_modules/lodash/_baseIsMap.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_baseIsMatch.js +0 -37
- package/lib/packages/hooks/node_modules/lodash/_baseIsNaN.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/_baseIsNative.js +0 -22
- package/lib/packages/hooks/node_modules/lodash/_baseIsSet.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_baseIsTypedArray.js +0 -17
- package/lib/packages/hooks/node_modules/lodash/_baseIteratee.js +0 -18
- package/lib/packages/hooks/node_modules/lodash/_baseKeys.js +0 -20
- package/lib/packages/hooks/node_modules/lodash/_baseKeysIn.js +0 -21
- package/lib/packages/hooks/node_modules/lodash/_baseLt.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/_baseMap.js +0 -18
- package/lib/packages/hooks/node_modules/lodash/_baseMatches.js +0 -19
- package/lib/packages/hooks/node_modules/lodash/_baseMatchesProperty.js +0 -23
- package/lib/packages/hooks/node_modules/lodash/_baseMerge.js +0 -27
- package/lib/packages/hooks/node_modules/lodash/_baseMergeDeep.js +0 -38
- package/lib/packages/hooks/node_modules/lodash/_baseOrderBy.js +0 -37
- package/lib/packages/hooks/node_modules/lodash/_basePick.js +0 -17
- package/lib/packages/hooks/node_modules/lodash/_basePickBy.js +0 -20
- package/lib/packages/hooks/node_modules/lodash/_baseProperty.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/_basePropertyDeep.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/_baseRange.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_baseReduce.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/_baseRest.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/_baseSet.js +0 -31
- package/lib/packages/hooks/node_modules/lodash/_baseSetToString.js +0 -20
- package/lib/packages/hooks/node_modules/lodash/_baseSortBy.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_baseTimes.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/_baseToString.js +0 -24
- package/lib/packages/hooks/node_modules/lodash/_baseTrim.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/_baseUnary.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/_baseUniq.js +0 -39
- package/lib/packages/hooks/node_modules/lodash/_baseValues.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/_baseZipObject.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/_cacheHas.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/_castFunction.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/_castPath.js +0 -17
- package/lib/packages/hooks/node_modules/lodash/_cloneArrayBuffer.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_cloneBuffer.js +0 -19
- package/lib/packages/hooks/node_modules/lodash/_cloneDataView.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_cloneRegExp.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/_cloneSymbol.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/_cloneTypedArray.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_compareAscending.js +0 -21
- package/lib/packages/hooks/node_modules/lodash/_compareMultiple.js +0 -23
- package/lib/packages/hooks/node_modules/lodash/_copyArray.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_copyObject.js +0 -21
- package/lib/packages/hooks/node_modules/lodash/_copySymbols.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_copySymbolsIn.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_coreJsData.js +0 -11
- package/lib/packages/hooks/node_modules/lodash/_createAssigner.js +0 -22
- package/lib/packages/hooks/node_modules/lodash/_createBaseEach.js +0 -22
- package/lib/packages/hooks/node_modules/lodash/_createBaseFor.js +0 -19
- package/lib/packages/hooks/node_modules/lodash/_createFind.js +0 -26
- package/lib/packages/hooks/node_modules/lodash/_createRange.js +0 -18
- package/lib/packages/hooks/node_modules/lodash/_createSet.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_defineProperty.js +0 -17
- package/lib/packages/hooks/node_modules/lodash/_equalArrays.js +0 -46
- package/lib/packages/hooks/node_modules/lodash/_equalByTag.js +0 -51
- package/lib/packages/hooks/node_modules/lodash/_equalObjects.js +0 -42
- package/lib/packages/hooks/node_modules/lodash/_flatRest.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/_freeGlobal.js +0 -11
- package/lib/packages/hooks/node_modules/lodash/_getAllKeys.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/_getAllKeysIn.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/_getMapData.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_getMatchData.js +0 -19
- package/lib/packages/hooks/node_modules/lodash/_getNative.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/_getPrototype.js +0 -11
- package/lib/packages/hooks/node_modules/lodash/_getRawTag.js +0 -21
- package/lib/packages/hooks/node_modules/lodash/_getSymbols.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/_getSymbolsIn.js +0 -18
- package/lib/packages/hooks/node_modules/lodash/_getTag.js +0 -33
- package/lib/packages/hooks/node_modules/lodash/_getValue.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/_hasPath.js +0 -26
- package/lib/packages/hooks/node_modules/lodash/_hasUnicode.js +0 -13
- package/lib/packages/hooks/node_modules/lodash/_hashClear.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/_hashDelete.js +0 -13
- package/lib/packages/hooks/node_modules/lodash/_hashGet.js +0 -19
- package/lib/packages/hooks/node_modules/lodash/_hashHas.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_hashSet.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_initCloneArray.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/_initCloneByTag.js +0 -48
- package/lib/packages/hooks/node_modules/lodash/_initCloneObject.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/_isFlattenable.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/_isIndex.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/_isIterateeCall.js +0 -20
- package/lib/packages/hooks/node_modules/lodash/_isKey.js +0 -18
- package/lib/packages/hooks/node_modules/lodash/_isKeyable.js +0 -13
- package/lib/packages/hooks/node_modules/lodash/_isMasked.js +0 -17
- package/lib/packages/hooks/node_modules/lodash/_isPrototype.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/_isStrictComparable.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/_listCacheClear.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/_listCacheDelete.js +0 -18
- package/lib/packages/hooks/node_modules/lodash/_listCacheGet.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_listCacheHas.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/_listCacheSet.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_mapCacheClear.js +0 -20
- package/lib/packages/hooks/node_modules/lodash/_mapCacheDelete.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_mapCacheGet.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/_mapCacheHas.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/_mapCacheSet.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_mapToArray.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_matchesStrictComparable.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/_memoizeCapped.js +0 -17
- package/lib/packages/hooks/node_modules/lodash/_nativeCreate.js +0 -11
- package/lib/packages/hooks/node_modules/lodash/_nativeKeys.js +0 -11
- package/lib/packages/hooks/node_modules/lodash/_nativeKeysIn.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/_nodeUtil.js +0 -19
- package/lib/packages/hooks/node_modules/lodash/_objectToString.js +0 -13
- package/lib/packages/hooks/node_modules/lodash/_overArg.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/_overRest.js +0 -21
- package/lib/packages/hooks/node_modules/lodash/_root.js +0 -11
- package/lib/packages/hooks/node_modules/lodash/_safeGet.js +0 -13
- package/lib/packages/hooks/node_modules/lodash/_setCacheAdd.js +0 -13
- package/lib/packages/hooks/node_modules/lodash/_setCacheHas.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/_setToArray.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_setToString.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/_shortOut.js +0 -22
- package/lib/packages/hooks/node_modules/lodash/_stackClear.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/_stackDelete.js +0 -13
- package/lib/packages/hooks/node_modules/lodash/_stackGet.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/_stackHas.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/_stackSet.js +0 -23
- package/lib/packages/hooks/node_modules/lodash/_strictIndexOf.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_stringSize.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/_stringToPath.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/_toKey.js +0 -17
- package/lib/packages/hooks/node_modules/lodash/_toSource.js +0 -23
- package/lib/packages/hooks/node_modules/lodash/_trimmedEndIndex.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/_unicodeSize.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/clone.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/cloneDeep.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/constant.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/defaults.js +0 -23
- package/lib/packages/hooks/node_modules/lodash/each.js +0 -8
- package/lib/packages/hooks/node_modules/lodash/eq.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/filter.js +0 -18
- package/lib/packages/hooks/node_modules/lodash/find.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/findIndex.js +0 -20
- package/lib/packages/hooks/node_modules/lodash/flatten.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/forEach.js +0 -18
- package/lib/packages/hooks/node_modules/lodash/forIn.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/get.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/has.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/hasIn.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/identity.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/isArguments.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/isArray.js +0 -10
- package/lib/packages/hooks/node_modules/lodash/isArrayLike.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/isArrayLikeObject.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/isBuffer.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/isEmpty.js +0 -33
- package/lib/packages/hooks/node_modules/lodash/isFunction.js +0 -18
- package/lib/packages/hooks/node_modules/lodash/isLength.js +0 -13
- package/lib/packages/hooks/node_modules/lodash/isMap.js +0 -13
- package/lib/packages/hooks/node_modules/lodash/isObject.js +0 -13
- package/lib/packages/hooks/node_modules/lodash/isObjectLike.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/isPlainObject.js +0 -22
- package/lib/packages/hooks/node_modules/lodash/isSet.js +0 -13
- package/lib/packages/hooks/node_modules/lodash/isString.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/isSymbol.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/isTypedArray.js +0 -13
- package/lib/packages/hooks/node_modules/lodash/isUndefined.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/keys.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/keysIn.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/last.js +0 -13
- package/lib/packages/hooks/node_modules/lodash/map.js +0 -18
- package/lib/packages/hooks/node_modules/lodash/mapValues.js +0 -19
- package/lib/packages/hooks/node_modules/lodash/max.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/memoize.js +0 -23
- package/lib/packages/hooks/node_modules/lodash/merge.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/min.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/minBy.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/noop.js +0 -11
- package/lib/packages/hooks/node_modules/lodash/now.js +0 -13
- package/lib/packages/hooks/node_modules/lodash/pick.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/property.js +0 -17
- package/lib/packages/hooks/node_modules/lodash/range.js +0 -11
- package/lib/packages/hooks/node_modules/lodash/reduce.js +0 -19
- package/lib/packages/hooks/node_modules/lodash/size.js +0 -23
- package/lib/packages/hooks/node_modules/lodash/sortBy.js +0 -19
- package/lib/packages/hooks/node_modules/lodash/stubArray.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/stubFalse.js +0 -12
- package/lib/packages/hooks/node_modules/lodash/toFinite.js +0 -20
- package/lib/packages/hooks/node_modules/lodash/toInteger.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/toNumber.js +0 -28
- package/lib/packages/hooks/node_modules/lodash/toPlainObject.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/toString.js +0 -14
- package/lib/packages/hooks/node_modules/lodash/transform.js +0 -30
- package/lib/packages/hooks/node_modules/lodash/union.js +0 -16
- package/lib/packages/hooks/node_modules/lodash/uniqueId.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/values.js +0 -15
- package/lib/packages/hooks/node_modules/lodash/zipObject.js +0 -15
- package/lib/packages/hooks/node_modules/lodash-es/_DataView.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/_Hash.js +0 -20
- package/lib/packages/hooks/node_modules/lodash-es/_ListCache.js +0 -20
- package/lib/packages/hooks/node_modules/lodash-es/_Map.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/_MapCache.js +0 -20
- package/lib/packages/hooks/node_modules/lodash-es/_Promise.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/_Set.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/_SetCache.js +0 -13
- package/lib/packages/hooks/node_modules/lodash-es/_Stack.js +0 -18
- package/lib/packages/hooks/node_modules/lodash-es/_Symbol.js +0 -5
- package/lib/packages/hooks/node_modules/lodash-es/_Uint8Array.js +0 -5
- package/lib/packages/hooks/node_modules/lodash-es/_WeakMap.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/_apply.js +0 -16
- package/lib/packages/hooks/node_modules/lodash-es/_arrayAggregator.js +0 -10
- package/lib/packages/hooks/node_modules/lodash-es/_arrayEach.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_arrayFilter.js +0 -10
- package/lib/packages/hooks/node_modules/lodash-es/_arrayIncludes.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_arrayLikeKeys.js +0 -20
- package/lib/packages/hooks/node_modules/lodash-es/_arrayMap.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_arrayPush.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_arrayReduce.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_arraySome.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_asciiToArray.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/_asciiWords.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/_assignMergeValue.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_assignValue.js +0 -10
- package/lib/packages/hooks/node_modules/lodash-es/_assocIndexOf.js +0 -10
- package/lib/packages/hooks/node_modules/lodash-es/_baseAggregator.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_baseAssign.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_baseAssignIn.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_baseAssignValue.js +0 -12
- package/lib/packages/hooks/node_modules/lodash-es/_baseClamp.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/_baseClone.js +0 -65
- package/lib/packages/hooks/node_modules/lodash-es/_baseCreate.js +0 -17
- package/lib/packages/hooks/node_modules/lodash-es/_baseDifference.js +0 -24
- package/lib/packages/hooks/node_modules/lodash-es/_baseEach.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/_baseExtremum.js +0 -12
- package/lib/packages/hooks/node_modules/lodash-es/_baseFindIndex.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_baseFlatten.js +0 -13
- package/lib/packages/hooks/node_modules/lodash-es/_baseFor.js +0 -5
- package/lib/packages/hooks/node_modules/lodash-es/_baseForOwn.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_baseGet.js +0 -11
- package/lib/packages/hooks/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_baseGetTag.js +0 -10
- package/lib/packages/hooks/node_modules/lodash-es/_baseGt.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/_baseHas.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/_baseHasIn.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/_baseIndexOf.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_baseIsArguments.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_baseIsEqual.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_baseIsEqualDeep.js +0 -32
- package/lib/packages/hooks/node_modules/lodash-es/_baseIsMap.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_baseIsMatch.js +0 -29
- package/lib/packages/hooks/node_modules/lodash-es/_baseIsNaN.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/_baseIsNative.js +0 -16
- package/lib/packages/hooks/node_modules/lodash-es/_baseIsSet.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_baseIsTypedArray.js +0 -12
- package/lib/packages/hooks/node_modules/lodash-es/_baseIteratee.js +0 -11
- package/lib/packages/hooks/node_modules/lodash-es/_baseKeys.js +0 -14
- package/lib/packages/hooks/node_modules/lodash-es/_baseKeysIn.js +0 -15
- package/lib/packages/hooks/node_modules/lodash-es/_baseMap.js +0 -11
- package/lib/packages/hooks/node_modules/lodash-es/_baseMatches.js +0 -12
- package/lib/packages/hooks/node_modules/lodash-es/_baseMatchesProperty.js +0 -17
- package/lib/packages/hooks/node_modules/lodash-es/_baseMerge.js +0 -20
- package/lib/packages/hooks/node_modules/lodash-es/_baseMergeDeep.js +0 -31
- package/lib/packages/hooks/node_modules/lodash-es/_baseOrderBy.js +0 -30
- package/lib/packages/hooks/node_modules/lodash-es/_baseProperty.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_basePropertyDeep.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_basePropertyOf.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_baseRest.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_baseSetToString.js +0 -14
- package/lib/packages/hooks/node_modules/lodash-es/_baseSlice.js +0 -10
- package/lib/packages/hooks/node_modules/lodash-es/_baseSortBy.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_baseSortedIndex.js +0 -18
- package/lib/packages/hooks/node_modules/lodash-es/_baseSortedIndexBy.js +0 -19
- package/lib/packages/hooks/node_modules/lodash-es/_baseTimes.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_baseToString.js +0 -18
- package/lib/packages/hooks/node_modules/lodash-es/_baseTrim.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_baseUnary.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_baseUniq.js +0 -30
- package/lib/packages/hooks/node_modules/lodash-es/_cacheHas.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/_castPath.js +0 -10
- package/lib/packages/hooks/node_modules/lodash-es/_castSlice.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_cloneBuffer.js +0 -11
- package/lib/packages/hooks/node_modules/lodash-es/_cloneDataView.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_cloneRegExp.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_cloneSymbol.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_cloneTypedArray.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_compareAscending.js +0 -14
- package/lib/packages/hooks/node_modules/lodash-es/_compareMultiple.js +0 -16
- package/lib/packages/hooks/node_modules/lodash-es/_copyArray.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_copyObject.js +0 -14
- package/lib/packages/hooks/node_modules/lodash-es/_copySymbols.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_copySymbolsIn.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_coreJsData.js +0 -5
- package/lib/packages/hooks/node_modules/lodash-es/_createAggregator.js +0 -13
- package/lib/packages/hooks/node_modules/lodash-es/_createAssigner.js +0 -15
- package/lib/packages/hooks/node_modules/lodash-es/_createBaseEach.js +0 -15
- package/lib/packages/hooks/node_modules/lodash-es/_createBaseFor.js +0 -13
- package/lib/packages/hooks/node_modules/lodash-es/_createCaseFirst.js +0 -14
- package/lib/packages/hooks/node_modules/lodash-es/_createCompounder.js +0 -12
- package/lib/packages/hooks/node_modules/lodash-es/_createSet.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_customDefaultsMerge.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_deburrLetter.js +0 -198
- package/lib/packages/hooks/node_modules/lodash-es/_defineProperty.js +0 -11
- package/lib/packages/hooks/node_modules/lodash-es/_equalArrays.js +0 -40
- package/lib/packages/hooks/node_modules/lodash-es/_equalByTag.js +0 -45
- package/lib/packages/hooks/node_modules/lodash-es/_equalObjects.js +0 -36
- package/lib/packages/hooks/node_modules/lodash-es/_freeGlobal.js +0 -4
- package/lib/packages/hooks/node_modules/lodash-es/_getAllKeys.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_getAllKeysIn.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_getMapData.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_getMatchData.js +0 -12
- package/lib/packages/hooks/node_modules/lodash-es/_getNative.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_getPrototype.js +0 -5
- package/lib/packages/hooks/node_modules/lodash-es/_getRawTag.js +0 -15
- package/lib/packages/hooks/node_modules/lodash-es/_getSymbols.js +0 -10
- package/lib/packages/hooks/node_modules/lodash-es/_getSymbolsIn.js +0 -12
- package/lib/packages/hooks/node_modules/lodash-es/_getTag.js +0 -28
- package/lib/packages/hooks/node_modules/lodash-es/_getValue.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/_hasPath.js +0 -19
- package/lib/packages/hooks/node_modules/lodash-es/_hasUnicode.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/_hasUnicodeWord.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/_hashClear.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/_hashDelete.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/_hashGet.js +0 -13
- package/lib/packages/hooks/node_modules/lodash-es/_hashHas.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_hashSet.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_initCloneArray.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_initCloneByTag.js +0 -42
- package/lib/packages/hooks/node_modules/lodash-es/_initCloneObject.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_isFlattenable.js +0 -10
- package/lib/packages/hooks/node_modules/lodash-es/_isIndex.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_isIterateeCall.js +0 -13
- package/lib/packages/hooks/node_modules/lodash-es/_isKey.js +0 -12
- package/lib/packages/hooks/node_modules/lodash-es/_isKeyable.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/_isMasked.js +0 -11
- package/lib/packages/hooks/node_modules/lodash-es/_isPrototype.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_isStrictComparable.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/_listCacheClear.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/_listCacheDelete.js +0 -12
- package/lib/packages/hooks/node_modules/lodash-es/_listCacheGet.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_listCacheHas.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/_listCacheSet.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_mapCacheClear.js +0 -13
- package/lib/packages/hooks/node_modules/lodash-es/_mapCacheDelete.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_mapCacheGet.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/_mapCacheHas.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/_mapCacheSet.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_mapToArray.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_matchesStrictComparable.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_memoizeCapped.js +0 -11
- package/lib/packages/hooks/node_modules/lodash-es/_nativeCreate.js +0 -5
- package/lib/packages/hooks/node_modules/lodash-es/_nativeKeys.js +0 -5
- package/lib/packages/hooks/node_modules/lodash-es/_nativeKeysIn.js +0 -10
- package/lib/packages/hooks/node_modules/lodash-es/_nodeUtil.js +0 -11
- package/lib/packages/hooks/node_modules/lodash-es/_objectToString.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/_overArg.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/_overRest.js +0 -15
- package/lib/packages/hooks/node_modules/lodash-es/_root.js +0 -5
- package/lib/packages/hooks/node_modules/lodash-es/_safeGet.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/_setCacheAdd.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/_setCacheHas.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/_setToArray.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_setToString.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/_shortOut.js +0 -16
- package/lib/packages/hooks/node_modules/lodash-es/_stackClear.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/_stackDelete.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/_stackGet.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/_stackHas.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/_stackSet.js +0 -17
- package/lib/packages/hooks/node_modules/lodash-es/_strictIndexOf.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_stringToArray.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_stringToPath.js +0 -10
- package/lib/packages/hooks/node_modules/lodash-es/_toKey.js +0 -10
- package/lib/packages/hooks/node_modules/lodash-es/_toSource.js +0 -17
- package/lib/packages/hooks/node_modules/lodash-es/_trimmedEndIndex.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/_unicodeToArray.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/_unicodeWords.js +0 -16
- package/lib/packages/hooks/node_modules/lodash-es/camelCase.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/capitalize.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/clamp.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/clone.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/cloneDeep.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/constant.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/debounce.js +0 -54
- package/lib/packages/hooks/node_modules/lodash-es/deburr.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/defaults.js +0 -17
- package/lib/packages/hooks/node_modules/lodash-es/defaultsDeep.js +0 -10
- package/lib/packages/hooks/node_modules/lodash-es/difference.js +0 -10
- package/lib/packages/hooks/node_modules/lodash-es/eq.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/get.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/groupBy.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/has.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/hasIn.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/identity.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/isArguments.js +0 -10
- package/lib/packages/hooks/node_modules/lodash-es/isArray.js +0 -4
- package/lib/packages/hooks/node_modules/lodash-es/isArrayLike.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/isArrayLikeObject.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/isBuffer.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/isEmpty.js +0 -27
- package/lib/packages/hooks/node_modules/lodash-es/isEqual.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/isFunction.js +0 -12
- package/lib/packages/hooks/node_modules/lodash-es/isLength.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/isMap.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/isNumber.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/isObject.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/isObjectLike.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/isPlainObject.js +0 -16
- package/lib/packages/hooks/node_modules/lodash-es/isSet.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/isSymbol.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/isTypedArray.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/keys.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/keysIn.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/lowerFirst.js +0 -5
- package/lib/packages/hooks/node_modules/lodash-es/max.js +0 -9
- package/lib/packages/hooks/node_modules/lodash-es/memoize.js +0 -18
- package/lib/packages/hooks/node_modules/lodash-es/merge.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/mergeWith.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/noop.js +0 -5
- package/lib/packages/hooks/node_modules/lodash-es/now.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/property.js +0 -10
- package/lib/packages/hooks/node_modules/lodash-es/sortBy.js +0 -13
- package/lib/packages/hooks/node_modules/lodash-es/sortedIndex.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/sortedIndexBy.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/startCase.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/stubArray.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/stubFalse.js +0 -6
- package/lib/packages/hooks/node_modules/lodash-es/throttle.js +0 -16
- package/lib/packages/hooks/node_modules/lodash-es/toNumber.js +0 -22
- package/lib/packages/hooks/node_modules/lodash-es/toPlainObject.js +0 -8
- package/lib/packages/hooks/node_modules/lodash-es/toString.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/union.js +0 -10
- package/lib/packages/hooks/node_modules/lodash-es/uniq.js +0 -7
- package/lib/packages/hooks/node_modules/lodash-es/upperFirst.js +0 -5
- package/lib/packages/hooks/node_modules/lodash-es/words.js +0 -10
- package/lib/packages/hooks/node_modules/mitt/dist/mitt.js +0 -19
- package/lib/packages/hooks/node_modules/mqtt/dist/mqtt.esm.js +0 -10402
|
@@ -1,1074 +0,0 @@
|
|
|
1
|
-
import { Angle as _ } from "../../../x6-geometry/es/angle.js";
|
|
2
|
-
import { Point as A } from "../../../x6-geometry/es/point.js";
|
|
3
|
-
import { Line as R } from "../../../x6-geometry/es/line.js";
|
|
4
|
-
import "../../../x6-geometry/es/ellipse.js";
|
|
5
|
-
import { Rectangle as k } from "../../../x6-geometry/es/rectangle.js";
|
|
6
|
-
import { Path as G } from "../../../x6-geometry/es/path/path.js";
|
|
7
|
-
import "../../../x6-geometry/es/util.js";
|
|
8
|
-
import "../../../x6-geometry/es/curve.js";
|
|
9
|
-
import { Polyline as j } from "../../../x6-geometry/es/polyline.js";
|
|
10
|
-
import "../../../x6-common/es/polyfill/index.js";
|
|
11
|
-
import "../../../x6-common/es/common/disposable.js";
|
|
12
|
-
import "../../../x6-common/es/common/basecoat.js";
|
|
13
|
-
import { isPercentage as J } from "../../../x6-common/es/number/number.js";
|
|
14
|
-
import { call as P } from "../../../x6-common/es/function/function.js";
|
|
15
|
-
import "../../../x6-common/es/platform/index.js";
|
|
16
|
-
import { createSvgElement as W, findParentByClass as q } from "../../../x6-common/es/dom/elem.js";
|
|
17
|
-
import "../../../x6-common/es/datauri/index.js";
|
|
18
|
-
import "../../../x6-common/es/unit/index.js";
|
|
19
|
-
import "../../../x6-common/es/dom/prefix.js";
|
|
20
|
-
import { Vector as B } from "../../../x6-common/es/vector/index.js";
|
|
21
|
-
import { matrixToTransformString as X, createSVGMatrix as K } from "../../../x6-common/es/dom/matrix.js";
|
|
22
|
-
import "../../../x6-common/es/dom/event/hook.js";
|
|
23
|
-
import "../../../x6-common/es/dom/event/main.js";
|
|
24
|
-
import "../../../x6-common/es/dom/event/object.js";
|
|
25
|
-
import "../../../x6-common/es/size-sensor/index.js";
|
|
26
|
-
import "../../../x6-common/es/algorithm/priorityqueue.js";
|
|
27
|
-
import "../../../x6-common/es/algorithm/dijkstra.js";
|
|
28
|
-
import "../../../x6-common/es/color/index.js";
|
|
29
|
-
import "../../../x6-common/es/modifier/index.js";
|
|
30
|
-
import "../../../x6-common/es/animation/timing.js";
|
|
31
|
-
import "../../../x6-common/es/animation/interp.js";
|
|
32
|
-
import "../registry/grid/index.js";
|
|
33
|
-
import "../registry/background/index.js";
|
|
34
|
-
import "../registry/filter/index.js";
|
|
35
|
-
import "../registry/attr/index.js";
|
|
36
|
-
import "../registry/highlighter/index.js";
|
|
37
|
-
import "../registry/port-layout/index.js";
|
|
38
|
-
import "../registry/port-label-layout/index.js";
|
|
39
|
-
import "../registry/tool/index.js";
|
|
40
|
-
import "../registry/marker/index.js";
|
|
41
|
-
import { NodeAnchor as z } from "../registry/node-anchor/index.js";
|
|
42
|
-
import { EdgeAnchor as F } from "../registry/edge-anchor/index.js";
|
|
43
|
-
import { ConnectionPoint as U } from "../registry/connection-point/index.js";
|
|
44
|
-
import { Router as S } from "../registry/router/index.js";
|
|
45
|
-
import { Connector as x } from "../registry/connector/index.js";
|
|
46
|
-
import "../registry/registry.js";
|
|
47
|
-
import { Edge as Z } from "../model/edge.js";
|
|
48
|
-
import { CellView as H } from "./cell.js";
|
|
49
|
-
import { NodeView as Q } from "./node.js";
|
|
50
|
-
import T from "../../../../lodash-es/has.js";
|
|
51
|
-
import N from "../../../../lodash-es/merge.js";
|
|
52
|
-
import Y from "../../../../lodash-es/clone.js";
|
|
53
|
-
var tt = function(M, t) {
|
|
54
|
-
var n = {};
|
|
55
|
-
for (var e in M) Object.prototype.hasOwnProperty.call(M, e) && t.indexOf(e) < 0 && (n[e] = M[e]);
|
|
56
|
-
if (M != null && typeof Object.getOwnPropertySymbols == "function")
|
|
57
|
-
for (var i = 0, e = Object.getOwnPropertySymbols(M); i < e.length; i++)
|
|
58
|
-
t.indexOf(e[i]) < 0 && Object.prototype.propertyIsEnumerable.call(M, e[i]) && (n[e[i]] = M[e[i]]);
|
|
59
|
-
return n;
|
|
60
|
-
};
|
|
61
|
-
class E extends H {
|
|
62
|
-
constructor() {
|
|
63
|
-
super(...arguments), this.POINT_ROUNDING = 2, this.labelDestroyFn = {};
|
|
64
|
-
}
|
|
65
|
-
get [Symbol.toStringTag]() {
|
|
66
|
-
return E.toStringTag;
|
|
67
|
-
}
|
|
68
|
-
getContainerClassName() {
|
|
69
|
-
return [super.getContainerClassName(), this.prefixClassName("edge")].join(" ");
|
|
70
|
-
}
|
|
71
|
-
get sourceBBox() {
|
|
72
|
-
const t = this.sourceView;
|
|
73
|
-
if (!t) {
|
|
74
|
-
const e = this.cell.getSource();
|
|
75
|
-
return new k(e.x, e.y);
|
|
76
|
-
}
|
|
77
|
-
const n = this.sourceMagnet;
|
|
78
|
-
return t.isEdgeElement(n) ? new k(this.sourceAnchor.x, this.sourceAnchor.y) : t.getBBoxOfElement(n || t.container);
|
|
79
|
-
}
|
|
80
|
-
get targetBBox() {
|
|
81
|
-
const t = this.targetView;
|
|
82
|
-
if (!t) {
|
|
83
|
-
const e = this.cell.getTarget();
|
|
84
|
-
return new k(e.x, e.y);
|
|
85
|
-
}
|
|
86
|
-
const n = this.targetMagnet;
|
|
87
|
-
return t.isEdgeElement(n) ? new k(this.targetAnchor.x, this.targetAnchor.y) : t.getBBoxOfElement(n || t.container);
|
|
88
|
-
}
|
|
89
|
-
isEdgeView() {
|
|
90
|
-
return !0;
|
|
91
|
-
}
|
|
92
|
-
confirmUpdate(t, n = {}) {
|
|
93
|
-
let e = t;
|
|
94
|
-
if (this.hasAction(e, "source")) {
|
|
95
|
-
if (!this.updateTerminalProperties("source"))
|
|
96
|
-
return e;
|
|
97
|
-
e = this.removeAction(e, "source");
|
|
98
|
-
}
|
|
99
|
-
if (this.hasAction(e, "target")) {
|
|
100
|
-
if (!this.updateTerminalProperties("target"))
|
|
101
|
-
return e;
|
|
102
|
-
e = this.removeAction(e, "target");
|
|
103
|
-
}
|
|
104
|
-
return this.hasAction(e, "render") ? (this.render(), e = this.removeAction(e, ["render", "update", "labels", "tools"]), e) : (e = this.handleAction(e, "update", () => this.update(n)), e = this.handleAction(e, "labels", () => this.onLabelsChange(n)), e = this.handleAction(e, "tools", () => this.renderTools()), e);
|
|
105
|
-
}
|
|
106
|
-
// #region render
|
|
107
|
-
render() {
|
|
108
|
-
return this.empty(), this.renderMarkup(), this.labelContainer = null, this.renderLabels(), this.update(), this.renderTools(), this;
|
|
109
|
-
}
|
|
110
|
-
renderMarkup() {
|
|
111
|
-
const t = this.cell.markup;
|
|
112
|
-
if (t) {
|
|
113
|
-
if (typeof t == "string")
|
|
114
|
-
throw new TypeError("Not support string markup.");
|
|
115
|
-
return this.renderJSONMarkup(t);
|
|
116
|
-
}
|
|
117
|
-
throw new TypeError("Invalid edge markup.");
|
|
118
|
-
}
|
|
119
|
-
renderJSONMarkup(t) {
|
|
120
|
-
const n = this.parseJSONMarkup(t, this.container);
|
|
121
|
-
this.selectors = n.selectors, this.container.append(n.fragment);
|
|
122
|
-
}
|
|
123
|
-
customizeLabels() {
|
|
124
|
-
if (this.labelContainer) {
|
|
125
|
-
const t = this.cell, n = t.labels;
|
|
126
|
-
for (let e = 0, i = n.length; e < i; e += 1) {
|
|
127
|
-
const s = n[e], o = this.labelCache[e], r = this.labelSelectors[e], a = this.graph.options.onEdgeLabelRendered;
|
|
128
|
-
if (a) {
|
|
129
|
-
const l = a({
|
|
130
|
-
edge: t,
|
|
131
|
-
label: s,
|
|
132
|
-
container: o,
|
|
133
|
-
selectors: r
|
|
134
|
-
});
|
|
135
|
-
l && (this.labelDestroyFn[e] = l);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
destroyCustomizeLabels() {
|
|
141
|
-
const t = this.cell.labels;
|
|
142
|
-
if (this.labelCache && this.labelSelectors && this.labelDestroyFn)
|
|
143
|
-
for (let n = 0, e = t.length; n < e; n += 1) {
|
|
144
|
-
const i = this.labelDestroyFn[n], s = this.labelCache[n], o = this.labelSelectors[n];
|
|
145
|
-
i && s && o && i({
|
|
146
|
-
edge: this.cell,
|
|
147
|
-
label: t[n],
|
|
148
|
-
container: s,
|
|
149
|
-
selectors: o
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
this.labelDestroyFn = {};
|
|
153
|
-
}
|
|
154
|
-
renderLabels() {
|
|
155
|
-
const t = this.cell, n = t.getLabels(), e = n.length;
|
|
156
|
-
let i = this.labelContainer;
|
|
157
|
-
if (this.labelCache = {}, this.labelSelectors = {}, e <= 0)
|
|
158
|
-
return i && i.parentNode && i.parentNode.removeChild(i), this;
|
|
159
|
-
i ? this.empty(i) : (i = W("g"), this.addClass(this.prefixClassName("edge-labels"), i), this.labelContainer = i);
|
|
160
|
-
for (let s = 0, o = n.length; s < o; s += 1) {
|
|
161
|
-
const r = n[s], a = this.normalizeLabelMarkup(this.parseLabelMarkup(r.markup));
|
|
162
|
-
let l, c;
|
|
163
|
-
if (a)
|
|
164
|
-
l = a.node, c = a.selectors;
|
|
165
|
-
else {
|
|
166
|
-
const h = t.getDefaultLabel(), f = this.normalizeLabelMarkup(this.parseLabelMarkup(h.markup));
|
|
167
|
-
l = f.node, c = f.selectors;
|
|
168
|
-
}
|
|
169
|
-
l.setAttribute("data-index", `${s}`), i.appendChild(l);
|
|
170
|
-
const g = this.rootSelector;
|
|
171
|
-
if (c[g])
|
|
172
|
-
throw new Error("Ambiguous label root selector.");
|
|
173
|
-
c[g] = l, this.labelCache[s] = l, this.labelSelectors[s] = c;
|
|
174
|
-
}
|
|
175
|
-
return i.parentNode == null && this.container.appendChild(i), this.updateLabels(), this.customizeLabels(), this;
|
|
176
|
-
}
|
|
177
|
-
onLabelsChange(t = {}) {
|
|
178
|
-
this.destroyCustomizeLabels(), this.shouldRerenderLabels(t) ? this.renderLabels() : this.updateLabels(), this.updateLabelPositions();
|
|
179
|
-
}
|
|
180
|
-
shouldRerenderLabels(t = {}) {
|
|
181
|
-
const n = this.cell.previous("labels");
|
|
182
|
-
if (n == null)
|
|
183
|
-
return !0;
|
|
184
|
-
if ("propertyPathArray" in t && "propertyValue" in t) {
|
|
185
|
-
const e = t.propertyPathArray || [], i = e.length;
|
|
186
|
-
if (i > 1) {
|
|
187
|
-
const s = e[1];
|
|
188
|
-
if (n[s]) {
|
|
189
|
-
if (i === 2)
|
|
190
|
-
return typeof t.propertyValue == "object" && T(t.propertyValue, "markup");
|
|
191
|
-
if (e[2] !== "markup")
|
|
192
|
-
return !1;
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
return !0;
|
|
197
|
-
}
|
|
198
|
-
parseLabelMarkup(t) {
|
|
199
|
-
return t ? typeof t == "string" ? this.parseLabelStringMarkup(t) : this.parseJSONMarkup(t) : null;
|
|
200
|
-
}
|
|
201
|
-
parseLabelStringMarkup(t) {
|
|
202
|
-
const n = B.createVectors(t), e = document.createDocumentFragment();
|
|
203
|
-
for (let i = 0, s = n.length; i < s; i += 1) {
|
|
204
|
-
const o = n[i].node;
|
|
205
|
-
e.appendChild(o);
|
|
206
|
-
}
|
|
207
|
-
return { fragment: e, selectors: {} };
|
|
208
|
-
}
|
|
209
|
-
normalizeLabelMarkup(t) {
|
|
210
|
-
if (t == null)
|
|
211
|
-
return;
|
|
212
|
-
const n = t.fragment;
|
|
213
|
-
if (!(n instanceof DocumentFragment) || !n.hasChildNodes())
|
|
214
|
-
throw new Error("Invalid label markup.");
|
|
215
|
-
let e;
|
|
216
|
-
const i = n.childNodes;
|
|
217
|
-
return i.length > 1 || i[0].nodeName.toUpperCase() !== "G" ? e = B.create("g").append(n) : e = B.create(i[0]), e.addClass(this.prefixClassName("edge-label")), {
|
|
218
|
-
node: e.node,
|
|
219
|
-
selectors: t.selectors
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
updateLabels() {
|
|
223
|
-
if (this.labelContainer) {
|
|
224
|
-
const t = this.cell, n = t.labels, e = this.can("edgeLabelMovable"), i = t.getDefaultLabel();
|
|
225
|
-
for (let s = 0, o = n.length; s < o; s += 1) {
|
|
226
|
-
const r = this.labelCache[s], a = this.labelSelectors[s];
|
|
227
|
-
r.setAttribute("cursor", e ? "move" : "default");
|
|
228
|
-
const l = n[s], c = N({}, i.attrs, l.attrs);
|
|
229
|
-
this.updateAttrs(r, c, {
|
|
230
|
-
selectors: a,
|
|
231
|
-
rootBBox: l.size ? k.fromSize(l.size) : void 0
|
|
232
|
-
});
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
renderTools() {
|
|
237
|
-
const t = this.cell.getTools();
|
|
238
|
-
return this.addTools(t), this;
|
|
239
|
-
}
|
|
240
|
-
// #endregion
|
|
241
|
-
// #region updating
|
|
242
|
-
update(t = {}) {
|
|
243
|
-
this.cleanCache(), this.updateConnection(t);
|
|
244
|
-
const n = this.cell.getAttrs(), { text: e } = n, i = tt(n, ["text"]);
|
|
245
|
-
return i != null && this.updateAttrs(this.container, i, {
|
|
246
|
-
selectors: this.selectors
|
|
247
|
-
}), this.updateLabelPositions(), this.updateTools(t), this;
|
|
248
|
-
}
|
|
249
|
-
removeRedundantLinearVertices(t = {}) {
|
|
250
|
-
const n = this.cell, e = n.getVertices(), i = [this.sourceAnchor, ...e, this.targetAnchor], s = i.length, o = new j(i);
|
|
251
|
-
o.simplify({ threshold: 0.01 });
|
|
252
|
-
const r = o.points.map((l) => l.toJSON()), a = r.length;
|
|
253
|
-
return s === a ? 0 : (n.setVertices(r.slice(1, a - 1), t), s - a);
|
|
254
|
-
}
|
|
255
|
-
getTerminalView(t) {
|
|
256
|
-
switch (t) {
|
|
257
|
-
case "source":
|
|
258
|
-
return this.sourceView || null;
|
|
259
|
-
case "target":
|
|
260
|
-
return this.targetView || null;
|
|
261
|
-
default:
|
|
262
|
-
throw new Error(`Unknown terminal type '${t}'`);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
getTerminalAnchor(t) {
|
|
266
|
-
switch (t) {
|
|
267
|
-
case "source":
|
|
268
|
-
return A.create(this.sourceAnchor);
|
|
269
|
-
case "target":
|
|
270
|
-
return A.create(this.targetAnchor);
|
|
271
|
-
default:
|
|
272
|
-
throw new Error(`Unknown terminal type '${t}'`);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
getTerminalConnectionPoint(t) {
|
|
276
|
-
switch (t) {
|
|
277
|
-
case "source":
|
|
278
|
-
return A.create(this.sourcePoint);
|
|
279
|
-
case "target":
|
|
280
|
-
return A.create(this.targetPoint);
|
|
281
|
-
default:
|
|
282
|
-
throw new Error(`Unknown terminal type '${t}'`);
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
getTerminalMagnet(t, n = {}) {
|
|
286
|
-
switch (t) {
|
|
287
|
-
case "source": {
|
|
288
|
-
if (n.raw)
|
|
289
|
-
return this.sourceMagnet;
|
|
290
|
-
const e = this.sourceView;
|
|
291
|
-
return e ? this.sourceMagnet || e.container : null;
|
|
292
|
-
}
|
|
293
|
-
case "target": {
|
|
294
|
-
if (n.raw)
|
|
295
|
-
return this.targetMagnet;
|
|
296
|
-
const e = this.targetView;
|
|
297
|
-
return e ? this.targetMagnet || e.container : null;
|
|
298
|
-
}
|
|
299
|
-
default:
|
|
300
|
-
throw new Error(`Unknown terminal type '${t}'`);
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
updateConnection(t = {}) {
|
|
304
|
-
const n = this.cell;
|
|
305
|
-
if (t.translateBy && n.isFragmentDescendantOf(t.translateBy)) {
|
|
306
|
-
const e = t.tx || 0, i = t.ty || 0;
|
|
307
|
-
this.routePoints = new j(this.routePoints).translate(e, i).points, this.translateConnectionPoints(e, i), this.path.translate(e, i);
|
|
308
|
-
} else {
|
|
309
|
-
const e = n.getVertices(), i = this.findAnchors(e);
|
|
310
|
-
this.sourceAnchor = i.source, this.targetAnchor = i.target, this.routePoints = this.findRoutePoints(e);
|
|
311
|
-
const s = this.findConnectionPoints(this.routePoints, this.sourceAnchor, this.targetAnchor);
|
|
312
|
-
this.sourcePoint = s.source, this.targetPoint = s.target;
|
|
313
|
-
const o = this.findMarkerPoints(this.routePoints, this.sourcePoint, this.targetPoint);
|
|
314
|
-
this.path = this.findPath(this.routePoints, o.source || this.sourcePoint, o.target || this.targetPoint);
|
|
315
|
-
}
|
|
316
|
-
this.cleanCache();
|
|
317
|
-
}
|
|
318
|
-
findAnchors(t) {
|
|
319
|
-
const n = this.cell, e = n.source, i = n.target, s = t[0], o = t[t.length - 1];
|
|
320
|
-
return i.priority && !e.priority ? this.findAnchorsOrdered("target", o, "source", s) : this.findAnchorsOrdered("source", s, "target", o);
|
|
321
|
-
}
|
|
322
|
-
findAnchorsOrdered(t, n, e, i) {
|
|
323
|
-
let s, o;
|
|
324
|
-
const r = this.cell, a = r[t], l = r[e], c = this.getTerminalView(t), g = this.getTerminalView(e), h = this.getTerminalMagnet(t), f = this.getTerminalMagnet(e);
|
|
325
|
-
if (c) {
|
|
326
|
-
let u;
|
|
327
|
-
n ? u = A.create(n) : g ? u = f : u = A.create(l), s = this.getAnchor(a.anchor, c, h, u, t);
|
|
328
|
-
} else
|
|
329
|
-
s = A.create(a);
|
|
330
|
-
if (g) {
|
|
331
|
-
const u = A.create(i || s);
|
|
332
|
-
o = this.getAnchor(l.anchor, g, f, u, e);
|
|
333
|
-
} else
|
|
334
|
-
o = A.isPointLike(l) ? A.create(l) : new A();
|
|
335
|
-
return {
|
|
336
|
-
[t]: s,
|
|
337
|
-
[e]: o
|
|
338
|
-
};
|
|
339
|
-
}
|
|
340
|
-
getAnchor(t, n, e, i, s) {
|
|
341
|
-
const o = n.isEdgeElement(e), r = this.graph.options.connecting;
|
|
342
|
-
let a = typeof t == "string" ? { name: t } : t;
|
|
343
|
-
if (!a) {
|
|
344
|
-
const g = o ? (s === "source" ? r.sourceEdgeAnchor : r.targetEdgeAnchor) || r.edgeAnchor : (s === "source" ? r.sourceAnchor : r.targetAnchor) || r.anchor;
|
|
345
|
-
a = typeof g == "string" ? { name: g } : g;
|
|
346
|
-
}
|
|
347
|
-
if (!a)
|
|
348
|
-
throw new Error("Anchor should be specified.");
|
|
349
|
-
let l;
|
|
350
|
-
const c = a.name;
|
|
351
|
-
if (o) {
|
|
352
|
-
const g = F.registry.get(c);
|
|
353
|
-
if (typeof g != "function")
|
|
354
|
-
return F.registry.onNotFound(c);
|
|
355
|
-
l = P(g, this, n, e, i, a.args || {}, s);
|
|
356
|
-
} else {
|
|
357
|
-
const g = z.registry.get(c);
|
|
358
|
-
if (typeof g != "function")
|
|
359
|
-
return z.registry.onNotFound(c);
|
|
360
|
-
l = P(g, this, n, e, i, a.args || {}, s);
|
|
361
|
-
}
|
|
362
|
-
return l ? l.round(this.POINT_ROUNDING) : new A();
|
|
363
|
-
}
|
|
364
|
-
findRoutePoints(t = []) {
|
|
365
|
-
const n = this.graph.options.connecting.router || S.presets.normal, e = this.cell.getRouter() || n;
|
|
366
|
-
let i;
|
|
367
|
-
if (typeof e == "function")
|
|
368
|
-
i = P(e, this, t, {}, this);
|
|
369
|
-
else {
|
|
370
|
-
const s = typeof e == "string" ? e : e.name, o = typeof e == "string" ? {} : e.args || {}, r = s ? S.registry.get(s) : S.presets.normal;
|
|
371
|
-
if (typeof r != "function")
|
|
372
|
-
return S.registry.onNotFound(s);
|
|
373
|
-
i = P(r, this, t, o, this);
|
|
374
|
-
}
|
|
375
|
-
return i == null ? t.map((s) => A.create(s)) : i.map((s) => A.create(s));
|
|
376
|
-
}
|
|
377
|
-
findConnectionPoints(t, n, e) {
|
|
378
|
-
const i = this.cell, s = this.graph.options.connecting, o = i.getSource(), r = i.getTarget(), a = this.sourceView, l = this.targetView, c = t[0], g = t[t.length - 1];
|
|
379
|
-
let h;
|
|
380
|
-
if (a && !a.isEdgeElement(this.sourceMagnet)) {
|
|
381
|
-
const u = this.sourceMagnet || a.container, w = c || e, d = new R(w, n), m = o.connectionPoint || s.sourceConnectionPoint || s.connectionPoint;
|
|
382
|
-
h = this.getConnectionPoint(m, a, u, d, "source");
|
|
383
|
-
} else
|
|
384
|
-
h = n;
|
|
385
|
-
let f;
|
|
386
|
-
if (l && !l.isEdgeElement(this.targetMagnet)) {
|
|
387
|
-
const u = this.targetMagnet || l.container, w = r.connectionPoint || s.targetConnectionPoint || s.connectionPoint, d = g || n, m = new R(d, e);
|
|
388
|
-
f = this.getConnectionPoint(w, l, u, m, "target");
|
|
389
|
-
} else
|
|
390
|
-
f = e;
|
|
391
|
-
return {
|
|
392
|
-
source: h,
|
|
393
|
-
target: f
|
|
394
|
-
};
|
|
395
|
-
}
|
|
396
|
-
getConnectionPoint(t, n, e, i, s) {
|
|
397
|
-
const o = i.end;
|
|
398
|
-
if (t == null)
|
|
399
|
-
return o;
|
|
400
|
-
const r = typeof t == "string" ? t : t.name, a = typeof t == "string" ? {} : t.args, l = U.registry.get(r);
|
|
401
|
-
if (typeof l != "function")
|
|
402
|
-
return U.registry.onNotFound(r);
|
|
403
|
-
const c = P(l, this, i, n, e, a || {}, s);
|
|
404
|
-
return c ? c.round(this.POINT_ROUNDING) : o;
|
|
405
|
-
}
|
|
406
|
-
findMarkerPoints(t, n, e) {
|
|
407
|
-
const i = (g) => {
|
|
408
|
-
const h = this.cell.getAttrs(), f = Object.keys(h);
|
|
409
|
-
for (let u = 0, w = f.length; u < w; u += 1) {
|
|
410
|
-
const d = h[f[u]];
|
|
411
|
-
if (d[`${g}Marker`] || d[`${g}-marker`]) {
|
|
412
|
-
const m = d.strokeWidth || d["stroke-width"];
|
|
413
|
-
if (m)
|
|
414
|
-
return parseFloat(m);
|
|
415
|
-
break;
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
return null;
|
|
419
|
-
}, s = t[0], o = t[t.length - 1];
|
|
420
|
-
let r, a;
|
|
421
|
-
const l = i("source");
|
|
422
|
-
l && (r = n.clone().move(s || e, -l));
|
|
423
|
-
const c = i("target");
|
|
424
|
-
return c && (a = e.clone().move(o || n, -c)), this.sourceMarkerPoint = r || n.clone(), this.targetMarkerPoint = a || e.clone(), {
|
|
425
|
-
source: r,
|
|
426
|
-
target: a
|
|
427
|
-
};
|
|
428
|
-
}
|
|
429
|
-
findPath(t, n, e) {
|
|
430
|
-
const i = this.cell.getConnector() || this.graph.options.connecting.connector;
|
|
431
|
-
let s, o, r;
|
|
432
|
-
if (typeof i == "string" ? s = i : (s = i.name, o = i.args), s) {
|
|
433
|
-
const l = x.registry.get(s);
|
|
434
|
-
if (typeof l != "function")
|
|
435
|
-
return x.registry.onNotFound(s);
|
|
436
|
-
r = l;
|
|
437
|
-
} else
|
|
438
|
-
r = x.presets.normal;
|
|
439
|
-
const a = P(r, this, n, e, t, Object.assign(Object.assign({}, o), { raw: !0 }), this);
|
|
440
|
-
return typeof a == "string" ? G.parse(a) : a;
|
|
441
|
-
}
|
|
442
|
-
translateConnectionPoints(t, n) {
|
|
443
|
-
this.sourcePoint.translate(t, n), this.targetPoint.translate(t, n), this.sourceAnchor.translate(t, n), this.targetAnchor.translate(t, n), this.sourceMarkerPoint.translate(t, n), this.targetMarkerPoint.translate(t, n);
|
|
444
|
-
}
|
|
445
|
-
updateLabelPositions() {
|
|
446
|
-
if (this.labelContainer == null)
|
|
447
|
-
return this;
|
|
448
|
-
if (!this.path)
|
|
449
|
-
return this;
|
|
450
|
-
const n = this.cell, e = n.getLabels();
|
|
451
|
-
if (e.length === 0)
|
|
452
|
-
return this;
|
|
453
|
-
const i = n.getDefaultLabel(), s = this.normalizeLabelPosition(i.position);
|
|
454
|
-
for (let o = 0, r = e.length; o < r; o += 1) {
|
|
455
|
-
const a = e[o], l = this.labelCache[o];
|
|
456
|
-
if (!l)
|
|
457
|
-
continue;
|
|
458
|
-
const c = this.normalizeLabelPosition(a.position), g = N({}, s, c), h = this.getLabelTransformationMatrix(g);
|
|
459
|
-
l.setAttribute("transform", X(h));
|
|
460
|
-
}
|
|
461
|
-
return this;
|
|
462
|
-
}
|
|
463
|
-
updateTerminalProperties(t) {
|
|
464
|
-
const n = this.cell, e = this.graph, i = n[t], s = i && i.cell, o = `${t}View`;
|
|
465
|
-
if (!s)
|
|
466
|
-
return this[o] = null, this.updateTerminalMagnet(t), !0;
|
|
467
|
-
const r = e.getCellById(s);
|
|
468
|
-
if (!r)
|
|
469
|
-
throw new Error(`Edge's ${t} node with id "${s}" not exists`);
|
|
470
|
-
const a = r.findView(e);
|
|
471
|
-
return a ? (this[o] = a, this.updateTerminalMagnet(t), !0) : !1;
|
|
472
|
-
}
|
|
473
|
-
updateTerminalMagnet(t) {
|
|
474
|
-
const n = `${t}Magnet`, e = this.getTerminalView(t);
|
|
475
|
-
if (e) {
|
|
476
|
-
let i = e.getMagnetFromEdgeTerminal(this.cell[t]);
|
|
477
|
-
i === e.container && (i = null), this[n] = i;
|
|
478
|
-
} else
|
|
479
|
-
this[n] = null;
|
|
480
|
-
}
|
|
481
|
-
getLabelPositionAngle(t) {
|
|
482
|
-
const n = this.cell.getLabelAt(t);
|
|
483
|
-
return n && n.position && typeof n.position == "object" && n.position.angle || 0;
|
|
484
|
-
}
|
|
485
|
-
getLabelPositionArgs(t) {
|
|
486
|
-
const n = this.cell.getLabelAt(t);
|
|
487
|
-
if (n && n.position && typeof n.position == "object")
|
|
488
|
-
return n.position.options;
|
|
489
|
-
}
|
|
490
|
-
getDefaultLabelPositionArgs() {
|
|
491
|
-
const t = this.cell.getDefaultLabel();
|
|
492
|
-
if (t && t.position && typeof t.position == "object")
|
|
493
|
-
return t.position.options;
|
|
494
|
-
}
|
|
495
|
-
mergeLabelPositionArgs(t, n) {
|
|
496
|
-
return t === null ? null : t === void 0 ? n === null ? null : n : N({}, n, t);
|
|
497
|
-
}
|
|
498
|
-
// #endregion
|
|
499
|
-
getConnection() {
|
|
500
|
-
return this.path != null ? this.path.clone() : null;
|
|
501
|
-
}
|
|
502
|
-
getConnectionPathData() {
|
|
503
|
-
if (this.path == null)
|
|
504
|
-
return "";
|
|
505
|
-
const t = this.cache.pathCache;
|
|
506
|
-
return T(t, "data") || (t.data = this.path.serialize()), t.data || "";
|
|
507
|
-
}
|
|
508
|
-
getConnectionSubdivisions() {
|
|
509
|
-
if (this.path == null)
|
|
510
|
-
return null;
|
|
511
|
-
const t = this.cache.pathCache;
|
|
512
|
-
return T(t, "segmentSubdivisions") || (t.segmentSubdivisions = this.path.getSegmentSubdivisions()), t.segmentSubdivisions;
|
|
513
|
-
}
|
|
514
|
-
getConnectionLength() {
|
|
515
|
-
if (this.path == null)
|
|
516
|
-
return 0;
|
|
517
|
-
const t = this.cache.pathCache;
|
|
518
|
-
return T(t, "length") || (t.length = this.path.length({
|
|
519
|
-
segmentSubdivisions: this.getConnectionSubdivisions()
|
|
520
|
-
})), t.length;
|
|
521
|
-
}
|
|
522
|
-
getPointAtLength(t) {
|
|
523
|
-
return this.path == null ? null : this.path.pointAtLength(t, {
|
|
524
|
-
segmentSubdivisions: this.getConnectionSubdivisions()
|
|
525
|
-
});
|
|
526
|
-
}
|
|
527
|
-
getPointAtRatio(t) {
|
|
528
|
-
return this.path == null ? null : (J(t) && (t = parseFloat(t) / 100), this.path.pointAt(t, {
|
|
529
|
-
segmentSubdivisions: this.getConnectionSubdivisions()
|
|
530
|
-
}));
|
|
531
|
-
}
|
|
532
|
-
getTangentAtLength(t) {
|
|
533
|
-
return this.path == null ? null : this.path.tangentAtLength(t, {
|
|
534
|
-
segmentSubdivisions: this.getConnectionSubdivisions()
|
|
535
|
-
});
|
|
536
|
-
}
|
|
537
|
-
getTangentAtRatio(t) {
|
|
538
|
-
return this.path == null ? null : this.path.tangentAt(t, {
|
|
539
|
-
segmentSubdivisions: this.getConnectionSubdivisions()
|
|
540
|
-
});
|
|
541
|
-
}
|
|
542
|
-
getClosestPoint(t) {
|
|
543
|
-
return this.path == null ? null : this.path.closestPoint(t, {
|
|
544
|
-
segmentSubdivisions: this.getConnectionSubdivisions()
|
|
545
|
-
});
|
|
546
|
-
}
|
|
547
|
-
getClosestPointLength(t) {
|
|
548
|
-
return this.path == null ? null : this.path.closestPointLength(t, {
|
|
549
|
-
segmentSubdivisions: this.getConnectionSubdivisions()
|
|
550
|
-
});
|
|
551
|
-
}
|
|
552
|
-
getClosestPointRatio(t) {
|
|
553
|
-
return this.path == null ? null : this.path.closestPointNormalizedLength(t, {
|
|
554
|
-
segmentSubdivisions: this.getConnectionSubdivisions()
|
|
555
|
-
});
|
|
556
|
-
}
|
|
557
|
-
getLabelPosition(t, n, e, i) {
|
|
558
|
-
const s = { distance: 0 };
|
|
559
|
-
let o = 0, r;
|
|
560
|
-
typeof e == "number" ? (o = e, r = i) : r = e, r != null && (s.options = r);
|
|
561
|
-
const a = r && r.absoluteOffset, l = !(r && r.absoluteDistance), c = r && r.absoluteDistance && r.reverseDistance, g = this.path, h = {
|
|
562
|
-
segmentSubdivisions: this.getConnectionSubdivisions()
|
|
563
|
-
}, f = new A(t, n), u = g.closestPointT(f, h), w = this.getConnectionLength() || 0;
|
|
564
|
-
let d = g.lengthAtT(u, h);
|
|
565
|
-
l && (d = w > 0 ? d / w : 0), c && (d = -1 * (w - d) || 1), s.distance = d;
|
|
566
|
-
let m;
|
|
567
|
-
a || (m = g.tangentAtT(u));
|
|
568
|
-
let p;
|
|
569
|
-
if (m)
|
|
570
|
-
p = m.pointOffset(f);
|
|
571
|
-
else {
|
|
572
|
-
const C = g.pointAtT(u), b = f.diff(C);
|
|
573
|
-
p = { x: b.x, y: b.y };
|
|
574
|
-
}
|
|
575
|
-
return s.offset = p, s.angle = o, s;
|
|
576
|
-
}
|
|
577
|
-
normalizeLabelPosition(t) {
|
|
578
|
-
return typeof t == "number" ? { distance: t } : t;
|
|
579
|
-
}
|
|
580
|
-
getLabelTransformationMatrix(t) {
|
|
581
|
-
const n = this.normalizeLabelPosition(t), e = n.options || {}, i = n.angle || 0, s = n.distance, o = s > 0 && s <= 1;
|
|
582
|
-
let r = 0;
|
|
583
|
-
const a = { x: 0, y: 0 }, l = n.offset;
|
|
584
|
-
l && (typeof l == "number" ? r = l : (l.x != null && (a.x = l.x), l.y != null && (a.y = l.y)));
|
|
585
|
-
const c = a.x !== 0 || a.y !== 0 || r === 0, g = e.keepGradient, h = e.ensureLegibility, f = this.path, u = { segmentSubdivisions: this.getConnectionSubdivisions() }, w = o ? s * this.getConnectionLength() : s, d = f.tangentAtLength(w, u);
|
|
586
|
-
let m, p = i;
|
|
587
|
-
if (d) {
|
|
588
|
-
if (c)
|
|
589
|
-
m = d.start, m.translate(a);
|
|
590
|
-
else {
|
|
591
|
-
const C = d.clone();
|
|
592
|
-
C.rotate(-90, d.start), C.setLength(r), m = C.end;
|
|
593
|
-
}
|
|
594
|
-
g && (p = d.angle() + i, h && (p = _.normalize((p + 90) % 180 - 90)));
|
|
595
|
-
} else
|
|
596
|
-
m = f.start, c && m.translate(a);
|
|
597
|
-
return K().translate(m.x, m.y).rotate(p);
|
|
598
|
-
}
|
|
599
|
-
getVertexIndex(t, n) {
|
|
600
|
-
const i = this.cell.getVertices(), s = this.getClosestPointLength(new A(t, n));
|
|
601
|
-
let o = 0;
|
|
602
|
-
if (s != null)
|
|
603
|
-
for (const r = i.length; o < r; o += 1) {
|
|
604
|
-
const a = i[o], l = this.getClosestPointLength(a);
|
|
605
|
-
if (l != null && s < l)
|
|
606
|
-
break;
|
|
607
|
-
}
|
|
608
|
-
return o;
|
|
609
|
-
}
|
|
610
|
-
getEventArgs(t, n, e) {
|
|
611
|
-
const i = this, s = i.cell, o = s;
|
|
612
|
-
return n == null || e == null ? { e: t, view: i, edge: s, cell: o } : { e: t, x: n, y: e, view: i, edge: s, cell: o };
|
|
613
|
-
}
|
|
614
|
-
notifyUnhandledMouseDown(t, n, e) {
|
|
615
|
-
this.notify("edge:unhandled:mousedown", {
|
|
616
|
-
e: t,
|
|
617
|
-
x: n,
|
|
618
|
-
y: e,
|
|
619
|
-
view: this,
|
|
620
|
-
cell: this.cell,
|
|
621
|
-
edge: this.cell
|
|
622
|
-
});
|
|
623
|
-
}
|
|
624
|
-
notifyMouseDown(t, n, e) {
|
|
625
|
-
super.onMouseDown(t, n, e), this.notify("edge:mousedown", this.getEventArgs(t, n, e));
|
|
626
|
-
}
|
|
627
|
-
notifyMouseMove(t, n, e) {
|
|
628
|
-
super.onMouseMove(t, n, e), this.notify("edge:mousemove", this.getEventArgs(t, n, e));
|
|
629
|
-
}
|
|
630
|
-
notifyMouseUp(t, n, e) {
|
|
631
|
-
super.onMouseUp(t, n, e), this.notify("edge:mouseup", this.getEventArgs(t, n, e));
|
|
632
|
-
}
|
|
633
|
-
onClick(t, n, e) {
|
|
634
|
-
super.onClick(t, n, e), this.notify("edge:click", this.getEventArgs(t, n, e));
|
|
635
|
-
}
|
|
636
|
-
onDblClick(t, n, e) {
|
|
637
|
-
super.onDblClick(t, n, e), this.notify("edge:dblclick", this.getEventArgs(t, n, e));
|
|
638
|
-
}
|
|
639
|
-
onContextMenu(t, n, e) {
|
|
640
|
-
super.onContextMenu(t, n, e), this.notify("edge:contextmenu", this.getEventArgs(t, n, e));
|
|
641
|
-
}
|
|
642
|
-
onMouseDown(t, n, e) {
|
|
643
|
-
this.notifyMouseDown(t, n, e), this.startEdgeDragging(t, n, e);
|
|
644
|
-
}
|
|
645
|
-
onMouseMove(t, n, e) {
|
|
646
|
-
const i = this.getEventData(t);
|
|
647
|
-
switch (i.action) {
|
|
648
|
-
case "drag-label": {
|
|
649
|
-
this.dragLabel(t, n, e);
|
|
650
|
-
break;
|
|
651
|
-
}
|
|
652
|
-
case "drag-arrowhead": {
|
|
653
|
-
this.dragArrowhead(t, n, e);
|
|
654
|
-
break;
|
|
655
|
-
}
|
|
656
|
-
case "drag-edge": {
|
|
657
|
-
this.dragEdge(t, n, e);
|
|
658
|
-
break;
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
return this.notifyMouseMove(t, n, e), i;
|
|
662
|
-
}
|
|
663
|
-
onMouseUp(t, n, e) {
|
|
664
|
-
const i = this.getEventData(t);
|
|
665
|
-
switch (i.action) {
|
|
666
|
-
case "drag-label": {
|
|
667
|
-
this.stopLabelDragging(t, n, e);
|
|
668
|
-
break;
|
|
669
|
-
}
|
|
670
|
-
case "drag-arrowhead": {
|
|
671
|
-
this.stopArrowheadDragging(t, n, e);
|
|
672
|
-
break;
|
|
673
|
-
}
|
|
674
|
-
case "drag-edge": {
|
|
675
|
-
this.stopEdgeDragging(t, n, e);
|
|
676
|
-
break;
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
return this.notifyMouseUp(t, n, e), this.checkMouseleave(t), i;
|
|
680
|
-
}
|
|
681
|
-
onMouseOver(t) {
|
|
682
|
-
super.onMouseOver(t), this.notify("edge:mouseover", this.getEventArgs(t));
|
|
683
|
-
}
|
|
684
|
-
onMouseOut(t) {
|
|
685
|
-
super.onMouseOut(t), this.notify("edge:mouseout", this.getEventArgs(t));
|
|
686
|
-
}
|
|
687
|
-
onMouseEnter(t) {
|
|
688
|
-
super.onMouseEnter(t), this.notify("edge:mouseenter", this.getEventArgs(t));
|
|
689
|
-
}
|
|
690
|
-
onMouseLeave(t) {
|
|
691
|
-
super.onMouseLeave(t), this.notify("edge:mouseleave", this.getEventArgs(t));
|
|
692
|
-
}
|
|
693
|
-
onMouseWheel(t, n, e, i) {
|
|
694
|
-
super.onMouseWheel(t, n, e, i), this.notify("edge:mousewheel", Object.assign({ delta: i }, this.getEventArgs(t, n, e)));
|
|
695
|
-
}
|
|
696
|
-
onCustomEvent(t, n, e, i) {
|
|
697
|
-
if (q(t.target, "edge-tool", this.container)) {
|
|
698
|
-
if (t.stopPropagation(), this.can("useEdgeTools")) {
|
|
699
|
-
if (n === "edge:remove") {
|
|
700
|
-
this.cell.remove({ ui: !0 });
|
|
701
|
-
return;
|
|
702
|
-
}
|
|
703
|
-
this.notify("edge:customevent", Object.assign({ name: n }, this.getEventArgs(t, e, i)));
|
|
704
|
-
}
|
|
705
|
-
this.notifyMouseDown(t, e, i);
|
|
706
|
-
} else
|
|
707
|
-
this.notify("edge:customevent", Object.assign({ name: n }, this.getEventArgs(t, e, i))), super.onCustomEvent(t, n, e, i);
|
|
708
|
-
}
|
|
709
|
-
onLabelMouseDown(t, n, e) {
|
|
710
|
-
this.notifyMouseDown(t, n, e), this.startLabelDragging(t, n, e), this.getEventData(t).stopPropagation && t.stopPropagation();
|
|
711
|
-
}
|
|
712
|
-
// #region drag edge
|
|
713
|
-
startEdgeDragging(t, n, e) {
|
|
714
|
-
if (!this.can("edgeMovable")) {
|
|
715
|
-
this.notifyUnhandledMouseDown(t, n, e);
|
|
716
|
-
return;
|
|
717
|
-
}
|
|
718
|
-
this.setEventData(t, {
|
|
719
|
-
x: n,
|
|
720
|
-
y: e,
|
|
721
|
-
moving: !1,
|
|
722
|
-
action: "drag-edge"
|
|
723
|
-
});
|
|
724
|
-
}
|
|
725
|
-
dragEdge(t, n, e) {
|
|
726
|
-
const i = this.getEventData(t);
|
|
727
|
-
i.moving || (i.moving = !0, this.addClass("edge-moving"), this.notify("edge:move", {
|
|
728
|
-
e: t,
|
|
729
|
-
x: n,
|
|
730
|
-
y: e,
|
|
731
|
-
view: this,
|
|
732
|
-
cell: this.cell,
|
|
733
|
-
edge: this.cell
|
|
734
|
-
})), this.cell.translate(n - i.x, e - i.y, { ui: !0 }), this.setEventData(t, { x: n, y: e }), this.notify("edge:moving", {
|
|
735
|
-
e: t,
|
|
736
|
-
x: n,
|
|
737
|
-
y: e,
|
|
738
|
-
view: this,
|
|
739
|
-
cell: this.cell,
|
|
740
|
-
edge: this.cell
|
|
741
|
-
});
|
|
742
|
-
}
|
|
743
|
-
stopEdgeDragging(t, n, e) {
|
|
744
|
-
const i = this.getEventData(t);
|
|
745
|
-
i.moving && (this.removeClass("edge-moving"), this.notify("edge:moved", {
|
|
746
|
-
e: t,
|
|
747
|
-
x: n,
|
|
748
|
-
y: e,
|
|
749
|
-
view: this,
|
|
750
|
-
cell: this.cell,
|
|
751
|
-
edge: this.cell
|
|
752
|
-
})), i.moving = !1;
|
|
753
|
-
}
|
|
754
|
-
// #endregion
|
|
755
|
-
// #region drag arrowhead
|
|
756
|
-
prepareArrowheadDragging(t, n) {
|
|
757
|
-
const e = this.getTerminalMagnet(t), i = {
|
|
758
|
-
action: "drag-arrowhead",
|
|
759
|
-
x: n.x,
|
|
760
|
-
y: n.y,
|
|
761
|
-
isNewEdge: n.isNewEdge === !0,
|
|
762
|
-
terminalType: t,
|
|
763
|
-
initialMagnet: e,
|
|
764
|
-
initialTerminal: Y(this.cell[t]),
|
|
765
|
-
fallbackAction: n.fallbackAction || "revert",
|
|
766
|
-
getValidateConnectionArgs: this.createValidateConnectionArgs(t),
|
|
767
|
-
options: n.options
|
|
768
|
-
};
|
|
769
|
-
return this.beforeArrowheadDragging(i), i;
|
|
770
|
-
}
|
|
771
|
-
createValidateConnectionArgs(t) {
|
|
772
|
-
const n = [];
|
|
773
|
-
n[4] = t, n[5] = this;
|
|
774
|
-
let e, i = 0, s = 0;
|
|
775
|
-
t === "source" ? (i = 2, e = "target") : (s = 2, e = "source");
|
|
776
|
-
const o = this.cell[e], r = o.cell;
|
|
777
|
-
if (r) {
|
|
778
|
-
let a;
|
|
779
|
-
const l = n[i] = this.graph.findViewByCell(r);
|
|
780
|
-
l && (a = l.getMagnetFromEdgeTerminal(o), a === l.container && (a = void 0)), n[i + 1] = a;
|
|
781
|
-
}
|
|
782
|
-
return (a, l) => (n[s] = a, n[s + 1] = a.container === l ? void 0 : l, n);
|
|
783
|
-
}
|
|
784
|
-
beforeArrowheadDragging(t) {
|
|
785
|
-
t.zIndex = this.cell.zIndex, this.cell.toFront();
|
|
786
|
-
const n = this.container.style;
|
|
787
|
-
t.pointerEvents = n.pointerEvents, n.pointerEvents = "none", this.graph.options.connecting.highlight && this.highlightAvailableMagnets(t);
|
|
788
|
-
}
|
|
789
|
-
afterArrowheadDragging(t) {
|
|
790
|
-
t.zIndex != null && (this.cell.setZIndex(t.zIndex, { ui: !0 }), t.zIndex = null);
|
|
791
|
-
const n = this.container;
|
|
792
|
-
n.style.pointerEvents = t.pointerEvents || "", this.graph.options.connecting.highlight && this.unhighlightAvailableMagnets(t);
|
|
793
|
-
}
|
|
794
|
-
validateConnection(t, n, e, i, s, o, r) {
|
|
795
|
-
const a = this.graph.options.connecting, l = a.allowLoop, c = a.allowNode, g = a.allowEdge, h = a.allowPort, f = a.allowMulti, u = a.validateConnection, w = o ? o.cell : null, d = s === "target" ? e : t, m = s === "target" ? i : n;
|
|
796
|
-
let p = !0;
|
|
797
|
-
const C = (b) => {
|
|
798
|
-
const v = s === "source" ? r ? r.port : null : w ? w.getSourcePortId() : null, y = s === "target" ? r ? r.port : null : w ? w.getTargetPortId() : null;
|
|
799
|
-
return P(b, this.graph, {
|
|
800
|
-
edge: w,
|
|
801
|
-
edgeView: o,
|
|
802
|
-
sourceView: t,
|
|
803
|
-
targetView: e,
|
|
804
|
-
sourcePort: v,
|
|
805
|
-
targetPort: y,
|
|
806
|
-
sourceMagnet: n,
|
|
807
|
-
targetMagnet: i,
|
|
808
|
-
sourceCell: t ? t.cell : null,
|
|
809
|
-
targetCell: e ? e.cell : null,
|
|
810
|
-
type: s
|
|
811
|
-
});
|
|
812
|
-
};
|
|
813
|
-
if (l != null && (typeof l == "boolean" ? !l && t === e && (p = !1) : p = C(l)), p && h != null && (typeof h == "boolean" ? !h && m && (p = !1) : p = C(h)), p && g != null && (typeof g == "boolean" ? !g && E.isEdgeView(d) && (p = !1) : p = C(g)), p && c != null && m == null && (typeof c == "boolean" ? !c && Q.isNodeView(d) && (p = !1) : p = C(c)), p && f != null && o) {
|
|
814
|
-
const b = o.cell, v = s === "source" ? r : b.getSource(), y = s === "target" ? r : b.getTarget(), I = r ? this.graph.getCellById(r.cell) : null;
|
|
815
|
-
if (v && y && v.cell && y.cell && I)
|
|
816
|
-
if (typeof f == "function")
|
|
817
|
-
p = C(f);
|
|
818
|
-
else {
|
|
819
|
-
const O = this.graph.model.getConnectedEdges(I, {
|
|
820
|
-
outgoing: s === "source",
|
|
821
|
-
incoming: s === "target"
|
|
822
|
-
});
|
|
823
|
-
O.length && (f === "withPort" ? O.some((V) => {
|
|
824
|
-
const L = V.getSource(), D = V.getTarget();
|
|
825
|
-
return L && D && L.cell === v.cell && D.cell === y.cell && L.port != null && L.port === v.port && D.port != null && D.port === y.port;
|
|
826
|
-
}) && (p = !1) : f || O.some((V) => {
|
|
827
|
-
const L = V.getSource(), D = V.getTarget();
|
|
828
|
-
return L && D && L.cell === v.cell && D.cell === y.cell;
|
|
829
|
-
}) && (p = !1));
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
return p && u != null && (p = C(u)), p;
|
|
833
|
-
}
|
|
834
|
-
allowConnectToBlank(t) {
|
|
835
|
-
const n = this.graph, i = n.options.connecting.allowBlank;
|
|
836
|
-
if (typeof i != "function")
|
|
837
|
-
return !!i;
|
|
838
|
-
const s = n.findViewByCell(t), o = t.getSourceCell(), r = t.getTargetCell(), a = n.findViewByCell(o), l = n.findViewByCell(r);
|
|
839
|
-
return P(i, n, {
|
|
840
|
-
edge: t,
|
|
841
|
-
edgeView: s,
|
|
842
|
-
sourceCell: o,
|
|
843
|
-
targetCell: r,
|
|
844
|
-
sourceView: a,
|
|
845
|
-
targetView: l,
|
|
846
|
-
sourcePort: t.getSourcePortId(),
|
|
847
|
-
targetPort: t.getTargetPortId(),
|
|
848
|
-
sourceMagnet: s.sourceMagnet,
|
|
849
|
-
targetMagnet: s.targetMagnet
|
|
850
|
-
});
|
|
851
|
-
}
|
|
852
|
-
validateEdge(t, n, e) {
|
|
853
|
-
const i = this.graph;
|
|
854
|
-
if (!this.allowConnectToBlank(t)) {
|
|
855
|
-
const o = t.getSourceCellId(), r = t.getTargetCellId();
|
|
856
|
-
if (!(o && r))
|
|
857
|
-
return !1;
|
|
858
|
-
}
|
|
859
|
-
const s = i.options.connecting.validateEdge;
|
|
860
|
-
return s ? P(s, i, {
|
|
861
|
-
edge: t,
|
|
862
|
-
type: n,
|
|
863
|
-
previous: e
|
|
864
|
-
}) : !0;
|
|
865
|
-
}
|
|
866
|
-
arrowheadDragging(t, n, e, i) {
|
|
867
|
-
i.x = n, i.y = e, i.currentTarget !== t && (i.currentMagnet && i.currentView && i.currentView.unhighlight(i.currentMagnet, {
|
|
868
|
-
type: "magnetAdsorbed"
|
|
869
|
-
}), i.currentView = this.graph.findViewByElem(t), i.currentView ? (i.currentMagnet = i.currentView.findMagnet(t), i.currentMagnet && this.validateConnection(...i.getValidateConnectionArgs(i.currentView, i.currentMagnet), i.currentView.getEdgeTerminal(i.currentMagnet, n, e, this.cell, i.terminalType)) ? i.currentView.highlight(i.currentMagnet, {
|
|
870
|
-
type: "magnetAdsorbed"
|
|
871
|
-
}) : i.currentMagnet = null) : i.currentMagnet = null), i.currentTarget = t, this.cell.prop(i.terminalType, { x: n, y: e }, Object.assign(Object.assign({}, i.options), { ui: !0 }));
|
|
872
|
-
}
|
|
873
|
-
arrowheadDragged(t, n, e) {
|
|
874
|
-
const i = t.currentView, s = t.currentMagnet;
|
|
875
|
-
if (!s || !i)
|
|
876
|
-
return;
|
|
877
|
-
i.unhighlight(s, { type: "magnetAdsorbed" });
|
|
878
|
-
const o = t.terminalType, r = i.getEdgeTerminal(s, n, e, this.cell, o);
|
|
879
|
-
this.cell.setTerminal(o, r, { ui: !0 });
|
|
880
|
-
}
|
|
881
|
-
snapArrowhead(t, n, e) {
|
|
882
|
-
const i = this.graph, { snap: s, allowEdge: o } = i.options.connecting, r = typeof s == "object" && s.radius || 50, a = typeof s == "object" && s.anchor || "center", l = i.renderer.findViewsInArea({
|
|
883
|
-
x: t - r,
|
|
884
|
-
y: n - r,
|
|
885
|
-
width: 2 * r,
|
|
886
|
-
height: 2 * r
|
|
887
|
-
}, { nodeOnly: !0 });
|
|
888
|
-
if (o) {
|
|
889
|
-
const b = i.renderer.findEdgeViewsFromPoint({ x: t, y: n }, r).filter((v) => v !== this);
|
|
890
|
-
l.push(...b);
|
|
891
|
-
}
|
|
892
|
-
const c = e.closestView || null, g = e.closestMagnet || null;
|
|
893
|
-
e.closestView = null, e.closestMagnet = null;
|
|
894
|
-
let h, f = Number.MAX_SAFE_INTEGER;
|
|
895
|
-
const u = new A(t, n);
|
|
896
|
-
l.forEach((b) => {
|
|
897
|
-
if (b.container.getAttribute("magnet") !== "false") {
|
|
898
|
-
if (b.isNodeView())
|
|
899
|
-
h = a === "center" ? b.cell.getBBox().getCenter().distance(u) : b.cell.getBBox().getNearestPointToPoint(u).distance(u);
|
|
900
|
-
else if (b.isEdgeView()) {
|
|
901
|
-
const v = b.getClosestPoint(u);
|
|
902
|
-
v ? h = v.distance(u) : h = Number.MAX_SAFE_INTEGER;
|
|
903
|
-
}
|
|
904
|
-
h < r && h < f && (g === b.container || this.validateConnection(...e.getValidateConnectionArgs(b, null), b.getEdgeTerminal(b.container, t, n, this.cell, e.terminalType))) && (f = h, e.closestView = b, e.closestMagnet = b.container);
|
|
905
|
-
}
|
|
906
|
-
b.container.querySelectorAll("[magnet]").forEach((v) => {
|
|
907
|
-
if (v.getAttribute("magnet") !== "false") {
|
|
908
|
-
const y = b.getBBoxOfElement(v);
|
|
909
|
-
h = u.distance(y.getCenter()), h < r && h < f && (g === v || this.validateConnection(...e.getValidateConnectionArgs(b, v), b.getEdgeTerminal(v, t, n, this.cell, e.terminalType))) && (f = h, e.closestView = b, e.closestMagnet = v);
|
|
910
|
-
}
|
|
911
|
-
});
|
|
912
|
-
});
|
|
913
|
-
let w;
|
|
914
|
-
const d = e.terminalType, m = e.closestView, p = e.closestMagnet, C = g !== p;
|
|
915
|
-
if (c && C && c.unhighlight(g, {
|
|
916
|
-
type: "magnetAdsorbed"
|
|
917
|
-
}), m) {
|
|
918
|
-
if (!C)
|
|
919
|
-
return;
|
|
920
|
-
m.highlight(p, {
|
|
921
|
-
type: "magnetAdsorbed"
|
|
922
|
-
}), w = m.getEdgeTerminal(p, t, n, this.cell, d);
|
|
923
|
-
} else
|
|
924
|
-
w = { x: t, y: n };
|
|
925
|
-
this.cell.setTerminal(d, w, {}, Object.assign(Object.assign({}, e.options), { ui: !0 }));
|
|
926
|
-
}
|
|
927
|
-
snapArrowheadEnd(t) {
|
|
928
|
-
const n = t.closestView, e = t.closestMagnet;
|
|
929
|
-
n && e && (n.unhighlight(e, {
|
|
930
|
-
type: "magnetAdsorbed"
|
|
931
|
-
}), t.currentMagnet = n.findMagnet(e)), t.closestView = null, t.closestMagnet = null;
|
|
932
|
-
}
|
|
933
|
-
finishEmbedding(t) {
|
|
934
|
-
this.graph.options.embedding.enabled && this.cell.updateParent() && (t.zIndex = null);
|
|
935
|
-
}
|
|
936
|
-
fallbackConnection(t) {
|
|
937
|
-
switch (t.fallbackAction) {
|
|
938
|
-
case "remove":
|
|
939
|
-
this.cell.remove({ ui: !0 });
|
|
940
|
-
break;
|
|
941
|
-
case "revert":
|
|
942
|
-
default:
|
|
943
|
-
this.cell.prop(t.terminalType, t.initialTerminal, {
|
|
944
|
-
ui: !0
|
|
945
|
-
});
|
|
946
|
-
break;
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
notifyConnectionEvent(t, n) {
|
|
950
|
-
const e = t.terminalType, i = t.initialTerminal, s = this.cell[e];
|
|
951
|
-
if (s && !Z.equalTerminals(i, s)) {
|
|
952
|
-
const r = this.graph, a = i, l = a.cell ? r.getCellById(a.cell) : null, c = a.port, g = l ? r.findViewByCell(l) : null, h = l || t.isNewEdge ? null : A.create(i).toJSON(), f = s, u = f.cell ? r.getCellById(f.cell) : null, w = f.port, d = u ? r.findViewByCell(u) : null, m = u ? null : A.create(s).toJSON();
|
|
953
|
-
this.notify("edge:connected", {
|
|
954
|
-
e: n,
|
|
955
|
-
previousCell: l,
|
|
956
|
-
previousPort: c,
|
|
957
|
-
previousView: g,
|
|
958
|
-
previousPoint: h,
|
|
959
|
-
currentCell: u,
|
|
960
|
-
currentView: d,
|
|
961
|
-
currentPort: w,
|
|
962
|
-
currentPoint: m,
|
|
963
|
-
previousMagnet: t.initialMagnet,
|
|
964
|
-
currentMagnet: t.currentMagnet,
|
|
965
|
-
edge: this.cell,
|
|
966
|
-
view: this,
|
|
967
|
-
type: e,
|
|
968
|
-
isNew: t.isNewEdge
|
|
969
|
-
});
|
|
970
|
-
}
|
|
971
|
-
}
|
|
972
|
-
highlightAvailableMagnets(t) {
|
|
973
|
-
const n = this.graph, e = n.model.getCells();
|
|
974
|
-
t.marked = {};
|
|
975
|
-
for (let i = 0, s = e.length; i < s; i += 1) {
|
|
976
|
-
const o = n.findViewByCell(e[i]);
|
|
977
|
-
if (!o || o.cell.id === this.cell.id)
|
|
978
|
-
continue;
|
|
979
|
-
const r = Array.prototype.slice.call(o.container.querySelectorAll("[magnet]"));
|
|
980
|
-
o.container.getAttribute("magnet") !== "false" && r.push(o.container);
|
|
981
|
-
const a = r.filter((l) => this.validateConnection(...t.getValidateConnectionArgs(o, l), o.getEdgeTerminal(l, t.x, t.y, this.cell, t.terminalType)));
|
|
982
|
-
if (a.length > 0) {
|
|
983
|
-
for (let l = 0, c = a.length; l < c; l += 1)
|
|
984
|
-
o.highlight(a[l], { type: "magnetAvailable" });
|
|
985
|
-
o.highlight(null, { type: "nodeAvailable" }), t.marked[o.cell.id] = a;
|
|
986
|
-
}
|
|
987
|
-
}
|
|
988
|
-
}
|
|
989
|
-
unhighlightAvailableMagnets(t) {
|
|
990
|
-
const n = t.marked || {};
|
|
991
|
-
Object.keys(n).forEach((e) => {
|
|
992
|
-
const i = this.graph.findViewByCell(e);
|
|
993
|
-
i && (n[e].forEach((o) => {
|
|
994
|
-
i.unhighlight(o, { type: "magnetAvailable" });
|
|
995
|
-
}), i.unhighlight(null, { type: "nodeAvailable" }));
|
|
996
|
-
}), t.marked = null;
|
|
997
|
-
}
|
|
998
|
-
startArrowheadDragging(t, n, e) {
|
|
999
|
-
if (!this.can("arrowheadMovable")) {
|
|
1000
|
-
this.notifyUnhandledMouseDown(t, n, e);
|
|
1001
|
-
return;
|
|
1002
|
-
}
|
|
1003
|
-
const s = t.target.getAttribute("data-terminal"), o = this.prepareArrowheadDragging(s, { x: n, y: e });
|
|
1004
|
-
this.setEventData(t, o);
|
|
1005
|
-
}
|
|
1006
|
-
dragArrowhead(t, n, e) {
|
|
1007
|
-
const i = this.getEventData(t);
|
|
1008
|
-
this.graph.options.connecting.snap ? this.snapArrowhead(n, e, i) : this.arrowheadDragging(this.getEventTarget(t), n, e, i);
|
|
1009
|
-
}
|
|
1010
|
-
stopArrowheadDragging(t, n, e) {
|
|
1011
|
-
const i = this.graph, s = this.getEventData(t);
|
|
1012
|
-
i.options.connecting.snap ? this.snapArrowheadEnd(s) : this.arrowheadDragged(s, n, e), this.validateEdge(this.cell, s.terminalType, s.initialTerminal) ? (this.finishEmbedding(s), this.notifyConnectionEvent(s, t)) : this.fallbackConnection(s), this.afterArrowheadDragging(s);
|
|
1013
|
-
}
|
|
1014
|
-
// #endregion
|
|
1015
|
-
// #region drag lable
|
|
1016
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1017
|
-
startLabelDragging(t, n, e) {
|
|
1018
|
-
if (this.can("edgeLabelMovable")) {
|
|
1019
|
-
const i = t.currentTarget, s = parseInt(i.getAttribute("data-index"), 10), o = this.getLabelPositionAngle(s), r = this.getLabelPositionArgs(s), a = this.getDefaultLabelPositionArgs(), l = this.mergeLabelPositionArgs(r, a);
|
|
1020
|
-
this.setEventData(t, {
|
|
1021
|
-
index: s,
|
|
1022
|
-
positionAngle: o,
|
|
1023
|
-
positionArgs: l,
|
|
1024
|
-
stopPropagation: !0,
|
|
1025
|
-
action: "drag-label"
|
|
1026
|
-
});
|
|
1027
|
-
} else
|
|
1028
|
-
this.setEventData(t, { stopPropagation: !0 });
|
|
1029
|
-
this.graph.view.delegateDragEvents(t, this);
|
|
1030
|
-
}
|
|
1031
|
-
dragLabel(t, n, e) {
|
|
1032
|
-
const i = this.getEventData(t), s = this.cell.getLabelAt(i.index), o = N({}, s, {
|
|
1033
|
-
position: this.getLabelPosition(n, e, i.positionAngle, i.positionArgs)
|
|
1034
|
-
});
|
|
1035
|
-
this.cell.setLabelAt(i.index, o);
|
|
1036
|
-
}
|
|
1037
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1038
|
-
stopLabelDragging(t, n, e) {
|
|
1039
|
-
}
|
|
1040
|
-
}
|
|
1041
|
-
(function(M) {
|
|
1042
|
-
M.toStringTag = `X6.${M.name}`;
|
|
1043
|
-
function t(n) {
|
|
1044
|
-
if (n == null)
|
|
1045
|
-
return !1;
|
|
1046
|
-
if (n instanceof M)
|
|
1047
|
-
return !0;
|
|
1048
|
-
const e = n[Symbol.toStringTag], i = n;
|
|
1049
|
-
return (e == null || e === M.toStringTag) && typeof i.isNodeView == "function" && typeof i.isEdgeView == "function" && typeof i.confirmUpdate == "function" && typeof i.update == "function" && typeof i.getConnection == "function";
|
|
1050
|
-
}
|
|
1051
|
-
M.isEdgeView = t;
|
|
1052
|
-
})(E || (E = {}));
|
|
1053
|
-
E.config({
|
|
1054
|
-
isSvgElement: !0,
|
|
1055
|
-
priority: 1,
|
|
1056
|
-
bootstrap: ["render", "source", "target"],
|
|
1057
|
-
actions: {
|
|
1058
|
-
view: ["render"],
|
|
1059
|
-
markup: ["render"],
|
|
1060
|
-
attrs: ["update"],
|
|
1061
|
-
source: ["source", "update"],
|
|
1062
|
-
target: ["target", "update"],
|
|
1063
|
-
router: ["update"],
|
|
1064
|
-
connector: ["update"],
|
|
1065
|
-
labels: ["labels"],
|
|
1066
|
-
defaultLabel: ["labels"],
|
|
1067
|
-
tools: ["tools"],
|
|
1068
|
-
vertices: ["vertices", "update"]
|
|
1069
|
-
}
|
|
1070
|
-
});
|
|
1071
|
-
E.registry.register("edge", E, !0);
|
|
1072
|
-
export {
|
|
1073
|
-
E as EdgeView
|
|
1074
|
-
};
|