@qy_better_lib/hooks 0.0.15 → 0.1.1
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/dist/@qy_better_lib/hooks.min.js +263 -2
- package/lib/_virtual/_cloneBuffer.js +4 -0
- package/lib/_virtual/_commonjs-dynamic-modules.js +6 -0
- package/lib/_virtual/_commonjsHelpers.js +8 -0
- package/lib/_virtual/_nodeUtil.js +4 -0
- package/lib/_virtual/index.js +7 -0
- package/lib/_virtual/isBuffer.js +4 -0
- package/lib/index.d.ts +4 -0
- package/lib/node_modules/@qy_better_lib/core/lib/directives/click-outside.js +8 -0
- package/lib/node_modules/@qy_better_lib/core/lib/utils/is.js +8 -0
- package/lib/node_modules/@qy_better_lib/core/lib/utils/object.js +15 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/config/index.js +11 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/background.js +134 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/base.js +37 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/coord.js +108 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/css.js +41 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/defs.js +115 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/graph.js +628 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/grid.js +143 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/highlight.js +111 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/mousewheel.js +80 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/options.js +150 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/panning.js +120 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/size.js +62 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/transform.js +255 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/view.js +404 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/graph/virtual-render.js +60 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/model/animation.js +81 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/model/cell.js +764 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/model/collection.js +163 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/model/edge.js +511 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/model/model.js +640 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/model/node.js +490 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/model/port.js +151 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/model/registry.js +19 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/model/store.js +159 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/align.js +49 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/connection.js +56 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/fill.js +28 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/filter.js +28 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/html.js +8 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/index.js +37 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/main.js +66 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/marker.js +82 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/port.js +8 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/raw.js +20 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/ref.js +167 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/stroke.js +33 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/style.js +29 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/text.js +105 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/attr/title.js +41 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/background/flip-x.js +9 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/background/flip-xy.js +9 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/background/flip-y.js +9 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/background/index.js +14 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/background/main.js +10 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/background/watermark.js +21 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-point/anchor.js +29 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-point/bbox.js +10 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-point/boundary.js +66 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-point/index.js +11 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-point/main.js +10 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-point/rect.js +33 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-point/util.js +50 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-strategy/index.js +11 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-strategy/main.js +7 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-strategy/noop.js +4 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connection-strategy/pin.js +54 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connector/index.js +11 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connector/jumpover.js +117 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connector/loop.js +25 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connector/main.js +12 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connector/normal.js +16 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connector/rounded.js +25 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/connector/smooth.js +26 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/edge-anchor/closest.js +18 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/edge-anchor/index.js +11 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/edge-anchor/length.js +7 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/edge-anchor/main.js +10 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/edge-anchor/orth.js +41 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/edge-anchor/ratio.js +7 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/blur.js +12 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/brightness.js +16 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/contrast.js +16 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/drop-shadow.js +22 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/gray-scale.js +12 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/highlight.js +16 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/hue-rotate.js +11 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/index.js +11 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/invert.js +16 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/main.js +24 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/outline.js +20 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/saturate.js +11 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/sepia.js +12 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/filter/util.js +10 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/grid/dot.js +37 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/grid/double-mesh.js +53 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/grid/fixed-dot.js +37 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/grid/index.js +51 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/grid/main.js +10 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/grid/mesh.js +36 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/highlighter/class.js +33 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/highlighter/index.js +20 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/highlighter/main.js +8 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/highlighter/opacity.js +31 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/highlighter/stroke.js +102 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/async.js +32 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/circle.js +36 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/classic.js +63 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/cross.js +26 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/diamond.js +26 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/ellipse.js +16 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/index.js +15 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/main.js +18 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/path.js +16 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/marker/util.js +22 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/node-anchor/bbox.js +39 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/node-anchor/index.js +11 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/node-anchor/main.js +18 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/node-anchor/middle-side.js +29 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/node-anchor/node-center.js +7 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/node-anchor/orth.js +25 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/node-anchor/util.js +54 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-label-layout/index.js +11 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-label-layout/inout.js +46 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-label-layout/main.js +16 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-label-layout/radial.js +29 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-label-layout/side.js +21 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-label-layout/util.js +36 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-layout/absolute.js +5 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-layout/ellipse.js +28 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-layout/index.js +11 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-layout/line.js +37 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-layout/main.js +13 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/port-layout/util.js +38 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/registry.js +80 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/er.js +33 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/index.js +11 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/loop.js +63 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/main.js +16 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/manhattan/index.js +27 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/manhattan/obstacle-map.js +74 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/manhattan/options.js +106 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/manhattan/router.js +115 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/manhattan/sorted-set.js +46 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/manhattan/util.js +127 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/metro.js +65 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/normal.js +6 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/oneside.js +42 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/orth.js +134 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/router/util.js +60 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/anchor.js +207 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/arrowhead.js +138 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/boundary.js +81 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/button.js +124 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/editor.js +218 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/index.js +70 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/segments.js +241 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/util.js +30 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/registry/tool/vertices.js +248 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/renderer/queueJob.js +69 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/renderer/renderer.js +96 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/renderer/scheduler.js +287 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/base.js +74 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/circle.js +10 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/edge.js +43 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/ellipse.js +11 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/html.js +128 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/image.js +12 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/path.js +63 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/poly.js +72 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/polygon.js +3 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/polyline.js +3 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/rect.js +9 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/text-block.js +122 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/shape/util.js +72 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/style/raw.js +163 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/util/index.js +231 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/view/attr.js +209 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/view/cache.js +56 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/view/cell.js +434 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/view/edge.js +1074 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/view/flag.js +45 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/view/markup.js +231 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/view/node.js +609 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/view/tool.js +239 -0
- package/lib/packages/hooks/node_modules/@antv/x6/es/view/view.js +261 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/algorithm/dijkstra.js +26 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/algorithm/priorityqueue.js +85 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/animation/interp.js +29 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/animation/timing.js +206 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/color/index.js +342 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/common/basecoat.js +24 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/common/disposable.js +92 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/css-loader/loader.js +29 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/datauri/index.js +98 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dictionary/dictionary.js +35 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/attr.js +94 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/class.js +55 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/css.js +49 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/data.js +34 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/elem.js +140 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/event/core.js +148 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/event/hook.js +19 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/event/main.js +60 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/event/object.js +90 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/event/special.js +33 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/event/store.js +19 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/event/util.js +111 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/matrix.js +145 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/mousewheel.js +29 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/path.js +219 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/prefix.js +24 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/style.js +8 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/text.js +209 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/dom/transform.js +82 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/event/events.js +48 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/event/util.js +13 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/function/async.js +21 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/function/function.js +29 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/modifier/index.js +31 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/number/number.js +27 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/object/inherit.js +28 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/object/mixins.js +10 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/object/object.js +42 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/platform/index.js +52 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/polyfill/index.js +17 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/size-sensor/index.js +22 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/size-sensor/sensors/index.js +6 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/size-sensor/sensors/object.js +32 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/size-sensor/sensors/observer.js +28 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/size-sensor/sensors/util.js +11 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/string/format.js +11 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/string/hashcode.js +11 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/string/suggestion.js +58 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/string/uuid.js +12 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/text/annotate.js +21 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/text/sanitize.js +6 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/unit/index.js +43 -0
- package/lib/packages/hooks/node_modules/@antv/x6-common/es/vector/index.js +260 -0
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/angle.js +16 -0
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/curve.js +341 -0
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/ellipse.js +135 -0
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/geometry.js +11 -0
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/line.js +286 -0
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/close.js +101 -0
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/curveto.js +118 -0
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/lineto.js +105 -0
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/moveto.js +124 -0
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/normalize.js +191 -0
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/path.js +570 -0
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/segment.js +44 -0
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/path/util.js +80 -0
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/point.js +319 -0
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/polyline.js +273 -0
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/rectangle.js +361 -0
- package/lib/packages/hooks/node_modules/@antv/x6-geometry/es/util.js +36 -0
- package/lib/packages/hooks/node_modules/dagre/index.js +21 -0
- package/lib/packages/hooks/node_modules/dagre/lib/acyclic.js +47 -0
- package/lib/packages/hooks/node_modules/dagre/lib/add-border-segments.js +28 -0
- package/lib/packages/hooks/node_modules/dagre/lib/coordinate-system.js +57 -0
- package/lib/packages/hooks/node_modules/dagre/lib/data/list.js +32 -0
- package/lib/packages/hooks/node_modules/dagre/lib/debug.js +29 -0
- package/lib/packages/hooks/node_modules/dagre/lib/graphlib.js +17 -0
- package/lib/packages/hooks/node_modules/dagre/lib/greedy-fas.js +67 -0
- package/lib/packages/hooks/node_modules/dagre/lib/layout.js +267 -0
- package/lib/packages/hooks/node_modules/dagre/lib/lodash.js +69 -0
- package/lib/packages/hooks/node_modules/dagre/lib/nesting-graph.js +71 -0
- package/lib/packages/hooks/node_modules/dagre/lib/normalize.js +44 -0
- package/lib/packages/hooks/node_modules/dagre/lib/order/add-subgraph-constraints.js +24 -0
- package/lib/packages/hooks/node_modules/dagre/lib/order/barycenter.js +32 -0
- package/lib/packages/hooks/node_modules/dagre/lib/order/build-layer-graph.js +32 -0
- package/lib/packages/hooks/node_modules/dagre/lib/order/cross-count.js +41 -0
- package/lib/packages/hooks/node_modules/dagre/lib/order/index.js +50 -0
- package/lib/packages/hooks/node_modules/dagre/lib/order/init-order.js +32 -0
- package/lib/packages/hooks/node_modules/dagre/lib/order/resolve-conflicts.js +61 -0
- package/lib/packages/hooks/node_modules/dagre/lib/order/sort-subgraph.js +46 -0
- package/lib/packages/hooks/node_modules/dagre/lib/order/sort.js +35 -0
- package/lib/packages/hooks/node_modules/dagre/lib/parent-dummy-chains.js +48 -0
- package/lib/packages/hooks/node_modules/dagre/lib/position/bk.js +225 -0
- package/lib/packages/hooks/node_modules/dagre/lib/position/index.js +30 -0
- package/lib/packages/hooks/node_modules/dagre/lib/rank/feasible-tree.js +41 -0
- package/lib/packages/hooks/node_modules/dagre/lib/rank/index.js +36 -0
- package/lib/packages/hooks/node_modules/dagre/lib/rank/network-simplex.js +91 -0
- package/lib/packages/hooks/node_modules/dagre/lib/rank/util.js +34 -0
- package/lib/packages/hooks/node_modules/dagre/lib/util.js +144 -0
- package/lib/packages/hooks/node_modules/dagre/lib/version.js +7 -0
- package/lib/packages/hooks/node_modules/graphlib/index.js +18 -0
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/components.js +21 -0
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/dfs.js +26 -0
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/dijkstra-all.js +18 -0
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/dijkstra.js +38 -0
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/find-cycles.js +18 -0
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/floyd-warshall.js +42 -0
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/index.js +30 -0
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/is-acyclic.js +22 -0
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/postorder.js +15 -0
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/preorder.js +15 -0
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/prim.js +40 -0
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/tarjan.js +34 -0
- package/lib/packages/hooks/node_modules/graphlib/lib/alg/topsort.js +25 -0
- package/lib/packages/hooks/node_modules/graphlib/lib/data/priority-queue.js +56 -0
- package/lib/packages/hooks/node_modules/graphlib/lib/graph.js +210 -0
- package/lib/packages/hooks/node_modules/graphlib/lib/index.js +12 -0
- package/lib/packages/hooks/node_modules/graphlib/lib/json.js +48 -0
- package/lib/packages/hooks/node_modules/graphlib/lib/lodash.js +49 -0
- package/lib/packages/hooks/node_modules/graphlib/lib/version.js +7 -0
- package/lib/packages/hooks/node_modules/lodash/_DataView.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/_Hash.js +22 -0
- package/lib/packages/hooks/node_modules/lodash/_ListCache.js +22 -0
- package/lib/packages/hooks/node_modules/lodash/_Map.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/_MapCache.js +22 -0
- package/lib/packages/hooks/node_modules/lodash/_Promise.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/_Set.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/_SetCache.js +18 -0
- package/lib/packages/hooks/node_modules/lodash/_Stack.js +20 -0
- package/lib/packages/hooks/node_modules/lodash/_Symbol.js +11 -0
- package/lib/packages/hooks/node_modules/lodash/_Uint8Array.js +11 -0
- package/lib/packages/hooks/node_modules/lodash/_WeakMap.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/_apply.js +22 -0
- package/lib/packages/hooks/node_modules/lodash/_arrayEach.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/_arrayFilter.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/_arrayIncludes.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_arrayIncludesWith.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_arrayLikeKeys.js +26 -0
- package/lib/packages/hooks/node_modules/lodash/_arrayMap.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/_arrayPush.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/_arrayReduce.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_arraySome.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_asciiSize.js +11 -0
- package/lib/packages/hooks/node_modules/lodash/_assignMergeValue.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_assignValue.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/_assocIndexOf.js +17 -0
- package/lib/packages/hooks/node_modules/lodash/_baseAssign.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_baseAssignIn.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_baseAssignValue.js +19 -0
- package/lib/packages/hooks/node_modules/lodash/_baseClone.js +70 -0
- package/lib/packages/hooks/node_modules/lodash/_baseCreate.js +23 -0
- package/lib/packages/hooks/node_modules/lodash/_baseEach.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/_baseExtremum.js +19 -0
- package/lib/packages/hooks/node_modules/lodash/_baseFilter.js +17 -0
- package/lib/packages/hooks/node_modules/lodash/_baseFindIndex.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_baseFlatten.js +20 -0
- package/lib/packages/hooks/node_modules/lodash/_baseFor.js +11 -0
- package/lib/packages/hooks/node_modules/lodash/_baseForOwn.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_baseGet.js +18 -0
- package/lib/packages/hooks/node_modules/lodash/_baseGetAllKeys.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/_baseGetTag.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/_baseGt.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/_baseHas.js +13 -0
- package/lib/packages/hooks/node_modules/lodash/_baseHasIn.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/_baseIndexOf.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/_baseIsArguments.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_baseIsEqual.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_baseIsEqualDeep.js +38 -0
- package/lib/packages/hooks/node_modules/lodash/_baseIsMap.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_baseIsMatch.js +37 -0
- package/lib/packages/hooks/node_modules/lodash/_baseIsNaN.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/_baseIsNative.js +22 -0
- package/lib/packages/hooks/node_modules/lodash/_baseIsSet.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_baseIsTypedArray.js +17 -0
- package/lib/packages/hooks/node_modules/lodash/_baseIteratee.js +18 -0
- package/lib/packages/hooks/node_modules/lodash/_baseKeys.js +20 -0
- package/lib/packages/hooks/node_modules/lodash/_baseKeysIn.js +21 -0
- package/lib/packages/hooks/node_modules/lodash/_baseLt.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/_baseMap.js +18 -0
- package/lib/packages/hooks/node_modules/lodash/_baseMatches.js +19 -0
- package/lib/packages/hooks/node_modules/lodash/_baseMatchesProperty.js +23 -0
- package/lib/packages/hooks/node_modules/lodash/_baseMerge.js +27 -0
- package/lib/packages/hooks/node_modules/lodash/_baseMergeDeep.js +38 -0
- package/lib/packages/hooks/node_modules/lodash/_baseOrderBy.js +37 -0
- package/lib/packages/hooks/node_modules/lodash/_basePick.js +17 -0
- package/lib/packages/hooks/node_modules/lodash/_basePickBy.js +20 -0
- package/lib/packages/hooks/node_modules/lodash/_baseProperty.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/_basePropertyDeep.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/_baseRange.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_baseReduce.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/_baseRest.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/_baseSet.js +31 -0
- package/lib/packages/hooks/node_modules/lodash/_baseSetToString.js +20 -0
- package/lib/packages/hooks/node_modules/lodash/_baseSortBy.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_baseTimes.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/_baseToString.js +24 -0
- package/lib/packages/hooks/node_modules/lodash/_baseTrim.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/_baseUnary.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/_baseUniq.js +39 -0
- package/lib/packages/hooks/node_modules/lodash/_baseValues.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/_baseZipObject.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/_cacheHas.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/_castFunction.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/_castPath.js +17 -0
- package/lib/packages/hooks/node_modules/lodash/_cloneArrayBuffer.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_cloneBuffer.js +19 -0
- package/lib/packages/hooks/node_modules/lodash/_cloneDataView.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_cloneRegExp.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/_cloneSymbol.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/_cloneTypedArray.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_compareAscending.js +21 -0
- package/lib/packages/hooks/node_modules/lodash/_compareMultiple.js +23 -0
- package/lib/packages/hooks/node_modules/lodash/_copyArray.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_copyObject.js +21 -0
- package/lib/packages/hooks/node_modules/lodash/_copySymbols.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_copySymbolsIn.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_coreJsData.js +11 -0
- package/lib/packages/hooks/node_modules/lodash/_createAssigner.js +22 -0
- package/lib/packages/hooks/node_modules/lodash/_createBaseEach.js +22 -0
- package/lib/packages/hooks/node_modules/lodash/_createBaseFor.js +19 -0
- package/lib/packages/hooks/node_modules/lodash/_createFind.js +26 -0
- package/lib/packages/hooks/node_modules/lodash/_createRange.js +18 -0
- package/lib/packages/hooks/node_modules/lodash/_createSet.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_defineProperty.js +17 -0
- package/lib/packages/hooks/node_modules/lodash/_equalArrays.js +46 -0
- package/lib/packages/hooks/node_modules/lodash/_equalByTag.js +51 -0
- package/lib/packages/hooks/node_modules/lodash/_equalObjects.js +42 -0
- package/lib/packages/hooks/node_modules/lodash/_flatRest.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/_freeGlobal.js +11 -0
- package/lib/packages/hooks/node_modules/lodash/_getAllKeys.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/_getAllKeysIn.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/_getMapData.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_getMatchData.js +19 -0
- package/lib/packages/hooks/node_modules/lodash/_getNative.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/_getPrototype.js +11 -0
- package/lib/packages/hooks/node_modules/lodash/_getRawTag.js +21 -0
- package/lib/packages/hooks/node_modules/lodash/_getSymbols.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/_getSymbolsIn.js +18 -0
- package/lib/packages/hooks/node_modules/lodash/_getTag.js +33 -0
- package/lib/packages/hooks/node_modules/lodash/_getValue.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/_hasPath.js +26 -0
- package/lib/packages/hooks/node_modules/lodash/_hasUnicode.js +13 -0
- package/lib/packages/hooks/node_modules/lodash/_hashClear.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/_hashDelete.js +13 -0
- package/lib/packages/hooks/node_modules/lodash/_hashGet.js +19 -0
- package/lib/packages/hooks/node_modules/lodash/_hashHas.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_hashSet.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_initCloneArray.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/_initCloneByTag.js +48 -0
- package/lib/packages/hooks/node_modules/lodash/_initCloneObject.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/_isFlattenable.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/_isIndex.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/_isIterateeCall.js +20 -0
- package/lib/packages/hooks/node_modules/lodash/_isKey.js +18 -0
- package/lib/packages/hooks/node_modules/lodash/_isKeyable.js +13 -0
- package/lib/packages/hooks/node_modules/lodash/_isMasked.js +17 -0
- package/lib/packages/hooks/node_modules/lodash/_isPrototype.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/_isStrictComparable.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/_listCacheClear.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/_listCacheDelete.js +18 -0
- package/lib/packages/hooks/node_modules/lodash/_listCacheGet.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_listCacheHas.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/_listCacheSet.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_mapCacheClear.js +20 -0
- package/lib/packages/hooks/node_modules/lodash/_mapCacheDelete.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_mapCacheGet.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/_mapCacheHas.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/_mapCacheSet.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_mapToArray.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_matchesStrictComparable.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/_memoizeCapped.js +17 -0
- package/lib/packages/hooks/node_modules/lodash/_nativeCreate.js +11 -0
- package/lib/packages/hooks/node_modules/lodash/_nativeKeys.js +11 -0
- package/lib/packages/hooks/node_modules/lodash/_nativeKeysIn.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/_nodeUtil.js +19 -0
- package/lib/packages/hooks/node_modules/lodash/_objectToString.js +13 -0
- package/lib/packages/hooks/node_modules/lodash/_overArg.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/_overRest.js +21 -0
- package/lib/packages/hooks/node_modules/lodash/_root.js +11 -0
- package/lib/packages/hooks/node_modules/lodash/_safeGet.js +13 -0
- package/lib/packages/hooks/node_modules/lodash/_setCacheAdd.js +13 -0
- package/lib/packages/hooks/node_modules/lodash/_setCacheHas.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/_setToArray.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_setToString.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/_shortOut.js +22 -0
- package/lib/packages/hooks/node_modules/lodash/_stackClear.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/_stackDelete.js +13 -0
- package/lib/packages/hooks/node_modules/lodash/_stackGet.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/_stackHas.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/_stackSet.js +23 -0
- package/lib/packages/hooks/node_modules/lodash/_strictIndexOf.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_stringSize.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/_stringToPath.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/_toKey.js +17 -0
- package/lib/packages/hooks/node_modules/lodash/_toSource.js +23 -0
- package/lib/packages/hooks/node_modules/lodash/_trimmedEndIndex.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/_unicodeSize.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/clone.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/cloneDeep.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/constant.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/defaults.js +23 -0
- package/lib/packages/hooks/node_modules/lodash/each.js +8 -0
- package/lib/packages/hooks/node_modules/lodash/eq.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/filter.js +18 -0
- package/lib/packages/hooks/node_modules/lodash/find.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/findIndex.js +20 -0
- package/lib/packages/hooks/node_modules/lodash/flatten.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/forEach.js +18 -0
- package/lib/packages/hooks/node_modules/lodash/forIn.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/get.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/has.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/hasIn.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/identity.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/isArguments.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/isArray.js +10 -0
- package/lib/packages/hooks/node_modules/lodash/isArrayLike.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/isArrayLikeObject.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/isBuffer.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/isEmpty.js +33 -0
- package/lib/packages/hooks/node_modules/lodash/isFunction.js +18 -0
- package/lib/packages/hooks/node_modules/lodash/isLength.js +13 -0
- package/lib/packages/hooks/node_modules/lodash/isMap.js +13 -0
- package/lib/packages/hooks/node_modules/lodash/isObject.js +13 -0
- package/lib/packages/hooks/node_modules/lodash/isObjectLike.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/isPlainObject.js +22 -0
- package/lib/packages/hooks/node_modules/lodash/isSet.js +13 -0
- package/lib/packages/hooks/node_modules/lodash/isString.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/isSymbol.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/isTypedArray.js +13 -0
- package/lib/packages/hooks/node_modules/lodash/isUndefined.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/keys.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/keysIn.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/last.js +13 -0
- package/lib/packages/hooks/node_modules/lodash/map.js +18 -0
- package/lib/packages/hooks/node_modules/lodash/mapValues.js +19 -0
- package/lib/packages/hooks/node_modules/lodash/max.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/memoize.js +23 -0
- package/lib/packages/hooks/node_modules/lodash/merge.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/min.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/minBy.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/noop.js +11 -0
- package/lib/packages/hooks/node_modules/lodash/now.js +13 -0
- package/lib/packages/hooks/node_modules/lodash/pick.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/property.js +17 -0
- package/lib/packages/hooks/node_modules/lodash/range.js +11 -0
- package/lib/packages/hooks/node_modules/lodash/reduce.js +19 -0
- package/lib/packages/hooks/node_modules/lodash/size.js +23 -0
- package/lib/packages/hooks/node_modules/lodash/sortBy.js +19 -0
- package/lib/packages/hooks/node_modules/lodash/stubArray.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/stubFalse.js +12 -0
- package/lib/packages/hooks/node_modules/lodash/toFinite.js +20 -0
- package/lib/packages/hooks/node_modules/lodash/toInteger.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/toNumber.js +28 -0
- package/lib/packages/hooks/node_modules/lodash/toPlainObject.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/toString.js +14 -0
- package/lib/packages/hooks/node_modules/lodash/transform.js +30 -0
- package/lib/packages/hooks/node_modules/lodash/union.js +16 -0
- package/lib/packages/hooks/node_modules/lodash/uniqueId.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/values.js +15 -0
- package/lib/packages/hooks/node_modules/lodash/zipObject.js +15 -0
- package/lib/packages/hooks/node_modules/lodash-es/_DataView.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/_Hash.js +20 -0
- package/lib/packages/hooks/node_modules/lodash-es/_ListCache.js +20 -0
- package/lib/packages/hooks/node_modules/lodash-es/_Map.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/_MapCache.js +20 -0
- package/lib/packages/hooks/node_modules/lodash-es/_Promise.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/_Set.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/_SetCache.js +13 -0
- package/lib/packages/hooks/node_modules/lodash-es/_Stack.js +18 -0
- package/lib/packages/hooks/node_modules/lodash-es/_Symbol.js +5 -0
- package/lib/packages/hooks/node_modules/lodash-es/_Uint8Array.js +5 -0
- package/lib/packages/hooks/node_modules/lodash-es/_WeakMap.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/_apply.js +16 -0
- package/lib/packages/hooks/node_modules/lodash-es/_arrayAggregator.js +10 -0
- package/lib/packages/hooks/node_modules/lodash-es/_arrayEach.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_arrayFilter.js +10 -0
- package/lib/packages/hooks/node_modules/lodash-es/_arrayIncludes.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_arrayLikeKeys.js +20 -0
- package/lib/packages/hooks/node_modules/lodash-es/_arrayMap.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_arrayPush.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_arrayReduce.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_arraySome.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_asciiToArray.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/_asciiWords.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/_assignMergeValue.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_assignValue.js +10 -0
- package/lib/packages/hooks/node_modules/lodash-es/_assocIndexOf.js +10 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseAggregator.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseAssign.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseAssignIn.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseAssignValue.js +12 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseClamp.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseClone.js +65 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseCreate.js +17 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseDifference.js +24 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseEach.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseExtremum.js +12 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseFindIndex.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseFlatten.js +13 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseFor.js +5 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseForOwn.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseGet.js +11 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseGetAllKeys.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseGetTag.js +10 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseGt.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseHas.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseHasIn.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseIndexOf.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseIsArguments.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseIsEqual.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseIsEqualDeep.js +32 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseIsMap.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseIsMatch.js +29 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseIsNaN.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseIsNative.js +16 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseIsSet.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseIsTypedArray.js +12 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseIteratee.js +11 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseKeys.js +14 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseKeysIn.js +15 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseMap.js +11 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseMatches.js +12 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseMatchesProperty.js +17 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseMerge.js +20 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseMergeDeep.js +31 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseOrderBy.js +30 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseProperty.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_basePropertyDeep.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_basePropertyOf.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseRest.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseSetToString.js +14 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseSlice.js +10 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseSortBy.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseSortedIndex.js +18 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseSortedIndexBy.js +19 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseTimes.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseToString.js +18 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseTrim.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseUnary.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_baseUniq.js +30 -0
- package/lib/packages/hooks/node_modules/lodash-es/_cacheHas.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/_castPath.js +10 -0
- package/lib/packages/hooks/node_modules/lodash-es/_castSlice.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_cloneArrayBuffer.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_cloneBuffer.js +11 -0
- package/lib/packages/hooks/node_modules/lodash-es/_cloneDataView.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_cloneRegExp.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_cloneSymbol.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_cloneTypedArray.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_compareAscending.js +14 -0
- package/lib/packages/hooks/node_modules/lodash-es/_compareMultiple.js +16 -0
- package/lib/packages/hooks/node_modules/lodash-es/_copyArray.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_copyObject.js +14 -0
- package/lib/packages/hooks/node_modules/lodash-es/_copySymbols.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_copySymbolsIn.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_coreJsData.js +5 -0
- package/lib/packages/hooks/node_modules/lodash-es/_createAggregator.js +13 -0
- package/lib/packages/hooks/node_modules/lodash-es/_createAssigner.js +15 -0
- package/lib/packages/hooks/node_modules/lodash-es/_createBaseEach.js +15 -0
- package/lib/packages/hooks/node_modules/lodash-es/_createBaseFor.js +13 -0
- package/lib/packages/hooks/node_modules/lodash-es/_createCaseFirst.js +14 -0
- package/lib/packages/hooks/node_modules/lodash-es/_createCompounder.js +12 -0
- package/lib/packages/hooks/node_modules/lodash-es/_createSet.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_customDefaultsMerge.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_deburrLetter.js +198 -0
- package/lib/packages/hooks/node_modules/lodash-es/_defineProperty.js +11 -0
- package/lib/packages/hooks/node_modules/lodash-es/_equalArrays.js +40 -0
- package/lib/packages/hooks/node_modules/lodash-es/_equalByTag.js +45 -0
- package/lib/packages/hooks/node_modules/lodash-es/_equalObjects.js +36 -0
- package/lib/packages/hooks/node_modules/lodash-es/_freeGlobal.js +4 -0
- package/lib/packages/hooks/node_modules/lodash-es/_getAllKeys.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_getAllKeysIn.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_getMapData.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_getMatchData.js +12 -0
- package/lib/packages/hooks/node_modules/lodash-es/_getNative.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_getPrototype.js +5 -0
- package/lib/packages/hooks/node_modules/lodash-es/_getRawTag.js +15 -0
- package/lib/packages/hooks/node_modules/lodash-es/_getSymbols.js +10 -0
- package/lib/packages/hooks/node_modules/lodash-es/_getSymbolsIn.js +12 -0
- package/lib/packages/hooks/node_modules/lodash-es/_getTag.js +28 -0
- package/lib/packages/hooks/node_modules/lodash-es/_getValue.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/_hasPath.js +19 -0
- package/lib/packages/hooks/node_modules/lodash-es/_hasUnicode.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/_hasUnicodeWord.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/_hashClear.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/_hashDelete.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/_hashGet.js +13 -0
- package/lib/packages/hooks/node_modules/lodash-es/_hashHas.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_hashSet.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_initCloneArray.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_initCloneByTag.js +42 -0
- package/lib/packages/hooks/node_modules/lodash-es/_initCloneObject.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_isFlattenable.js +10 -0
- package/lib/packages/hooks/node_modules/lodash-es/_isIndex.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_isIterateeCall.js +13 -0
- package/lib/packages/hooks/node_modules/lodash-es/_isKey.js +12 -0
- package/lib/packages/hooks/node_modules/lodash-es/_isKeyable.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/_isMasked.js +11 -0
- package/lib/packages/hooks/node_modules/lodash-es/_isPrototype.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_isStrictComparable.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/_listCacheClear.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/_listCacheDelete.js +12 -0
- package/lib/packages/hooks/node_modules/lodash-es/_listCacheGet.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_listCacheHas.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/_listCacheSet.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_mapCacheClear.js +13 -0
- package/lib/packages/hooks/node_modules/lodash-es/_mapCacheDelete.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_mapCacheGet.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/_mapCacheHas.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/_mapCacheSet.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_mapToArray.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_matchesStrictComparable.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_memoizeCapped.js +11 -0
- package/lib/packages/hooks/node_modules/lodash-es/_nativeCreate.js +5 -0
- package/lib/packages/hooks/node_modules/lodash-es/_nativeKeys.js +5 -0
- package/lib/packages/hooks/node_modules/lodash-es/_nativeKeysIn.js +10 -0
- package/lib/packages/hooks/node_modules/lodash-es/_nodeUtil.js +11 -0
- package/lib/packages/hooks/node_modules/lodash-es/_objectToString.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/_overArg.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/_overRest.js +15 -0
- package/lib/packages/hooks/node_modules/lodash-es/_root.js +5 -0
- package/lib/packages/hooks/node_modules/lodash-es/_safeGet.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/_setCacheAdd.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/_setCacheHas.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/_setToArray.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_setToString.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/_shortOut.js +16 -0
- package/lib/packages/hooks/node_modules/lodash-es/_stackClear.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/_stackDelete.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/_stackGet.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/_stackHas.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/_stackSet.js +17 -0
- package/lib/packages/hooks/node_modules/lodash-es/_strictIndexOf.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_stringToArray.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_stringToPath.js +10 -0
- package/lib/packages/hooks/node_modules/lodash-es/_toKey.js +10 -0
- package/lib/packages/hooks/node_modules/lodash-es/_toSource.js +17 -0
- package/lib/packages/hooks/node_modules/lodash-es/_trimmedEndIndex.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/_unicodeToArray.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/_unicodeWords.js +16 -0
- package/lib/packages/hooks/node_modules/lodash-es/camelCase.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/capitalize.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/clamp.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/clone.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/cloneDeep.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/constant.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/debounce.js +54 -0
- package/lib/packages/hooks/node_modules/lodash-es/deburr.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/defaults.js +17 -0
- package/lib/packages/hooks/node_modules/lodash-es/defaultsDeep.js +10 -0
- package/lib/packages/hooks/node_modules/lodash-es/difference.js +10 -0
- package/lib/packages/hooks/node_modules/lodash-es/eq.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/get.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/groupBy.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/has.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/hasIn.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/identity.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/isArguments.js +10 -0
- package/lib/packages/hooks/node_modules/lodash-es/isArray.js +4 -0
- package/lib/packages/hooks/node_modules/lodash-es/isArrayLike.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/isArrayLikeObject.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/isBuffer.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/isEmpty.js +27 -0
- package/lib/packages/hooks/node_modules/lodash-es/isEqual.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/isFunction.js +12 -0
- package/lib/packages/hooks/node_modules/lodash-es/isLength.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/isMap.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/isNumber.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/isObject.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/isObjectLike.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/isPlainObject.js +16 -0
- package/lib/packages/hooks/node_modules/lodash-es/isSet.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/isSymbol.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/isTypedArray.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/keys.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/keysIn.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/lowerFirst.js +5 -0
- package/lib/packages/hooks/node_modules/lodash-es/max.js +9 -0
- package/lib/packages/hooks/node_modules/lodash-es/memoize.js +18 -0
- package/lib/packages/hooks/node_modules/lodash-es/merge.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/mergeWith.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/noop.js +5 -0
- package/lib/packages/hooks/node_modules/lodash-es/now.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/property.js +10 -0
- package/lib/packages/hooks/node_modules/lodash-es/sortBy.js +13 -0
- package/lib/packages/hooks/node_modules/lodash-es/sortedIndex.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/sortedIndexBy.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/startCase.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/stubArray.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/stubFalse.js +6 -0
- package/lib/packages/hooks/node_modules/lodash-es/throttle.js +16 -0
- package/lib/packages/hooks/node_modules/lodash-es/toNumber.js +22 -0
- package/lib/packages/hooks/node_modules/lodash-es/toPlainObject.js +8 -0
- package/lib/packages/hooks/node_modules/lodash-es/toString.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/union.js +10 -0
- package/lib/packages/hooks/node_modules/lodash-es/uniq.js +7 -0
- package/lib/packages/hooks/node_modules/lodash-es/upperFirst.js +5 -0
- package/lib/packages/hooks/node_modules/lodash-es/words.js +10 -0
- package/lib/packages/hooks/node_modules/mqtt/dist/mqtt.esm.js +10402 -0
- package/lib/use-utils/index.d.ts +1 -0
- package/package.json +2 -2
- /package/lib/{node_modules → packages/hooks/node_modules}/mitt/dist/mitt.js +0 -0
|
@@ -0,0 +1,628 @@
|
|
|
1
|
+
import "../../../x6-common/es/polyfill/index.js";
|
|
2
|
+
import "../../../x6-common/es/common/disposable.js";
|
|
3
|
+
import { Basecoat as h } from "../../../x6-common/es/common/basecoat.js";
|
|
4
|
+
import "../../../x6-common/es/platform/index.js";
|
|
5
|
+
import "../../../x6-common/es/datauri/index.js";
|
|
6
|
+
import "../../../x6-common/es/unit/index.js";
|
|
7
|
+
import "../../../x6-common/es/dom/prefix.js";
|
|
8
|
+
import "../../../x6-common/es/vector/index.js";
|
|
9
|
+
import "../../../x6-common/es/dom/event/hook.js";
|
|
10
|
+
import "../../../x6-common/es/dom/event/main.js";
|
|
11
|
+
import "../../../x6-common/es/dom/event/object.js";
|
|
12
|
+
import "../../../x6-common/es/size-sensor/index.js";
|
|
13
|
+
import "../../../x6-common/es/algorithm/priorityqueue.js";
|
|
14
|
+
import "../../../x6-common/es/algorithm/dijkstra.js";
|
|
15
|
+
import "../../../x6-common/es/color/index.js";
|
|
16
|
+
import "../../../x6-common/es/modifier/index.js";
|
|
17
|
+
import "../../../x6-common/es/animation/timing.js";
|
|
18
|
+
import "../../../x6-common/es/animation/interp.js";
|
|
19
|
+
import "../../../x6-geometry/es/angle.js";
|
|
20
|
+
import { Point as j } from "../../../x6-geometry/es/point.js";
|
|
21
|
+
import "../../../x6-geometry/es/line.js";
|
|
22
|
+
import "../../../x6-geometry/es/ellipse.js";
|
|
23
|
+
import { Rectangle as u } from "../../../x6-geometry/es/rectangle.js";
|
|
24
|
+
import "../../../x6-geometry/es/path/path.js";
|
|
25
|
+
import "../../../x6-geometry/es/util.js";
|
|
26
|
+
import "../../../x6-geometry/es/curve.js";
|
|
27
|
+
import "../../../x6-geometry/es/polyline.js";
|
|
28
|
+
import { Cell as J } from "../model/cell.js";
|
|
29
|
+
import { Node as d } from "../model/node.js";
|
|
30
|
+
import { Edge as a } from "../model/edge.js";
|
|
31
|
+
import { Model as H } from "../model/model.js";
|
|
32
|
+
import "../model/collection.js";
|
|
33
|
+
import "../view/markup.js";
|
|
34
|
+
import "../view/view.js";
|
|
35
|
+
import { CellView as c } from "../view/cell.js";
|
|
36
|
+
import "../view/edge.js";
|
|
37
|
+
import "../view/node.js";
|
|
38
|
+
import "../view/tool.js";
|
|
39
|
+
import { Grid as m } from "../registry/grid/index.js";
|
|
40
|
+
import { Background as f } from "../registry/background/index.js";
|
|
41
|
+
import { Filter as p } from "../registry/filter/index.js";
|
|
42
|
+
import { Attr as P } from "../registry/attr/index.js";
|
|
43
|
+
import { Highlighter as b } from "../registry/highlighter/index.js";
|
|
44
|
+
import { PortLayout as y } from "../registry/port-layout/index.js";
|
|
45
|
+
import { PortLabelLayout as C } from "../registry/port-label-layout/index.js";
|
|
46
|
+
import { NodeTool as T, EdgeTool as R } from "../registry/tool/index.js";
|
|
47
|
+
import { Marker as w } from "../registry/marker/index.js";
|
|
48
|
+
import { NodeAnchor as E } from "../registry/node-anchor/index.js";
|
|
49
|
+
import { EdgeAnchor as N } from "../registry/edge-anchor/index.js";
|
|
50
|
+
import { ConnectionPoint as v } from "../registry/connection-point/index.js";
|
|
51
|
+
import { Router as B } from "../registry/router/index.js";
|
|
52
|
+
import { Connector as M } from "../registry/connector/index.js";
|
|
53
|
+
import "../registry/registry.js";
|
|
54
|
+
import { GraphView as L } from "./view.js";
|
|
55
|
+
import { CSSManager as _ } from "./css.js";
|
|
56
|
+
import { Options as D } from "./options.js";
|
|
57
|
+
import { GridManager as S } from "./grid.js";
|
|
58
|
+
import { TransformManager as A } from "./transform.js";
|
|
59
|
+
import { BackgroundManager as k } from "./background.js";
|
|
60
|
+
import { PanningManager as V } from "./panning.js";
|
|
61
|
+
import { MouseWheel as z } from "./mousewheel.js";
|
|
62
|
+
import { VirtualRenderManager as U } from "./virtual-render.js";
|
|
63
|
+
import { Renderer as O } from "../renderer/renderer.js";
|
|
64
|
+
import { DefsManager as F } from "./defs.js";
|
|
65
|
+
import { CoordManager as I } from "./coord.js";
|
|
66
|
+
import { HighlightManager as W } from "./highlight.js";
|
|
67
|
+
import { SizeManager as X } from "./size.js";
|
|
68
|
+
var Z = function(s, e, t, r) {
|
|
69
|
+
var i = arguments.length, o = i < 3 ? e : r === null ? r = Object.getOwnPropertyDescriptor(e, t) : r, l;
|
|
70
|
+
if (typeof Reflect == "object" && typeof Reflect.decorate == "function") o = Reflect.decorate(s, e, t, r);
|
|
71
|
+
else for (var g = s.length - 1; g >= 0; g--) (l = s[g]) && (o = (i < 3 ? l(o) : i > 3 ? l(e, t, o) : l(e, t)) || o);
|
|
72
|
+
return i > 3 && o && Object.defineProperty(e, t, o), o;
|
|
73
|
+
};
|
|
74
|
+
class n extends h {
|
|
75
|
+
get container() {
|
|
76
|
+
return this.options.container;
|
|
77
|
+
}
|
|
78
|
+
get [Symbol.toStringTag]() {
|
|
79
|
+
return n.toStringTag;
|
|
80
|
+
}
|
|
81
|
+
constructor(e) {
|
|
82
|
+
super(), this.installedPlugins = /* @__PURE__ */ new Set(), this.options = D.get(e), this.css = new _(this), this.view = new L(this), this.defs = new F(this), this.coord = new I(this), this.transform = new A(this), this.highlight = new W(this), this.grid = new S(this), this.background = new k(this), this.options.model ? this.model = this.options.model : (this.model = new H(), this.model.graph = this), this.renderer = new O(this), this.panning = new V(this), this.mousewheel = new z(this), this.virtualRender = new U(this), this.size = new X(this);
|
|
83
|
+
}
|
|
84
|
+
// #region model
|
|
85
|
+
isNode(e) {
|
|
86
|
+
return e.isNode();
|
|
87
|
+
}
|
|
88
|
+
isEdge(e) {
|
|
89
|
+
return e.isEdge();
|
|
90
|
+
}
|
|
91
|
+
resetCells(e, t = {}) {
|
|
92
|
+
return this.model.resetCells(e, t), this;
|
|
93
|
+
}
|
|
94
|
+
clearCells(e = {}) {
|
|
95
|
+
return this.model.clear(e), this;
|
|
96
|
+
}
|
|
97
|
+
toJSON(e = {}) {
|
|
98
|
+
return this.model.toJSON(e);
|
|
99
|
+
}
|
|
100
|
+
parseJSON(e) {
|
|
101
|
+
return this.model.parseJSON(e);
|
|
102
|
+
}
|
|
103
|
+
fromJSON(e, t = {}) {
|
|
104
|
+
return this.model.fromJSON(e, t), this;
|
|
105
|
+
}
|
|
106
|
+
getCellById(e) {
|
|
107
|
+
return this.model.getCell(e);
|
|
108
|
+
}
|
|
109
|
+
addNode(e, t = {}) {
|
|
110
|
+
return this.model.addNode(e, t);
|
|
111
|
+
}
|
|
112
|
+
addNodes(e, t = {}) {
|
|
113
|
+
return this.addCell(e.map((r) => d.isNode(r) ? r : this.createNode(r)), t);
|
|
114
|
+
}
|
|
115
|
+
createNode(e) {
|
|
116
|
+
return this.model.createNode(e);
|
|
117
|
+
}
|
|
118
|
+
removeNode(e, t = {}) {
|
|
119
|
+
return this.model.removeCell(e, t);
|
|
120
|
+
}
|
|
121
|
+
addEdge(e, t = {}) {
|
|
122
|
+
return this.model.addEdge(e, t);
|
|
123
|
+
}
|
|
124
|
+
addEdges(e, t = {}) {
|
|
125
|
+
return this.addCell(e.map((r) => a.isEdge(r) ? r : this.createEdge(r)), t);
|
|
126
|
+
}
|
|
127
|
+
removeEdge(e, t = {}) {
|
|
128
|
+
return this.model.removeCell(e, t);
|
|
129
|
+
}
|
|
130
|
+
createEdge(e) {
|
|
131
|
+
return this.model.createEdge(e);
|
|
132
|
+
}
|
|
133
|
+
addCell(e, t = {}) {
|
|
134
|
+
return this.model.addCell(e, t), this;
|
|
135
|
+
}
|
|
136
|
+
removeCell(e, t = {}) {
|
|
137
|
+
return this.model.removeCell(e, t);
|
|
138
|
+
}
|
|
139
|
+
removeCells(e, t = {}) {
|
|
140
|
+
return this.model.removeCells(e, t);
|
|
141
|
+
}
|
|
142
|
+
removeConnectedEdges(e, t = {}) {
|
|
143
|
+
return this.model.removeConnectedEdges(e, t);
|
|
144
|
+
}
|
|
145
|
+
disconnectConnectedEdges(e, t = {}) {
|
|
146
|
+
return this.model.disconnectConnectedEdges(e, t), this;
|
|
147
|
+
}
|
|
148
|
+
hasCell(e) {
|
|
149
|
+
return this.model.has(e);
|
|
150
|
+
}
|
|
151
|
+
getCells() {
|
|
152
|
+
return this.model.getCells();
|
|
153
|
+
}
|
|
154
|
+
getCellCount() {
|
|
155
|
+
return this.model.total();
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Returns all the nodes in the graph.
|
|
159
|
+
*/
|
|
160
|
+
getNodes() {
|
|
161
|
+
return this.model.getNodes();
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Returns all the edges in the graph.
|
|
165
|
+
*/
|
|
166
|
+
getEdges() {
|
|
167
|
+
return this.model.getEdges();
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Returns all outgoing edges for the node.
|
|
171
|
+
*/
|
|
172
|
+
getOutgoingEdges(e) {
|
|
173
|
+
return this.model.getOutgoingEdges(e);
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Returns all incoming edges for the node.
|
|
177
|
+
*/
|
|
178
|
+
getIncomingEdges(e) {
|
|
179
|
+
return this.model.getIncomingEdges(e);
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Returns edges connected with cell.
|
|
183
|
+
*/
|
|
184
|
+
getConnectedEdges(e, t = {}) {
|
|
185
|
+
return this.model.getConnectedEdges(e, t);
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Returns an array of all the roots of the graph.
|
|
189
|
+
*/
|
|
190
|
+
getRootNodes() {
|
|
191
|
+
return this.model.getRoots();
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* Returns an array of all the leafs of the graph.
|
|
195
|
+
*/
|
|
196
|
+
getLeafNodes() {
|
|
197
|
+
return this.model.getLeafs();
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* Returns `true` if the node is a root node, i.e.
|
|
201
|
+
* there is no edges coming to the node.
|
|
202
|
+
*/
|
|
203
|
+
isRootNode(e) {
|
|
204
|
+
return this.model.isRoot(e);
|
|
205
|
+
}
|
|
206
|
+
/**
|
|
207
|
+
* Returns `true` if the node is a leaf node, i.e.
|
|
208
|
+
* there is no edges going out from the node.
|
|
209
|
+
*/
|
|
210
|
+
isLeafNode(e) {
|
|
211
|
+
return this.model.isLeaf(e);
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Returns all the neighbors of node in the graph. Neighbors are all
|
|
215
|
+
* the nodes connected to node via either incoming or outgoing edge.
|
|
216
|
+
*/
|
|
217
|
+
getNeighbors(e, t = {}) {
|
|
218
|
+
return this.model.getNeighbors(e, t);
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Returns `true` if `cell2` is a neighbor of `cell1`.
|
|
222
|
+
*/
|
|
223
|
+
isNeighbor(e, t, r = {}) {
|
|
224
|
+
return this.model.isNeighbor(e, t, r);
|
|
225
|
+
}
|
|
226
|
+
getSuccessors(e, t = {}) {
|
|
227
|
+
return this.model.getSuccessors(e, t);
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Returns `true` if `cell2` is a successor of `cell1`.
|
|
231
|
+
*/
|
|
232
|
+
isSuccessor(e, t, r = {}) {
|
|
233
|
+
return this.model.isSuccessor(e, t, r);
|
|
234
|
+
}
|
|
235
|
+
getPredecessors(e, t = {}) {
|
|
236
|
+
return this.model.getPredecessors(e, t);
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Returns `true` if `cell2` is a predecessor of `cell1`.
|
|
240
|
+
*/
|
|
241
|
+
isPredecessor(e, t, r = {}) {
|
|
242
|
+
return this.model.isPredecessor(e, t, r);
|
|
243
|
+
}
|
|
244
|
+
getCommonAncestor(...e) {
|
|
245
|
+
return this.model.getCommonAncestor(...e);
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* Returns an array of cells that result from finding nodes/edges that
|
|
249
|
+
* are connected to any of the cells in the cells array. This function
|
|
250
|
+
* loops over cells and if the current cell is a edge, it collects its
|
|
251
|
+
* source/target nodes; if it is an node, it collects its incoming and
|
|
252
|
+
* outgoing edges if both the edge terminal (source/target) are in the
|
|
253
|
+
* cells array.
|
|
254
|
+
*/
|
|
255
|
+
getSubGraph(e, t = {}) {
|
|
256
|
+
return this.model.getSubGraph(e, t);
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Clones the whole subgraph (including all the connected links whose
|
|
260
|
+
* source/target is in the subgraph). If `options.deep` is `true`, also
|
|
261
|
+
* take into account all the embedded cells of all the subgraph cells.
|
|
262
|
+
*
|
|
263
|
+
* Returns a map of the form: { [original cell ID]: [clone] }.
|
|
264
|
+
*/
|
|
265
|
+
cloneSubGraph(e, t = {}) {
|
|
266
|
+
return this.model.cloneSubGraph(e, t);
|
|
267
|
+
}
|
|
268
|
+
cloneCells(e) {
|
|
269
|
+
return this.model.cloneCells(e);
|
|
270
|
+
}
|
|
271
|
+
getNodesFromPoint(e, t) {
|
|
272
|
+
return this.model.getNodesFromPoint(e, t);
|
|
273
|
+
}
|
|
274
|
+
getNodesInArea(e, t, r, i, o) {
|
|
275
|
+
return this.model.getNodesInArea(e, t, r, i, o);
|
|
276
|
+
}
|
|
277
|
+
getNodesUnderNode(e, t = {}) {
|
|
278
|
+
return this.model.getNodesUnderNode(e, t);
|
|
279
|
+
}
|
|
280
|
+
searchCell(e, t, r = {}) {
|
|
281
|
+
return this.model.search(e, t, r), this;
|
|
282
|
+
}
|
|
283
|
+
/** *
|
|
284
|
+
* Returns an array of IDs of nodes on the shortest
|
|
285
|
+
* path between source and target.
|
|
286
|
+
*/
|
|
287
|
+
getShortestPath(e, t, r = {}) {
|
|
288
|
+
return this.model.getShortestPath(e, t, r);
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* Returns the bounding box that surrounds all cells in the graph.
|
|
292
|
+
*/
|
|
293
|
+
getAllCellsBBox() {
|
|
294
|
+
return this.model.getAllCellsBBox();
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Returns the bounding box that surrounds all the given cells.
|
|
298
|
+
*/
|
|
299
|
+
getCellsBBox(e, t = {}) {
|
|
300
|
+
return this.model.getCellsBBox(e, t);
|
|
301
|
+
}
|
|
302
|
+
startBatch(e, t = {}) {
|
|
303
|
+
this.model.startBatch(e, t);
|
|
304
|
+
}
|
|
305
|
+
stopBatch(e, t = {}) {
|
|
306
|
+
this.model.stopBatch(e, t);
|
|
307
|
+
}
|
|
308
|
+
batchUpdate(e, t, r) {
|
|
309
|
+
const i = typeof e == "string" ? e : "update", o = typeof e == "string" ? t : e, l = typeof t == "function" ? r : t;
|
|
310
|
+
this.startBatch(i, l);
|
|
311
|
+
const g = o();
|
|
312
|
+
return this.stopBatch(i, l), g;
|
|
313
|
+
}
|
|
314
|
+
updateCellId(e, t) {
|
|
315
|
+
return this.model.updateCellId(e, t);
|
|
316
|
+
}
|
|
317
|
+
// #endregion
|
|
318
|
+
// #region view
|
|
319
|
+
findView(e) {
|
|
320
|
+
return J.isCell(e) ? this.findViewByCell(e) : this.findViewByElem(e);
|
|
321
|
+
}
|
|
322
|
+
findViews(e) {
|
|
323
|
+
return u.isRectangleLike(e) ? this.findViewsInArea(e) : j.isPointLike(e) ? this.findViewsFromPoint(e) : [];
|
|
324
|
+
}
|
|
325
|
+
findViewByCell(e) {
|
|
326
|
+
return this.renderer.findViewByCell(e);
|
|
327
|
+
}
|
|
328
|
+
findViewByElem(e) {
|
|
329
|
+
return this.renderer.findViewByElem(e);
|
|
330
|
+
}
|
|
331
|
+
findViewsFromPoint(e, t) {
|
|
332
|
+
const r = typeof e == "number" ? { x: e, y: t } : e;
|
|
333
|
+
return this.renderer.findViewsFromPoint(r);
|
|
334
|
+
}
|
|
335
|
+
findViewsInArea(e, t, r, i, o) {
|
|
336
|
+
const l = typeof e == "number" ? {
|
|
337
|
+
x: e,
|
|
338
|
+
y: t,
|
|
339
|
+
width: r,
|
|
340
|
+
height: i
|
|
341
|
+
} : e, g = typeof e == "number" ? o : t;
|
|
342
|
+
return this.renderer.findViewsInArea(l, g);
|
|
343
|
+
}
|
|
344
|
+
matrix(e) {
|
|
345
|
+
return typeof e > "u" ? this.transform.getMatrix() : (this.transform.setMatrix(e), this);
|
|
346
|
+
}
|
|
347
|
+
resize(e, t) {
|
|
348
|
+
const r = this.getPlugin("scroller");
|
|
349
|
+
return r ? r.resize(e, t) : this.transform.resize(e, t), this;
|
|
350
|
+
}
|
|
351
|
+
scale(e, t = e, r = 0, i = 0) {
|
|
352
|
+
return typeof e > "u" ? this.transform.getScale() : (this.transform.scale(e, t, r, i), this);
|
|
353
|
+
}
|
|
354
|
+
zoom(e, t) {
|
|
355
|
+
const r = this.getPlugin("scroller");
|
|
356
|
+
if (r) {
|
|
357
|
+
if (typeof e > "u")
|
|
358
|
+
return r.zoom();
|
|
359
|
+
r.zoom(e, t);
|
|
360
|
+
} else {
|
|
361
|
+
if (typeof e > "u")
|
|
362
|
+
return this.transform.getZoom();
|
|
363
|
+
this.transform.zoom(e, t);
|
|
364
|
+
}
|
|
365
|
+
return this;
|
|
366
|
+
}
|
|
367
|
+
zoomTo(e, t = {}) {
|
|
368
|
+
const r = this.getPlugin("scroller");
|
|
369
|
+
return r ? r.zoom(e, Object.assign(Object.assign({}, t), { absolute: !0 })) : this.transform.zoom(e, Object.assign(Object.assign({}, t), { absolute: !0 })), this;
|
|
370
|
+
}
|
|
371
|
+
zoomToRect(e, t = {}) {
|
|
372
|
+
const r = this.getPlugin("scroller");
|
|
373
|
+
return r ? r.zoomToRect(e, t) : this.transform.zoomToRect(e, t), this;
|
|
374
|
+
}
|
|
375
|
+
zoomToFit(e = {}) {
|
|
376
|
+
const t = this.getPlugin("scroller");
|
|
377
|
+
return t ? t.zoomToFit(e) : this.transform.zoomToFit(e), this;
|
|
378
|
+
}
|
|
379
|
+
rotate(e, t, r) {
|
|
380
|
+
return typeof e > "u" ? this.transform.getRotation() : (this.transform.rotate(e, t, r), this);
|
|
381
|
+
}
|
|
382
|
+
translate(e, t) {
|
|
383
|
+
return typeof e > "u" ? this.transform.getTranslation() : (this.transform.translate(e, t), this);
|
|
384
|
+
}
|
|
385
|
+
translateBy(e, t) {
|
|
386
|
+
const r = this.translate(), i = r.tx + e, o = r.ty + t;
|
|
387
|
+
return this.translate(i, o);
|
|
388
|
+
}
|
|
389
|
+
getGraphArea() {
|
|
390
|
+
return this.transform.getGraphArea();
|
|
391
|
+
}
|
|
392
|
+
getContentArea(e = {}) {
|
|
393
|
+
return this.transform.getContentArea(e);
|
|
394
|
+
}
|
|
395
|
+
getContentBBox(e = {}) {
|
|
396
|
+
return this.transform.getContentBBox(e);
|
|
397
|
+
}
|
|
398
|
+
fitToContent(e, t, r, i) {
|
|
399
|
+
return this.transform.fitToContent(e, t, r, i);
|
|
400
|
+
}
|
|
401
|
+
scaleContentToFit(e = {}) {
|
|
402
|
+
return this.transform.scaleContentToFit(e), this;
|
|
403
|
+
}
|
|
404
|
+
/**
|
|
405
|
+
* Position the center of graph to the center of the viewport.
|
|
406
|
+
*/
|
|
407
|
+
center(e) {
|
|
408
|
+
return this.centerPoint(e);
|
|
409
|
+
}
|
|
410
|
+
centerPoint(e, t, r) {
|
|
411
|
+
const i = this.getPlugin("scroller");
|
|
412
|
+
return i ? i.centerPoint(e, t, r) : this.transform.centerPoint(e, t), this;
|
|
413
|
+
}
|
|
414
|
+
centerContent(e) {
|
|
415
|
+
const t = this.getPlugin("scroller");
|
|
416
|
+
return t ? t.centerContent(e) : this.transform.centerContent(e), this;
|
|
417
|
+
}
|
|
418
|
+
centerCell(e, t) {
|
|
419
|
+
const r = this.getPlugin("scroller");
|
|
420
|
+
return r ? r.centerCell(e, t) : this.transform.centerCell(e), this;
|
|
421
|
+
}
|
|
422
|
+
positionPoint(e, t, r, i = {}) {
|
|
423
|
+
const o = this.getPlugin("scroller");
|
|
424
|
+
return o ? o.positionPoint(e, t, r, i) : this.transform.positionPoint(e, t, r), this;
|
|
425
|
+
}
|
|
426
|
+
positionRect(e, t, r) {
|
|
427
|
+
const i = this.getPlugin("scroller");
|
|
428
|
+
return i ? i.positionRect(e, t, r) : this.transform.positionRect(e, t), this;
|
|
429
|
+
}
|
|
430
|
+
positionCell(e, t, r) {
|
|
431
|
+
const i = this.getPlugin("scroller");
|
|
432
|
+
return i ? i.positionCell(e, t, r) : this.transform.positionCell(e, t), this;
|
|
433
|
+
}
|
|
434
|
+
positionContent(e, t) {
|
|
435
|
+
const r = this.getPlugin("scroller");
|
|
436
|
+
return r ? r.positionContent(e, t) : this.transform.positionContent(e, t), this;
|
|
437
|
+
}
|
|
438
|
+
snapToGrid(e, t) {
|
|
439
|
+
return this.coord.snapToGrid(e, t);
|
|
440
|
+
}
|
|
441
|
+
pageToLocal(e, t, r, i) {
|
|
442
|
+
return u.isRectangleLike(e) ? this.coord.pageToLocalRect(e) : typeof e == "number" && typeof t == "number" && typeof r == "number" && typeof i == "number" ? this.coord.pageToLocalRect(e, t, r, i) : this.coord.pageToLocalPoint(e, t);
|
|
443
|
+
}
|
|
444
|
+
localToPage(e, t, r, i) {
|
|
445
|
+
return u.isRectangleLike(e) ? this.coord.localToPageRect(e) : typeof e == "number" && typeof t == "number" && typeof r == "number" && typeof i == "number" ? this.coord.localToPageRect(e, t, r, i) : this.coord.localToPagePoint(e, t);
|
|
446
|
+
}
|
|
447
|
+
clientToLocal(e, t, r, i) {
|
|
448
|
+
return u.isRectangleLike(e) ? this.coord.clientToLocalRect(e) : typeof e == "number" && typeof t == "number" && typeof r == "number" && typeof i == "number" ? this.coord.clientToLocalRect(e, t, r, i) : this.coord.clientToLocalPoint(e, t);
|
|
449
|
+
}
|
|
450
|
+
localToClient(e, t, r, i) {
|
|
451
|
+
return u.isRectangleLike(e) ? this.coord.localToClientRect(e) : typeof e == "number" && typeof t == "number" && typeof r == "number" && typeof i == "number" ? this.coord.localToClientRect(e, t, r, i) : this.coord.localToClientPoint(e, t);
|
|
452
|
+
}
|
|
453
|
+
localToGraph(e, t, r, i) {
|
|
454
|
+
return u.isRectangleLike(e) ? this.coord.localToGraphRect(e) : typeof e == "number" && typeof t == "number" && typeof r == "number" && typeof i == "number" ? this.coord.localToGraphRect(e, t, r, i) : this.coord.localToGraphPoint(e, t);
|
|
455
|
+
}
|
|
456
|
+
graphToLocal(e, t, r, i) {
|
|
457
|
+
return u.isRectangleLike(e) ? this.coord.graphToLocalRect(e) : typeof e == "number" && typeof t == "number" && typeof r == "number" && typeof i == "number" ? this.coord.graphToLocalRect(e, t, r, i) : this.coord.graphToLocalPoint(e, t);
|
|
458
|
+
}
|
|
459
|
+
clientToGraph(e, t, r, i) {
|
|
460
|
+
return u.isRectangleLike(e) ? this.coord.clientToGraphRect(e) : typeof e == "number" && typeof t == "number" && typeof r == "number" && typeof i == "number" ? this.coord.clientToGraphRect(e, t, r, i) : this.coord.clientToGraphPoint(e, t);
|
|
461
|
+
}
|
|
462
|
+
// #endregion
|
|
463
|
+
// #region defs
|
|
464
|
+
defineFilter(e) {
|
|
465
|
+
return this.defs.filter(e);
|
|
466
|
+
}
|
|
467
|
+
defineGradient(e) {
|
|
468
|
+
return this.defs.gradient(e);
|
|
469
|
+
}
|
|
470
|
+
defineMarker(e) {
|
|
471
|
+
return this.defs.marker(e);
|
|
472
|
+
}
|
|
473
|
+
// #endregion
|
|
474
|
+
// #region grid
|
|
475
|
+
getGridSize() {
|
|
476
|
+
return this.grid.getGridSize();
|
|
477
|
+
}
|
|
478
|
+
setGridSize(e) {
|
|
479
|
+
return this.grid.setGridSize(e), this;
|
|
480
|
+
}
|
|
481
|
+
showGrid() {
|
|
482
|
+
return this.grid.show(), this;
|
|
483
|
+
}
|
|
484
|
+
hideGrid() {
|
|
485
|
+
return this.grid.hide(), this;
|
|
486
|
+
}
|
|
487
|
+
clearGrid() {
|
|
488
|
+
return this.grid.clear(), this;
|
|
489
|
+
}
|
|
490
|
+
drawGrid(e) {
|
|
491
|
+
return this.grid.draw(e), this;
|
|
492
|
+
}
|
|
493
|
+
// #endregion
|
|
494
|
+
// #region background
|
|
495
|
+
updateBackground() {
|
|
496
|
+
return this.background.update(), this;
|
|
497
|
+
}
|
|
498
|
+
drawBackground(e, t) {
|
|
499
|
+
const r = this.getPlugin("scroller");
|
|
500
|
+
return r != null && (this.options.background == null || !t) ? r.drawBackground(e, t) : this.background.draw(e), this;
|
|
501
|
+
}
|
|
502
|
+
clearBackground(e) {
|
|
503
|
+
const t = this.getPlugin("scroller");
|
|
504
|
+
return t != null && (this.options.background == null || !e) ? t.clearBackground(e) : this.background.clear(), this;
|
|
505
|
+
}
|
|
506
|
+
// #endregion
|
|
507
|
+
// #region virtual-render
|
|
508
|
+
enableVirtualRender() {
|
|
509
|
+
return this.virtualRender.enableVirtualRender(), this;
|
|
510
|
+
}
|
|
511
|
+
disableVirtualRender() {
|
|
512
|
+
return this.virtualRender.disableVirtualRender(), this;
|
|
513
|
+
}
|
|
514
|
+
// #endregion
|
|
515
|
+
// #region mousewheel
|
|
516
|
+
isMouseWheelEnabled() {
|
|
517
|
+
return !this.mousewheel.disabled;
|
|
518
|
+
}
|
|
519
|
+
enableMouseWheel() {
|
|
520
|
+
return this.mousewheel.enable(), this;
|
|
521
|
+
}
|
|
522
|
+
disableMouseWheel() {
|
|
523
|
+
return this.mousewheel.disable(), this;
|
|
524
|
+
}
|
|
525
|
+
toggleMouseWheel(e) {
|
|
526
|
+
return e == null ? this.isMouseWheelEnabled() ? this.disableMouseWheel() : this.enableMouseWheel() : e ? this.enableMouseWheel() : this.disableMouseWheel(), this;
|
|
527
|
+
}
|
|
528
|
+
// #endregion
|
|
529
|
+
// #region panning
|
|
530
|
+
isPannable() {
|
|
531
|
+
const e = this.getPlugin("scroller");
|
|
532
|
+
return e ? e.isPannable() : this.panning.pannable;
|
|
533
|
+
}
|
|
534
|
+
enablePanning() {
|
|
535
|
+
const e = this.getPlugin("scroller");
|
|
536
|
+
return e ? e.enablePanning() : this.panning.enablePanning(), this;
|
|
537
|
+
}
|
|
538
|
+
disablePanning() {
|
|
539
|
+
const e = this.getPlugin("scroller");
|
|
540
|
+
return e ? e.disablePanning() : this.panning.disablePanning(), this;
|
|
541
|
+
}
|
|
542
|
+
togglePanning(e) {
|
|
543
|
+
return e == null ? this.isPannable() ? this.disablePanning() : this.enablePanning() : e !== this.isPannable() && (e ? this.enablePanning() : this.disablePanning()), this;
|
|
544
|
+
}
|
|
545
|
+
// #endregion
|
|
546
|
+
// #region plugin
|
|
547
|
+
use(e, ...t) {
|
|
548
|
+
return this.installedPlugins.has(e) || (this.installedPlugins.add(e), e.init(this, ...t)), this;
|
|
549
|
+
}
|
|
550
|
+
getPlugin(e) {
|
|
551
|
+
return Array.from(this.installedPlugins).find((t) => t.name === e);
|
|
552
|
+
}
|
|
553
|
+
getPlugins(e) {
|
|
554
|
+
return Array.from(this.installedPlugins).filter((t) => e.includes(t.name));
|
|
555
|
+
}
|
|
556
|
+
enablePlugins(e) {
|
|
557
|
+
let t = e;
|
|
558
|
+
Array.isArray(t) || (t = [t]);
|
|
559
|
+
const r = this.getPlugins(t);
|
|
560
|
+
return r?.forEach((i) => {
|
|
561
|
+
var o;
|
|
562
|
+
(o = i?.enable) === null || o === void 0 || o.call(i);
|
|
563
|
+
}), this;
|
|
564
|
+
}
|
|
565
|
+
disablePlugins(e) {
|
|
566
|
+
let t = e;
|
|
567
|
+
Array.isArray(t) || (t = [t]);
|
|
568
|
+
const r = this.getPlugins(t);
|
|
569
|
+
return r?.forEach((i) => {
|
|
570
|
+
var o;
|
|
571
|
+
(o = i?.disable) === null || o === void 0 || o.call(i);
|
|
572
|
+
}), this;
|
|
573
|
+
}
|
|
574
|
+
isPluginEnabled(e) {
|
|
575
|
+
var t;
|
|
576
|
+
const r = this.getPlugin(e);
|
|
577
|
+
return (t = r?.isEnabled) === null || t === void 0 ? void 0 : t.call(r);
|
|
578
|
+
}
|
|
579
|
+
disposePlugins(e) {
|
|
580
|
+
let t = e;
|
|
581
|
+
Array.isArray(t) || (t = [t]);
|
|
582
|
+
const r = this.getPlugins(t);
|
|
583
|
+
return r?.forEach((i) => {
|
|
584
|
+
i.dispose(), this.installedPlugins.delete(i);
|
|
585
|
+
}), this;
|
|
586
|
+
}
|
|
587
|
+
// #endregion
|
|
588
|
+
// #region dispose
|
|
589
|
+
dispose(e = !0) {
|
|
590
|
+
e && this.model.dispose(), this.css.dispose(), this.defs.dispose(), this.grid.dispose(), this.coord.dispose(), this.transform.dispose(), this.highlight.dispose(), this.background.dispose(), this.mousewheel.dispose(), this.panning.dispose(), this.view.dispose(), this.renderer.dispose(), this.installedPlugins.forEach((t) => {
|
|
591
|
+
t.dispose();
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
Z([
|
|
596
|
+
h.dispose()
|
|
597
|
+
], n.prototype, "dispose", null);
|
|
598
|
+
(function(s) {
|
|
599
|
+
s.View = L, s.Renderer = O, s.MouseWheel = z, s.DefsManager = F, s.GridManager = S, s.CoordManager = I, s.TransformManager = A, s.HighlightManager = W, s.BackgroundManager = k, s.PanningManager = V;
|
|
600
|
+
})(n || (n = {}));
|
|
601
|
+
(function(s) {
|
|
602
|
+
s.toStringTag = `X6.${s.name}`;
|
|
603
|
+
function e(t) {
|
|
604
|
+
if (t == null)
|
|
605
|
+
return !1;
|
|
606
|
+
if (t instanceof s)
|
|
607
|
+
return !0;
|
|
608
|
+
const r = t[Symbol.toStringTag];
|
|
609
|
+
return r == null || r === s.toStringTag;
|
|
610
|
+
}
|
|
611
|
+
s.isGraph = e;
|
|
612
|
+
})(n || (n = {}));
|
|
613
|
+
(function(s) {
|
|
614
|
+
function e(t, r) {
|
|
615
|
+
const i = t instanceof HTMLElement ? new s({ container: t }) : new s(t);
|
|
616
|
+
return r != null && i.fromJSON(r), i;
|
|
617
|
+
}
|
|
618
|
+
s.render = e;
|
|
619
|
+
})(n || (n = {}));
|
|
620
|
+
(function(s) {
|
|
621
|
+
s.registerNode = d.registry.register, s.registerEdge = a.registry.register, s.registerView = c.registry.register, s.registerAttr = P.registry.register, s.registerGrid = m.registry.register, s.registerFilter = p.registry.register, s.registerNodeTool = T.registry.register, s.registerEdgeTool = R.registry.register, s.registerBackground = f.registry.register, s.registerHighlighter = b.registry.register, s.registerPortLayout = y.registry.register, s.registerPortLabelLayout = C.registry.register, s.registerMarker = w.registry.register, s.registerRouter = B.registry.register, s.registerConnector = M.registry.register, s.registerAnchor = E.registry.register, s.registerEdgeAnchor = N.registry.register, s.registerConnectionPoint = v.registry.register;
|
|
622
|
+
})(n || (n = {}));
|
|
623
|
+
(function(s) {
|
|
624
|
+
s.unregisterNode = d.registry.unregister, s.unregisterEdge = a.registry.unregister, s.unregisterView = c.registry.unregister, s.unregisterAttr = P.registry.unregister, s.unregisterGrid = m.registry.unregister, s.unregisterFilter = p.registry.unregister, s.unregisterNodeTool = T.registry.unregister, s.unregisterEdgeTool = R.registry.unregister, s.unregisterBackground = f.registry.unregister, s.unregisterHighlighter = b.registry.unregister, s.unregisterPortLayout = y.registry.unregister, s.unregisterPortLabelLayout = C.registry.unregister, s.unregisterMarker = w.registry.unregister, s.unregisterRouter = B.registry.unregister, s.unregisterConnector = M.registry.unregister, s.unregisterAnchor = E.registry.unregister, s.unregisterEdgeAnchor = N.registry.unregister, s.unregisterConnectionPoint = v.registry.unregister;
|
|
625
|
+
})(n || (n = {}));
|
|
626
|
+
export {
|
|
627
|
+
n as Graph
|
|
628
|
+
};
|