@wcardinal/wcardinal-ui 0.150.2 → 0.154.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/dist/types/wcardinal/ui/d-chart-axis-base-options-parser.d.ts +4 -0
- package/dist/types/wcardinal/ui/d-chart-axis-base-options.d.ts +7 -1
- package/dist/types/wcardinal/ui/d-chart-coordinate-container-sub-impl.d.ts +2 -1
- package/dist/types/wcardinal/ui/d-chart-coordinate-direction.d.ts +5 -0
- package/dist/types/wcardinal/ui/d-chart-coordinate-linear-tick.d.ts +13 -8
- package/dist/types/wcardinal/ui/d-chart-coordinate-linear.d.ts +18 -14
- package/dist/types/wcardinal/ui/d-chart-coordinate-log-tick.d.ts +14 -7
- package/dist/types/wcardinal/ui/d-chart-coordinate-log.d.ts +18 -14
- package/dist/types/wcardinal/ui/d-chart-coordinate-tick-major-step-function.d.ts +1 -0
- package/dist/types/wcardinal/ui/d-chart-coordinate-tick-minor-step-function.d.ts +1 -0
- package/dist/types/wcardinal/ui/d-chart-coordinate-tick.d.ts +13 -0
- package/dist/types/wcardinal/ui/d-chart-coordinate-transform-impl.d.ts +8 -3
- package/dist/types/wcardinal/ui/d-chart-coordinate-transform.d.ts +6 -1
- package/dist/types/wcardinal/ui/d-chart-coordinate.d.ts +18 -7
- package/dist/types/wcardinal/ui/d-diagram-data-remote.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-diagram-data.d.ts +8 -8
- package/dist/types/wcardinal/ui/d-view-constraint.d.ts +5 -0
- package/dist/types/wcardinal/ui/d-view-gesture-impl.d.ts +3 -1
- package/dist/types/wcardinal/ui/d-view-impl.d.ts +3 -0
- package/dist/types/wcardinal/ui/d-view-transform-impl.d.ts +4 -2
- package/dist/types/wcardinal/ui/d-view.d.ts +3 -0
- package/dist/types/wcardinal/ui/index.d.ts +5 -0
- package/dist/types/wcardinal/ui/shape/action/{e-shape-action-value-deserializer.d.ts → deserialize-action-value.d.ts} +1 -4
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtimes.d.ts +3 -3
- package/dist/types/wcardinal/ui/shape/action/index.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/e-shape-deserializers.d.ts +15 -4
- package/dist/types/wcardinal/ui/shape/index.d.ts +0 -3
- package/dist/types/wcardinal/ui/shape/variant/deserialize-all.d.ts +4 -0
- package/dist/types/wcardinal/ui/shape/variant/deserialize-bar.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/deserialize-base.d.ts +4 -0
- package/dist/types/wcardinal/ui/shape/variant/deserialize-button.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/deserialize-circle.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/deserialize-connector-line.d.ts +2 -2
- package/dist/types/wcardinal/ui/shape/variant/deserialize-gradient.d.ts +2 -0
- package/dist/types/wcardinal/ui/shape/variant/deserialize-group-shadowed.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/deserialize-group.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/deserialize-image-sdf.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/deserialize-image.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/deserialize-label.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/deserialize-line-of-circles.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/deserialize-line-of-rectangle-roundeds.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/deserialize-line-of-rectangles.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/deserialize-line-of-triangle-roundeds.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/deserialize-line-of-triangles.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/deserialize-line.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/deserialize-null.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/deserialize-rectangle-pivoted.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/deserialize-rectangle-rounded.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/deserialize-rectangle.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/deserialize-triangle-rounded.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/deserialize-triangle.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/variant/deserialize.d.ts +4 -0
- package/dist/types/wcardinal/ui/shape/variant/e-shape-embeddeds.d.ts +1 -2
- package/dist/types/wcardinal/ui/shape/variant/e-shape-line-of-circles.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/variant/e-shape-line-of-rectangle-roundeds.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/variant/e-shape-line-of-rectangles.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/variant/e-shape-line-of-triangle-roundeds.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/variant/e-shape-line-of-triangles.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/variant/index.d.ts +11 -2
- package/dist/types/wcardinal/ui/shape/variant/to-gradient-image-url.d.ts +2 -0
- package/dist/types/wcardinal/ui/shape/variant/to-gradient-serialized.d.ts +2 -0
- package/dist/types/wcardinal/ui/shape/variant/to-image-element.d.ts +1 -0
- package/dist/types/wcardinal/ui/shape/variant/to-resized.d.ts +3 -0
- package/dist/types/wcardinal/ui/shape/variant/to-size-normalized.d.ts +1 -0
- package/dist/types/wcardinal/ui/shape/variant/to-size-rounded.d.ts +1 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-axis-base.d.ts +4 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-tick.d.ts +4 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-transform.d.ts +4 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate.d.ts +4 -0
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-plot-area.d.ts +1 -0
- package/dist/types/wcardinal/ui/theme/dark/index.d.ts +3 -2
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-axis-base.d.ts +4 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-tick.d.ts +4 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-transform.d.ts +4 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-coordinate.d.ts +4 -0
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-plot-area.d.ts +1 -0
- package/dist/types/wcardinal/ui/theme/white/index.d.ts +3 -2
- package/dist/wcardinal/ui/d-chart-axis-base-options-parser.js +7 -5
- package/dist/wcardinal/ui/d-chart-axis-base-options-parser.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-base-options.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-base.js +16 -8
- package/dist/wcardinal/ui/d-chart-axis-base.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-container-impl.js +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-container-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-container-sub-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-direction.js +9 -0
- package/dist/wcardinal/ui/d-chart-coordinate-direction.js.map +1 -0
- package/dist/wcardinal/ui/d-chart-coordinate-linear-tick.js +64 -29
- package/dist/wcardinal/ui/d-chart-coordinate-linear-tick.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-linear.js +41 -8
- package/dist/wcardinal/ui/d-chart-coordinate-linear.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-log-tick.js +53 -28
- package/dist/wcardinal/ui/d-chart-coordinate-log-tick.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-log.js +41 -8
- package/dist/wcardinal/ui/d-chart-coordinate-log.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-tick-major-step-function.js +6 -0
- package/dist/wcardinal/ui/d-chart-coordinate-tick-major-step-function.js.map +1 -0
- package/dist/wcardinal/ui/d-chart-coordinate-tick-minor-step-function.js +6 -0
- package/dist/wcardinal/ui/d-chart-coordinate-tick-minor-step-function.js.map +1 -0
- package/dist/wcardinal/ui/d-chart-coordinate-tick.js +6 -0
- package/dist/wcardinal/ui/d-chart-coordinate-tick.js.map +1 -0
- package/dist/wcardinal/ui/d-chart-coordinate-transform-impl.js +23 -5
- package/dist/wcardinal/ui/d-chart-coordinate-transform-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate-transform.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-coordinate.js +1 -4
- package/dist/wcardinal/ui/d-chart-coordinate.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-series-linear.js +43 -34
- package/dist/wcardinal/ui/d-chart-series-linear.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-data-remote.js +2 -0
- package/dist/wcardinal/ui/d-diagram-data-remote.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-data.js +16 -0
- package/dist/wcardinal/ui/d-diagram-data.js.map +1 -1
- package/dist/wcardinal/ui/d-diagrams.js +2 -2
- package/dist/wcardinal/ui/d-diagrams.js.map +1 -1
- package/dist/wcardinal/ui/d-view-constraint.js +6 -0
- package/dist/wcardinal/ui/d-view-constraint.js.map +1 -0
- package/dist/wcardinal/ui/d-view-gesture-impl.js +3 -3
- package/dist/wcardinal/ui/d-view-gesture-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-view-impl.js +16 -5
- package/dist/wcardinal/ui/d-view-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-view-transform-impl.js +6 -7
- package/dist/wcardinal/ui/d-view-transform-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-view.js.map +1 -1
- package/dist/wcardinal/ui/index.js +5 -0
- package/dist/wcardinal/ui/index.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/deserialize-action-value.js +109 -0
- package/dist/wcardinal/ui/shape/action/deserialize-action-value.js.map +1 -0
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-height-absolute.js +2 -2
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-height-absolute.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-height-relative.js +2 -2
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-height-relative.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-size-absolute.js +2 -2
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-size-absolute.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-size-relative.js +2 -2
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-size-relative.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-width-absolute.js +2 -2
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-width-absolute.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-width-relative.js +2 -2
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-width-relative.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtimes.js +7 -2
- package/dist/wcardinal/ui/shape/action/e-shape-action-runtimes.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/index.js +1 -1
- package/dist/wcardinal/ui/shape/action/index.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-deserializers.js +7 -1
- package/dist/wcardinal/ui/shape/e-shape-deserializers.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-transforms.js +3 -3
- package/dist/wcardinal/ui/shape/e-shape-transforms.js.map +1 -1
- package/dist/wcardinal/ui/shape/index.js +0 -3
- package/dist/wcardinal/ui/shape/index.js.map +1 -1
- package/dist/wcardinal/ui/shape/load/load-shape-connector-line.js +3 -3
- package/dist/wcardinal/ui/shape/load/load-shape-connector-line.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/create-image-sdf.js +3 -3
- package/dist/wcardinal/ui/shape/variant/create-image-sdf.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/create-image.js +2 -2
- package/dist/wcardinal/ui/shape/variant/create-image.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-all.js +32 -0
- package/dist/wcardinal/ui/shape/variant/deserialize-all.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/deserialize-bar.js +4 -4
- package/dist/wcardinal/ui/shape/variant/deserialize-bar.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-base.js +100 -0
- package/dist/wcardinal/ui/shape/variant/deserialize-base.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/deserialize-button.js +4 -5
- package/dist/wcardinal/ui/shape/variant/deserialize-button.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-circle.js +3 -3
- package/dist/wcardinal/ui/shape/variant/deserialize-circle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-connector-line.js +4 -4
- package/dist/wcardinal/ui/shape/variant/deserialize-connector-line.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-embedded.js +15 -2
- package/dist/wcardinal/ui/shape/variant/deserialize-embedded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-gradient.js +34 -0
- package/dist/wcardinal/ui/shape/variant/deserialize-gradient.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/deserialize-group-shadowed.js +4 -4
- package/dist/wcardinal/ui/shape/variant/deserialize-group-shadowed.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-group.js +4 -4
- package/dist/wcardinal/ui/shape/variant/deserialize-group.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-image-sdf.js +3 -3
- package/dist/wcardinal/ui/shape/variant/deserialize-image-sdf.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-image.js +3 -3
- package/dist/wcardinal/ui/shape/variant/deserialize-image.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-label.js +3 -3
- package/dist/wcardinal/ui/shape/variant/deserialize-label.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-line-of-circles.js +3 -3
- package/dist/wcardinal/ui/shape/variant/deserialize-line-of-circles.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-line-of-rectangle-roundeds.js +3 -3
- package/dist/wcardinal/ui/shape/variant/deserialize-line-of-rectangle-roundeds.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-line-of-rectangles.js +3 -3
- package/dist/wcardinal/ui/shape/variant/deserialize-line-of-rectangles.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-line-of-triangle-roundeds.js +3 -3
- package/dist/wcardinal/ui/shape/variant/deserialize-line-of-triangle-roundeds.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-line-of-triangles.js +3 -3
- package/dist/wcardinal/ui/shape/variant/deserialize-line-of-triangles.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-line.js +4 -4
- package/dist/wcardinal/ui/shape/variant/deserialize-line.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-null.js +3 -3
- package/dist/wcardinal/ui/shape/variant/deserialize-null.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-rectangle-pivoted.js +3 -3
- package/dist/wcardinal/ui/shape/variant/deserialize-rectangle-pivoted.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-rectangle-rounded.js +3 -3
- package/dist/wcardinal/ui/shape/variant/deserialize-rectangle-rounded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-rectangle.js +3 -3
- package/dist/wcardinal/ui/shape/variant/deserialize-rectangle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-triangle-rounded.js +3 -3
- package/dist/wcardinal/ui/shape/variant/deserialize-triangle-rounded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-triangle.js +3 -3
- package/dist/wcardinal/ui/shape/variant/deserialize-triangle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize.js +17 -0
- package/dist/wcardinal/ui/shape/variant/deserialize.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-bar.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-bar.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-base.js +9 -2
- package/dist/wcardinal/ui/shape/variant/e-shape-base.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-button.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-button.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-circle.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-circle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-connector-line.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-connector-line.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-embeddeds.js +0 -13
- package/dist/wcardinal/ui/shape/variant/e-shape-embeddeds.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-image-sdf.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-image-sdf.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-image.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-image.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-label.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-label.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-circles.js +4 -3
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-circles.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-rectangle-roundeds.js +4 -3
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-rectangle-roundeds.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-rectangles.js +4 -3
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-rectangles.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-triangle-roundeds.js +4 -3
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-triangle-roundeds.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-triangles.js +4 -3
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-triangles.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-null.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-null.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-rounded.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-rounded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-rectangle.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-rectangle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-triangle-rounded.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-triangle-rounded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-triangle.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-triangle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/index.js +11 -2
- package/dist/wcardinal/ui/shape/variant/index.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/to-gradient-image-url.js +35 -0
- package/dist/wcardinal/ui/shape/variant/to-gradient-image-url.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/to-gradient-serialized.js +15 -0
- package/dist/wcardinal/ui/shape/variant/to-gradient-serialized.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/to-image-element.js +32 -0
- package/dist/wcardinal/ui/shape/variant/to-image-element.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/to-resized.js +52 -0
- package/dist/wcardinal/ui/shape/variant/to-resized.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/to-size-normalized.js +12 -0
- package/dist/wcardinal/ui/shape/variant/to-size-normalized.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/to-size-rounded.js +8 -0
- package/dist/wcardinal/ui/shape/variant/to-size-rounded.js.map +1 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-axis-base.js +7 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-axis-base.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-tick.js +23 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-tick.js.map +1 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-transform.js +14 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-transform.js.map +1 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate.js +14 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate.js.map +1 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-plot-area.js +4 -0
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-plot-area.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart.js +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/index.js +3 -2
- package/dist/wcardinal/ui/theme/dark/index.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-chart.js +6 -4
- package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-chart.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-axis-base.js +8 -2
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-axis-base.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-tick.js +23 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-tick.js.map +1 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-transform.js +14 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-transform.js.map +1 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate.js +14 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate.js.map +1 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-plot-area.js +4 -0
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-plot-area.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart.js +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/index.js +3 -2
- package/dist/wcardinal/ui/theme/white/index.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/load/load-theme-white-chart.js +6 -4
- package/dist/wcardinal/ui/theme/white/load/load-theme-white-chart.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +37 -28
- package/dist/wcardinal-ui-theme-dark.min.js +2 -2
- package/dist/wcardinal-ui-theme-dark.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-white.js +38 -29
- package/dist/wcardinal-ui-theme-white.min.js +2 -2
- package/dist/wcardinal-ui-theme-white.min.js.map +1 -1
- package/dist/wcardinal-ui.cjs.js +2859 -2630
- package/dist/wcardinal-ui.js +2219 -2008
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/wcardinal/ui/shape/e-shape-deserializer.d.ts +0 -10
- package/dist/types/wcardinal/ui/shape/e-shape-image-elements.d.ts +0 -6
- package/dist/types/wcardinal/ui/shape/e-shape-sizes.d.ts +0 -7
- package/dist/types/wcardinal/ui/shape/variant/e-shape-gradients.d.ts +0 -9
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-linear.d.ts +0 -5
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-log.d.ts +0 -5
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-linear.d.ts +0 -5
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-log.d.ts +0 -5
- package/dist/wcardinal/ui/shape/action/e-shape-action-value-deserializer.js +0 -115
- package/dist/wcardinal/ui/shape/action/e-shape-action-value-deserializer.js.map +0 -1
- package/dist/wcardinal/ui/shape/e-shape-deserializer.js +0 -143
- package/dist/wcardinal/ui/shape/e-shape-deserializer.js.map +0 -1
- package/dist/wcardinal/ui/shape/e-shape-image-elements.js +0 -35
- package/dist/wcardinal/ui/shape/e-shape-image-elements.js.map +0 -1
- package/dist/wcardinal/ui/shape/e-shape-sizes.js +0 -66
- package/dist/wcardinal/ui/shape/e-shape-sizes.js.map +0 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-gradients.js +0 -89
- package/dist/wcardinal/ui/shape/variant/e-shape-gradients.js.map +0 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-linear.js +0 -26
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-linear.js.map +0 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-log.js +0 -26
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-chart-coordinate-log.js.map +0 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-linear.js +0 -26
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-linear.js.map +0 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-log.js +0 -26
- package/dist/wcardinal/ui/theme/white/d-theme-white-chart-coordinate-log.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-action-runtimes.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtimes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"e-shape-action-runtimes.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtimes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AA8B5D;IAAA;IAwDA,CAAC;IAvDO,gCAAW,GAAlB,UAAmB,KAAqB;QACvC,IAAI,OAAO,GAAuC,KAAK,CAAC;QACxD,OAAO,OAAO,IAAI,IAAI,EAAE;YACvB,IAAI,OAAO,YAAY,gBAAgB,EAAE;gBACxC,OAAO,OAAuC,CAAC;aAC/C;YACD,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;SACzB;QACD,OAAO,IAAI,CAAC;IACb,CAAC;IAEM,yBAAI,GAAX,UAAY,KAAa,EAAE,MAAc;QACxC,IAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC1C,IAAI,SAAS,EAAE;YACd,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;SAC7B;IACF,CAAC;IAEM,0BAAK,GAAZ,UACC,KAAa,EACb,EAAU,EACV,KAAc,EACd,IAAY,EACZ,MAAe;QAEf,IAAM,SAAS,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC1C,IAAI,SAAS,EAAE;YACd,IAAI,MAAM,EAAE;gBACX,OAAO,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;aAClD;iBAAM;gBACN,IAAI,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE;oBACxC,aAAa,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;oBAChC,OAAO,IAAI,CAAC;iBACZ;aACD;SACD;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IAIM,yBAAI,GAAX,UAAY,KAAa,EAAE,IAAY,EAAE,KAAe,EAAE,IAAa;QACtE,IAAM,SAAS,GAAG,oBAAoB,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;QAC1D,IAAI,IAAI,KAAK,SAAS,EAAE;YACvB,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YACxB,IAAI,SAAS,EAAE;gBACd,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;aAClC;SACD;aAAM;YACN,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;YACrC,IAAI,SAAS,EAAE;gBACd,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;aAC/C;SACD;IACF,CAAC;IACF,2BAAC;AAAD,CAAC,AAxDD,IAwDC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DApplications } from \"../../d-applications\";\nimport { DCanvasContainer } from \"../../d-canvas-container\";\nimport { EShape } from \"../e-shape\";\n\ninterface EShapeActionRuntimeContainerDataRemote {\n\tset(id: string, value: unknown, time: number): boolean;\n}\n\ninterface EShapeActionRuntimeContainerData {\n\treadonly remote: EShapeActionRuntimeContainerDataRemote;\n\n\tset(\n\t\tid: string,\n\t\tvalue: unknown,\n\t\ttime?: number,\n\t\tfrom?: number | null,\n\t\tto?: number | null\n\t): boolean;\n}\n\ninterface EShapeActionRuntimeContainerShape {\n\temit(name: string, ...args: unknown[]): void;\n}\n\ninterface EShapeActionRuntimeContainer extends DCanvasContainer {\n\treadonly shape: EShapeActionRuntimeContainerShape;\n\treadonly data: EShapeActionRuntimeContainerData;\n\n\topenByName(target: string): void;\n}\n\nexport class EShapeActionRuntimes {\n\tstatic toContainer(shape?: EShape | null): EShapeActionRuntimeContainer | null {\n\t\tlet current: { parent: any } | null | undefined = shape;\n\t\twhile (current != null) {\n\t\t\tif (current instanceof DCanvasContainer) {\n\t\t\t\treturn current as EShapeActionRuntimeContainer;\n\t\t\t}\n\t\t\tcurrent = current.parent;\n\t\t}\n\t\treturn null;\n\t}\n\n\tstatic open(shape: EShape, target: string): void {\n\t\tconst container = this.toContainer(shape);\n\t\tif (container) {\n\t\t\tcontainer.openByName(target);\n\t\t}\n\t}\n\n\tstatic write(\n\t\tshape: EShape,\n\t\tid: string,\n\t\tvalue: unknown,\n\t\ttime: number,\n\t\tremote: boolean\n\t): boolean {\n\t\tconst container = this.toContainer(shape);\n\t\tif (container) {\n\t\t\tif (remote) {\n\t\t\t\treturn container.data.remote.set(id, value, time);\n\t\t\t} else {\n\t\t\t\tif (container.data.set(id, value, time)) {\n\t\t\t\t\tDApplications.update(container);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}\n\n\tstatic emit(shape: EShape, name: string): void;\n\tstatic emit(shape: EShape, name: string, value: unknown, time: number): void;\n\tstatic emit(shape: EShape, name: string, value?: unknown, time?: number): void {\n\t\tconst container = EShapeActionRuntimes.toContainer(shape);\n\t\tif (time === undefined) {\n\t\t\tshape.emit(name, shape);\n\t\t\tif (container) {\n\t\t\t\tcontainer.shape.emit(name, shape);\n\t\t\t}\n\t\t} else {\n\t\t\tshape.emit(name, value, time, shape);\n\t\t\tif (container) {\n\t\t\t\tcontainer.shape.emit(name, value, time, shape);\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright (C) 2019 Toshiba Corporation
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
+
export * from "./deserialize-action-value";
|
|
5
6
|
export * from "./e-shape-action-bases";
|
|
6
7
|
export * from "./e-shape-action-expression";
|
|
7
8
|
export * from "./e-shape-action-expressions";
|
|
@@ -77,7 +78,6 @@ export * from "./e-shape-action-value-change-color";
|
|
|
77
78
|
export * from "./e-shape-action-value-change-cursor";
|
|
78
79
|
export * from "./e-shape-action-value-change-text-type";
|
|
79
80
|
export * from "./e-shape-action-value-change-text";
|
|
80
|
-
export * from "./e-shape-action-value-deserializer";
|
|
81
81
|
export * from "./e-shape-action-value-emit-event";
|
|
82
82
|
export * from "./e-shape-action-value-misc-emit-event";
|
|
83
83
|
export * from "./e-shape-action-value-misc-gesture-type";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kDAAkD,CAAC;AACjE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,qCAAqC,CAAC;AACpD,cAAc,6C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AAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wCAAwC,CAAC;AACvD,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,yCAAyC,CAAC;AACxD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./deserialize-action-value\";\nexport * from \"./e-shape-action-bases\";\nexport * from \"./e-shape-action-expression\";\nexport * from \"./e-shape-action-expressions\";\nexport * from \"./e-shape-action-runtime-blink-brighten\";\nexport * from \"./e-shape-action-runtime-blink-color-fill\";\nexport * from \"./e-shape-action-runtime-blink-color-stroke\";\nexport * from \"./e-shape-action-runtime-blink-darken\";\nexport * from \"./e-shape-action-runtime-blink-opacity\";\nexport * from \"./e-shape-action-runtime-blink-visibility\";\nexport * from \"./e-shape-action-runtime-blink\";\nexport * from \"./e-shape-action-runtime-change-color-brightness\";\nexport * from \"./e-shape-action-runtime-change-color-code\";\nexport * from \"./e-shape-action-runtime-change-color\";\nexport * from \"./e-shape-action-runtime-change-cursor\";\nexport * from \"./e-shape-action-runtime-change-text-number\";\nexport * from \"./e-shape-action-runtime-change-text-text\";\nexport * from \"./e-shape-action-runtime-conditional\";\nexport * from \"./e-shape-action-runtime-emit-event\";\nexport * from \"./e-shape-action-runtime-misc-gesture\";\nexport * from \"./e-shape-action-runtime-misc-emit-event\";\nexport * from \"./e-shape-action-runtime-misc-html-element\";\nexport * from \"./e-shape-action-runtime-misc-input-input\";\nexport * from \"./e-shape-action-runtime-misc-input-integer\";\nexport * from \"./e-shape-action-runtime-misc-input-number\";\nexport * from \"./e-shape-action-runtime-misc-input-real\";\nexport * from \"./e-shape-action-runtime-misc-input-text\";\nexport * from \"./e-shape-action-runtime-misc-input\";\nexport * from \"./e-shape-action-runtime-misc-layer-gesture\";\nexport * from \"./e-shape-action-runtime-misc-layer-show-hide\";\nexport * from \"./e-shape-action-runtime-misc-write-both\";\nexport * from \"./e-shape-action-runtime-misc-write-local\";\nexport * from \"./e-shape-action-runtime-misc-write-remote\";\nexport * from \"./e-shape-action-runtime-misc-write\";\nexport * from \"./e-shape-action-runtime-open-diagram\";\nexport * from \"./e-shape-action-runtime-open-dialog-boolean\";\nexport * from \"./e-shape-action-runtime-open-dialog-integer\";\nexport * from \"./e-shape-action-runtime-open-dialog-real\";\nexport * from \"./e-shape-action-runtime-open-dialog-text\";\nexport * from \"./e-shape-action-runtime-open-dialog\";\nexport * from \"./e-shape-action-runtime-open-page-inplace\";\nexport * from \"./e-shape-action-runtime-open-page\";\nexport * from \"./e-shape-action-runtime-open\";\nexport * from \"./e-shape-action-runtime-show-hide\";\nexport * from \"./e-shape-action-runtime-transform-move-absolute-x\";\nexport * from \"./e-shape-action-runtime-transform-move-absolute-y\";\nexport * from \"./e-shape-action-runtime-transform-move-forward-or-backward\";\nexport * from \"./e-shape-action-runtime-transform-move-left-or-right\";\nexport * from \"./e-shape-action-runtime-transform-move-relative-x\";\nexport * from \"./e-shape-action-runtime-transform-move-relative-y\";\nexport * from \"./e-shape-action-runtime-transform-move\";\nexport * from \"./e-shape-action-runtime-transform-resize-height-absolute\";\nexport * from \"./e-shape-action-runtime-transform-resize-height-relative\";\nexport * from \"./e-shape-action-runtime-transform-resize-size-absolute\";\nexport * from \"./e-shape-action-runtime-transform-resize-size-relative\";\nexport * from \"./e-shape-action-runtime-transform-resize-width-absolute\";\nexport * from \"./e-shape-action-runtime-transform-resize-width-relative\";\nexport * from \"./e-shape-action-runtime-transform-resize\";\nexport * from \"./e-shape-action-runtime-transform-rotate-absolute\";\nexport * from \"./e-shape-action-runtime-transform-rotate-relative\";\nexport * from \"./e-shape-action-runtime-transform-rotate\";\nexport * from \"./e-shape-action-runtime\";\nexport * from \"./e-shape-action-runtimes\";\nexport * from \"./e-shape-action-value-base\";\nexport * from \"./e-shape-action-value-blink-type\";\nexport * from \"./e-shape-action-value-blink\";\nexport * from \"./e-shape-action-value-change-color-brightness\";\nexport * from \"./e-shape-action-value-change-color-code\";\nexport * from \"./e-shape-action-value-change-color-target\";\nexport * from \"./e-shape-action-value-change-color-type-legacy\";\nexport * from \"./e-shape-action-value-change-color-type\";\nexport * from \"./e-shape-action-value-change-color-types\";\nexport * from \"./e-shape-action-value-change-color\";\nexport * from \"./e-shape-action-value-change-cursor\";\nexport * from \"./e-shape-action-value-change-text-type\";\nexport * from \"./e-shape-action-value-change-text\";\nexport * from \"./e-shape-action-value-emit-event\";\nexport * from \"./e-shape-action-value-misc-emit-event\";\nexport * from \"./e-shape-action-value-misc-gesture-type\";\nexport * from \"./e-shape-action-value-misc-gesture\";\nexport * from \"./e-shape-action-value-misc-html-element\";\nexport * from \"./e-shape-action-value-misc-input\";\nexport * from \"./e-shape-action-value-misc-layer-gesture\";\nexport * from \"./e-shape-action-value-misc-layer-show-hide\";\nexport * from \"./e-shape-action-value-misc-type\";\nexport * from \"./e-shape-action-value-misc-write\";\nexport * from \"./e-shape-action-value-misc\";\nexport * from \"./e-shape-action-value-on-input-action\";\nexport * from \"./e-shape-action-value-on-input-actions\";\nexport * from \"./e-shape-action-value-open-type\";\nexport * from \"./e-shape-action-value-open\";\nexport * from \"./e-shape-action-value-opetyped\";\nexport * from \"./e-shape-action-value-show-hide-type\";\nexport * from \"./e-shape-action-value-show-hide\";\nexport * from \"./e-shape-action-value-subtyped\";\nexport * from \"./e-shape-action-value-transform-move-type\";\nexport * from \"./e-shape-action-value-transform-move\";\nexport * from \"./e-shape-action-value-transform-resize-type\";\nexport * from \"./e-shape-action-value-transform-resize\";\nexport * from \"./e-shape-action-value-transform-rotate-type\";\nexport * from \"./e-shape-action-value-transform-rotate\";\nexport * from \"./e-shape-action-value-transform-type\";\nexport * from \"./e-shape-action-value-type\";\nexport * from \"./e-shape-action-value\";\nexport * from \"./e-shape-action-values\";\nexport * from \"./e-shape-action\";\n"]}
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
* Copyright (C) 2019 Toshiba Corporation
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
* Mappings of shape types and deserializers.
|
|
7
|
+
*/
|
|
5
8
|
export var EShapeDeserializers = {};
|
|
6
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Mappings of shape types and `onDeserialized` handlers.
|
|
11
|
+
*/
|
|
12
|
+
export var EShapeOnDeserializeds = {};
|
|
7
13
|
//# sourceMappingURL=e-shape-deserializers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-deserializers.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-deserializers.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"e-shape-deserializers.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-deserializers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAeH;;GAEG;AACH,MAAM,CAAC,IAAM,mBAAmB,GAAuD,EAAE,CAAC;AAY1F;;GAEG;AACH,MAAM,CAAC,IAAM,qBAAqB,GAAyD,EAAE,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DDiagramSerializedItem } from \"../d-diagram-serialized\";\nimport { EShape } from \"./e-shape\";\nimport { EShapeResourceManagerDeserialization } from \"./e-shape-resource-manager-deserialization\";\nimport { EShapeUuidMapping } from \"./e-shape-uuid-mapping\";\n\n/**\n * A shape deserializer\n */\nexport type EShapeDeserializer = (\n\titem: DDiagramSerializedItem,\n\tmanager: EShapeResourceManagerDeserialization\n) => Promise<EShape> | EShape | null;\n\n/**\n * Mappings of shape types and deserializers.\n */\nexport const EShapeDeserializers: { [type: number]: EShapeDeserializer | undefined } = {};\n\n/**\n * A handler which is called after the deserializations of all the shapes are completed.\n */\nexport type EShapeOnDeserialized = (\n\titem: DDiagramSerializedItem,\n\tshape: EShape,\n\tmapping: EShapeUuidMapping,\n\tmanager: EShapeResourceManagerDeserialization\n) => void;\n\n/**\n * Mappings of shape types and `onDeserialized` handlers.\n */\nexport const EShapeOnDeserializeds: { [type: number]: EShapeOnDeserialized | undefined } = {};\n"]}
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { EShapeEditor } from "./e-shape-editor";
|
|
6
|
-
import { EShapeSizes } from "./e-shape-sizes";
|
|
7
6
|
import { EShapeBase } from "./variant/e-shape-base";
|
|
7
|
+
import { toSizeNormalized } from "./variant/to-size-normalized";
|
|
8
8
|
var EShapeTransforms = /** @class */ (function () {
|
|
9
9
|
function EShapeTransforms() {
|
|
10
10
|
}
|
|
11
11
|
EShapeTransforms.prepare = function (shape) {
|
|
12
12
|
var editor = shape.editor || new EShapeEditor();
|
|
13
13
|
shape.editor = editor;
|
|
14
|
-
//
|
|
14
|
+
// Transform
|
|
15
15
|
shape.updateTransform();
|
|
16
16
|
var parent = shape.parent;
|
|
17
17
|
if (parent instanceof EShapeBase) {
|
|
@@ -82,7 +82,7 @@ var EShapeTransforms = /** @class */ (function () {
|
|
|
82
82
|
if (bx != null && by != null) {
|
|
83
83
|
var sx = Math.sqrt(a * a + b * b);
|
|
84
84
|
var sy = Math.sqrt(c * c + d * d);
|
|
85
|
-
shape.size.set(
|
|
85
|
+
shape.size.set(toSizeNormalized(bx * sx), toSizeNormalized(by * sy));
|
|
86
86
|
}
|
|
87
87
|
//
|
|
88
88
|
shape.allowUploadedUpdate();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-transforms.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-transforms.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"e-shape-transforms.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-transforms.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE;IAAA;IA2FA,CAAC;IA1FO,wBAAO,GAAd,UAAe,KAAa;QAC3B,IAAM,MAAM,GAAG,KAAK,CAAC,MAAM,IAAI,IAAI,YAAY,EAAE,CAAC;QAClD,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;QAEtB,YAAY;QACZ,KAAK,CAAC,eAAe,EAAE,CAAC;QACxB,IAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC5B,IAAI,MAAM,YAAY,UAAU,EAAE;YACjC,MAAM,CAAC,SAAS,CAAC,iBAAiB;iBAChC,MAAM,CAAC,MAAM,CAAC,8BAA8B,CAAC;iBAC7C,MAAM,EAAE,CAAC;SACX;aAAM;YACN,MAAM,CAAC,8BAA8B,CAAC,QAAQ,EAAE,CAAC;SACjD;QACD,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;QAEnE,WAAW;QACX,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AAC,CAAC;YACpC,IAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;YACpC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,gBAAgB,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;SACrE;QAED,EAAE;QACF,KAAK,CAAC,mBAAmB,EAAE,CAAC;IAC7B,CAAC;IACF,uBAAC;AAAD,CAAC,AA3FD,IA2FC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Matrix } from \"pixi.js\";\nimport { EShape } from \"./e-shape\";\nimport { EShapeEditor } from \"./e-shape-editor\";\nimport { EShapeBase } from \"./variant/e-shape-base\";\nimport { toSizeNormalized } from \"./variant/to-size-normalized\";\n\nexport class EShapeTransforms {\n\tstatic prepare(shape: EShape): void {\n\t\tconst editor = shape.editor || new EShapeEditor();\n\t\tshape.editor = editor;\n\n\t\t// Transform\n\t\tshape.updateTransform();\n\t\tconst parent = shape.parent;\n\t\tif (parent instanceof EShapeBase) {\n\t\t\tparent.transform.internalTransform\n\t\t\t\t.copyTo(editor.internalTransformParentInverse)\n\t\t\t\t.invert();\n\t\t} else {\n\t\t\teditor.internalTransformParentInverse.identity();\n\t\t}\n\t\tshape.transform.internalTransform.copyTo(editor.internalTransform);\n\n\t\t// Rotation\n\t\teditor.rotation = shape.transform.rotation;\n\n\t\t// Size\n\t\teditor.size.copyFrom(shape.size);\n\n\t\t//\n\t\tshape.disallowOnTransformChange();\n\t}\n\n\tstatic finalize(shape: EShape): void {\n\t\tshape.allowOnTransformChange(true);\n\t}\n\n\tstatic apply(shape: EShape, transform: Matrix, keepSize: boolean): void {\n\t\tconst editor = shape.editor;\n\t\tif (editor != null) {\n\t\t\tconst newLocalTransform = editor.localTransform;\n\t\t\teditor.internalTransformParentInverse\n\t\t\t\t.copyTo(newLocalTransform)\n\t\t\t\t.append(transform)\n\t\t\t\t.append(editor.internalTransform);\n\t\t\tif (keepSize) {\n\t\t\t\tthis.applyLocal(shape, newLocalTransform);\n\t\t\t} else {\n\t\t\t\tconst size = editor.size;\n\t\t\t\tthis.applyLocal(shape, newLocalTransform, size.x, size.y);\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic applyLocal(shape: EShape, localTransform: Matrix, bx?: number, by?: number): void {\n\t\tshape.disallowUploadedUpdate();\n\n\t\t// Reconstruct the position, the rotation and the size\n\t\tconst a = localTransform.a;\n\t\tconst b = localTransform.b;\n\t\tconst c = localTransform.c;\n\t\tconst d = localTransform.d;\n\t\tconst tx = localTransform.tx;\n\t\tconst ty = localTransform.ty;\n\n\t\t// Rotation\n\t\tconst transform = shape.transform;\n\t\tconst rx = Math.atan2(-c, d); // rotation - skewX\n\t\tconst ry = Math.atan2(+b, a); // rotation + skewY\n\t\ttransform.rotation = (rx + ry) * 0.5; // Here, assumes `skewX` === `skewY`\n\n\t\t// Skew\n\t\tconst skew = (ry - rx) * 0.5;\n\t\ttransform.skew.set(skew, skew);\n\n\t\t// Position: Assumes the pivot is invariant.\n\t\t// tx = position.x - (a * px + c * py)\n\t\t// ty = position.y - (b * px + d * py)\n\t\t//\n\t\t// Thus,\n\t\t// position.x = tx + (a * px + c * py)\n\t\t// position.y = ty + (b * px + d * py)\n\t\tconst pivot = transform.pivot;\n\t\tconst px = pivot.x;\n\t\tconst py = pivot.y;\n\t\ttransform.position.set(tx + (a * px + c * py), ty + (b * px + d * py));\n\n\t\t// Scale\n\t\tif (bx != null && by != null) {\n\t\t\tconst sx = Math.sqrt(a * a + b * b);\n\t\t\tconst sy = Math.sqrt(c * c + d * d);\n\t\t\tshape.size.set(toSizeNormalized(bx * sx), toSizeNormalized(by * sy));\n\t\t}\n\n\t\t//\n\t\tshape.allowUploadedUpdate();\n\t}\n}\n"]}
|
|
@@ -35,12 +35,10 @@ export * from "./e-shape-data-value";
|
|
|
35
35
|
export * from "./e-shape-data";
|
|
36
36
|
export * from "./e-shape-defaults";
|
|
37
37
|
export * from "./e-shape-deleter";
|
|
38
|
-
export * from "./e-shape-deserializer";
|
|
39
38
|
export * from "./e-shape-deserializers";
|
|
40
39
|
export * from "./e-shape-editor";
|
|
41
40
|
export * from "./e-shape-fill";
|
|
42
41
|
export * from "./e-shape-gradient";
|
|
43
|
-
export * from "./e-shape-image-elements";
|
|
44
42
|
export * from "./e-shape-layer-container";
|
|
45
43
|
export * from "./e-shape-layer-state";
|
|
46
44
|
export * from "./e-shape-layer";
|
|
@@ -68,7 +66,6 @@ export * from "./e-shape-resource-manager-serialization";
|
|
|
68
66
|
export * from "./e-shape-runtime";
|
|
69
67
|
export * from "./e-shape-runtimes";
|
|
70
68
|
export * from "./e-shape-search";
|
|
71
|
-
export * from "./e-shape-sizes";
|
|
72
69
|
export * from "./e-shape-state-set-impl-observable";
|
|
73
70
|
export * from "./e-shape-state-set";
|
|
74
71
|
export * from "./e-shape-state";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc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AAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./action\";\nexport * from \"./load\";\nexport * from \"./variant\";\nexport * from \"./e-shape-acceptor-impl\";\nexport * from \"./e-shape-acceptor-type\";\nexport * from \"./e-shape-acceptor\";\nexport * from \"./e-shape-acceptors\";\nexport * from \"./e-shape-buffer-unit-builder\";\nexport * from \"./e-shape-buffer-unit\";\nexport * from \"./e-shape-buffer\";\nexport * from \"./e-shape-capabilities\";\nexport * from \"./e-shape-capability\";\nexport * from \"./e-shape-connector-bodies\";\nexport * from \"./e-shape-connector-body-impl\";\nexport * from \"./e-shape-connector-body\";\nexport * from \"./e-shape-connector-container-impl\";\nexport * from \"./e-shape-connector-container\";\nexport * from \"./e-shape-connector-edge-acceptor-impl\";\nexport * from \"./e-shape-connector-edge-acceptor\";\nexport * from \"./e-shape-connector-edge-container-impl\";\nexport * from \"./e-shape-connector-edge-container\";\nexport * from \"./e-shape-connector-edge-impl\";\nexport * from \"./e-shape-connector-edge\";\nexport * from \"./e-shape-connector\";\nexport * from \"./e-shape-connectors\";\nexport * from \"./e-shape-container\";\nexport * from \"./e-shape-copy-part\";\nexport * from \"./e-shape-corner\";\nexport * from \"./e-shape-data-value-range\";\nexport * from \"./e-shape-data-value\";\nexport * from \"./e-shape-data\";\nexport * from \"./e-shape-defaults\";\nexport * from \"./e-shape-deleter\";\nexport * from \"./e-shape-deserializers\";\nexport * from \"./e-shape-editor\";\nexport * from \"./e-shape-fill\";\nexport * from \"./e-shape-gradient\";\nexport * from \"./e-shape-layer-container\";\nexport * from \"./e-shape-layer-state\";\nexport * from \"./e-shape-layer\";\nexport * from \"./e-shape-layout\";\nexport * from \"./e-shape-points-formatted\";\nexport * from \"./e-shape-points-formatter-curve\";\nexport * from \"./e-shape-points-formatter\";\nexport * from \"./e-shape-points-marker-base\";\nexport * from \"./e-shape-points-marker-container-impl-noop\";\nexport * from \"./e-shape-points-marker-container-impl\";\nexport * from \"./e-shape-points-marker-container\";\nexport * from \"./e-shape-points-marker-head\";\nexport * from \"./e-shape-points-marker-noop\";\nexport * from \"./e-shape-points-marker-tail\";\nexport * from \"./e-shape-points-marker-type\";\nexport * from \"./e-shape-points-marker\";\nexport * from \"./e-shape-points-style\";\nexport * from \"./e-shape-points-styles\";\nexport * from \"./e-shape-points\";\nexport * from \"./e-shape-renderer-iterator-datum\";\nexport * from \"./e-shape-renderer-iterator\";\nexport * from \"./e-shape-renderer\";\nexport * from \"./e-shape-resource-manager-deserialization\";\nexport * from \"./e-shape-resource-manager-serialization\";\nexport * from \"./e-shape-runtime\";\nexport * from \"./e-shape-runtimes\";\nexport * from \"./e-shape-search\";\nexport * from \"./e-shape-state-set-impl-observable\";\nexport * from \"./e-shape-state-set\";\nexport * from \"./e-shape-state\";\nexport * from \"./e-shape-stroke-side\";\nexport * from \"./e-shape-stroke-style\";\nexport * from \"./e-shape-stroke\";\nexport * from \"./e-shape-text-align-horizontal\";\nexport * from \"./e-shape-text-align-vertical\";\nexport * from \"./e-shape-text-align\";\nexport * from \"./e-shape-text-direction\";\nexport * from \"./e-shape-text-offset\";\nexport * from \"./e-shape-text-outline\";\nexport * from \"./e-shape-text\";\nexport * from \"./e-shape-transform-parent\";\nexport * from \"./e-shape-transform\";\nexport * from \"./e-shape-transforms\";\nexport * from \"./e-shape-type\";\nexport * from \"./e-shape-uploaded-constructor\";\nexport * from \"./e-shape-uploaded\";\nexport * from \"./e-shape-uploadeds\";\nexport * from \"./e-shape-uuid-mapping-impl\";\nexport * from \"./e-shape-uuid-mapping\";\nexport * from \"./e-shape\";\n"]}
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { EShapeCapabilities } from "../e-shape-capabilities";
|
|
6
6
|
import { EShapeCapability } from "../e-shape-capability";
|
|
7
|
-
import { EShapeDeserializers,
|
|
7
|
+
import { EShapeDeserializers, EShapeOnDeserializeds } from "../e-shape-deserializers";
|
|
8
8
|
import { EShapeType } from "../e-shape-type";
|
|
9
9
|
import { EShapeUploadeds } from "../e-shape-uploadeds";
|
|
10
10
|
import { createLineUploaded } from "../variant/create-line-uploaded";
|
|
11
|
-
import { deserializeConnectorLine,
|
|
11
|
+
import { deserializeConnectorLine, onDeserializedConnectorLine } from "../variant/deserialize-connector-line";
|
|
12
12
|
export var loadShapeConnectorLine = function () {
|
|
13
13
|
EShapeUploadeds[EShapeType.CONNECTOR_LINE] = createLineUploaded;
|
|
14
14
|
EShapeDeserializers[EShapeType.CONNECTOR_LINE] = deserializeConnectorLine;
|
|
15
|
-
|
|
15
|
+
EShapeOnDeserializeds[EShapeType.CONNECTOR_LINE] = onDeserializedConnectorLine;
|
|
16
16
|
EShapeCapabilities.set(EShapeType.CONNECTOR_LINE, EShapeCapability.CONNECTOR);
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=load-shape-connector-line.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-shape-connector-line.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/load/load-shape-connector-line.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"load-shape-connector-line.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/load/load-shape-connector-line.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACN,wBAAwB,EACxB,2BAA2B,EAC3B,MAAM,uCAAuC,CAAC;AAE/C,MAAM,CAAC,IAAM,sBAAsB,GAAG;IACrC,eAAe,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;IAChE,mBAAmB,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,wBAAwB,CAAC;IAC1E,qBAAqB,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,2BAA2B,CAAC;IAC/E,kBAAkB,CAAC,GAAG,CAAC,UAAU,CAAC,cAAc,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;AAC/E,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeCapabilities } from \"../e-shape-capabilities\";\nimport { EShapeCapability } from \"../e-shape-capability\";\nimport { EShapeDeserializers, EShapeOnDeserializeds } from \"../e-shape-deserializers\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeUploadeds } from \"../e-shape-uploadeds\";\nimport { createLineUploaded } from \"../variant/create-line-uploaded\";\nimport {\n\tdeserializeConnectorLine,\n\tonDeserializedConnectorLine\n} from \"../variant/deserialize-connector-line\";\n\nexport const loadShapeConnectorLine = (): void => {\n\tEShapeUploadeds[EShapeType.CONNECTOR_LINE] = createLineUploaded;\n\tEShapeDeserializers[EShapeType.CONNECTOR_LINE] = deserializeConnectorLine;\n\tEShapeOnDeserializeds[EShapeType.CONNECTOR_LINE] = onDeserializedConnectorLine;\n\tEShapeCapabilities.set(EShapeType.CONNECTOR_LINE, EShapeCapability.CONNECTOR);\n};\n"]}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { DynamicSDFFontGenerator } from "../../util/dynamic-sdf-font-generator";
|
|
6
|
-
import { EShapeImageElements } from "../e-shape-image-elements";
|
|
7
6
|
import { EShapeImageSdf } from "./e-shape-image-sdf";
|
|
7
|
+
import { toImageElement } from "./to-image-element";
|
|
8
8
|
export var createImageSdf = function (dataUrl, convertToSdf) {
|
|
9
9
|
if (convertToSdf) {
|
|
10
|
-
return
|
|
10
|
+
return toImageElement(dataUrl).then(function (imageElement) {
|
|
11
11
|
var generator = DynamicSDFFontGenerator.getInstance().init();
|
|
12
12
|
generator.updateTexture(imageElement);
|
|
13
13
|
generator.render();
|
|
@@ -17,7 +17,7 @@ export var createImageSdf = function (dataUrl, convertToSdf) {
|
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
else {
|
|
20
|
-
return
|
|
20
|
+
return toImageElement(dataUrl).then(function (imageElement) {
|
|
21
21
|
return new EShapeImageSdf(imageElement);
|
|
22
22
|
});
|
|
23
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-image-sdf.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/create-image-sdf.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"create-image-sdf.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/create-image-sdf.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,CAAC,IAAM,cAAc,GAAG,UAAC,OAAe,EAAE,YAAqB;IACpE,IAAI,YAAY,EAAE;QACjB,OAAO,cAAc,CAAC,OAAO,CAAC,CAAC,IAAI,CAClC,UAAC,YAA8B;YAC9B,IAAM,SAAS,GAAG,uBAAuB,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC;YAC/D,SAAS,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;YACtC,SAAS,CAAC,MAAM,EAAE,CAAC;YAEnB,IAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;YAChD,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAEvB,OAAO,cAAc,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,KAAK,CAAC,CAAC;QAClD,CAAC,CACD,CAAC;KACF;SAAM;QACN,OAAO,cAAc,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,UAAC,YAA8B;YAClE,OAAO,IAAI,cAAc,CAAC,YAAY,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;KACH;AACF,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DynamicSDFFontGenerator } from \"../../util/dynamic-sdf-font-generator\";\nimport { EShapeImageSdf } from \"./e-shape-image-sdf\";\nimport { toImageElement } from \"./to-image-element\";\n\nexport const createImageSdf = (dataUrl: string, convertToSdf: boolean): Promise<EShapeImageSdf> => {\n\tif (convertToSdf) {\n\t\treturn toImageElement(dataUrl).then(\n\t\t\t(imageElement: HTMLImageElement): Promise<EShapeImageSdf> => {\n\t\t\t\tconst generator = DynamicSDFFontGenerator.getInstance().init();\n\t\t\t\tgenerator.updateTexture(imageElement);\n\t\t\t\tgenerator.render();\n\n\t\t\t\tconst canvas = document.createElement(\"canvas\");\n\t\t\t\tgenerator.read(canvas);\n\n\t\t\t\treturn createImageSdf(canvas.toDataURL(), false);\n\t\t\t}\n\t\t);\n\t} else {\n\t\treturn toImageElement(dataUrl).then((imageElement: HTMLImageElement): EShapeImageSdf => {\n\t\t\treturn new EShapeImageSdf(imageElement);\n\t\t});\n\t}\n};\n"]}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Copyright (C) 2019 Toshiba Corporation
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
-
import { EShapeImageElements } from "../e-shape-image-elements";
|
|
6
5
|
import { EShapeImage } from "./e-shape-image";
|
|
6
|
+
import { toImageElement } from "./to-image-element";
|
|
7
7
|
export var createImage = function (dataUrl) {
|
|
8
|
-
return
|
|
8
|
+
return toImageElement(dataUrl).then(function (imageElement) {
|
|
9
9
|
return new EShapeImage(imageElement);
|
|
10
10
|
});
|
|
11
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-image.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/create-image.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"create-image.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/create-image.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,CAAC,IAAM,WAAW,GAAG,UAAC,OAAe;IAC1C,OAAO,cAAc,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,UAAC,YAA8B;QAClE,OAAO,IAAI,WAAW,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeImage } from \"./e-shape-image\";\nimport { toImageElement } from \"./to-image-element\";\n\nexport const createImage = (dataUrl: string): Promise<EShapeImage> => {\n\treturn toImageElement(dataUrl).then((imageElement: HTMLImageElement): EShapeImage => {\n\t\treturn new EShapeImage(imageElement);\n\t});\n};\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { EShapeOnDeserializeds } from "../e-shape-deserializers";
|
|
6
|
+
import { EShapeUuidMappingImpl } from "../e-shape-uuid-mapping-impl";
|
|
7
|
+
import { deserialize } from "./deserialize";
|
|
8
|
+
export var deserializeAll = function (serializeds, manager) {
|
|
9
|
+
var shapes = [];
|
|
10
|
+
for (var i = 0, imax = serializeds.length; i < imax; ++i) {
|
|
11
|
+
shapes.push(deserialize(serializeds[i], manager));
|
|
12
|
+
}
|
|
13
|
+
if (0 < shapes.length) {
|
|
14
|
+
return Promise.all(shapes).then(function (resolved) {
|
|
15
|
+
callOnDeserialized(serializeds, resolved, new EShapeUuidMappingImpl(resolved), manager);
|
|
16
|
+
return resolved;
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
};
|
|
21
|
+
var callOnDeserialized = function (serializeds, shapes, mapping, manager) {
|
|
22
|
+
for (var i = 0, imax = serializeds.length; i < imax; ++i) {
|
|
23
|
+
var serialized = serializeds[i];
|
|
24
|
+
var shape = shapes[i];
|
|
25
|
+
var onDeserialized = EShapeOnDeserializeds[serialized[0]];
|
|
26
|
+
if (onDeserialized) {
|
|
27
|
+
onDeserialized(serialized, shape, mapping, manager);
|
|
28
|
+
}
|
|
29
|
+
callOnDeserialized(serialized[20], shape.children, mapping, manager);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=deserialize-all.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deserialize-all.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/deserialize-all.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAGjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,CAAC,IAAM,cAAc,GAAG,UAC7B,WAAqC,EACrC,OAA6C;IAE7C,IAAM,MAAM,GAAoC,EAAE,CAAC;IACnD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,EAAE;QACzD,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;KAClD;IACD,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE;QACtB,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,UAAC,QAAkB;YAClD,kBAAkB,CAAC,WAAW,EAAE,QAAQ,EAAE,IAAI,qBAAqB,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC;YACxF,OAAO,QAAQ,CAAC;QACjB,CAAC,CAAC,CAAC;KACH;IACD,OAAO,IAAI,CAAC;AACb,CAAC,CAAC;AAEF,IAAM,kBAAkB,GAAG,UAC1B,WAAqC,EACrC,MAAgB,EAChB,OAA0B,EAC1B,OAA6C;IAE7C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,EAAE;QACzD,IAAM,UAAU,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;QAClC,IAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QACxB,IAAM,cAAc,GAAG,qBAAqB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5D,IAAI,cAAc,EAAE;YACnB,cAAc,CAAC,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SACpD;QACD,kBAAkB,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;KACrE;AACF,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DDiagramSerializedItem } from \"../../d-diagram-serialized\";\nimport { EShape } from \"../e-shape\";\nimport { EShapeOnDeserializeds } from \"../e-shape-deserializers\";\nimport { EShapeResourceManagerDeserialization } from \"../e-shape-resource-manager-deserialization\";\nimport { EShapeUuidMapping } from \"../e-shape-uuid-mapping\";\nimport { EShapeUuidMappingImpl } from \"../e-shape-uuid-mapping-impl\";\nimport { deserialize } from \"./deserialize\";\n\nexport const deserializeAll = (\n\tserializeds: DDiagramSerializedItem[],\n\tmanager: EShapeResourceManagerDeserialization\n): Promise<EShape[]> | null => {\n\tconst shapes: Array<Promise<EShape> | EShape> = [];\n\tfor (let i = 0, imax = serializeds.length; i < imax; ++i) {\n\t\tshapes.push(deserialize(serializeds[i], manager));\n\t}\n\tif (0 < shapes.length) {\n\t\treturn Promise.all(shapes).then((resolved: EShape[]): EShape[] => {\n\t\t\tcallOnDeserialized(serializeds, resolved, new EShapeUuidMappingImpl(resolved), manager);\n\t\t\treturn resolved;\n\t\t});\n\t}\n\treturn null;\n};\n\nconst callOnDeserialized = (\n\tserializeds: DDiagramSerializedItem[],\n\tshapes: EShape[],\n\tmapping: EShapeUuidMapping,\n\tmanager: EShapeResourceManagerDeserialization\n): void => {\n\tfor (let i = 0, imax = serializeds.length; i < imax; ++i) {\n\t\tconst serialized = serializeds[i];\n\t\tconst shape = shapes[i];\n\t\tconst onDeserialized = EShapeOnDeserializeds[serialized[0]];\n\t\tif (onDeserialized) {\n\t\t\tonDeserialized(serialized, shape, mapping, manager);\n\t\t}\n\t\tcallOnDeserialized(serialized[20], shape.children, mapping, manager);\n\t}\n};\n"]}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* Copyright (C) 2019 Toshiba Corporation
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
-
import { EShapeDeserializer } from "../e-shape-deserializer";
|
|
6
5
|
import { EShapePointsStyle } from "../e-shape-points-style";
|
|
6
|
+
import { deserializeBase } from "./deserialize-base";
|
|
7
7
|
import { EShapeBar } from "./e-shape-bar";
|
|
8
|
-
export var deserializeBar = function (item, manager) {
|
|
9
|
-
|
|
10
|
-
var result =
|
|
8
|
+
export var deserializeBar = function (item, manager, shape) {
|
|
9
|
+
shape = shape || new EShapeBar();
|
|
10
|
+
var result = deserializeBase(item, manager, shape);
|
|
11
11
|
shape.points.deserialize(item[15], manager);
|
|
12
12
|
var style = shape.points.style;
|
|
13
13
|
var mask = EShapePointsStyle.NON_SCALING_MASK |
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deserialize-bar.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/deserialize-bar.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"deserialize-bar.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/deserialize-bar.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,MAAM,CAAC,IAAM,cAAc,GAAG,UAC7B,IAA4B,EAC5B,OAA6C,EAC7C,KAAiB;IAEjB,KAAK,GAAG,KAAK,IAAI,IAAI,SAAS,EAAE,CAAC;IACjC,IAAM,MAAM,GAAG,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IACrD,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC;IAC5C,IAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;IACjC,IAAM,IAAI,GACT,iBAAiB,CAAC,gBAAgB;QAClC,iBAAiB,CAAC,WAAW;QAC7B,iBAAiB,CAAC,WAAW,CAAC;IAC/B,IAAM,UAAU,GAAG,KAAK,GAAG,IAAI,CAAC;IAChC,IAAI,UAAU,EAAE;QACf,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC;QAC5B,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,UAAU,CAAC;KACjC;IACD,OAAO,MAAM,CAAC;AACf,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DDiagramSerializedItem } from \"../../d-diagram-serialized\";\nimport { EShapePointsStyle } from \"../e-shape-points-style\";\nimport { EShapeResourceManagerDeserialization } from \"../e-shape-resource-manager-deserialization\";\nimport { deserializeBase } from \"./deserialize-base\";\nimport { EShapeBar } from \"./e-shape-bar\";\n\nexport const deserializeBar = (\n\titem: DDiagramSerializedItem,\n\tmanager: EShapeResourceManagerDeserialization,\n\tshape?: EShapeBar\n): Promise<EShapeBar> | EShapeBar => {\n\tshape = shape || new EShapeBar();\n\tconst result = deserializeBase(item, manager, shape);\n\tshape.points.deserialize(item[15], manager);\n\tconst style = shape.points.style;\n\tconst mask =\n\t\tEShapePointsStyle.NON_SCALING_MASK |\n\t\tEShapePointsStyle.DOTTED_MASK |\n\t\tEShapePointsStyle.DASHED_MASK;\n\tconst deprecated = style & mask;\n\tif (deprecated) {\n\t\tshape.points.style &= ~mask;\n\t\tshape.stroke.style |= deprecated;\n\t}\n\treturn result;\n};\n"]}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { isString } from "../../util/is-string";
|
|
6
|
+
import { deserializeActionValue } from "../action/deserialize-action-value";
|
|
7
|
+
import { deserialize } from "./deserialize";
|
|
8
|
+
import { deserializeGradient } from "./deserialize-gradient";
|
|
9
|
+
import { toImageElement } from "./to-image-element";
|
|
10
|
+
import { toSizeNormalized } from "./to-size-normalized";
|
|
11
|
+
export var deserializeBase = function (item, manager, result) {
|
|
12
|
+
result.id = manager.resources[item[1]] || "";
|
|
13
|
+
var transform = result.transform;
|
|
14
|
+
transform.position.set(item[2], item[3]);
|
|
15
|
+
transform.rotation = item[6];
|
|
16
|
+
transform.skew.set(item[7], item[7]);
|
|
17
|
+
transform.pivot.set(item[21], item[22]);
|
|
18
|
+
result.size.set(toSizeNormalized(item[4]), toSizeNormalized(item[5]));
|
|
19
|
+
result.fill.deserialize(item[8], manager);
|
|
20
|
+
result.stroke.deserialize(item[9], manager);
|
|
21
|
+
result.cursor = manager.resources[item[10]] || "";
|
|
22
|
+
result.text.deserialize(item[11], manager);
|
|
23
|
+
result.data.deserialize(item[12], manager);
|
|
24
|
+
result.radius = item[13];
|
|
25
|
+
result.corner = item[14];
|
|
26
|
+
var item23 = item[23];
|
|
27
|
+
result.interactive = !!(item23 & 1);
|
|
28
|
+
var state = result.state;
|
|
29
|
+
state.isFocusable = !(item23 & 2);
|
|
30
|
+
state.isActive = !!(item23 & 4);
|
|
31
|
+
var item24 = item[24];
|
|
32
|
+
result.shortcut = 0 <= item24 ? manager.resources[item24] : undefined;
|
|
33
|
+
var item25 = item[25];
|
|
34
|
+
result.title = 0 <= item25 ? manager.resources[item25] : undefined;
|
|
35
|
+
var item26 = item[26];
|
|
36
|
+
result.uuid = item26 != null ? item26 : 0;
|
|
37
|
+
// Children
|
|
38
|
+
var childrenPromise = null;
|
|
39
|
+
var childrenSerialized = item[20];
|
|
40
|
+
if (0 < childrenSerialized.length) {
|
|
41
|
+
var childrenOrPromises = [];
|
|
42
|
+
for (var i = 0, imax = childrenSerialized.length; i < imax; ++i) {
|
|
43
|
+
childrenOrPromises.push(deserialize(childrenSerialized[i], manager));
|
|
44
|
+
}
|
|
45
|
+
childrenPromise = Promise.all(childrenOrPromises).then(function (children) {
|
|
46
|
+
result.children = children;
|
|
47
|
+
for (var i = 0, imax = children.length; i < imax; ++i) {
|
|
48
|
+
children[i].parent = result;
|
|
49
|
+
}
|
|
50
|
+
result.onChildTransformChange();
|
|
51
|
+
result.toDirty();
|
|
52
|
+
return result;
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
// Action
|
|
56
|
+
var serializedActions = item[17];
|
|
57
|
+
for (var i = 0, imax = serializedActions.length; i < imax; ++i) {
|
|
58
|
+
result.action.add(deserializeActionValue(serializedActions[i], manager));
|
|
59
|
+
}
|
|
60
|
+
// Gradient
|
|
61
|
+
var gradientId = item[19];
|
|
62
|
+
if (0 <= gradientId && gradientId < manager.resources.length) {
|
|
63
|
+
var gradient = manager.resources[gradientId];
|
|
64
|
+
if (isString(gradient)) {
|
|
65
|
+
result.gradient = deserializeGradient(gradient);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
// Image
|
|
69
|
+
var imagePromise = null;
|
|
70
|
+
var imageId = item[18];
|
|
71
|
+
if (0 <= imageId && imageId < manager.resources.length) {
|
|
72
|
+
var imageSrc = manager.resources[imageId];
|
|
73
|
+
if (isString(imageSrc)) {
|
|
74
|
+
imagePromise = toImageElement(imageSrc).then(function (imageElement) {
|
|
75
|
+
result.image = imageElement;
|
|
76
|
+
return result;
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
//
|
|
81
|
+
if (childrenPromise != null) {
|
|
82
|
+
if (imagePromise != null) {
|
|
83
|
+
return Promise.all([childrenPromise, imagePromise]).then(function () {
|
|
84
|
+
return result;
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
return childrenPromise;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
else {
|
|
92
|
+
if (imagePromise != null) {
|
|
93
|
+
return imagePromise;
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
return result;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
//# sourceMappingURL=deserialize-base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deserialize-base.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/deserialize-base.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,oCAAoC,CAAC;AAG5E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,CAAC,IAAM,eAAe,GAAG,UAC9B,IAA4B,EAC5B,OAA6C,EAC7C,MAAa;IAEb,MAAM,CAAC,EAAE,GAAG,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC7C,IAAM,SAAS,GAAG,MAAM,CAA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,CAAC,MAAM,EAAE;QACvD,IAAM,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAC5C,IAAI,QAAQ,CAAC,QAAQ,CAAC,EAAE;YACvB,YAAY,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,UAAC,YAAY;gBACzD,MAAM,CAAC,KAAK,GAAG,YAAY,CAAC;gBAC5B,OAAO,MAAM,CAAC;YACf,CAAC,CAAC,CAAC;SACH;KACD;IAED,EAAE;IACF,IAAI,eAAe,IAAI,IAAI,EAAE;QAC5B,IAAI,YAAY,IAAI,IAAI,EAAE;YACzB,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC;gBACxD,OAAO,MAAM,CAAC;YACf,CAAC,CAAC,CAAC;SACH;aAAM;YACN,OAAO,eAAe,CAAC;SACvB;KACD;SAAM;QACN,IAAI,YAAY,IAAI,IAAI,EAAE;YACzB,OAAO,YAAY,CAAC;SACpB;aAAM;YACN,OAAO,MAAM,CAAC;SACd;KACD;AACF,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DDiagramSerializedItem } from \"../../d-diagram-serialized\";\nimport { isString } from \"../../util/is-string\";\nimport { deserializeActionValue } from \"../action/deserialize-action-value\";\nimport { EShape } from \"../e-shape\";\nimport { EShapeResourceManagerDeserialization } from \"../e-shape-resource-manager-deserialization\";\nimport { deserialize } from \"./deserialize\";\nimport { deserializeGradient } from \"./deserialize-gradient\";\nimport { toImageElement } from \"./to-image-element\";\nimport { toSizeNormalized } from \"./to-size-normalized\";\n\nexport const deserializeBase = <SHAPE extends EShape>(\n\titem: DDiagramSerializedItem,\n\tmanager: EShapeResourceManagerDeserialization,\n\tresult: SHAPE\n): Promise<SHAPE> | SHAPE => {\n\tresult.id = manager.resources[item[1]] || \"\";\n\tconst transform = result.transform;\n\ttransform.position.set(item[2], item[3]);\n\ttransform.rotation = item[6];\n\ttransform.skew.set(item[7], item[7]);\n\ttransform.pivot.set(item[21], item[22]);\n\tresult.size.set(toSizeNormalized(item[4]), toSizeNormalized(item[5]));\n\tresult.fill.deserialize(item[8], manager);\n\tresult.stroke.deserialize(item[9], manager);\n\tresult.cursor = manager.resources[item[10]] || \"\";\n\tresult.text.deserialize(item[11], manager);\n\tresult.data.deserialize(item[12], manager);\n\tresult.radius = item[13];\n\tresult.corner = item[14];\n\tconst item23 = item[23];\n\tresult.interactive = !!(item23 & 1);\n\tconst state = result.state;\n\tstate.isFocusable = !(item23 & 2);\n\tstate.isActive = !!(item23 & 4);\n\tconst item24 = item[24];\n\tresult.shortcut = 0 <= item24 ? manager.resources[item24] : undefined;\n\tconst item25 = item[25];\n\tresult.title = 0 <= item25 ? manager.resources[item25] : undefined;\n\tconst item26 = item[26];\n\tresult.uuid = item26 != null ? item26 : 0;\n\n\t// Children\n\tlet childrenPromise: Promise<SHAPE> | null = null;\n\tconst childrenSerialized = item[20];\n\tif (0 < childrenSerialized.length) {\n\t\tconst childrenOrPromises = [];\n\t\tfor (let i = 0, imax = childrenSerialized.length; i < imax; ++i) {\n\t\t\tchildrenOrPromises.push(deserialize(childrenSerialized[i], manager));\n\t\t}\n\t\tchildrenPromise = Promise.all(childrenOrPromises).then((children: EShape[]) => {\n\t\t\tresult.children = children;\n\t\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\t\tchildren[i].parent = result;\n\t\t\t}\n\t\t\tresult.onChildTransformChange();\n\t\t\tresult.toDirty();\n\t\t\treturn result;\n\t\t});\n\t}\n\n\t// Action\n\tconst serializedActions = item[17];\n\tfor (let i = 0, imax = serializedActions.length; i < imax; ++i) {\n\t\tresult.action.add(deserializeActionValue(serializedActions[i], manager));\n\t}\n\n\t// Gradient\n\tconst gradientId = item[19];\n\tif (0 <= gradientId && gradientId < manager.resources.length) {\n\t\tconst gradient = manager.resources[gradientId];\n\t\tif (isString(gradient)) {\n\t\t\tresult.gradient = deserializeGradient(gradient);\n\t\t}\n\t}\n\n\t// Image\n\tlet imagePromise: Promise<SHAPE> | null = null;\n\tconst imageId = item[18];\n\tif (0 <= imageId && imageId < manager.resources.length) {\n\t\tconst imageSrc = manager.resources[imageId];\n\t\tif (isString(imageSrc)) {\n\t\t\timagePromise = toImageElement(imageSrc).then((imageElement) => {\n\t\t\t\tresult.image = imageElement;\n\t\t\t\treturn result;\n\t\t\t});\n\t\t}\n\t}\n\n\t//\n\tif (childrenPromise != null) {\n\t\tif (imagePromise != null) {\n\t\t\treturn Promise.all([childrenPromise, imagePromise]).then(() => {\n\t\t\t\treturn result;\n\t\t\t});\n\t\t} else {\n\t\t\treturn childrenPromise;\n\t\t}\n\t} else {\n\t\tif (imagePromise != null) {\n\t\t\treturn imagePromise;\n\t\t} else {\n\t\t\treturn result;\n\t\t}\n\t}\n};\n"]}
|
|
@@ -2,9 +2,10 @@
|
|
|
2
2
|
* Copyright (C) 2019 Toshiba Corporation
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import { deserializeBase } from "./deserialize-base";
|
|
6
6
|
import { EShapeButton } from "./e-shape-button";
|
|
7
|
-
export var deserializeButton = function (item, manager) {
|
|
7
|
+
export var deserializeButton = function (item, manager, shape) {
|
|
8
|
+
shape = shape || new EShapeButton();
|
|
8
9
|
var resources = manager.resources;
|
|
9
10
|
var resourceId = item[15];
|
|
10
11
|
if (0 <= resourceId && resourceId < resources.length) {
|
|
@@ -13,11 +14,9 @@ export var deserializeButton = function (item, manager) {
|
|
|
13
14
|
parsed = JSON.parse(resources[resourceId]);
|
|
14
15
|
manager.setExtension(resourceId, parsed);
|
|
15
16
|
}
|
|
16
|
-
var shape = new EShapeButton();
|
|
17
17
|
shape.isToggle = !!(parsed[0] & 1);
|
|
18
18
|
shape.isGrouped = !!(parsed[0] & 2);
|
|
19
|
-
return EShapeDeserializer.deserialize(item, manager, shape);
|
|
20
19
|
}
|
|
21
|
-
return
|
|
20
|
+
return deserializeBase(item, manager, shape);
|
|
22
21
|
};
|
|
23
22
|
//# sourceMappingURL=deserialize-button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deserialize-button.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/deserialize-button.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"deserialize-button.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/deserialize-button.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAChC,IAA4B,EAC5B,OAA6C,EAC7C,KAAoB;IAEpB,KAAK,GAAG,KAAK,IAAI,IAAI,YAAY,EAAE,CAAC;IACpC,IAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;IACpC,IAAM,UAAU,GAAG,IAAI,CAAC,EAAE,CAAC,CAAC;IAC5B,IAAI,CAAC,IAAI,UAAU,IAAI,UAAU,GAAG,SAAS,CAAC,MAAM,EAAE;QACrD,IAAI,MAAM,GAAG,OAAO,CAAC,YAAY,CAAW,UAAU,CAAC,CAAC;QACxD,IAAI,MAAM,IAAI,IAAI,EAAE;YACnB,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,UAAU,CAAC,CAAa,CAAC;YACvD,OAAO,CAAC,YAAY,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;SACzC;QACD,KAAK,CAAC,QAAQ,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACnC,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;KACpC;IACD,OAAO,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DDiagramSerializedItem } from \"../../d-diagram-serialized\";\nimport { EShapeResourceManagerDeserialization } from \"../e-shape-resource-manager-deserialization\";\nimport { deserializeBase } from \"./deserialize-base\";\nimport { EShapeButton } from \"./e-shape-button\";\n\nexport const deserializeButton = (\n\titem: DDiagramSerializedItem,\n\tmanager: EShapeResourceManagerDeserialization,\n\tshape?: EShapeButton\n): Promise<EShapeButton> | EShapeButton => {\n\tshape = shape || new EShapeButton();\n\tconst resources = manager.resources;\n\tconst resourceId = item[15];\n\tif (0 <= resourceId && resourceId < resources.length) {\n\t\tlet parsed = manager.getExtension<[number]>(resourceId);\n\t\tif (parsed == null) {\n\t\t\tparsed = JSON.parse(resources[resourceId]) as [number];\n\t\t\tmanager.setExtension(resourceId, parsed);\n\t\t}\n\t\tshape.isToggle = !!(parsed[0] & 1);\n\t\tshape.isGrouped = !!(parsed[0] & 2);\n\t}\n\treturn deserializeBase(item, manager, shape);\n};\n"]}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Copyright (C) 2019 Toshiba Corporation
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
-
import {
|
|
5
|
+
import { deserializeBase } from "./deserialize-base";
|
|
6
6
|
import { EShapeCircle } from "./e-shape-circle";
|
|
7
|
-
export var deserializeCircle = function (item, manager) {
|
|
8
|
-
return
|
|
7
|
+
export var deserializeCircle = function (item, manager, shape) {
|
|
8
|
+
return deserializeBase(item, manager, shape || new EShapeCircle());
|
|
9
9
|
};
|
|
10
10
|
//# sourceMappingURL=deserialize-circle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deserialize-circle.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/deserialize-circle.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"deserialize-circle.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/deserialize-circle.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAChC,IAA4B,EAC5B,OAA6C,EAC7C,KAAoB;IAEpB,OAAO,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,IAAI,IAAI,YAAY,EAAE,CAAC,CAAC;AACpE,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DDiagramSerializedItem } from \"../../d-diagram-serialized\";\nimport { EShapeResourceManagerDeserialization } from \"../e-shape-resource-manager-deserialization\";\nimport { deserializeBase } from \"./deserialize-base\";\nimport { EShapeCircle } from \"./e-shape-circle\";\n\nexport const deserializeCircle = (\n\titem: DDiagramSerializedItem,\n\tmanager: EShapeResourceManagerDeserialization,\n\tshape?: EShapeCircle\n): Promise<EShapeCircle> | EShapeCircle => {\n\treturn deserializeBase(item, manager, shape || new EShapeCircle());\n};\n"]}
|