@antv/g6 5.0.0-beta.33 → 5.0.0-beta.35
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/g6.min.js +2 -2
- package/dist/lib/animations/types.d.ts +3 -4
- package/dist/lib/behaviors/base-behavior.d.ts +2 -1
- package/dist/lib/behaviors/brush-select.d.ts +33 -16
- package/dist/lib/behaviors/click-element.d.ts +28 -5
- package/dist/lib/behaviors/collapse-expand.d.ts +3 -2
- package/dist/lib/behaviors/create-edge.d.ts +1 -2
- package/dist/lib/behaviors/drag-canvas.d.ts +7 -0
- package/dist/lib/behaviors/drag-element-force.d.ts +1 -2
- package/dist/lib/behaviors/drag-element.d.ts +4 -5
- package/dist/lib/behaviors/index.d.ts +2 -0
- package/dist/lib/behaviors/lasso-select.d.ts +4 -4
- package/dist/lib/behaviors/scroll-canvas.d.ts +64 -0
- package/dist/lib/behaviors/types.d.ts +2 -1
- package/dist/lib/behaviors/zoom-canvas.d.ts +1 -1
- package/dist/lib/constants/events/animation.d.ts +1 -4
- package/dist/lib/constants/events/graph.d.ts +5 -1
- package/dist/lib/elements/combos/base-combo.d.ts +1 -1
- package/dist/lib/elements/edges/base-edge.d.ts +0 -5
- package/dist/lib/elements/nodes/base-node.d.ts +3 -10
- package/dist/lib/elements/nodes/donut.d.ts +45 -0
- package/dist/lib/elements/nodes/html.d.ts +27 -0
- package/dist/lib/elements/nodes/index.d.ts +4 -0
- package/dist/lib/elements/shapes/badge.d.ts +1 -1
- package/dist/lib/{plugins/hull/shape.d.ts → elements/shapes/contour.d.ts} +17 -17
- package/dist/lib/elements/shapes/index.d.ts +2 -0
- package/dist/lib/exports.d.ts +15 -22
- package/dist/lib/plugins/bubble-sets.d.ts +45 -0
- package/dist/lib/plugins/camera-setting.d.ts +4 -2
- package/dist/lib/plugins/contextmenu.d.ts +1 -0
- package/dist/lib/plugins/grid-line.d.ts +51 -8
- package/dist/lib/plugins/hull/index.d.ts +44 -13
- package/dist/lib/plugins/index.d.ts +4 -0
- package/dist/lib/plugins/timebar.d.ts +225 -0
- package/dist/lib/plugins/tooltip.d.ts +2 -2
- package/dist/lib/registry/index.d.ts +1 -1
- package/dist/lib/runtime/data.d.ts +13 -7
- package/dist/lib/runtime/element.d.ts +6 -10
- package/dist/lib/runtime/graph.d.ts +532 -45
- package/dist/lib/runtime/types.d.ts +3 -3
- package/dist/lib/runtime/viewport.d.ts +3 -4
- package/dist/lib/spec/canvas.d.ts +6 -2
- package/dist/lib/spec/data.d.ts +74 -1
- package/dist/lib/spec/element/combo.d.ts +17 -6
- package/dist/lib/spec/element/edge.d.ts +14 -2
- package/dist/lib/spec/element/node.d.ts +19 -3
- package/{lib/spec/spec.d.ts → dist/lib/spec/graph.d.ts} +12 -4
- package/dist/lib/spec/index.d.ts +1 -1
- package/dist/lib/spec/theme.d.ts +1 -4
- package/dist/lib/spec/viewport.d.ts +1 -1
- package/dist/lib/themes/base.d.ts +1 -0
- package/dist/lib/themes/types.d.ts +0 -1
- package/dist/lib/transforms/process-parallel-edges.d.ts +2 -3
- package/dist/lib/transforms/types.d.ts +1 -1
- package/dist/lib/types/callable.d.ts +2 -2
- package/dist/lib/types/data.d.ts +3 -3
- package/dist/lib/types/id.d.ts +1 -0
- package/dist/lib/types/index.d.ts +1 -0
- package/dist/lib/types/style.d.ts +1 -3
- package/dist/lib/types/viewport.d.ts +4 -4
- package/dist/lib/utils/animation.d.ts +6 -6
- package/dist/lib/utils/behaviors/brush.d.ts +1 -2
- package/dist/lib/utils/behaviors/lasso.d.ts +1 -2
- package/dist/lib/utils/behaviors/utils.d.ts +1 -1
- package/dist/lib/utils/data.d.ts +2 -2
- package/dist/lib/utils/edge.d.ts +1 -2
- package/dist/lib/utils/element.d.ts +1 -1
- package/dist/lib/utils/event/events.d.ts +1 -1
- package/dist/lib/utils/event/index.d.ts +1 -1
- package/dist/lib/utils/id.d.ts +2 -3
- package/dist/lib/utils/palette.d.ts +2 -3
- package/dist/lib/utils/relation.d.ts +3 -4
- package/dist/lib/utils/visibility.d.ts +1 -1
- package/esm/animations/types.d.ts +3 -4
- package/esm/behaviors/base-behavior.d.ts +2 -1
- package/esm/behaviors/brush-select.d.ts +33 -16
- package/esm/behaviors/brush-select.js +7 -2
- package/esm/behaviors/brush-select.js.map +1 -1
- package/esm/behaviors/click-element.d.ts +28 -5
- package/esm/behaviors/click-element.js +11 -0
- package/esm/behaviors/click-element.js.map +1 -1
- package/esm/behaviors/collapse-expand.d.ts +3 -2
- package/esm/behaviors/collapse-expand.js +2 -2
- package/esm/behaviors/collapse-expand.js.map +1 -1
- package/esm/behaviors/create-edge.d.ts +1 -2
- package/esm/behaviors/create-edge.js.map +1 -1
- package/esm/behaviors/drag-canvas.d.ts +7 -0
- package/esm/behaviors/drag-canvas.js.map +1 -1
- package/esm/behaviors/drag-element-force.d.ts +1 -2
- package/esm/behaviors/drag-element-force.js.map +1 -1
- package/esm/behaviors/drag-element.d.ts +4 -5
- package/esm/behaviors/drag-element.js.map +1 -1
- package/esm/behaviors/focus-element.js.map +1 -1
- package/esm/behaviors/hover-element.js.map +1 -1
- package/esm/behaviors/index.d.ts +2 -0
- package/esm/behaviors/index.js +1 -0
- package/esm/behaviors/index.js.map +1 -1
- package/esm/behaviors/lasso-select.d.ts +4 -4
- package/esm/behaviors/lasso-select.js +1 -1
- package/esm/behaviors/lasso-select.js.map +1 -1
- package/esm/behaviors/scroll-canvas.d.ts +64 -0
- package/esm/behaviors/scroll-canvas.js +80 -0
- package/esm/behaviors/scroll-canvas.js.map +1 -0
- package/esm/behaviors/types.d.ts +2 -1
- package/esm/behaviors/zoom-canvas.d.ts +1 -1
- package/esm/constants/events/animation.d.ts +1 -4
- package/esm/constants/events/animation.js +0 -4
- package/esm/constants/events/animation.js.map +1 -1
- package/esm/constants/events/graph.d.ts +5 -1
- package/esm/constants/events/graph.js +4 -0
- package/esm/constants/events/graph.js.map +1 -1
- package/esm/elements/combos/base-combo.d.ts +1 -1
- package/esm/elements/edges/base-edge.d.ts +0 -5
- package/esm/elements/edges/base-edge.js +1 -2
- package/esm/elements/edges/base-edge.js.map +1 -1
- package/esm/elements/nodes/base-node.d.ts +3 -10
- package/esm/elements/nodes/base-node.js +2 -2
- package/esm/elements/nodes/base-node.js.map +1 -1
- package/esm/elements/nodes/donut.d.ts +45 -0
- package/esm/elements/nodes/donut.js +81 -0
- package/esm/elements/nodes/donut.js.map +1 -0
- package/esm/elements/nodes/html.d.ts +27 -0
- package/esm/elements/nodes/html.js +209 -0
- package/esm/elements/nodes/html.js.map +1 -0
- package/esm/elements/nodes/index.d.ts +4 -0
- package/esm/elements/nodes/index.js +2 -0
- package/esm/elements/nodes/index.js.map +1 -1
- package/esm/elements/shapes/badge.d.ts +1 -1
- package/esm/{plugins/hull/shape.d.ts → elements/shapes/contour.d.ts} +17 -17
- package/esm/{plugins/hull/shape.js → elements/shapes/contour.js} +12 -11
- package/esm/elements/shapes/contour.js.map +1 -0
- package/esm/elements/shapes/index.d.ts +2 -0
- package/esm/elements/shapes/index.js +1 -0
- package/esm/elements/shapes/index.js.map +1 -1
- package/esm/exports.d.ts +15 -22
- package/esm/exports.js +8 -18
- package/esm/exports.js.map +1 -1
- package/esm/plugins/bubble-sets.d.ts +45 -0
- package/esm/plugins/bubble-sets.js +212 -0
- package/esm/plugins/bubble-sets.js.map +1 -0
- package/esm/plugins/camera-setting.d.ts +4 -2
- package/esm/plugins/camera-setting.js.map +1 -1
- package/esm/plugins/contextmenu.d.ts +1 -0
- package/esm/plugins/contextmenu.js +1 -0
- package/esm/plugins/contextmenu.js.map +1 -1
- package/esm/plugins/grid-line.d.ts +51 -8
- package/esm/plugins/grid-line.js.map +1 -1
- package/esm/plugins/history/utils.js +6 -2
- package/esm/plugins/history/utils.js.map +1 -1
- package/esm/plugins/hull/index.d.ts +44 -13
- package/esm/plugins/hull/index.js +46 -16
- package/esm/plugins/hull/index.js.map +1 -1
- package/esm/plugins/index.d.ts +4 -0
- package/esm/plugins/index.js +2 -0
- package/esm/plugins/index.js.map +1 -1
- package/esm/plugins/legend.js +4 -2
- package/esm/plugins/legend.js.map +1 -1
- package/esm/plugins/timebar.d.ts +225 -0
- package/esm/plugins/timebar.js +253 -0
- package/esm/plugins/timebar.js.map +1 -0
- package/esm/plugins/tooltip.d.ts +2 -2
- package/esm/registry/build-in.js +15 -10
- package/esm/registry/build-in.js.map +1 -1
- package/esm/registry/index.d.ts +1 -1
- package/esm/registry/index.js +1 -1
- package/esm/runtime/canvas.js +7 -4
- package/esm/runtime/canvas.js.map +1 -1
- package/esm/runtime/data.d.ts +13 -7
- package/esm/runtime/data.js +20 -3
- package/esm/runtime/data.js.map +1 -1
- package/esm/runtime/element.d.ts +6 -10
- package/esm/runtime/element.js +65 -46
- package/esm/runtime/element.js.map +1 -1
- package/esm/runtime/graph.d.ts +532 -45
- package/esm/runtime/graph.js +418 -40
- package/esm/runtime/graph.js.map +1 -1
- package/esm/runtime/layout.js +2 -2
- package/esm/runtime/layout.js.map +1 -1
- package/esm/runtime/types.d.ts +3 -3
- package/esm/runtime/viewport.d.ts +3 -4
- package/esm/runtime/viewport.js +2 -2
- package/esm/runtime/viewport.js.map +1 -1
- package/esm/spec/canvas.d.ts +6 -2
- package/esm/spec/data.d.ts +74 -1
- package/esm/spec/element/combo.d.ts +17 -6
- package/esm/spec/element/edge.d.ts +14 -2
- package/esm/spec/element/node.d.ts +19 -3
- package/esm/spec/{spec.d.ts → graph.d.ts} +12 -4
- package/esm/spec/graph.js +2 -0
- package/esm/spec/graph.js.map +1 -0
- package/esm/spec/index.d.ts +1 -1
- package/esm/spec/theme.d.ts +1 -4
- package/esm/spec/viewport.d.ts +1 -1
- package/esm/themes/base.d.ts +1 -0
- package/esm/themes/base.js +11 -9
- package/esm/themes/base.js.map +1 -1
- package/esm/themes/types.d.ts +0 -1
- package/esm/transforms/process-parallel-edges.d.ts +2 -3
- package/esm/transforms/process-parallel-edges.js +2 -4
- package/esm/transforms/process-parallel-edges.js.map +1 -1
- package/esm/transforms/types.d.ts +1 -1
- package/esm/transforms/update-related-edge.js.map +1 -1
- package/esm/types/callable.d.ts +2 -2
- package/esm/types/data.d.ts +3 -3
- package/esm/types/id.d.ts +1 -0
- package/esm/types/id.js +2 -0
- package/esm/types/id.js.map +1 -0
- package/esm/types/index.d.ts +1 -0
- package/esm/types/style.d.ts +1 -3
- package/esm/types/viewport.d.ts +4 -4
- package/esm/utils/animation.d.ts +6 -6
- package/esm/utils/animation.js +3 -3
- package/esm/utils/animation.js.map +1 -1
- package/esm/utils/behaviors/brush.d.ts +1 -2
- package/esm/utils/behaviors/brush.js.map +1 -1
- package/esm/utils/behaviors/lasso.d.ts +1 -2
- package/esm/utils/behaviors/lasso.js.map +1 -1
- package/esm/utils/behaviors/utils.d.ts +1 -1
- package/esm/utils/change.js +8 -1
- package/esm/utils/change.js.map +1 -1
- package/esm/utils/data.d.ts +2 -2
- package/esm/utils/data.js +2 -2
- package/esm/utils/edge.d.ts +1 -2
- package/esm/utils/edge.js.map +1 -1
- package/esm/utils/element.d.ts +1 -1
- package/esm/utils/element.js +2 -2
- package/esm/utils/event/events.d.ts +1 -1
- package/esm/utils/event/events.js.map +1 -1
- package/esm/utils/event/index.d.ts +1 -1
- package/esm/utils/event/index.js +1 -1
- package/esm/utils/id.d.ts +2 -3
- package/esm/utils/id.js.map +1 -1
- package/esm/utils/palette.d.ts +2 -3
- package/esm/utils/palette.js +1 -1
- package/esm/utils/palette.js.map +1 -1
- package/esm/utils/relation.d.ts +3 -4
- package/esm/utils/relation.js +2 -2
- package/esm/utils/relation.js.map +1 -1
- package/esm/utils/style.js +3 -3
- package/esm/utils/style.js.map +1 -1
- package/esm/utils/visibility.d.ts +1 -1
- package/esm/utils/visibility.js +1 -1
- package/lib/animations/types.d.ts +3 -4
- package/lib/behaviors/base-behavior.d.ts +2 -1
- package/lib/behaviors/brush-select.d.ts +33 -16
- package/lib/behaviors/brush-select.js +7 -2
- package/lib/behaviors/brush-select.js.map +1 -1
- package/lib/behaviors/click-element.d.ts +28 -5
- package/lib/behaviors/click-element.js +11 -0
- package/lib/behaviors/click-element.js.map +1 -1
- package/lib/behaviors/collapse-expand.d.ts +3 -2
- package/lib/behaviors/collapse-expand.js +2 -2
- package/lib/behaviors/collapse-expand.js.map +1 -1
- package/lib/behaviors/create-edge.d.ts +1 -2
- package/lib/behaviors/create-edge.js.map +1 -1
- package/lib/behaviors/drag-canvas.d.ts +7 -0
- package/lib/behaviors/drag-canvas.js.map +1 -1
- package/lib/behaviors/drag-element-force.d.ts +1 -2
- package/lib/behaviors/drag-element-force.js.map +1 -1
- package/lib/behaviors/drag-element.d.ts +4 -5
- package/lib/behaviors/drag-element.js.map +1 -1
- package/lib/behaviors/focus-element.js.map +1 -1
- package/lib/behaviors/hover-element.js.map +1 -1
- package/lib/behaviors/index.d.ts +2 -0
- package/lib/behaviors/index.js +3 -1
- package/lib/behaviors/index.js.map +1 -1
- package/lib/behaviors/lasso-select.d.ts +4 -4
- package/lib/behaviors/lasso-select.js +1 -1
- package/lib/behaviors/lasso-select.js.map +1 -1
- package/lib/behaviors/scroll-canvas.d.ts +64 -0
- package/lib/behaviors/scroll-canvas.js +84 -0
- package/lib/behaviors/scroll-canvas.js.map +1 -0
- package/lib/behaviors/types.d.ts +2 -1
- package/lib/behaviors/zoom-canvas.d.ts +1 -1
- package/lib/constants/events/animation.d.ts +1 -4
- package/lib/constants/events/animation.js +0 -4
- package/lib/constants/events/animation.js.map +1 -1
- package/lib/constants/events/graph.d.ts +5 -1
- package/lib/constants/events/graph.js +4 -0
- package/lib/constants/events/graph.js.map +1 -1
- package/lib/elements/combos/base-combo.d.ts +1 -1
- package/lib/elements/edges/base-edge.d.ts +0 -5
- package/lib/elements/edges/base-edge.js +1 -2
- package/lib/elements/edges/base-edge.js.map +1 -1
- package/lib/elements/nodes/base-node.d.ts +3 -10
- package/lib/elements/nodes/base-node.js +2 -2
- package/lib/elements/nodes/base-node.js.map +1 -1
- package/lib/elements/nodes/donut.d.ts +45 -0
- package/lib/elements/nodes/donut.js +85 -0
- package/lib/elements/nodes/donut.js.map +1 -0
- package/lib/elements/nodes/html.d.ts +27 -0
- package/lib/elements/nodes/html.js +213 -0
- package/lib/elements/nodes/html.js.map +1 -0
- package/lib/elements/nodes/index.d.ts +4 -0
- package/lib/elements/nodes/index.js +5 -1
- package/lib/elements/nodes/index.js.map +1 -1
- package/lib/elements/shapes/badge.d.ts +1 -1
- package/lib/{plugins/hull/shape.d.ts → elements/shapes/contour.d.ts} +17 -17
- package/lib/{plugins/hull/shape.js → elements/shapes/contour.js} +15 -14
- package/lib/elements/shapes/contour.js.map +1 -0
- package/lib/elements/shapes/index.d.ts +2 -0
- package/lib/elements/shapes/index.js +3 -1
- package/lib/elements/shapes/index.js.map +1 -1
- package/lib/exports.d.ts +15 -22
- package/lib/exports.js +50 -17
- package/lib/exports.js.map +1 -1
- package/lib/plugins/bubble-sets.d.ts +45 -0
- package/lib/plugins/bubble-sets.js +216 -0
- package/lib/plugins/bubble-sets.js.map +1 -0
- package/lib/plugins/camera-setting.d.ts +4 -2
- package/lib/plugins/camera-setting.js.map +1 -1
- package/lib/plugins/contextmenu.d.ts +1 -0
- package/lib/plugins/contextmenu.js +1 -0
- package/lib/plugins/contextmenu.js.map +1 -1
- package/lib/plugins/grid-line.d.ts +51 -8
- package/lib/plugins/grid-line.js.map +1 -1
- package/lib/plugins/history/utils.js +6 -2
- package/lib/plugins/history/utils.js.map +1 -1
- package/lib/plugins/hull/index.d.ts +44 -13
- package/lib/plugins/hull/index.js +46 -16
- package/lib/plugins/hull/index.js.map +1 -1
- package/lib/plugins/index.d.ts +4 -0
- package/lib/plugins/index.js +5 -1
- package/lib/plugins/index.js.map +1 -1
- package/lib/plugins/legend.js +4 -2
- package/lib/plugins/legend.js.map +1 -1
- package/lib/plugins/timebar.d.ts +225 -0
- package/lib/plugins/timebar.js +257 -0
- package/lib/plugins/timebar.js.map +1 -0
- package/lib/plugins/tooltip.d.ts +2 -2
- package/lib/registry/build-in.js +12 -7
- package/lib/registry/build-in.js.map +1 -1
- package/lib/registry/index.d.ts +1 -1
- package/lib/registry/index.js +1 -1
- package/lib/runtime/canvas.js +7 -4
- package/lib/runtime/canvas.js.map +1 -1
- package/lib/runtime/data.d.ts +13 -7
- package/lib/runtime/data.js +20 -3
- package/lib/runtime/data.js.map +1 -1
- package/lib/runtime/element.d.ts +6 -10
- package/lib/runtime/element.js +64 -45
- package/lib/runtime/element.js.map +1 -1
- package/lib/runtime/graph.d.ts +532 -45
- package/lib/runtime/graph.js +417 -39
- package/lib/runtime/graph.js.map +1 -1
- package/lib/runtime/layout.js +2 -2
- package/lib/runtime/layout.js.map +1 -1
- package/lib/runtime/types.d.ts +3 -3
- package/lib/runtime/viewport.d.ts +3 -4
- package/lib/runtime/viewport.js +2 -2
- package/lib/runtime/viewport.js.map +1 -1
- package/lib/spec/canvas.d.ts +6 -2
- package/lib/spec/data.d.ts +74 -1
- package/lib/spec/element/combo.d.ts +17 -6
- package/lib/spec/element/edge.d.ts +14 -2
- package/lib/spec/element/node.d.ts +19 -3
- package/{dist/lib/spec/spec.d.ts → lib/spec/graph.d.ts} +12 -4
- package/lib/spec/{spec.js → graph.js} +1 -1
- package/lib/spec/graph.js.map +1 -0
- package/lib/spec/index.d.ts +1 -1
- package/lib/spec/theme.d.ts +1 -4
- package/lib/spec/viewport.d.ts +1 -1
- package/lib/themes/base.d.ts +1 -0
- package/lib/themes/base.js +11 -9
- package/lib/themes/base.js.map +1 -1
- package/lib/themes/types.d.ts +0 -1
- package/lib/transforms/process-parallel-edges.d.ts +2 -3
- package/lib/transforms/process-parallel-edges.js +2 -4
- package/lib/transforms/process-parallel-edges.js.map +1 -1
- package/lib/transforms/types.d.ts +1 -1
- package/lib/transforms/update-related-edge.js.map +1 -1
- package/lib/types/callable.d.ts +2 -2
- package/lib/types/data.d.ts +3 -3
- package/lib/types/id.d.ts +1 -0
- package/lib/{spec/element/base.js → types/id.js} +1 -1
- package/lib/types/id.js.map +1 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/style.d.ts +1 -3
- package/lib/types/viewport.d.ts +4 -4
- package/lib/utils/animation.d.ts +6 -6
- package/lib/utils/animation.js +3 -3
- package/lib/utils/animation.js.map +1 -1
- package/lib/utils/behaviors/brush.d.ts +1 -2
- package/lib/utils/behaviors/brush.js.map +1 -1
- package/lib/utils/behaviors/lasso.d.ts +1 -2
- package/lib/utils/behaviors/lasso.js.map +1 -1
- package/lib/utils/behaviors/utils.d.ts +1 -1
- package/lib/utils/change.js +8 -1
- package/lib/utils/change.js.map +1 -1
- package/lib/utils/data.d.ts +2 -2
- package/lib/utils/data.js +2 -2
- package/lib/utils/edge.d.ts +1 -2
- package/lib/utils/edge.js.map +1 -1
- package/lib/utils/element.d.ts +1 -1
- package/lib/utils/element.js +2 -2
- package/lib/utils/event/events.d.ts +1 -1
- package/lib/utils/event/events.js.map +1 -1
- package/lib/utils/event/index.d.ts +1 -1
- package/lib/utils/event/index.js +1 -1
- package/lib/utils/id.d.ts +2 -3
- package/lib/utils/id.js.map +1 -1
- package/lib/utils/palette.d.ts +2 -3
- package/lib/utils/palette.js +1 -1
- package/lib/utils/palette.js.map +1 -1
- package/lib/utils/relation.d.ts +3 -4
- package/lib/utils/relation.js +2 -2
- package/lib/utils/relation.js.map +1 -1
- package/lib/utils/style.js +3 -3
- package/lib/utils/style.js.map +1 -1
- package/lib/utils/visibility.d.ts +1 -1
- package/lib/utils/visibility.js +1 -1
- package/package.json +2 -1
- package/src/animations/types.ts +3 -4
- package/src/behaviors/base-behavior.ts +1 -1
- package/src/behaviors/brush-select.ts +34 -16
- package/src/behaviors/click-element.ts +29 -7
- package/src/behaviors/collapse-expand.ts +5 -4
- package/src/behaviors/create-edge.ts +1 -2
- package/src/behaviors/drag-canvas.ts +7 -0
- package/src/behaviors/drag-element-force.ts +1 -2
- package/src/behaviors/drag-element.ts +3 -4
- package/src/behaviors/focus-element.ts +1 -2
- package/src/behaviors/hover-element.ts +1 -2
- package/src/behaviors/index.ts +2 -0
- package/src/behaviors/lasso-select.ts +3 -4
- package/src/behaviors/scroll-canvas.ts +143 -0
- package/src/behaviors/types.ts +2 -1
- package/src/behaviors/zoom-canvas.ts +1 -1
- package/src/constants/events/animation.ts +0 -4
- package/src/constants/events/graph.ts +4 -0
- package/src/elements/combos/base-combo.ts +1 -1
- package/src/elements/edges/base-edge.ts +1 -7
- package/src/elements/nodes/base-node.ts +6 -15
- package/src/elements/nodes/donut.ts +137 -0
- package/src/elements/nodes/html.ts +230 -0
- package/src/elements/nodes/index.ts +4 -0
- package/src/{plugins/hull/shape.ts → elements/shapes/contour.ts} +27 -34
- package/src/elements/shapes/index.ts +2 -0
- package/src/exports.ts +124 -25
- package/src/plugins/bubble-sets.ts +268 -0
- package/src/plugins/camera-setting.ts +4 -2
- package/src/plugins/contextmenu.ts +1 -0
- package/src/plugins/grid-line.ts +51 -8
- package/src/plugins/history/utils.ts +6 -2
- package/src/plugins/hull/index.ts +58 -22
- package/src/plugins/index.ts +4 -0
- package/src/plugins/legend.ts +6 -4
- package/src/plugins/timebar.ts +450 -0
- package/src/plugins/tooltip.ts +2 -2
- package/src/registry/build-in.ts +27 -8
- package/src/registry/index.ts +1 -1
- package/src/runtime/canvas.ts +7 -4
- package/src/runtime/data.ts +23 -4
- package/src/runtime/element.ts +67 -40
- package/src/runtime/graph.ts +554 -56
- package/src/runtime/layout.ts +4 -4
- package/src/runtime/types.ts +3 -3
- package/src/runtime/viewport.ts +3 -4
- package/src/spec/canvas.ts +6 -2
- package/src/spec/data.ts +74 -1
- package/src/spec/element/combo.ts +17 -6
- package/src/spec/element/edge.ts +14 -2
- package/src/spec/element/node.ts +19 -3
- package/src/spec/{spec.ts → graph.ts} +12 -4
- package/src/spec/index.ts +1 -1
- package/src/spec/theme.ts +1 -5
- package/src/spec/viewport.ts +1 -1
- package/src/themes/base.ts +12 -9
- package/src/themes/types.ts +0 -2
- package/src/transforms/arrange-draw-order.ts +1 -1
- package/src/transforms/process-parallel-edges.ts +5 -7
- package/src/transforms/types.ts +1 -1
- package/src/transforms/update-related-edge.ts +1 -2
- package/src/types/callable.ts +2 -2
- package/src/types/data.ts +3 -3
- package/src/types/id.ts +1 -0
- package/src/types/index.ts +1 -0
- package/src/types/style.ts +1 -3
- package/src/types/viewport.ts +4 -4
- package/src/utils/animation.ts +6 -6
- package/src/utils/behaviors/brush.ts +1 -2
- package/src/utils/behaviors/lasso.ts +1 -2
- package/src/utils/behaviors/utils.ts +1 -1
- package/src/utils/change.ts +7 -3
- package/src/utils/data.ts +2 -2
- package/src/utils/edge.ts +1 -1
- package/src/utils/element.ts +2 -2
- package/src/utils/event/events.ts +3 -1
- package/src/utils/event/index.ts +1 -1
- package/src/utils/id.ts +1 -2
- package/src/utils/palette.ts +2 -2
- package/src/utils/relation.ts +3 -4
- package/src/utils/style.ts +3 -3
- package/src/utils/visibility.ts +1 -1
- package/dist/lib/runtime/index.d.ts +0 -6
- package/dist/lib/spec/element/base.d.ts +0 -6
- package/esm/plugins/hull/shape.js.map +0 -1
- package/esm/runtime/index.d.ts +0 -6
- package/esm/runtime/index.js +0 -7
- package/esm/runtime/index.js.map +0 -1
- package/esm/spec/element/base.d.ts +0 -6
- package/esm/spec/element/base.js +0 -2
- package/esm/spec/element/base.js.map +0 -1
- package/esm/spec/spec.js +0 -2
- package/esm/spec/spec.js.map +0 -1
- package/lib/plugins/hull/shape.js.map +0 -1
- package/lib/runtime/index.d.ts +0 -6
- package/lib/runtime/index.js +0 -8
- package/lib/runtime/index.js.map +0 -1
- package/lib/spec/element/base.d.ts +0 -6
- package/lib/spec/element/base.js.map +0 -1
- package/lib/spec/spec.js.map +0 -1
- package/src/runtime/index.ts +0 -7
- package/src/spec/element/base.ts +0 -6
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HTML = void 0;
|
|
4
|
+
const g_1 = require("@antv/g");
|
|
5
|
+
const util_1 = require("@antv/util");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
const base_node_1 = require("./base-node");
|
|
8
|
+
/**
|
|
9
|
+
* @see https://github.com/antvis/G/blob/next/packages/g-lite/src/plugins/EventPlugin.ts
|
|
10
|
+
*/
|
|
11
|
+
class HTML extends base_node_1.BaseNode {
|
|
12
|
+
static defaultStyleProps = {
|
|
13
|
+
size: [160, 80],
|
|
14
|
+
halo: false,
|
|
15
|
+
icon: false,
|
|
16
|
+
label: false,
|
|
17
|
+
pointerEvents: 'auto',
|
|
18
|
+
};
|
|
19
|
+
constructor(options) {
|
|
20
|
+
super({ ...options, style: Object.assign({}, HTML.defaultStyleProps, options.style) });
|
|
21
|
+
}
|
|
22
|
+
rootPointerEvent = new g_1.FederatedPointerEvent(null);
|
|
23
|
+
get eventService() {
|
|
24
|
+
return this.attributes.context.canvas.context.eventService;
|
|
25
|
+
}
|
|
26
|
+
get events() {
|
|
27
|
+
return [
|
|
28
|
+
constants_1.NodeEvent.CLICK,
|
|
29
|
+
constants_1.NodeEvent.POINTER_DOWN,
|
|
30
|
+
constants_1.NodeEvent.POINTER_MOVE,
|
|
31
|
+
constants_1.NodeEvent.POINTER_UP,
|
|
32
|
+
constants_1.NodeEvent.POINTER_OVER,
|
|
33
|
+
constants_1.NodeEvent.POINTER_LEAVE,
|
|
34
|
+
];
|
|
35
|
+
}
|
|
36
|
+
getDomElement() {
|
|
37
|
+
return this.getKey().getDomElement();
|
|
38
|
+
}
|
|
39
|
+
getKeyStyle(attributes) {
|
|
40
|
+
const style = (0, util_1.pick)(attributes, ['innerHTML', 'pointerEvents', 'cursor']);
|
|
41
|
+
const [width, height] = this.getSize(attributes);
|
|
42
|
+
return { ...style, width, height };
|
|
43
|
+
}
|
|
44
|
+
drawKeyShape(attributes, container) {
|
|
45
|
+
return this.upsert('key', g_1.HTML, this.getKeyStyle(attributes), container);
|
|
46
|
+
}
|
|
47
|
+
connectedCallback() {
|
|
48
|
+
const element = this.getDomElement();
|
|
49
|
+
this.events.forEach((eventName) => {
|
|
50
|
+
// @ts-expect-error assert event is PointerEvent
|
|
51
|
+
element.addEventListener(eventName, this.forwardEvents);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
attributeChangedCallback(name, oldValue, newValue) {
|
|
55
|
+
if (name === 'zIndex' && oldValue !== newValue) {
|
|
56
|
+
this.getDomElement().style.zIndex = newValue;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
onDestroy() {
|
|
60
|
+
const element = this.getDomElement();
|
|
61
|
+
this.events.forEach((eventName) => {
|
|
62
|
+
// @ts-expect-error assert event is PointerEvent
|
|
63
|
+
element.removeEventListener(eventName, this.forwardEvents);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
forwardEvents = (nativeEvent) => {
|
|
67
|
+
const canvas = this.attributes.context.canvas.main;
|
|
68
|
+
const iCanvas = canvas.context.renderingContext.root.ownerDocument.defaultView;
|
|
69
|
+
const normalizedEvents = this.normalizeToPointerEvent(nativeEvent, iCanvas);
|
|
70
|
+
normalizedEvents.forEach((normalizedEvent) => {
|
|
71
|
+
const event = this.bootstrapEvent(this.rootPointerEvent, normalizedEvent, iCanvas, nativeEvent);
|
|
72
|
+
canvas.context.eventService.mapEvent(event);
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
normalizeToPointerEvent(event, canvas) {
|
|
76
|
+
const normalizedEvents = [];
|
|
77
|
+
if (canvas.isTouchEvent(event)) {
|
|
78
|
+
for (let i = 0; i < event.changedTouches.length; i++) {
|
|
79
|
+
const touch = event.changedTouches[i];
|
|
80
|
+
// use changedTouches instead of touches since touchend has no touches
|
|
81
|
+
// @see https://stackoverflow.com/a/10079076
|
|
82
|
+
if ((0, util_1.isUndefined)(touch.button))
|
|
83
|
+
touch.button = 0;
|
|
84
|
+
if ((0, util_1.isUndefined)(touch.buttons))
|
|
85
|
+
touch.buttons = 1;
|
|
86
|
+
if ((0, util_1.isUndefined)(touch.isPrimary)) {
|
|
87
|
+
touch.isPrimary = event.touches.length === 1 && event.type === 'touchstart';
|
|
88
|
+
}
|
|
89
|
+
if ((0, util_1.isUndefined)(touch.width))
|
|
90
|
+
touch.width = touch.radiusX || 1;
|
|
91
|
+
if ((0, util_1.isUndefined)(touch.height))
|
|
92
|
+
touch.height = touch.radiusY || 1;
|
|
93
|
+
if ((0, util_1.isUndefined)(touch.tiltX))
|
|
94
|
+
touch.tiltX = 0;
|
|
95
|
+
if ((0, util_1.isUndefined)(touch.tiltY))
|
|
96
|
+
touch.tiltY = 0;
|
|
97
|
+
if ((0, util_1.isUndefined)(touch.pointerType))
|
|
98
|
+
touch.pointerType = 'touch';
|
|
99
|
+
// @see https://developer.mozilla.org/zh-CN/docs/Web/API/Touch/identifier
|
|
100
|
+
if ((0, util_1.isUndefined)(touch.pointerId))
|
|
101
|
+
touch.pointerId = touch.identifier || 0;
|
|
102
|
+
if ((0, util_1.isUndefined)(touch.pressure))
|
|
103
|
+
touch.pressure = touch.force || 0.5;
|
|
104
|
+
if ((0, util_1.isUndefined)(touch.twist))
|
|
105
|
+
touch.twist = 0;
|
|
106
|
+
if ((0, util_1.isUndefined)(touch.tangentialPressure))
|
|
107
|
+
touch.tangentialPressure = 0;
|
|
108
|
+
touch.isNormalized = true;
|
|
109
|
+
touch.type = event.type;
|
|
110
|
+
normalizedEvents.push(touch);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
else if (canvas.isMouseEvent(event)) {
|
|
114
|
+
const tempEvent = event;
|
|
115
|
+
if ((0, util_1.isUndefined)(tempEvent.isPrimary))
|
|
116
|
+
tempEvent.isPrimary = true;
|
|
117
|
+
if ((0, util_1.isUndefined)(tempEvent.width))
|
|
118
|
+
tempEvent.width = 1;
|
|
119
|
+
if ((0, util_1.isUndefined)(tempEvent.height))
|
|
120
|
+
tempEvent.height = 1;
|
|
121
|
+
if ((0, util_1.isUndefined)(tempEvent.tiltX))
|
|
122
|
+
tempEvent.tiltX = 0;
|
|
123
|
+
if ((0, util_1.isUndefined)(tempEvent.tiltY))
|
|
124
|
+
tempEvent.tiltY = 0;
|
|
125
|
+
if ((0, util_1.isUndefined)(tempEvent.pointerType))
|
|
126
|
+
tempEvent.pointerType = 'mouse';
|
|
127
|
+
if ((0, util_1.isUndefined)(tempEvent.pointerId))
|
|
128
|
+
tempEvent.pointerId = 1;
|
|
129
|
+
if ((0, util_1.isUndefined)(tempEvent.pressure))
|
|
130
|
+
tempEvent.pressure = 0.5;
|
|
131
|
+
if ((0, util_1.isUndefined)(tempEvent.twist))
|
|
132
|
+
tempEvent.twist = 0;
|
|
133
|
+
if ((0, util_1.isUndefined)(tempEvent.tangentialPressure))
|
|
134
|
+
tempEvent.tangentialPressure = 0;
|
|
135
|
+
tempEvent.isNormalized = true;
|
|
136
|
+
normalizedEvents.push(tempEvent);
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
normalizedEvents.push(event);
|
|
140
|
+
}
|
|
141
|
+
return normalizedEvents;
|
|
142
|
+
}
|
|
143
|
+
transferMouseData(event, nativeEvent) {
|
|
144
|
+
event.isTrusted = nativeEvent.isTrusted;
|
|
145
|
+
event.srcElement = nativeEvent.srcElement;
|
|
146
|
+
event.timeStamp = performance.now();
|
|
147
|
+
event.type = nativeEvent.type;
|
|
148
|
+
event.altKey = nativeEvent.altKey;
|
|
149
|
+
event.metaKey = nativeEvent.metaKey;
|
|
150
|
+
event.shiftKey = nativeEvent.shiftKey;
|
|
151
|
+
event.ctrlKey = nativeEvent.ctrlKey;
|
|
152
|
+
event.button = nativeEvent.button;
|
|
153
|
+
event.buttons = nativeEvent.buttons;
|
|
154
|
+
event.client.x = nativeEvent.clientX;
|
|
155
|
+
event.client.y = nativeEvent.clientY;
|
|
156
|
+
event.movement.x = nativeEvent.movementX;
|
|
157
|
+
event.movement.y = nativeEvent.movementY;
|
|
158
|
+
event.page.x = nativeEvent.pageX;
|
|
159
|
+
event.page.y = nativeEvent.pageY;
|
|
160
|
+
event.screen.x = nativeEvent.screenX;
|
|
161
|
+
event.screen.y = nativeEvent.screenY;
|
|
162
|
+
event.relatedTarget = null;
|
|
163
|
+
}
|
|
164
|
+
bootstrapEvent(event, normalizedEvent, view, nativeEvent) {
|
|
165
|
+
event.view = view;
|
|
166
|
+
// @ts-ignore
|
|
167
|
+
event.originalEvent = null;
|
|
168
|
+
event.nativeEvent = nativeEvent;
|
|
169
|
+
event.pointerId = normalizedEvent.pointerId;
|
|
170
|
+
event.width = normalizedEvent.width;
|
|
171
|
+
event.height = normalizedEvent.height;
|
|
172
|
+
event.isPrimary = normalizedEvent.isPrimary;
|
|
173
|
+
event.pointerType = normalizedEvent.pointerType;
|
|
174
|
+
event.pressure = normalizedEvent.pressure;
|
|
175
|
+
event.tangentialPressure = normalizedEvent.tangentialPressure;
|
|
176
|
+
event.tiltX = normalizedEvent.tiltX;
|
|
177
|
+
event.tiltY = normalizedEvent.tiltY;
|
|
178
|
+
event.twist = normalizedEvent.twist;
|
|
179
|
+
this.transferMouseData(event, normalizedEvent);
|
|
180
|
+
const { x, y } = this.getViewportXY(normalizedEvent);
|
|
181
|
+
event.viewport.x = x;
|
|
182
|
+
event.viewport.y = y;
|
|
183
|
+
const { x: canvasX, y: canvasY } = this.attributes.context.canvas.viewport2Canvas(event.viewport);
|
|
184
|
+
event.canvas.x = canvasX;
|
|
185
|
+
event.canvas.y = canvasY;
|
|
186
|
+
event.global.copyFrom(event.canvas);
|
|
187
|
+
event.offset.copyFrom(event.canvas);
|
|
188
|
+
event.isTrusted = nativeEvent.isTrusted;
|
|
189
|
+
if (event.type === 'pointerleave') {
|
|
190
|
+
event.type = 'pointerout';
|
|
191
|
+
}
|
|
192
|
+
return event;
|
|
193
|
+
}
|
|
194
|
+
getViewportXY(nativeEvent) {
|
|
195
|
+
let x;
|
|
196
|
+
let y;
|
|
197
|
+
const { offsetX, offsetY, clientX, clientY } = nativeEvent;
|
|
198
|
+
if (this.attributes.context?.canvas.main.context.config.supportsCSSTransform &&
|
|
199
|
+
!(0, util_1.isNil)(offsetX) &&
|
|
200
|
+
!(0, util_1.isNil)(offsetY)) {
|
|
201
|
+
x = offsetX;
|
|
202
|
+
y = offsetY;
|
|
203
|
+
}
|
|
204
|
+
else {
|
|
205
|
+
const point = this.eventService.client2Viewport({ x: clientX, y: clientY });
|
|
206
|
+
x = point.x;
|
|
207
|
+
y = point.y;
|
|
208
|
+
}
|
|
209
|
+
return { x, y };
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
exports.HTML = HTML;
|
|
213
|
+
//# sourceMappingURL=html.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"html.js","sourceRoot":"src/","sources":["elements/nodes/html.ts"],"names":[],"mappings":";;;AAQA,+BAA+D;AAC/D,qCAAsD;AACtD,+CAA4C;AAE5C,2CAAuC;AAMvC;;GAEG;AACH,MAAa,IAAK,SAAQ,oBAAwB;IAChD,MAAM,CAAC,iBAAiB,GAA4B;QAClD,IAAI,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC;QACf,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,KAAK;QACX,KAAK,EAAE,KAAK;QACZ,aAAa,EAAE,MAAM;KACtB,CAAC;IAEF,YAAY,OAA4C;QACtD,KAAK,CAAC,EAAE,GAAG,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,iBAAiB,EAAE,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACzF,CAAC;IAEO,gBAAgB,GAAG,IAAI,yBAAqB,CAAC,IAAI,CAAC,CAAC;IAE3D,IAAY,YAAY;QACtB,OAAO,IAAI,CAAC,UAAU,CAAC,OAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC;IAC9D,CAAC;IAED,IAAY,MAAM;QAChB,OAAO;YACL,qBAAS,CAAC,KAAK;YACf,qBAAS,CAAC,YAAY;YACtB,qBAAS,CAAC,YAAY;YACtB,qBAAS,CAAC,UAAU;YAC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C5E,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;YACZ,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC;QACd,CAAC;QACD,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;IAClB,CAAC;;AA/MH,oBAgNC"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export { BaseNode } from './base-node';
|
|
2
2
|
export { Circle } from './circle';
|
|
3
3
|
export { Diamond } from './diamond';
|
|
4
|
+
export { Donut } from './donut';
|
|
4
5
|
export { Ellipse } from './ellipse';
|
|
5
6
|
export { Hexagon } from './hexagon';
|
|
7
|
+
export { HTML } from './html';
|
|
6
8
|
export { Image } from './image';
|
|
7
9
|
export { Rect } from './rect';
|
|
8
10
|
export { Star } from './star';
|
|
@@ -10,8 +12,10 @@ export { Triangle } from './triangle';
|
|
|
10
12
|
export type { BaseNodeStyleProps } from './base-node';
|
|
11
13
|
export type { CircleStyleProps } from './circle';
|
|
12
14
|
export type { DiamondStyleProps } from './diamond';
|
|
15
|
+
export type { DonutStyleProps } from './donut';
|
|
13
16
|
export type { EllipseStyleProps } from './ellipse';
|
|
14
17
|
export type { HexagonStyleProps } from './hexagon';
|
|
18
|
+
export type { HTMLStyleProps } from './html';
|
|
15
19
|
export type { ImageStyleProps } from './image';
|
|
16
20
|
export type { RectStyleProps } from './rect';
|
|
17
21
|
export type { StarStyleProps } from './star';
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Triangle = exports.Star = exports.Rect = exports.Image = exports.Hexagon = exports.Ellipse = exports.Diamond = exports.Circle = exports.BaseNode = void 0;
|
|
3
|
+
exports.Triangle = exports.Star = exports.Rect = exports.Image = exports.HTML = exports.Hexagon = exports.Ellipse = exports.Donut = exports.Diamond = exports.Circle = exports.BaseNode = void 0;
|
|
4
4
|
var base_node_1 = require("./base-node");
|
|
5
5
|
Object.defineProperty(exports, "BaseNode", { enumerable: true, get: function () { return base_node_1.BaseNode; } });
|
|
6
6
|
var circle_1 = require("./circle");
|
|
7
7
|
Object.defineProperty(exports, "Circle", { enumerable: true, get: function () { return circle_1.Circle; } });
|
|
8
8
|
var diamond_1 = require("./diamond");
|
|
9
9
|
Object.defineProperty(exports, "Diamond", { enumerable: true, get: function () { return diamond_1.Diamond; } });
|
|
10
|
+
var donut_1 = require("./donut");
|
|
11
|
+
Object.defineProperty(exports, "Donut", { enumerable: true, get: function () { return donut_1.Donut; } });
|
|
10
12
|
var ellipse_1 = require("./ellipse");
|
|
11
13
|
Object.defineProperty(exports, "Ellipse", { enumerable: true, get: function () { return ellipse_1.Ellipse; } });
|
|
12
14
|
var hexagon_1 = require("./hexagon");
|
|
13
15
|
Object.defineProperty(exports, "Hexagon", { enumerable: true, get: function () { return hexagon_1.Hexagon; } });
|
|
16
|
+
var html_1 = require("./html");
|
|
17
|
+
Object.defineProperty(exports, "HTML", { enumerable: true, get: function () { return html_1.HTML; } });
|
|
14
18
|
var image_1 = require("./image");
|
|
15
19
|
Object.defineProperty(exports, "Image", { enumerable: true, get: function () { return image_1.Image; } });
|
|
16
20
|
var rect_1 = require("./rect");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["elements/nodes/index.ts"],"names":[],"mappings":";;;AAAA,yCAAuC;AAA9B,qGAAA,QAAQ,OAAA;AACjB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["elements/nodes/index.ts"],"names":[],"mappings":";;;AAAA,yCAAuC;AAA9B,qGAAA,QAAQ,OAAA;AACjB,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA"}
|
|
@@ -7,7 +7,7 @@ type BadgeOptions = DisplayObjectConfig<BadgeStyleProps>;
|
|
|
7
7
|
export declare class Badge extends BaseShape<BadgeStyleProps> {
|
|
8
8
|
static defaultStyleProps: Partial<BadgeStyleProps>;
|
|
9
9
|
constructor(options: BadgeOptions);
|
|
10
|
-
protected getBadgeStyle(attributes: ParsedBadgeStyleProps): Omit<Required<LabelStyleProps>, "transform" | "x" | "y" | "z" | "
|
|
10
|
+
protected getBadgeStyle(attributes: ParsedBadgeStyleProps): Omit<Required<LabelStyleProps>, "transform" | "x" | "y" | "z" | "transformOrigin" | "zIndex" | "context" | "className">;
|
|
11
11
|
render(attributes?: ParsedBadgeStyleProps, container?: Group): void;
|
|
12
12
|
connectedCallback(): void;
|
|
13
13
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { DisplayObjectConfig, Group, PathStyleProps } from '@antv/g';
|
|
2
|
-
import type { LabelStyleProps } from '../../elements/shapes';
|
|
3
|
-
import { BaseShape } from '../../elements/shapes';
|
|
4
2
|
import type { CardinalPlacement, PrefixObject } from '../../types';
|
|
5
|
-
type
|
|
3
|
+
import type { LabelStyleProps } from '../shapes';
|
|
4
|
+
import { BaseShape } from './base-shape';
|
|
5
|
+
interface ContourLabelStyleProps extends LabelStyleProps {
|
|
6
6
|
/**
|
|
7
7
|
* <zh/> 标签位置,可选值为 'top'、'right'、'bottom'、'left'、'center';默认为 'bottom'
|
|
8
8
|
* <en/> Label position, optional values are 'top', 'right', 'bottom', 'left', 'center'; default is 'bottom'
|
|
@@ -12,10 +12,10 @@ type HullLabelStyleProps = LabelStyleProps & {
|
|
|
12
12
|
* <zh/> 标签是否贴合轮廓,默认为 true
|
|
13
13
|
* <en/> Whether the label is close to the contour, default is true
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
closeToPath?: boolean;
|
|
16
16
|
/**
|
|
17
|
-
* <zh/> 标签是否跟随轮廓旋转,默认为 true,仅在
|
|
18
|
-
* <en/> Whether the label rotates with the contour, default is true. Only effective when
|
|
17
|
+
* <zh/> 标签是否跟随轮廓旋转,默认为 true,仅在 closeToPath 为 true 时生效
|
|
18
|
+
* <en/> Whether the label rotates with the contour, default is true. Only effective when closeToPath is true
|
|
19
19
|
*/
|
|
20
20
|
autoRotate?: boolean;
|
|
21
21
|
/**
|
|
@@ -33,17 +33,17 @@ type HullLabelStyleProps = LabelStyleProps & {
|
|
|
33
33
|
* <en/> The maximum width of the text, which will be automatically ellipsis if exceeded
|
|
34
34
|
*/
|
|
35
35
|
maxWidth?: number;
|
|
36
|
-
}
|
|
37
|
-
export type
|
|
36
|
+
}
|
|
37
|
+
export type ContourStyleProps = PathStyleProps & {
|
|
38
38
|
label?: boolean;
|
|
39
|
-
} & PrefixObject<
|
|
40
|
-
type
|
|
41
|
-
type
|
|
42
|
-
export declare class
|
|
43
|
-
static defaultStyleProps: Partial<
|
|
44
|
-
constructor(options:
|
|
45
|
-
protected getLabelStyle(attributes:
|
|
46
|
-
protected
|
|
47
|
-
render(attributes:
|
|
39
|
+
} & PrefixObject<ContourLabelStyleProps, 'label'>;
|
|
40
|
+
type ParsedContourStyleProps = Required<ContourStyleProps>;
|
|
41
|
+
type ContourOptions = DisplayObjectConfig<ContourStyleProps>;
|
|
42
|
+
export declare class Contour extends BaseShape<ContourStyleProps> {
|
|
43
|
+
static defaultStyleProps: Partial<ContourStyleProps>;
|
|
44
|
+
constructor(options: ContourOptions);
|
|
45
|
+
protected getLabelStyle(attributes: ParsedContourStyleProps): LabelStyleProps | false;
|
|
46
|
+
protected getKeyStyle(attributes: ParsedContourStyleProps): PathStyleProps;
|
|
47
|
+
render(attributes: ParsedContourStyleProps, container: Group): void;
|
|
48
48
|
}
|
|
49
49
|
export {};
|
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.Contour = void 0;
|
|
4
4
|
const g_1 = require("@antv/g");
|
|
5
5
|
const util_1 = require("@antv/util");
|
|
6
|
-
const shapes_1 = require("../../elements/shapes");
|
|
7
6
|
const polygon_1 = require("../../utils/polygon");
|
|
8
7
|
const prefix_1 = require("../../utils/prefix");
|
|
9
8
|
const text_1 = require("../../utils/text");
|
|
10
|
-
|
|
9
|
+
const base_shape_1 = require("./base-shape");
|
|
10
|
+
const label_1 = require("./label");
|
|
11
|
+
class Contour extends base_shape_1.BaseShape {
|
|
11
12
|
static defaultStyleProps = {
|
|
12
13
|
label: true,
|
|
13
14
|
labelPlacement: 'bottom',
|
|
14
|
-
|
|
15
|
+
labelCloseToPath: true,
|
|
15
16
|
labelAutoRotate: true,
|
|
16
17
|
labelOffsetX: 0,
|
|
17
18
|
labelOffsetY: 0,
|
|
18
19
|
};
|
|
19
20
|
constructor(options) {
|
|
20
|
-
super((0, util_1.deepMix)({}, { style:
|
|
21
|
+
super((0, util_1.deepMix)({}, { style: Contour.defaultStyleProps }, options));
|
|
21
22
|
}
|
|
22
23
|
getLabelStyle(attributes) {
|
|
23
24
|
if (!attributes.label || !attributes.path || attributes.path.length === 0)
|
|
24
25
|
return false;
|
|
25
|
-
const { maxWidth, offsetX, offsetY, autoRotate, placement,
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
return Object.assign((0, polygon_1.getPolygonTextStyleByPlacement)(
|
|
26
|
+
const { maxWidth, offsetX, offsetY, autoRotate, placement, closeToPath, ...labelStyle } = (0, prefix_1.subStyleProps)(this.getGraphicStyle(attributes), 'label');
|
|
27
|
+
const key = this.shapeMap.key;
|
|
28
|
+
const keyBounds = key?.getRenderBounds();
|
|
29
|
+
return Object.assign((0, polygon_1.getPolygonTextStyleByPlacement)(keyBounds, placement, offsetX, offsetY, closeToPath, attributes.path, autoRotate), { wordWrapWidth: (0, text_1.getWordWrapWidthByBox)(keyBounds, maxWidth) }, labelStyle);
|
|
29
30
|
}
|
|
30
|
-
|
|
31
|
+
getKeyStyle(attributes) {
|
|
31
32
|
return this.getGraphicStyle(attributes);
|
|
32
33
|
}
|
|
33
34
|
render(attributes, container) {
|
|
34
|
-
this.upsert('
|
|
35
|
-
this.upsert('label',
|
|
35
|
+
this.upsert('key', g_1.Path, this.getKeyStyle(attributes), container);
|
|
36
|
+
this.upsert('label', label_1.Label, this.getLabelStyle(attributes), container);
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
|
-
exports.
|
|
39
|
-
//# sourceMappingURL=
|
|
39
|
+
exports.Contour = Contour;
|
|
40
|
+
//# sourceMappingURL=contour.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contour.js","sourceRoot":"src/","sources":["elements/shapes/contour.ts"],"names":[],"mappings":";;;AACA,+BAA+B;AAC/B,qCAAqC;AAErC,iDAAqE;AACrE,+CAAmD;AACnD,2CAAyD;AAEzD,6CAAyC;AACzC,mCAAgC;AAyChC,MAAa,OAAQ,SAAQ,sBAA4B;IACvD,MAAM,CAAC,iBAAiB,GAA+B;QACrD,KAAK,EAAE,IAAI;QACX,cAAc,EAAE,QAAQ;QACxB,gBAAgB,EAAE,IAAI;QACtB,eAAe,EAAE,IAAI;QACrB,YAAY,EAAE,CAAC;QACf,YAAY,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Aa,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC,CAAC;IACzE,CAAC;;AArCH,0BAsCC"}
|
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export { Badge } from './badge';
|
|
7
7
|
export { BaseShape } from './base-shape';
|
|
8
|
+
export { Contour } from './contour';
|
|
8
9
|
export { Icon } from './icon';
|
|
9
10
|
export { Label } from './label';
|
|
10
11
|
export type { BadgeStyleProps } from './badge';
|
|
11
12
|
export type { BaseShapeStyleProps } from './base-shape';
|
|
13
|
+
export type { ContourStyleProps } from './contour';
|
|
12
14
|
export type { IconStyleProps } from './icon';
|
|
13
15
|
export type { LabelStyleProps } from './label';
|
|
@@ -5,11 +5,13 @@
|
|
|
5
5
|
* <en/> Shape components, used to build composite elements
|
|
6
6
|
*/
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Label = exports.Icon = exports.BaseShape = exports.Badge = void 0;
|
|
8
|
+
exports.Label = exports.Icon = exports.Contour = exports.BaseShape = exports.Badge = void 0;
|
|
9
9
|
var badge_1 = require("./badge");
|
|
10
10
|
Object.defineProperty(exports, "Badge", { enumerable: true, get: function () { return badge_1.Badge; } });
|
|
11
11
|
var base_shape_1 = require("./base-shape");
|
|
12
12
|
Object.defineProperty(exports, "BaseShape", { enumerable: true, get: function () { return base_shape_1.BaseShape; } });
|
|
13
|
+
var contour_1 = require("./contour");
|
|
14
|
+
Object.defineProperty(exports, "Contour", { enumerable: true, get: function () { return contour_1.Contour; } });
|
|
13
15
|
var icon_1 = require("./icon");
|
|
14
16
|
Object.defineProperty(exports, "Icon", { enumerable: true, get: function () { return icon_1.Icon; } });
|
|
15
17
|
var label_1 = require("./label");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["elements/shapes/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,2CAAyC;AAAhC,uGAAA,SAAS,OAAA;AAClB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,iCAAgC;AAAvB,8FAAA,KAAK,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["elements/shapes/index.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;AAEH,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,2CAAyC;AAAhC,uGAAA,SAAS,OAAA;AAClB,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,iCAAgC;AAAvB,8FAAA,KAAK,OAAA"}
|
package/lib/exports.d.ts
CHANGED
|
@@ -1,36 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
import { omitStyleProps, subStyleProps } from './utils/prefix';
|
|
3
|
-
import { treeToGraphData } from './utils/tree';
|
|
4
|
-
export { BaseBehavior, DragCanvas, ZoomCanvas } from './behaviors';
|
|
1
|
+
export { BaseBehavior, BrushSelect, ClickElement, CollapseExpand, CreateEdge, DragCanvas, DragElement, DragElementForce, FocusElement, HoverElement, LassoSelect, ZoomCanvas, } from './behaviors';
|
|
5
2
|
export { CanvasEvent, ComboEvent, CommonEvent, ContainerEvent, EdgeEvent, ExtensionCategory, GraphEvent, NodeEvent, } from './constants';
|
|
6
3
|
export { BaseCombo, CircleCombo, RectCombo } from './elements/combos';
|
|
7
4
|
export { BaseEdge, Cubic, CubicHorizontal, CubicVertical, Line, Polyline, Quadratic } from './elements/edges';
|
|
8
|
-
export { BaseNode, Circle, Diamond, Ellipse, Hexagon, Image, Rect, Star, Triangle } from './elements/nodes';
|
|
5
|
+
export { BaseNode, Circle, Diamond, Donut, Ellipse, HTML, Hexagon, Image, Rect, Star, Triangle, } from './elements/nodes';
|
|
9
6
|
export { BaseShape } from './elements/shapes';
|
|
10
|
-
export {
|
|
7
|
+
export { AntVDagreLayout, CircularLayout, ComboCombinedLayout, ConcentricLayout, D3Force3DLayout, D3ForceLayout, DagreLayout, ForceAtlas2Layout, ForceLayout, FruchtermanLayout, GridLayout, MDSLayout, RadialLayout, RandomLayout, compactBox, dendrogram, indented, mindmap, } from './layouts';
|
|
8
|
+
export { BasePlugin, BubbleSets, CameraSetting, Contextmenu, GridLine, History, Hull, Legend, Timebar, Toolbar, Tooltip, Watermark, } from './plugins';
|
|
11
9
|
export { getExtension, getExtensions, register } from './registry';
|
|
12
10
|
export { Graph } from './runtime/graph';
|
|
13
11
|
export { BaseTransform } from './transforms';
|
|
12
|
+
export { idOf } from './utils/id';
|
|
13
|
+
export { omitStyleProps, subStyleProps } from './utils/prefix';
|
|
14
14
|
export { Shortcut } from './utils/shortcut';
|
|
15
|
-
export
|
|
15
|
+
export { parseSize } from './utils/size';
|
|
16
|
+
export { treeToGraphData } from './utils/tree';
|
|
17
|
+
export type { BaseStyleProps } from '@antv/g';
|
|
18
|
+
export type { AntVDagreLayoutOptions, CircularLayoutOptions, ComboCombinedLayoutOptions, ConcentricLayoutOptions, D3Force3DLayoutOptions, D3ForceLayoutOptions, DagreLayoutOptions, ForceAtlas2LayoutOptions, ForceLayoutOptions, FruchtermanLayoutOptions, GridLayoutOptions, MDSLayoutOptions, RadialLayoutOptions, RandomLayoutOptions, } from '@antv/layout';
|
|
19
|
+
export type { BaseBehaviorOptions, BrushSelectOptions, ClickElementOptions, CollapseExpandOptions, CreateEdgeOptions, DragCanvasOptions, DragElementForceOptions, DragElementOptions, FocusElementOptions, HoverElementOptions, LassoSelectOptions, ZoomCanvasOptions, } from './behaviors';
|
|
16
20
|
export type { BaseComboStyleProps, CircleComboStyleProps, RectComboStyleProps } from './elements/combos';
|
|
17
21
|
export type { BaseEdgeStyleProps, CubicHorizontalStyleProps, CubicStyleProps, CubicVerticalStyleProps, LineStyleProps, PolylineStyleProps, QuadraticStyleProps, } from './elements/edges';
|
|
18
|
-
export type { BaseNodeStyleProps, CircleStyleProps, DiamondStyleProps, EllipseStyleProps, HexagonStyleProps, ImageStyleProps, RectStyleProps, StarStyleProps, TriangleStyleProps, } from './elements/nodes';
|
|
22
|
+
export type { BaseNodeStyleProps, CircleStyleProps, DiamondStyleProps, EllipseStyleProps, HTMLStyleProps, HexagonStyleProps, ImageStyleProps, RectStyleProps, StarStyleProps, TriangleStyleProps, } from './elements/nodes';
|
|
19
23
|
export type { BaseShapeStyleProps } from './elements/shapes';
|
|
20
|
-
export type { BasePluginOptions, CameraSettingOptions,
|
|
24
|
+
export type { BasePluginOptions, BubbleSetsOptions, CameraSettingOptions, ContextmenuOptions, GridLineOptions, HistoryOptions, HullOptions, LegendOptions, TimebarOptions, ToolbarOptions, TooltipOptions, WatermarkOptions, } from './plugins';
|
|
21
25
|
export type { RuntimeContext } from './runtime/types';
|
|
22
|
-
export type { BehaviorOptions, CanvasOptions, ComboData, ComboOptions, EdgeData, EdgeOptions,
|
|
26
|
+
export type { BehaviorOptions, CanvasOptions, ComboData, ComboOptions, EdgeData, EdgeOptions, GraphData, GraphOptions, LayoutOptions, NodeData, NodeOptions, PluginOptions, ThemeOptions, ViewportOptions, } from './spec';
|
|
23
27
|
export type { BaseTransformOptions } from './transforms';
|
|
24
|
-
export type { IAnimateEvent, IDragEvent, IElementLifeCycleEvent, IEvent, IGraphLifeCycleEvent, IKeyboardEvent, IPointerEvent, IViewportEvent, IWheelEvent, Point, Vector2, Vector3, ViewportAnimationEffectTiming, } from './types';
|
|
28
|
+
export type { CardinalPlacement, Combo, CornerPlacement, DirectionalPlacement, Edge, Element, ElementType, IAnimateEvent, ID, IDragEvent, IElementLifeCycleEvent, IEvent, IGraphLifeCycleEvent, IKeyboardEvent, IPointerEvent, IViewportEvent, IWheelEvent, Node, Placement, Point, RelativePlacement, State, Vector2, Vector3, ViewportAnimationEffectTiming, } from './types';
|
|
25
29
|
export type { ShortcutKey } from './utils/shortcut';
|
|
26
|
-
declare const Utils: {
|
|
27
|
-
idOf: typeof idOf;
|
|
28
|
-
treeToGraphData: typeof treeToGraphData;
|
|
29
|
-
subStyleProps: typeof subStyleProps;
|
|
30
|
-
omitStyleProps: typeof omitStyleProps;
|
|
31
|
-
};
|
|
32
|
-
declare const Theme: {
|
|
33
|
-
dark: import("./themes/types").Theme;
|
|
34
|
-
light: import("./themes/types").Theme;
|
|
35
|
-
};
|
|
36
|
-
export { Theme, Utils };
|
package/lib/exports.js
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
5
|
-
const id_1 = require("./utils/id");
|
|
6
|
-
const prefix_1 = require("./utils/prefix");
|
|
7
|
-
const tree_1 = require("./utils/tree");
|
|
3
|
+
exports.ForceAtlas2Layout = exports.DagreLayout = exports.D3ForceLayout = exports.D3Force3DLayout = exports.ConcentricLayout = exports.ComboCombinedLayout = exports.CircularLayout = exports.AntVDagreLayout = exports.BaseShape = exports.Triangle = exports.Star = exports.Rect = exports.Image = exports.Hexagon = exports.HTML = exports.Ellipse = exports.Donut = exports.Diamond = exports.Circle = exports.BaseNode = exports.Quadratic = exports.Polyline = exports.Line = exports.CubicVertical = exports.CubicHorizontal = exports.Cubic = exports.BaseEdge = exports.RectCombo = exports.CircleCombo = exports.BaseCombo = exports.NodeEvent = exports.GraphEvent = exports.ExtensionCategory = exports.EdgeEvent = exports.ContainerEvent = exports.CommonEvent = exports.ComboEvent = exports.CanvasEvent = exports.ZoomCanvas = exports.LassoSelect = exports.HoverElement = exports.FocusElement = exports.DragElementForce = exports.DragElement = exports.DragCanvas = exports.CreateEdge = exports.CollapseExpand = exports.ClickElement = exports.BrushSelect = exports.BaseBehavior = void 0;
|
|
4
|
+
exports.treeToGraphData = exports.parseSize = exports.Shortcut = exports.subStyleProps = exports.omitStyleProps = exports.idOf = exports.BaseTransform = exports.Graph = exports.register = exports.getExtensions = exports.getExtension = exports.Watermark = exports.Tooltip = exports.Toolbar = exports.Timebar = exports.Legend = exports.Hull = exports.History = exports.GridLine = exports.Contextmenu = exports.CameraSetting = exports.BubbleSets = exports.BasePlugin = exports.mindmap = exports.indented = exports.dendrogram = exports.compactBox = exports.RandomLayout = exports.RadialLayout = exports.MDSLayout = exports.GridLayout = exports.FruchtermanLayout = exports.ForceLayout = void 0;
|
|
8
5
|
var behaviors_1 = require("./behaviors");
|
|
9
6
|
Object.defineProperty(exports, "BaseBehavior", { enumerable: true, get: function () { return behaviors_1.BaseBehavior; } });
|
|
7
|
+
Object.defineProperty(exports, "BrushSelect", { enumerable: true, get: function () { return behaviors_1.BrushSelect; } });
|
|
8
|
+
Object.defineProperty(exports, "ClickElement", { enumerable: true, get: function () { return behaviors_1.ClickElement; } });
|
|
9
|
+
Object.defineProperty(exports, "CollapseExpand", { enumerable: true, get: function () { return behaviors_1.CollapseExpand; } });
|
|
10
|
+
Object.defineProperty(exports, "CreateEdge", { enumerable: true, get: function () { return behaviors_1.CreateEdge; } });
|
|
10
11
|
Object.defineProperty(exports, "DragCanvas", { enumerable: true, get: function () { return behaviors_1.DragCanvas; } });
|
|
12
|
+
Object.defineProperty(exports, "DragElement", { enumerable: true, get: function () { return behaviors_1.DragElement; } });
|
|
13
|
+
Object.defineProperty(exports, "DragElementForce", { enumerable: true, get: function () { return behaviors_1.DragElementForce; } });
|
|
14
|
+
Object.defineProperty(exports, "FocusElement", { enumerable: true, get: function () { return behaviors_1.FocusElement; } });
|
|
15
|
+
Object.defineProperty(exports, "HoverElement", { enumerable: true, get: function () { return behaviors_1.HoverElement; } });
|
|
16
|
+
Object.defineProperty(exports, "LassoSelect", { enumerable: true, get: function () { return behaviors_1.LassoSelect; } });
|
|
11
17
|
Object.defineProperty(exports, "ZoomCanvas", { enumerable: true, get: function () { return behaviors_1.ZoomCanvas; } });
|
|
12
18
|
var constants_1 = require("./constants");
|
|
13
19
|
Object.defineProperty(exports, "CanvasEvent", { enumerable: true, get: function () { return constants_1.CanvasEvent; } });
|
|
@@ -34,7 +40,9 @@ var nodes_1 = require("./elements/nodes");
|
|
|
34
40
|
Object.defineProperty(exports, "BaseNode", { enumerable: true, get: function () { return nodes_1.BaseNode; } });
|
|
35
41
|
Object.defineProperty(exports, "Circle", { enumerable: true, get: function () { return nodes_1.Circle; } });
|
|
36
42
|
Object.defineProperty(exports, "Diamond", { enumerable: true, get: function () { return nodes_1.Diamond; } });
|
|
43
|
+
Object.defineProperty(exports, "Donut", { enumerable: true, get: function () { return nodes_1.Donut; } });
|
|
37
44
|
Object.defineProperty(exports, "Ellipse", { enumerable: true, get: function () { return nodes_1.Ellipse; } });
|
|
45
|
+
Object.defineProperty(exports, "HTML", { enumerable: true, get: function () { return nodes_1.HTML; } });
|
|
38
46
|
Object.defineProperty(exports, "Hexagon", { enumerable: true, get: function () { return nodes_1.Hexagon; } });
|
|
39
47
|
Object.defineProperty(exports, "Image", { enumerable: true, get: function () { return nodes_1.Image; } });
|
|
40
48
|
Object.defineProperty(exports, "Rect", { enumerable: true, get: function () { return nodes_1.Rect; } });
|
|
@@ -42,10 +50,38 @@ Object.defineProperty(exports, "Star", { enumerable: true, get: function () { re
|
|
|
42
50
|
Object.defineProperty(exports, "Triangle", { enumerable: true, get: function () { return nodes_1.Triangle; } });
|
|
43
51
|
var shapes_1 = require("./elements/shapes");
|
|
44
52
|
Object.defineProperty(exports, "BaseShape", { enumerable: true, get: function () { return shapes_1.BaseShape; } });
|
|
53
|
+
var layouts_1 = require("./layouts");
|
|
54
|
+
Object.defineProperty(exports, "AntVDagreLayout", { enumerable: true, get: function () { return layouts_1.AntVDagreLayout; } });
|
|
55
|
+
Object.defineProperty(exports, "CircularLayout", { enumerable: true, get: function () { return layouts_1.CircularLayout; } });
|
|
56
|
+
Object.defineProperty(exports, "ComboCombinedLayout", { enumerable: true, get: function () { return layouts_1.ComboCombinedLayout; } });
|
|
57
|
+
Object.defineProperty(exports, "ConcentricLayout", { enumerable: true, get: function () { return layouts_1.ConcentricLayout; } });
|
|
58
|
+
Object.defineProperty(exports, "D3Force3DLayout", { enumerable: true, get: function () { return layouts_1.D3Force3DLayout; } });
|
|
59
|
+
Object.defineProperty(exports, "D3ForceLayout", { enumerable: true, get: function () { return layouts_1.D3ForceLayout; } });
|
|
60
|
+
Object.defineProperty(exports, "DagreLayout", { enumerable: true, get: function () { return layouts_1.DagreLayout; } });
|
|
61
|
+
Object.defineProperty(exports, "ForceAtlas2Layout", { enumerable: true, get: function () { return layouts_1.ForceAtlas2Layout; } });
|
|
62
|
+
Object.defineProperty(exports, "ForceLayout", { enumerable: true, get: function () { return layouts_1.ForceLayout; } });
|
|
63
|
+
Object.defineProperty(exports, "FruchtermanLayout", { enumerable: true, get: function () { return layouts_1.FruchtermanLayout; } });
|
|
64
|
+
Object.defineProperty(exports, "GridLayout", { enumerable: true, get: function () { return layouts_1.GridLayout; } });
|
|
65
|
+
Object.defineProperty(exports, "MDSLayout", { enumerable: true, get: function () { return layouts_1.MDSLayout; } });
|
|
66
|
+
Object.defineProperty(exports, "RadialLayout", { enumerable: true, get: function () { return layouts_1.RadialLayout; } });
|
|
67
|
+
Object.defineProperty(exports, "RandomLayout", { enumerable: true, get: function () { return layouts_1.RandomLayout; } });
|
|
68
|
+
Object.defineProperty(exports, "compactBox", { enumerable: true, get: function () { return layouts_1.compactBox; } });
|
|
69
|
+
Object.defineProperty(exports, "dendrogram", { enumerable: true, get: function () { return layouts_1.dendrogram; } });
|
|
70
|
+
Object.defineProperty(exports, "indented", { enumerable: true, get: function () { return layouts_1.indented; } });
|
|
71
|
+
Object.defineProperty(exports, "mindmap", { enumerable: true, get: function () { return layouts_1.mindmap; } });
|
|
45
72
|
var plugins_1 = require("./plugins");
|
|
46
73
|
Object.defineProperty(exports, "BasePlugin", { enumerable: true, get: function () { return plugins_1.BasePlugin; } });
|
|
74
|
+
Object.defineProperty(exports, "BubbleSets", { enumerable: true, get: function () { return plugins_1.BubbleSets; } });
|
|
47
75
|
Object.defineProperty(exports, "CameraSetting", { enumerable: true, get: function () { return plugins_1.CameraSetting; } });
|
|
76
|
+
Object.defineProperty(exports, "Contextmenu", { enumerable: true, get: function () { return plugins_1.Contextmenu; } });
|
|
77
|
+
Object.defineProperty(exports, "GridLine", { enumerable: true, get: function () { return plugins_1.GridLine; } });
|
|
48
78
|
Object.defineProperty(exports, "History", { enumerable: true, get: function () { return plugins_1.History; } });
|
|
79
|
+
Object.defineProperty(exports, "Hull", { enumerable: true, get: function () { return plugins_1.Hull; } });
|
|
80
|
+
Object.defineProperty(exports, "Legend", { enumerable: true, get: function () { return plugins_1.Legend; } });
|
|
81
|
+
Object.defineProperty(exports, "Timebar", { enumerable: true, get: function () { return plugins_1.Timebar; } });
|
|
82
|
+
Object.defineProperty(exports, "Toolbar", { enumerable: true, get: function () { return plugins_1.Toolbar; } });
|
|
83
|
+
Object.defineProperty(exports, "Tooltip", { enumerable: true, get: function () { return plugins_1.Tooltip; } });
|
|
84
|
+
Object.defineProperty(exports, "Watermark", { enumerable: true, get: function () { return plugins_1.Watermark; } });
|
|
49
85
|
var registry_1 = require("./registry");
|
|
50
86
|
Object.defineProperty(exports, "getExtension", { enumerable: true, get: function () { return registry_1.getExtension; } });
|
|
51
87
|
Object.defineProperty(exports, "getExtensions", { enumerable: true, get: function () { return registry_1.getExtensions; } });
|
|
@@ -54,18 +90,15 @@ var graph_1 = require("./runtime/graph");
|
|
|
54
90
|
Object.defineProperty(exports, "Graph", { enumerable: true, get: function () { return graph_1.Graph; } });
|
|
55
91
|
var transforms_1 = require("./transforms");
|
|
56
92
|
Object.defineProperty(exports, "BaseTransform", { enumerable: true, get: function () { return transforms_1.BaseTransform; } });
|
|
93
|
+
var id_1 = require("./utils/id");
|
|
94
|
+
Object.defineProperty(exports, "idOf", { enumerable: true, get: function () { return id_1.idOf; } });
|
|
95
|
+
var prefix_1 = require("./utils/prefix");
|
|
96
|
+
Object.defineProperty(exports, "omitStyleProps", { enumerable: true, get: function () { return prefix_1.omitStyleProps; } });
|
|
97
|
+
Object.defineProperty(exports, "subStyleProps", { enumerable: true, get: function () { return prefix_1.subStyleProps; } });
|
|
57
98
|
var shortcut_1 = require("./utils/shortcut");
|
|
58
99
|
Object.defineProperty(exports, "Shortcut", { enumerable: true, get: function () { return shortcut_1.Shortcut; } });
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
omitStyleProps: prefix_1.omitStyleProps,
|
|
64
|
-
};
|
|
65
|
-
exports.Utils = Utils;
|
|
66
|
-
const Theme = {
|
|
67
|
-
dark: themes_1.dark,
|
|
68
|
-
light: themes_1.light,
|
|
69
|
-
};
|
|
70
|
-
exports.Theme = Theme;
|
|
100
|
+
var size_1 = require("./utils/size");
|
|
101
|
+
Object.defineProperty(exports, "parseSize", { enumerable: true, get: function () { return size_1.parseSize; } });
|
|
102
|
+
var tree_1 = require("./utils/tree");
|
|
103
|
+
Object.defineProperty(exports, "treeToGraphData", { enumerable: true, get: function () { return tree_1.treeToGraphData; } });
|
|
71
104
|
//# sourceMappingURL=exports.js.map
|
package/lib/exports.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exports.js","sourceRoot":"src/","sources":["exports.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exports.js","sourceRoot":"src/","sources":["exports.ts"],"names":[],"mappings":";;;;AAAA,yCAaqB;AAZnB,yGAAA,YAAY,OAAA;AACZ,wGAAA,WAAW,OAAA;AACX,yGAAA,YAAY,OAAA;AACZ,2GAAA,cAAc,OAAA;AACd,uGAAA,UAAU,OAAA;AACV,uGAAA,UAAU,OAAA;AACV,wGAAA,WAAW,OAAA;AACX,6GAAA,gBAAgB,OAAA;AAChB,yGAAA,YAAY,OAAA;AACZ,yGAAA,YAAY,OAAA;AACZ,wGAAA,WAAW,OAAA;AACX,uGAAA,UAAU,OAAA;AAEZ,yCASqB;AARnB,wGAAA,WAAW,OAAA;AACX,uGAAA,UAAU,OAAA;AACV,wGAAA,WAAW,OAAA;AACX,2GAAA,cAAc,OAAA;AACd,sGAAA,SAAS,OAAA;AACT,8GAAA,iB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