@visuallyjs/browser-ui 1.0.0
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/css/visuallyjs-theme.css +148 -0
- package/css/visuallyjs.css +1879 -0
- package/js/visuallyjs.browser-ui.cjs.js +143 -0
- package/js/visuallyjs.browser-ui.esm.js +143 -0
- package/package.json +16 -0
- package/types/browser-ui/base-dom-ui-layout-adapter.d.ts +14 -0
- package/types/browser-ui/browser-ui.d.ts +95 -0
- package/types/browser-ui/browser-util.d.ts +233 -0
- package/types/browser-ui/browser-visuallyjs-instance.d.ts +881 -0
- package/types/browser-ui/canvas-layout-adapter.d.ts +15 -0
- package/types/browser-ui/collicat.d.ts +245 -0
- package/types/browser-ui/components/controls/controls-component.d.ts +137 -0
- package/types/browser-ui/components/controls/copy-paste-controls-component.d.ts +9 -0
- package/types/browser-ui/components/controls/css-classes.d.ts +79 -0
- package/types/browser-ui/components/controls/index.d.ts +4 -0
- package/types/browser-ui/components/controls/svg-export-component.d.ts +60 -0
- package/types/browser-ui/components/edge-type-picker/edge-type-picker.d.ts +37 -0
- package/types/browser-ui/components/edge-type-picker/index.d.ts +1 -0
- package/types/browser-ui/components/index.d.ts +4 -0
- package/types/browser-ui/components/inspector/color-picker-tag.d.ts +32 -0
- package/types/browser-ui/components/inspector/definitions.d.ts +114 -0
- package/types/browser-ui/components/inspector/edge-type-tag.d.ts +15 -0
- package/types/browser-ui/components/inspector/index.d.ts +6 -0
- package/types/browser-ui/components/inspector/inspector.d.ts +138 -0
- package/types/browser-ui/components/inspector/shape-type-inspector.d.ts +43 -0
- package/types/browser-ui/components/inspector/vanilla-inspector.d.ts +39 -0
- package/types/browser-ui/components/palette/index.d.ts +2 -0
- package/types/browser-ui/components/palette/palette-content-generator.d.ts +14 -0
- package/types/browser-ui/components/palette/palette-options.d.ts +159 -0
- package/types/browser-ui/components/palette/palette.d.ts +126 -0
- package/types/browser-ui/connector-editor.d.ts +65 -0
- package/types/browser-ui/connector-editors/anchors.d.ts +31 -0
- package/types/browser-ui/connector-editors/css-constants.d.ts +33 -0
- package/types/browser-ui/connector-editors/definitions.d.ts +74 -0
- package/types/browser-ui/connector-editors/editor-base.d.ts +177 -0
- package/types/browser-ui/connector-editors/index.d.ts +52 -0
- package/types/browser-ui/connector-editors/util.d.ts +33 -0
- package/types/browser-ui/connector-editors-bezier/bezier-editor.d.ts +82 -0
- package/types/browser-ui/connector-editors-bezier/css-constants.d.ts +42 -0
- package/types/browser-ui/connector-editors-bezier/index.d.ts +9 -0
- package/types/browser-ui/connector-editors-orthogonal/css-constants.d.ts +28 -0
- package/types/browser-ui/connector-editors-orthogonal/index.d.ts +9 -0
- package/types/browser-ui/connector-editors-orthogonal/orthogonal-editor.d.ts +86 -0
- package/types/browser-ui/connector-editors-straight/auto-split-mode.d.ts +24 -0
- package/types/browser-ui/connector-editors-straight/click-split-mode.d.ts +20 -0
- package/types/browser-ui/connector-editors-straight/css-constants.d.ts +30 -0
- package/types/browser-ui/connector-editors-straight/definitions.d.ts +69 -0
- package/types/browser-ui/connector-editors-straight/index.d.ts +11 -0
- package/types/browser-ui/connector-editors-straight/straight-editor.d.ts +42 -0
- package/types/browser-ui/constants.d.ts +79 -0
- package/types/browser-ui/copy-paste/clipboard.d.ts +34 -0
- package/types/browser-ui/copy-paste/index.d.ts +2 -0
- package/types/browser-ui/copy-paste/transformer.d.ts +14 -0
- package/types/browser-ui/css-constants.d.ts +436 -0
- package/types/browser-ui/d.d.ts +2 -0
- package/types/browser-ui/definitions.d.ts +442 -0
- package/types/browser-ui/dialogs/binder.d.ts +49 -0
- package/types/browser-ui/dialogs/constants.d.ts +51 -0
- package/types/browser-ui/dialogs/dialogs.d.ts +30 -0
- package/types/browser-ui/dialogs/index.d.ts +3 -0
- package/types/browser-ui/drag-manager-2.d.ts +54 -0
- package/types/browser-ui/edge-handler-base.d.ts +168 -0
- package/types/browser-ui/edge-input-handler.d.ts +116 -0
- package/types/browser-ui/edge-mappings/flowchart-basic.d.ts +22 -0
- package/types/browser-ui/edge-mappings/index.d.ts +1 -0
- package/types/browser-ui/edge-relocate-handler.d.ts +51 -0
- package/types/browser-ui/element-drag-handler-2.d.ts +254 -0
- package/types/browser-ui/element-dragger.d.ts +45 -0
- package/types/browser-ui/element-facade.d.ts +11 -0
- package/types/browser-ui/event-manager.d.ts +50 -0
- package/types/browser-ui/fixed-layer.d.ts +107 -0
- package/types/browser-ui/group-layout-adapter.d.ts +19 -0
- package/types/browser-ui/html-element-overlay.d.ts +32 -0
- package/types/browser-ui/icons/definitions.d.ts +59 -0
- package/types/browser-ui/icons/icon-renderer.d.ts +43 -0
- package/types/browser-ui/icons/index.d.ts +2 -0
- package/types/browser-ui/index.d.ts +48 -0
- package/types/browser-ui/pan-zoom-options.d.ts +262 -0
- package/types/browser-ui/pan-zoom.d.ts +674 -0
- package/types/browser-ui/paper-renderer/definitions.d.ts +83 -0
- package/types/browser-ui/paper-renderer/index.d.ts +2 -0
- package/types/browser-ui/paper-renderer/paper.d.ts +50 -0
- package/types/browser-ui/pinch-listener.d.ts +33 -0
- package/types/browser-ui/plugins/background/available-backgrounds.d.ts +12 -0
- package/types/browser-ui/plugins/background/background-options.d.ts +62 -0
- package/types/browser-ui/plugins/background/background-plugin.d.ts +62 -0
- package/types/browser-ui/plugins/background/generated-grid-background.d.ts +230 -0
- package/types/browser-ui/plugins/background/index.d.ts +6 -0
- package/types/browser-ui/plugins/background/simple-background.d.ts +33 -0
- package/types/browser-ui/plugins/background/tiled-background.d.ts +118 -0
- package/types/browser-ui/plugins/browser-ui-plugin.d.ts +90 -0
- package/types/browser-ui/plugins/edge-routing/index.d.ts +66 -0
- package/types/browser-ui/plugins/index.d.ts +5 -0
- package/types/browser-ui/plugins/selected-edge-highlight/index.d.ts +1 -0
- package/types/browser-ui/plugins/selected-edge-highlight/selected-edge-highlight-plugin.d.ts +36 -0
- package/types/browser-ui/plugins/ui-states/index.d.ts +2 -0
- package/types/browser-ui/plugins/ui-states/ui-state.d.ts +14 -0
- package/types/browser-ui/plugins/ui-states/ui-states-plugin.d.ts +69 -0
- package/types/browser-ui/positioning-and-sizing-utils.d.ts +103 -0
- package/types/browser-ui/shape-library/index.d.ts +4 -0
- package/types/browser-ui/shape-library/shape-library-definitions.d.ts +243 -0
- package/types/browser-ui/shape-library/shape-library.d.ts +266 -0
- package/types/browser-ui/shape-library/shapes-basic.d.ts +7 -0
- package/types/browser-ui/shape-library/shapes-flowchart.d.ts +7 -0
- package/types/browser-ui/storage.d.ts +8 -0
- package/types/browser-ui/surface-renderer/anim/anim.d.ts +64 -0
- package/types/browser-ui/surface-renderer/anim/constants.d.ts +74 -0
- package/types/browser-ui/surface-renderer/anim/definitions.d.ts +134 -0
- package/types/browser-ui/surface-renderer/anim/index.d.ts +4 -0
- package/types/browser-ui/surface-renderer/anim/path-transport.d.ts +23 -0
- package/types/browser-ui/surface-renderer/css-classes.d.ts +64 -0
- package/types/browser-ui/surface-renderer/decorators.d.ts +162 -0
- package/types/browser-ui/surface-renderer/definitions.d.ts +83 -0
- package/types/browser-ui/surface-renderer/diagrams/constants.d.ts +28 -0
- package/types/browser-ui/surface-renderer/diagrams/definitions.d.ts +528 -0
- package/types/browser-ui/surface-renderer/diagrams/diagram-cell.d.ts +123 -0
- package/types/browser-ui/surface-renderer/diagrams/diagram-link.d.ts +116 -0
- package/types/browser-ui/surface-renderer/diagrams/diagram-palette.d.ts +11 -0
- package/types/browser-ui/surface-renderer/diagrams/diagram-tools.d.ts +112 -0
- package/types/browser-ui/surface-renderer/diagrams/diagram.d.ts +221 -0
- package/types/browser-ui/surface-renderer/diagrams/index.d.ts +25 -0
- package/types/browser-ui/surface-renderer/diagrams/mediator.d.ts +59 -0
- package/types/browser-ui/surface-renderer/diagrams/util.d.ts +15 -0
- package/types/browser-ui/surface-renderer/elastic-group-manager.d.ts +102 -0
- package/types/browser-ui/surface-renderer/index.d.ts +34 -0
- package/types/browser-ui/surface-renderer/params.d.ts +175 -0
- package/types/browser-ui/surface-renderer/plugins/controls/controls-plugin.d.ts +26 -0
- package/types/browser-ui/surface-renderer/plugins/controls/index.d.ts +1 -0
- package/types/browser-ui/surface-renderer/plugins/drag-groups/drag-groups-plugin.d.ts +78 -0
- package/types/browser-ui/surface-renderer/plugins/drag-groups/index.d.ts +1 -0
- package/types/browser-ui/surface-renderer/plugins/export-controls/export-controls-plugin.d.ts +25 -0
- package/types/browser-ui/surface-renderer/plugins/export-controls/index.d.ts +1 -0
- package/types/browser-ui/surface-renderer/plugins/index.d.ts +10 -0
- package/types/browser-ui/surface-renderer/plugins/lasso/index.d.ts +2 -0
- package/types/browser-ui/surface-renderer/plugins/lasso/lasso-plugin.d.ts +78 -0
- package/types/browser-ui/surface-renderer/plugins/lasso/lasso.d.ts +74 -0
- package/types/browser-ui/surface-renderer/plugins/miniview/index.d.ts +1 -0
- package/types/browser-ui/surface-renderer/plugins/miniview/miniview-plugin.d.ts +235 -0
- package/types/browser-ui/surface-renderer/plugins/palette/index.d.ts +1 -0
- package/types/browser-ui/surface-renderer/plugins/palette/palette-plugin.d.ts +17 -0
- package/types/browser-ui/surface-renderer/plugins/pan-buttons/index.d.ts +1 -0
- package/types/browser-ui/surface-renderer/plugins/pan-buttons/pan-buttons-plugin.d.ts +55 -0
- package/types/browser-ui/surface-renderer/plugins/resizing-tools/border-drag-handlers.d.ts +3 -0
- package/types/browser-ui/surface-renderer/plugins/resizing-tools/definitions.d.ts +411 -0
- package/types/browser-ui/surface-renderer/plugins/resizing-tools/drag-handlers.d.ts +3 -0
- package/types/browser-ui/surface-renderer/plugins/resizing-tools/handle-gen.d.ts +15 -0
- package/types/browser-ui/surface-renderer/plugins/resizing-tools/index.d.ts +4 -0
- package/types/browser-ui/surface-renderer/plugins/resizing-tools/resizing-tools-plugin.d.ts +185 -0
- package/types/browser-ui/surface-renderer/plugins/resizing-tools/util.d.ts +16 -0
- package/types/browser-ui/surface-renderer/plugins/snaplines/index.d.ts +1 -0
- package/types/browser-ui/surface-renderer/plugins/snaplines/snaplines-plugin.d.ts +128 -0
- package/types/browser-ui/surface-renderer/plugins/vertex-drawing/definitions.d.ts +90 -0
- package/types/browser-ui/surface-renderer/plugins/vertex-drawing/index.d.ts +2 -0
- package/types/browser-ui/surface-renderer/plugins/vertex-drawing/vertex-drawing-plugin.d.ts +64 -0
- package/types/browser-ui/surface-renderer/shape-palette-options.d.ts +127 -0
- package/types/browser-ui/surface-renderer/shape-palette.d.ts +55 -0
- package/types/browser-ui/surface-renderer/surface-decorator.d.ts +35 -0
- package/types/browser-ui/surface-renderer/surface-events.d.ts +9 -0
- package/types/browser-ui/surface-renderer/surface-render-options.d.ts +125 -0
- package/types/browser-ui/surface-renderer/surface.d.ts +665 -0
- package/types/browser-ui/svg-component.d.ts +6 -0
- package/types/browser-ui/svg-element-connector.d.ts +16 -0
- package/types/browser-ui/svg-element-overlay.d.ts +55 -0
- package/types/browser-ui/svg-export/definitions.d.ts +153 -0
- package/types/browser-ui/svg-export/image-export-ui.d.ts +20 -0
- package/types/browser-ui/svg-export/image-exporter.d.ts +15 -0
- package/types/browser-ui/svg-export/index.d.ts +6 -0
- package/types/browser-ui/svg-export/svg-export-ui.d.ts +11 -0
- package/types/browser-ui/svg-export/svg-exporter.d.ts +8 -0
- package/types/browser-ui/svg-export/util.d.ts +23 -0
- package/types/browser-ui/svg-util.d.ts +27 -0
- package/types/browser-ui/templating/browser-ui-recado.d.ts +48 -0
- package/types/browser-ui/templating/custom-tag-definition.d.ts +32 -0
- package/types/browser-ui/templating/index.d.ts +11 -0
- package/types/browser-ui/templating/recado-template-renderer.d.ts +69 -0
- package/types/browser-ui/ui-path.d.ts +57 -0
- package/types/browser-ui/util.d.ts +4 -0
- package/types/browser-ui/wheel-listener.d.ts +2 -0
- package/types/charts/area/area-chart.d.ts +85 -0
- package/types/charts/area/index.d.ts +1 -0
- package/types/charts/bar-and-column/bar-chart.d.ts +34 -0
- package/types/charts/bar-and-column/bar-plot.d.ts +90 -0
- package/types/charts/bar-and-column/column-chart.d.ts +35 -0
- package/types/charts/bar-and-column/index.d.ts +3 -0
- package/types/charts/base-chart.d.ts +395 -0
- package/types/charts/base-xy-chart.d.ts +224 -0
- package/types/charts/bubble/bubble-chart.d.ts +30 -0
- package/types/charts/bubble/definitions.d.ts +32 -0
- package/types/charts/bubble/index.d.ts +2 -0
- package/types/charts/category-value-chart.d.ts +146 -0
- package/types/charts/chart-exporter.d.ts +38 -0
- package/types/charts/chart-zoom-controls.d.ts +23 -0
- package/types/charts/constants.d.ts +16 -0
- package/types/charts/css-classes.d.ts +312 -0
- package/types/charts/datasource.d.ts +61 -0
- package/types/charts/definitions.d.ts +261 -0
- package/types/charts/domain_scale_utilities.d.ts +72 -0
- package/types/charts/dual-value-chart.d.ts +60 -0
- package/types/charts/gauge/definitions.d.ts +108 -0
- package/types/charts/gauge/gauge-chart.d.ts +91 -0
- package/types/charts/gauge/index.d.ts +2 -0
- package/types/charts/index.d.ts +25 -0
- package/types/charts/legend.d.ts +120 -0
- package/types/charts/line/index.d.ts +1 -0
- package/types/charts/line/line-chart.d.ts +79 -0
- package/types/charts/markers.d.ts +13 -0
- package/types/charts/pie/index.d.ts +1 -0
- package/types/charts/pie/pie-chart.d.ts +146 -0
- package/types/charts/plot.d.ts +75 -0
- package/types/charts/sankey/index.d.ts +1 -0
- package/types/charts/sankey/preprocessor.d.ts +37 -0
- package/types/charts/sankey/sankey.d.ts +208 -0
- package/types/charts/scatter/definitions.d.ts +6 -0
- package/types/charts/scatter/index.d.ts +2 -0
- package/types/charts/scatter/scatter-chart.d.ts +16 -0
- package/types/charts/series/array-based-series.d.ts +95 -0
- package/types/charts/series/collation-series.d.ts +24 -0
- package/types/charts/series/definitions.d.ts +52 -0
- package/types/charts/series/dual-value-chart-series.d.ts +26 -0
- package/types/charts/series/index.d.ts +7 -0
- package/types/charts/series/record-based-series.d.ts +58 -0
- package/types/charts/series/series.d.ts +66 -0
- package/types/charts/series/summing-collation-series.d.ts +31 -0
- package/types/charts/series/summing-series.d.ts +19 -0
- package/types/charts/series-based-chart.d.ts +59 -0
- package/types/charts/tooltip.d.ts +167 -0
- package/types/charts/util.d.ts +149 -0
- package/types/core/astar/astar-path-finder.d.ts +37 -0
- package/types/core/astar/astar-util.d.ts +100 -0
- package/types/core/astar/candidate-finder.d.ts +16 -0
- package/types/core/astar/candidate-sorter.d.ts +10 -0
- package/types/core/astar/definitions.d.ts +185 -0
- package/types/core/astar/index.d.ts +3 -0
- package/types/core/astar/path-to-segments.d.ts +45 -0
- package/types/core/autosaver.d.ts +67 -0
- package/types/core/color-generator.d.ts +66 -0
- package/types/core/constants.d.ts +181 -0
- package/types/core/csv-loader.d.ts +84 -0
- package/types/core/datamodel/data-model.d.ts +23 -0
- package/types/core/datamodel/vertex-definition.d.ts +40 -0
- package/types/core/datasource.d.ts +87 -0
- package/types/core/event-constants.d.ts +308 -0
- package/types/core/event-generator.d.ts +102 -0
- package/types/core/filterable-dataset.d.ts +38 -0
- package/types/core/geom.d.ts +278 -0
- package/types/core/index.d.ts +39 -0
- package/types/core/io.d.ts +106 -0
- package/types/core/layout/absolute-layout.d.ts +91 -0
- package/types/core/layout/abstract-layout-adapter.d.ts +17 -0
- package/types/core/layout/abstract-layout.d.ts +192 -0
- package/types/core/layout/circular/circular-layout.d.ts +31 -0
- package/types/core/layout/circular/index.d.ts +1 -0
- package/types/core/layout/empty-layout.d.ts +17 -0
- package/types/core/layout/force-directed/force-directed-layout.d.ts +148 -0
- package/types/core/layout/force-directed/index.d.ts +1 -0
- package/types/core/layout/grid/definitions.d.ts +81 -0
- package/types/core/layout/grid/grid-layout.d.ts +60 -0
- package/types/core/layout/grid/index.d.ts +2 -0
- package/types/core/layout/hierarchical/abstract-hierarchical-layout.d.ts +90 -0
- package/types/core/layout/hierarchical/balloon-layout.d.ts +62 -0
- package/types/core/layout/hierarchical/definitions.d.ts +45 -0
- package/types/core/layout/hierarchical/hierarchical-layout.d.ts +102 -0
- package/types/core/layout/hierarchical/index.d.ts +5 -0
- package/types/core/layout/hierarchical/parent-relative-placement.d.ts +96 -0
- package/types/core/layout/hierarchy/assign-layers-stage.d.ts +26 -0
- package/types/core/layout/hierarchy/crossing-stage.d.ts +78 -0
- package/types/core/layout/hierarchy/definitions.d.ts +261 -0
- package/types/core/layout/hierarchy/edge-routing.d.ts +25 -0
- package/types/core/layout/hierarchy/hierarchy-layout-stage.d.ts +9 -0
- package/types/core/layout/hierarchy/hierarchy-layout.d.ts +87 -0
- package/types/core/layout/hierarchy/index.d.ts +11 -0
- package/types/core/layout/hierarchy/model.d.ts +167 -0
- package/types/core/layout/hierarchy/parent-relative-placement.d.ts +69 -0
- package/types/core/layout/hierarchy/placement-stage.d.ts +82 -0
- package/types/core/layout/hierarchy/util.d.ts +13 -0
- package/types/core/layout/hierarchy/vertex-set.d.ts +45 -0
- package/types/core/layout/index.d.ts +10 -0
- package/types/core/layout/layouts.d.ts +10 -0
- package/types/core/magnetizer.d.ts +232 -0
- package/types/core/model/anchor.d.ts +38 -0
- package/types/core/model/cluster.d.ts +19 -0
- package/types/core/model/defs.d.ts +8 -0
- package/types/core/model/djikstra.d.ts +26 -0
- package/types/core/model/floyd-warshall.d.ts +15 -0
- package/types/core/model/graph.d.ts +1166 -0
- package/types/core/model/path.d.ts +227 -0
- package/types/core/params.d.ts +476 -0
- package/types/core/renderer.d.ts +74 -0
- package/types/core/router/common.d.ts +104 -0
- package/types/core/router/direct-router.d.ts +12 -0
- package/types/core/router/index.d.ts +3 -0
- package/types/core/router/orthogonal-router.d.ts +46 -0
- package/types/core/rtree/definitions.d.ts +24 -0
- package/types/core/rtree/hilbert.d.ts +9 -0
- package/types/core/rtree/index.d.ts +4 -0
- package/types/core/rtree/rtree.d.ts +102 -0
- package/types/core/rtree/util.d.ts +55 -0
- package/types/core/search/index.d.ts +1 -0
- package/types/core/search/visuallyjs-search.d.ts +167 -0
- package/types/core/selection.d.ts +394 -0
- package/types/core/templates/abstract-entry.d.ts +19 -0
- package/types/core/templates/comment-entry.d.ts +11 -0
- package/types/core/templates/core.d.ts +162 -0
- package/types/core/templates/custom-tag.d.ts +74 -0
- package/types/core/templates/defs.d.ts +123 -0
- package/types/core/templates/each-entry.d.ts +23 -0
- package/types/core/templates/element-entry.d.ts +18 -0
- package/types/core/templates/elements.d.ts +14 -0
- package/types/core/templates/executions.d.ts +100 -0
- package/types/core/templates/expressions.d.ts +47 -0
- package/types/core/templates/fake-dom.d.ts +42 -0
- package/types/core/templates/headless.d.ts +15 -0
- package/types/core/templates/if-entry.d.ts +25 -0
- package/types/core/templates/index.d.ts +14 -0
- package/types/core/templates/parser.d.ts +84 -0
- package/types/core/templates/text-entry.d.ts +17 -0
- package/types/core/templates/tmpl-entry.d.ts +13 -0
- package/types/core/toolkit.d.ts +1314 -0
- package/types/core/undo-redo/compound-action.d.ts +19 -0
- package/types/core/undo-redo/edge-action.d.ts +62 -0
- package/types/core/undo-redo/group-action.d.ts +60 -0
- package/types/core/undo-redo/move-action.d.ts +18 -0
- package/types/core/undo-redo/node-group-action.d.ts +62 -0
- package/types/core/undo-redo/port-action.d.ts +29 -0
- package/types/core/undo-redo/renderer-vertex-removed-action.d.ts +17 -0
- package/types/core/undo-redo/set-type-action.d.ts +14 -0
- package/types/core/undo-redo/undo-redo.d.ts +203 -0
- package/types/core/undo-redo/update-action.d.ts +20 -0
- package/types/core/undo-redo/vertex-update-action.d.ts +12 -0
- package/types/core/util.d.ts +661 -0
- package/types/index.d.ts +16 -0
- package/types/l.d.ts +2 -0
- package/types/test-support/index.d.ts +1 -0
- package/types/test-support/test-support.d.ts +833 -0
- package/types/ui/common/abstract-segment.d.ts +88 -0
- package/types/ui/common/anchor.d.ts +280 -0
- package/types/ui/common/connector.d.ts +106 -0
- package/types/ui/common/index.d.ts +5 -0
- package/types/ui/common/overlay.d.ts +117 -0
- package/types/ui/common/paint-style.d.ts +33 -0
- package/types/ui/connector-bezier/abstract-bezier-connector.d.ts +68 -0
- package/types/ui/connector-bezier/bezier-connector.d.ts +34 -0
- package/types/ui/connector-bezier/bezier-segment.d.ts +31 -0
- package/types/ui/connector-bezier/bezier.d.ts +129 -0
- package/types/ui/connector-bezier/index.d.ts +6 -0
- package/types/ui/connector-bezier/operations.d.ts +18 -0
- package/types/ui/connector-bezier/quadratic-bezier-connector.d.ts +35 -0
- package/types/ui/connector-orthogonal/default-orthogonal-path-compute.d.ts +11 -0
- package/types/ui/connector-orthogonal/definitions.d.ts +120 -0
- package/types/ui/connector-orthogonal/index.d.ts +7 -0
- package/types/ui/connector-orthogonal/modern-source-target-relocator.d.ts +37 -0
- package/types/ui/connector-orthogonal/operations.d.ts +49 -0
- package/types/ui/connector-orthogonal/stub-calculators.d.ts +12 -0
- package/types/ui/connector-orthogonal/utils.d.ts +134 -0
- package/types/ui/connector-orthogonal/vertex-avoidance.d.ts +29 -0
- package/types/ui/connector-straight/index.d.ts +2 -0
- package/types/ui/connector-straight/operations.d.ts +55 -0
- package/types/ui/connector-straight/straight-connector.d.ts +121 -0
- package/types/ui/copy-paste/clipboard.d.ts +45 -0
- package/types/ui/copy-paste/copy-data.d.ts +93 -0
- package/types/ui/copy-paste/index.d.ts +2 -0
- package/types/ui/core/callbacks.d.ts +48 -0
- package/types/ui/core/component/component.d.ts +115 -0
- package/types/ui/core/connector/abstract-connector.d.ts +66 -0
- package/types/ui/core/connector/arc-segment.d.ts +39 -0
- package/types/ui/core/connector/connection-impl.d.ts +81 -0
- package/types/ui/core/connector/connections.d.ts +113 -0
- package/types/ui/core/connector/connectors.d.ts +205 -0
- package/types/ui/core/connector/operations.d.ts +0 -0
- package/types/ui/core/connector/segments.d.ts +24 -0
- package/types/ui/core/connector/straight-segment.d.ts +32 -0
- package/types/ui/core/constants.d.ts +181 -0
- package/types/ui/core/context.d.ts +26 -0
- package/types/ui/core/core-events.d.ts +7 -0
- package/types/ui/core/core.d.ts +1734 -0
- package/types/ui/core/css-constants.d.ts +149 -0
- package/types/ui/core/defaults.d.ts +242 -0
- package/types/ui/core/definitions.d.ts +540 -0
- package/types/ui/core/event-constants.d.ts +510 -0
- package/types/ui/core/factory/anchor-record-factory.d.ts +17 -0
- package/types/ui/core/factory/continuous-anchors.d.ts +27 -0
- package/types/ui/core/factory/overlay-factory.d.ts +8 -0
- package/types/ui/core/grid-profile.d.ts +28 -0
- package/types/ui/core/group-collapse-expand.d.ts +23 -0
- package/types/ui/core/group-sizer.d.ts +9 -0
- package/types/ui/core/index.d.ts +45 -0
- package/types/ui/core/magnetize-profile.d.ts +82 -0
- package/types/ui/core/overlay/arrow-overlay.d.ts +34 -0
- package/types/ui/core/overlay/custom-overlay.d.ts +38 -0
- package/types/ui/core/overlay/diamond-overlay.d.ts +14 -0
- package/types/ui/core/overlay/dot-overlay.d.ts +54 -0
- package/types/ui/core/overlay/ellipse-overlay.d.ts +60 -0
- package/types/ui/core/overlay/label-overlay.d.ts +37 -0
- package/types/ui/core/overlay/overlay.d.ts +131 -0
- package/types/ui/core/overlay/plain-arrow-overlay.d.ts +15 -0
- package/types/ui/core/overlay/rectangle-overlay.d.ts +66 -0
- package/types/ui/core/params.d.ts +223 -0
- package/types/ui/core/router/astar-path-finder.d.ts +29 -0
- package/types/ui/core/router/base-router.d.ts +100 -0
- package/types/ui/core/router/default-router.d.ts +38 -0
- package/types/ui/core/router/index.d.ts +5 -0
- package/types/ui/core/router/router-utils.d.ts +118 -0
- package/types/ui/core/router/router.d.ts +30 -0
- package/types/ui/core/type-descriptors.d.ts +83 -0
- package/types/ui/core/ui-model.d.ts +65 -0
- package/types/ui/core/view/common-options.d.ts +15 -0
- package/types/ui/core/view/edge-options.d.ts +126 -0
- package/types/ui/core/view/events.d.ts +159 -0
- package/types/ui/core/view/group-options.d.ts +75 -0
- package/types/ui/core/view/index.d.ts +35 -0
- package/types/ui/core/view/node-options.d.ts +20 -0
- package/types/ui/core/view/node-or-port-options.d.ts +28 -0
- package/types/ui/core/view/port-options.d.ts +51 -0
- package/types/ui/core/view/vertex-options.d.ts +28 -0
- package/types/ui/core/viewport.d.ts +297 -0
- package/types/ui/index.d.ts +9 -0
- package/types/ui/plugins/definitions.d.ts +118 -0
- package/types/ui/plugins/index.d.ts +2 -0
- package/types/ui/plugins/plugins.d.ts +7 -0
- package/types/ui/property-mappings/definitions.d.ts +28 -0
- package/types/ui/property-mappings/index.d.ts +2 -0
- package/types/ui/property-mappings/property-mapper.d.ts +16 -0
- package/types/ui/util/index.d.ts +3 -0
- package/types/ui/util/property-tracker.d.ts +8 -0
- package/types/ui/util/svg-constants.d.ts +111 -0
- package/types/ui/util/util.d.ts +69 -0
- package/types/version.d.ts +1 -0
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { ChartSVGElement, SteppedScale } from "./util";
|
|
2
|
+
import { PointXY } from "../core";
|
|
3
|
+
import { AxisCommon, CategoryAxis, ChartDimensions, CrosshairOptions, ValueAxis } from "./definitions";
|
|
4
|
+
import { BrowserElement } from "../browser-ui";
|
|
5
|
+
import { RealisedSeries } from "./series/definitions";
|
|
6
|
+
import { Tooltip, TooltipOptions } from "./tooltip";
|
|
7
|
+
import { ChartSeriesOptions } from "./series";
|
|
8
|
+
import { SeriesBasedChart, SeriesBasedChartOptions } from "./series-based-chart";
|
|
9
|
+
/**
|
|
10
|
+
* @group Charts
|
|
11
|
+
* @category XY Chart
|
|
12
|
+
*/
|
|
13
|
+
export interface XYChartBaseOptions<O extends ChartSeriesOptions> extends SeriesBasedChartOptions<O> {
|
|
14
|
+
/**
|
|
15
|
+
* Whether or not to round the corners of bars/columns. Defaults to true
|
|
16
|
+
*/
|
|
17
|
+
roundCorners?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* When rounding bar/column corners, use this radius. Defaults to 5 pixels.
|
|
20
|
+
*/
|
|
21
|
+
cornerRadius?: number;
|
|
22
|
+
/**
|
|
23
|
+
* The width to use if showing a line marking value/category axes. By default, axis lines are not painted.
|
|
24
|
+
*/
|
|
25
|
+
axisLineSize?: number;
|
|
26
|
+
/**
|
|
27
|
+
* When the legend is not floating, this number defines how much whitespace to leave around it.
|
|
28
|
+
*/
|
|
29
|
+
legendPadding?: number;
|
|
30
|
+
/**
|
|
31
|
+
* How much padding to leave between the y axes decoration and the chart content area.
|
|
32
|
+
*/
|
|
33
|
+
yAxisPadding?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Options for the info tooltip.
|
|
36
|
+
*/
|
|
37
|
+
tooltip?: TooltipOptions;
|
|
38
|
+
/**
|
|
39
|
+
* The maximum size a category label can be as a ratio of the chart's overall size. Category labels are rotated to 45 degrees automatically when they start to overlap each other, but if the labels are long strings then there is a chance they'll use up too much of the available chart space. This value (whose default is 0.2), specifies a hard limit for label size, to avoid that situation. In a chart whose category axis is the X axis, this is applied relative to the height of the chart, and in a chart whose category axis is the Y axis, it's applied relative to the width.
|
|
40
|
+
*/
|
|
41
|
+
maxLabelSize?: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Base interface for XYChart options.
|
|
45
|
+
* @group Charts
|
|
46
|
+
* @category XY Chart
|
|
47
|
+
*/
|
|
48
|
+
export interface XYChartOptions<O extends ChartSeriesOptions> extends XYChartBaseOptions<O> {
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Empty scale to use prior to loading data into a chart.
|
|
52
|
+
* @group Charts
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
export declare class BlankScale implements SteppedScale {
|
|
56
|
+
dataMax: number;
|
|
57
|
+
dataMin: number;
|
|
58
|
+
maxScale: number;
|
|
59
|
+
minScale: number;
|
|
60
|
+
range: number;
|
|
61
|
+
step: number;
|
|
62
|
+
stepCount: number;
|
|
63
|
+
steps: Array<number>;
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* An XY chart has an X and Y axis. You can instantiate an XY chart and supply the plots to use, but there are also subclasses of this chart such as {@link BarChart} and {@link ColumnChart} which configure certain parts of the plot for you.
|
|
67
|
+
* @group Charts
|
|
68
|
+
* @category XY Chart
|
|
69
|
+
*/
|
|
70
|
+
export declare abstract class XYChart<O extends ChartSeriesOptions, T extends Tooltip = Tooltip> extends SeriesBasedChart<O> {
|
|
71
|
+
axisLineSize: number;
|
|
72
|
+
yAxisPadding: number;
|
|
73
|
+
private yAxes;
|
|
74
|
+
private xAxes;
|
|
75
|
+
$crosshairElements: {
|
|
76
|
+
x: Array<{
|
|
77
|
+
line: ChartSVGElement;
|
|
78
|
+
label?: ChartSVGElement;
|
|
79
|
+
options: CrosshairOptions;
|
|
80
|
+
}>;
|
|
81
|
+
y: Array<{
|
|
82
|
+
line: ChartSVGElement;
|
|
83
|
+
label?: ChartSVGElement;
|
|
84
|
+
options: CrosshairOptions;
|
|
85
|
+
}>;
|
|
86
|
+
};
|
|
87
|
+
$roundCorners: boolean;
|
|
88
|
+
$cornerRadius: number;
|
|
89
|
+
$realisedSeries: Array<RealisedSeries>;
|
|
90
|
+
_tooltipOptions: TooltipOptions;
|
|
91
|
+
$tooltip: T;
|
|
92
|
+
$maxLabelSize: number;
|
|
93
|
+
constructor(container: BrowserElement, options: XYChartOptions<O>);
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
$doReset(): void;
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
$doLoad(): void;
|
|
104
|
+
/**
|
|
105
|
+
*
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
108
|
+
getSeries(): Array<RealisedSeries>;
|
|
109
|
+
private _drawXAxis;
|
|
110
|
+
/**
|
|
111
|
+
* For the given axis, return a suitable value for the text element's `text-anchor` attribute
|
|
112
|
+
* @param va
|
|
113
|
+
* @private
|
|
114
|
+
*/
|
|
115
|
+
private _getAxisTitleAnchor;
|
|
116
|
+
private _drawYAxis;
|
|
117
|
+
/**
|
|
118
|
+
* For the given scale label, compute a user readable value. For instance, if the value is very large, we might replace a bunch of zeroes with k or M etc. Ideally this whole mechanism would be pluggable.
|
|
119
|
+
* @param s
|
|
120
|
+
* @return {string}
|
|
121
|
+
* @internal
|
|
122
|
+
*/
|
|
123
|
+
$computeScaleLabel(s: number, axis: ValueAxis): string;
|
|
124
|
+
/**
|
|
125
|
+
* @return {SVGElement}
|
|
126
|
+
* @param svgRoot
|
|
127
|
+
* @param width
|
|
128
|
+
* @param height
|
|
129
|
+
* @param titleEndY Y location where the title element ends. Used if legend is valign top.
|
|
130
|
+
* @internal
|
|
131
|
+
*/
|
|
132
|
+
$precomputeLegend(svgRoot: SVGElement, width: number, height: number, titleEndY: number): ChartSVGElement;
|
|
133
|
+
protected $getScaleGrid(axisLength: number, valueAxis: ValueAxis): Array<number>;
|
|
134
|
+
/**
|
|
135
|
+
* Gets labels for the given axis. This class supports ValueAxis. CategoryValueChart supports category axis. You could introduce a new axis type and override this method
|
|
136
|
+
* @param va
|
|
137
|
+
* @param isXAxis
|
|
138
|
+
* @internal
|
|
139
|
+
*/
|
|
140
|
+
$getAxisLabels(va: AxisCommon, isXAxis: boolean): ChartSVGElement[];
|
|
141
|
+
protected $drawChart(svgRoot: ChartSVGElement, width: number, height: number, backgroundElement: ChartSVGElement): void;
|
|
142
|
+
/**
|
|
143
|
+
* Creates the initial crosshair line elements.
|
|
144
|
+
*/
|
|
145
|
+
protected $drawCrosshairs(svgRoot: ChartSVGElement, initElements: boolean, extraClazz: string, filter?: (ax: AxisCommon) => boolean): void;
|
|
146
|
+
/**
|
|
147
|
+
* Draws the title, axes, legend etc
|
|
148
|
+
* @internal
|
|
149
|
+
*/
|
|
150
|
+
$drawDecoration(svgRoot: ChartSVGElement, width: number, height: number): ChartDimensions;
|
|
151
|
+
setFocusedSeries(series: number | null): void;
|
|
152
|
+
/**
|
|
153
|
+
* Position the labels for a category axis on the X axis.
|
|
154
|
+
* @param dim
|
|
155
|
+
* @param labels
|
|
156
|
+
*/
|
|
157
|
+
private _positionXAxisCategoryLabels;
|
|
158
|
+
/**
|
|
159
|
+
* Position the labels for a value axis on the X axis.
|
|
160
|
+
* @return {SVGElement}
|
|
161
|
+
* @param dim
|
|
162
|
+
* @param valueAxis
|
|
163
|
+
*/
|
|
164
|
+
private _positionXAxisValueLabels;
|
|
165
|
+
/**
|
|
166
|
+
* Set final positions for category axis labels on the Y axis.
|
|
167
|
+
* @param dim
|
|
168
|
+
* @param labels
|
|
169
|
+
* @private
|
|
170
|
+
*/
|
|
171
|
+
private _positionYAxisCategoryLabels;
|
|
172
|
+
/**
|
|
173
|
+
* Get labels for a value axis, using the scale or stackedScale stored on the value axis.
|
|
174
|
+
* @param va axis to get labels for
|
|
175
|
+
* @param isXAxis True if this value axis is on the x axis, false if this value axis is on the Y axis.
|
|
176
|
+
*/
|
|
177
|
+
private _getValueAxisLabels;
|
|
178
|
+
/**
|
|
179
|
+
* Set final positions for value axis labels on the Y axis.
|
|
180
|
+
* @param dim
|
|
181
|
+
* @param labels
|
|
182
|
+
* @private
|
|
183
|
+
*/
|
|
184
|
+
private _positionYAxisValueLabels;
|
|
185
|
+
/**
|
|
186
|
+
* Draws a grid for a value axis that is on the X axis
|
|
187
|
+
* @param svgRoot
|
|
188
|
+
* @param dim
|
|
189
|
+
* @param valueAxis
|
|
190
|
+
* @private
|
|
191
|
+
*/
|
|
192
|
+
private _drawGridForXAxisValueAxis;
|
|
193
|
+
/**
|
|
194
|
+
* Draws a grid for a value axis that is on the Y axis
|
|
195
|
+
* @param svgRoot
|
|
196
|
+
* @param dim
|
|
197
|
+
* @param valueAxis
|
|
198
|
+
* @private
|
|
199
|
+
*/
|
|
200
|
+
private _drawGridForYAxisValueAxis;
|
|
201
|
+
protected $onMouseMove(coords: PointXY): void;
|
|
202
|
+
protected $onMouseLeave(): void;
|
|
203
|
+
/**
|
|
204
|
+
* Calculates the proportional position (0-1) for an axis based on mouse coordinate.
|
|
205
|
+
*/
|
|
206
|
+
private $getProportionalPos;
|
|
207
|
+
$hideTooltip(): void;
|
|
208
|
+
abstract $createTooltip(root: ChartSVGElement, options: TooltipOptions): T;
|
|
209
|
+
abstract $getXAxisType(): "category" | "value";
|
|
210
|
+
abstract $getYAxisType(): "category" | "value";
|
|
211
|
+
abstract $mouseOutChartPoint(): void;
|
|
212
|
+
abstract $mouseOverChartPoint(t: ChartSVGElement, seriesIndex: number, e: MouseEvent): void;
|
|
213
|
+
abstract $_generateYAxes(): {
|
|
214
|
+
yAxes: Array<ValueAxis | CategoryAxis>;
|
|
215
|
+
yAxesAtStart: Array<ValueAxis | CategoryAxis>;
|
|
216
|
+
yAxesAtEnd: Array<ValueAxis | CategoryAxis>;
|
|
217
|
+
};
|
|
218
|
+
abstract $_generateXAxes(): {
|
|
219
|
+
xAxes: Array<ValueAxis | CategoryAxis>;
|
|
220
|
+
xAxesAtStart: Array<ValueAxis | CategoryAxis>;
|
|
221
|
+
xAxesAtEnd: Array<ValueAxis | CategoryAxis>;
|
|
222
|
+
};
|
|
223
|
+
abstract $recalc(): void;
|
|
224
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ObjectData } from "../../core";
|
|
2
|
+
import { BrowserElement } from "../../browser-ui";
|
|
3
|
+
import { DualValueChartSeries, MarkerResolutionFunction } from "../series";
|
|
4
|
+
import { DualValueChart } from "../dual-value-chart";
|
|
5
|
+
import { DualValueChartAxis } from "../definitions";
|
|
6
|
+
import { BubbleChartOptions } from './definitions';
|
|
7
|
+
/**
|
|
8
|
+
* Data series for use in a bubble chart.
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare class BubbleChartSeries extends DualValueChartSeries {
|
|
12
|
+
readonly xAxisField: string;
|
|
13
|
+
readonly yAxisField: string;
|
|
14
|
+
readonly valueField: string;
|
|
15
|
+
$valueAxis: DualValueChartAxis;
|
|
16
|
+
addValue(o: ObjectData): void;
|
|
17
|
+
constructor(xAxisField: string, yAxisField: string, valueField: string, marker?: string, markerType?: "circle" | "square" | "cross", markerSize?: number, color?: string, outline?: boolean, outlineWidth?: number, outlineColor?: string, resolveMarker?: MarkerResolutionFunction);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A Bubble chart is a dual value axis chart with a 3rd dimension that is represented by the size of each data point.
|
|
21
|
+
* @group Charts
|
|
22
|
+
* @category Bubble Chart
|
|
23
|
+
*/
|
|
24
|
+
export declare class BubbleChart extends DualValueChart {
|
|
25
|
+
options: BubbleChartOptions;
|
|
26
|
+
constructor(container: BrowserElement, options: BubbleChartOptions);
|
|
27
|
+
$dualValueInit(options: BubbleChartOptions): void;
|
|
28
|
+
$getMarkerSize(s: BubbleChartSeries, point: ObjectData): number;
|
|
29
|
+
$getDataPointCssClass(): string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { DualValueSeriesOptions } from "../series";
|
|
2
|
+
import { DualValueChartOptions } from "../definitions";
|
|
3
|
+
/**
|
|
4
|
+
* Options for a bubble chart series.
|
|
5
|
+
* @group Charts
|
|
6
|
+
* @category Bubble Chart
|
|
7
|
+
*/
|
|
8
|
+
export interface BubbleChartSeriesOptions extends DualValueSeriesOptions {
|
|
9
|
+
/**
|
|
10
|
+
* The field in the data source that contains the value for the bubble's size.
|
|
11
|
+
*/
|
|
12
|
+
valueField: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Options for a bubble chart.
|
|
16
|
+
* @group Charts
|
|
17
|
+
* @category Bubble Chart
|
|
18
|
+
*/
|
|
19
|
+
export interface BubbleChartOptions extends DualValueChartOptions {
|
|
20
|
+
/**
|
|
21
|
+
* The minimum size (in pixels) for a bubble. Defaults to 10.
|
|
22
|
+
*/
|
|
23
|
+
minPointSize?: number;
|
|
24
|
+
/**
|
|
25
|
+
* The maximum size (in pixels) for a bubble. No default.
|
|
26
|
+
*/
|
|
27
|
+
maxPointSize?: number;
|
|
28
|
+
/**
|
|
29
|
+
* An array of bubble chart series options.
|
|
30
|
+
*/
|
|
31
|
+
series: Array<BubbleChartSeriesOptions>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { XYChart, XYChartOptions } from "./base-xy-chart";
|
|
2
|
+
import { ChartSVGElement } from "./util";
|
|
3
|
+
import { AxisCommon, CategoryAxis, CategoryAxisDefinition, ChartDimensions, ValueAxis, ValueAxisDefinition } from "./definitions";
|
|
4
|
+
import { ObjectData, PointXY } from "../core";
|
|
5
|
+
import { BrowserElement } from "../browser-ui";
|
|
6
|
+
import { CategoryVsAxisPlot, PlotDefinition } from "./plot";
|
|
7
|
+
import { CategoryValueTooltip, TooltipOptions } from "./tooltip";
|
|
8
|
+
import { ArrayBasedSeriesOptions, RecordBasedSeriesOptions } from "./series";
|
|
9
|
+
export interface CategoryValueChartOptions extends XYChartOptions<RecordBasedSeriesOptions | ArrayBasedSeriesOptions> {
|
|
10
|
+
plots: PlotDefinition | Array<PlotDefinition>;
|
|
11
|
+
/**
|
|
12
|
+
* Definition of one or more value axes.
|
|
13
|
+
*/
|
|
14
|
+
valueAxis?: ValueAxisDefinition | Array<ValueAxisDefinition>;
|
|
15
|
+
/**
|
|
16
|
+
* Definitions of one or more category axes.
|
|
17
|
+
*/
|
|
18
|
+
categoryAxis?: CategoryAxisDefinition | Array<CategoryAxisDefinition>;
|
|
19
|
+
/**
|
|
20
|
+
* Defaults to false, meaning the Y axis is the category axis and the X axis is the value axis, such as you'd use for a bar chart. Changing this to `true` makes the Y axis the value axis and the X axis the category axis, such as you'd use for a column chart. Note, though, that this flag is also honoured by other plot types such as line and area.
|
|
21
|
+
*/
|
|
22
|
+
inverted?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Pivot the data so that the series definitions become the categories, and the series data is derived from the individual data points. Default to false.
|
|
25
|
+
*/
|
|
26
|
+
pivot?: boolean;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Base class for XY charts that have a single value axis, such as bar charts, column charts, area and line charts. This class can be used directly, instead of using one of its subclasses, and supports multiple plots (each of which has to be a CategoryValuePlot).
|
|
30
|
+
* @group Charts
|
|
31
|
+
*/
|
|
32
|
+
export declare class CategoryValueChart extends XYChart<RecordBasedSeriesOptions | ArrayBasedSeriesOptions, CategoryValueTooltip> {
|
|
33
|
+
$valueAxes: Array<ValueAxis>;
|
|
34
|
+
$valueAxesMin: number;
|
|
35
|
+
$valueAxesMax: number;
|
|
36
|
+
$categoryAxes: Array<CategoryAxis>;
|
|
37
|
+
$inverted: boolean;
|
|
38
|
+
_valueAxisDefinition: ValueAxisDefinition | Array<ValueAxisDefinition>;
|
|
39
|
+
_categoryAxisDefinition: CategoryAxisDefinition | Array<CategoryAxisDefinition>;
|
|
40
|
+
$categories: Array<ObjectData>;
|
|
41
|
+
$plots: Array<CategoryVsAxisPlot>;
|
|
42
|
+
_pivot: boolean;
|
|
43
|
+
constructor(container: BrowserElement, options: CategoryValueChartOptions);
|
|
44
|
+
/**
|
|
45
|
+
* Gets label elements for a category axis.
|
|
46
|
+
* @param parentElement Parent to append label elements to
|
|
47
|
+
* @param labelField the field in category containing the label
|
|
48
|
+
* @param isXAxis True if this category axis is on the x axis, false if this category axis is on the Y axis.
|
|
49
|
+
*/
|
|
50
|
+
private _getCategoryAxisLabels;
|
|
51
|
+
/**
|
|
52
|
+
* Overrides XYChart's $getAxisLabels to add support for category axes.
|
|
53
|
+
* @param va
|
|
54
|
+
* @param isXAxis
|
|
55
|
+
*/
|
|
56
|
+
$getAxisLabels(va: AxisCommon, isXAxis: boolean): any[];
|
|
57
|
+
/**
|
|
58
|
+
* Setup the category axes.
|
|
59
|
+
*/
|
|
60
|
+
private _setupCategoryAxes;
|
|
61
|
+
$doReset(): void;
|
|
62
|
+
/**
|
|
63
|
+
* Pivot the dataset so that the series become the categories and the categories become the series.
|
|
64
|
+
* NOTE this still does not get us stacked groups.
|
|
65
|
+
* @internal
|
|
66
|
+
*/
|
|
67
|
+
private _doPivot;
|
|
68
|
+
$doLoad(): void;
|
|
69
|
+
$recalc(): void;
|
|
70
|
+
/**
|
|
71
|
+
* Process the value axes. This method is agnostic of the orientation of the chart.
|
|
72
|
+
*/
|
|
73
|
+
private _setupValueAxes;
|
|
74
|
+
/**
|
|
75
|
+
* Generate the Y axes for XYChart to draw. By default these are category axes; if `inverted` is set on this chart they are value axes.
|
|
76
|
+
*/
|
|
77
|
+
$_generateYAxes(): {
|
|
78
|
+
yAxes: ValueAxis[];
|
|
79
|
+
yAxesAtStart: ValueAxis[];
|
|
80
|
+
yAxesAtEnd: ValueAxis[];
|
|
81
|
+
} | {
|
|
82
|
+
yAxes: CategoryAxis[];
|
|
83
|
+
yAxesAtStart: CategoryAxis[];
|
|
84
|
+
yAxesAtEnd: CategoryAxis[];
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Generate the X axes for XYChart to draw. By default these are value axes; if `inverted` is set on this chart they are category axes.
|
|
88
|
+
*/
|
|
89
|
+
$_generateXAxes(): {
|
|
90
|
+
xAxes: ValueAxis[];
|
|
91
|
+
xAxesAtStart: ValueAxis[];
|
|
92
|
+
xAxesAtEnd: ValueAxis[];
|
|
93
|
+
} | {
|
|
94
|
+
xAxes: CategoryAxis[];
|
|
95
|
+
xAxesAtStart: CategoryAxis[];
|
|
96
|
+
xAxesAtEnd: CategoryAxis[];
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* Override drawChart to add our plots at the end, and, optionally, the crosshair.
|
|
100
|
+
* @param svgRoot
|
|
101
|
+
* @param width
|
|
102
|
+
* @param height
|
|
103
|
+
* @param backgroundElement
|
|
104
|
+
* @internal
|
|
105
|
+
*/
|
|
106
|
+
protected $drawChart(svgRoot: ChartSVGElement, width: number, height: number, backgroundElement: ChartSVGElement): void;
|
|
107
|
+
/**
|
|
108
|
+
* get the amount of space in the category axis available to each category.
|
|
109
|
+
* @param dim
|
|
110
|
+
* @param isXAxis which axis to measure space in. For a value axis on the x axis, this means to use the chart height. For a value axis on the y axis, it means use the chart width.
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
113
|
+
private _getSpacePerCategory;
|
|
114
|
+
/**
|
|
115
|
+
* Returns the position of the center of the given category in the category axis.
|
|
116
|
+
* @param categoryIndex
|
|
117
|
+
* @param isXAxis which axis to measure space in. For a value axis on the x axis, this means to use the chart height. For a value axis on the y axis, it means use the chart width.
|
|
118
|
+
* @param dim
|
|
119
|
+
* @internal
|
|
120
|
+
*/
|
|
121
|
+
$getCategoryCenter(categoryIndex: number, dim: ChartDimensions, isXAxis: boolean): number;
|
|
122
|
+
/**
|
|
123
|
+
* Callback from the superclass to inform us the mouse is over a point drawn on the chart. In this chart type we set the focused category (if crosshair was requested in the chart options), and maybe show a tooltip.
|
|
124
|
+
* @param t
|
|
125
|
+
* @param seriesIndex
|
|
126
|
+
* @internal
|
|
127
|
+
*/
|
|
128
|
+
$mouseOverChartPoint(t: ChartSVGElement, seriesIndex: number, e: MouseEvent): void;
|
|
129
|
+
/**
|
|
130
|
+
* Callback from the superclass to inform us the mouse has exited a point drawn on the chart. In this chart type we clear the focused category
|
|
131
|
+
* @internal
|
|
132
|
+
*/
|
|
133
|
+
$mouseOutChartPoint(): void;
|
|
134
|
+
/**
|
|
135
|
+
* @internal
|
|
136
|
+
* @param series
|
|
137
|
+
* @param category
|
|
138
|
+
* @param position
|
|
139
|
+
* @param tooltipAnchor
|
|
140
|
+
* @internal
|
|
141
|
+
*/
|
|
142
|
+
$maybeShowTooltip(series: number, category: number, position: PointXY, tooltipAnchor: PointXY, stackId?: string, stackTotal?: number, valueOverride?: number): void;
|
|
143
|
+
$getXAxisType(): "category" | "value";
|
|
144
|
+
$getYAxisType(): "category" | "value";
|
|
145
|
+
$createTooltip(root: ChartSVGElement, options: TooltipOptions): CategoryValueTooltip;
|
|
146
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { BaseChart } from "./base-chart";
|
|
2
|
+
import { BrowserElement } from "../browser-ui";
|
|
3
|
+
/**
|
|
4
|
+
* Options for a chart export menu.
|
|
5
|
+
*/
|
|
6
|
+
export interface ChartExporterOptions {
|
|
7
|
+
/**
|
|
8
|
+
* Placement respective to right edge of the chart. Any valid CSS dimension works. Default is 1rem.
|
|
9
|
+
*/
|
|
10
|
+
right?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Placement respective to top edge of the chart. Any valid CSS dimension works. Default is 1rem.
|
|
13
|
+
*/
|
|
14
|
+
top?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Optional filename to use when exporting this chart. If not provided, a filename (with maximum length 30 characters) will be created from the chart's title, if it has one. Otherwise `chart-export` will be the filename.
|
|
17
|
+
*/
|
|
18
|
+
filename?: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Component that adds an export menu to a chart.
|
|
22
|
+
*/
|
|
23
|
+
export declare class ChartExporter {
|
|
24
|
+
private chart;
|
|
25
|
+
private options;
|
|
26
|
+
private hamburger;
|
|
27
|
+
private menu;
|
|
28
|
+
private eventManager;
|
|
29
|
+
private hideTimeout;
|
|
30
|
+
private _menuVisible;
|
|
31
|
+
constructor(chart: BaseChart, options?: ChartExporterOptions);
|
|
32
|
+
_render(target?: BrowserElement): void;
|
|
33
|
+
private _showMenu;
|
|
34
|
+
private _hideMenu;
|
|
35
|
+
private _download;
|
|
36
|
+
private _triggerDownload;
|
|
37
|
+
destroy(): void;
|
|
38
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BaseChart } from "./base-chart";
|
|
2
|
+
import { BrowserElement } from "../browser-ui";
|
|
3
|
+
/** @internal */
|
|
4
|
+
export declare const ZOOM_TO_FIT_VIEW_BOX = "0 0 32 30";
|
|
5
|
+
/** @internal */
|
|
6
|
+
export declare const ZOOM_TO_FIT_PATH = "M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z";
|
|
7
|
+
/** @internal */
|
|
8
|
+
export declare const ZOOM_IN_OUT_VIEW_BOX = "0 0 32 32";
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const ZOOM_IN_PATH = "M 13 6 L 13 20 M 6 13 L 20 13 M 22,22 L 30,30 M1, 13 a 12,12 0 1,0 24,0 a 12,12 0 1,0 -24,0";
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare const ZOOM_OUT_PATH = "M 6 13 L 20 13 M 22,22 L 30,30 M1, 13 a 12,12 0 1,0 24,0 a 12,12 0 1,0 -24,0";
|
|
13
|
+
/**
|
|
14
|
+
* Component that adds zoom controls to a chart.
|
|
15
|
+
*/
|
|
16
|
+
export declare class ChartZoomControls {
|
|
17
|
+
private chart;
|
|
18
|
+
private container;
|
|
19
|
+
private eventManager;
|
|
20
|
+
constructor(chart: BaseChart);
|
|
21
|
+
render(target?: BrowserElement, orientation?: 'row' | 'column'): void;
|
|
22
|
+
destroy(): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fired when a chart has loaded data and finished drawing.
|
|
3
|
+
* @group Events
|
|
4
|
+
* @category Charts
|
|
5
|
+
*/
|
|
6
|
+
export declare const EVENT_CHART_LOAD = "chart:load";
|
|
7
|
+
/**
|
|
8
|
+
* The default message to display when a chart has no data
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
export declare const DEFAULT_CHART_EMPTY_MESSAGE = "No data";
|
|
12
|
+
/**
|
|
13
|
+
* The default message to display when an error occurs while painting.
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
export declare const DEFAULT_CHART_ERROR_MESSAGE = "Could not draw chart";
|