@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-line-of-circles.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-line-of-circles.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAMhD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;IAAyC,uCAAY;IAIpD;
|
|
1
|
+
{"version":3,"file":"e-shape-line-of-circles.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-line-of-circles.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAMhD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;IAAyC,uCAAY;IAIpD,6BAAY,IAA6C;QAA7C,qBAAA,EAAA,OAAmB,UAAU,CAAC,eAAe;QAAzD,YACC,kBAAM,IAAI,CAAC,SAMX;QALA,KAAI,CAAC,OAAO,GAAG,IAAI,yBAAyB,CAAC,KAAI,CAAC,CAAC;QAEnD,KAAI,CAAC,OAAO,GAAG,UAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;YACvD,OAAO,KAAI,CAAC,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QACxE,CAAC,CAAC;;IACH,CAAC;IAED,sBAAI,uCAAM;aAAV;YACC,OAAO,IAAI,CAAC,OAAO,CAAC;QACrB,CAAC;;;OAAA;IAED,mCAAK,GAAL;QACC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AAW,EAChB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,CAC5B,CAAC;QACF,IAAI,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,GAAG,SAAS,EAAE,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE;YAC1F,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CAClC,IAAI,CAAC,CAAC,EACN,IAAI,CAAC,CAAC,EACN,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,WAAW,EAChB,SAAS,EACT,OAAO,EACP,MAAM,IAAI,IAAI,CAAC,OAAO,EACtB,MAAM,CACN,CAAC;SACF;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IACF,0BAAC;AAAD,CAAC,AA5FD,CAAyC,YAAY,GA4FpD","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeCircle } from \"./e-shape-circle\";\nimport { EShapeLineOfAny } from \"./e-shape-line-of-any\";\nimport { EShapeLineOfAnyPoints } from \"./e-shape-line-of-any-points\";\nimport { EShapeLineOfAnyPointsHitTester } from \"./e-shape-line-of-any-points-hit-tester\";\nimport { EShapeLineOfAnyPointsHitTesterToRange } from \"./e-shape-line-of-any-points-hit-tester-to-range\";\nimport { EShapeLineOfAnyPointsHitTesterToThreshold } from \"./e-shape-line-of-any-points-hit-tester-to-threshold\";\nimport { EShapeLineOfAnyPointsImpl } from \"./e-shape-line-of-any-points-impl\";\nimport { toThresholdDefault } from \"./to-threshold-default\";\n\nexport class EShapeLineOfCircles extends EShapeCircle implements EShapeLineOfAny {\n\tprotected declare _points: EShapeLineOfAnyPoints;\n\tprotected _tester: EShapeLineOfAnyPointsHitTester<unknown>;\n\n\tconstructor(type: EShapeType = EShapeType.LINE_OF_CIRCLES) {\n\t\tsuper(type);\n\t\tthis._points = new EShapeLineOfAnyPointsImpl(this);\n\n\t\tthis._tester = (x, y, ax, ay, ox, oy, px, py, sw, ss, sa): boolean => {\n\t\t\treturn this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);\n\t\t};\n\t}\n\n\tget points(): EShapeLineOfAnyPoints {\n\t\treturn this._points;\n\t}\n\n\tclone(): EShapeLineOfCircles {\n\t\treturn new EShapeLineOfCircles(this.type).copy(this);\n\t}\n\n\tcontainsAbs(\n\t\tx: number,\n\t\ty: number,\n\t\tax: number,\n\t\tay: number,\n\t\tsw: number,\n\t\tss: number,\n\t\tsa: number\n\t): boolean {\n\t\tconst threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());\n\t\tif (this.containsAbsBBox(x, y, ax + threshold, ay + threshold)) {\n\t\t\treturn this._points.calcHitPointAbs(\n\t\t\t\tx,\n\t\t\t\ty,\n\t\t\t\tsw,\n\t\t\t\tss,\n\t\t\t\tsa,\n\t\t\t\tthreshold,\n\t\t\t\tnull,\n\t\t\t\tthis._tester,\n\t\t\t\tnull\n\t\t\t);\n\t\t}\n\t\treturn false;\n\t}\n\n\tcontainsPointAbs(\n\t\tx: number,\n\t\ty: number,\n\t\tax: number,\n\t\tay: number,\n\t\tox: number,\n\t\toy: number,\n\t\tpx: number,\n\t\tpy: number,\n\t\tsw: number,\n\t\tss: number,\n\t\tsa: number\n\t): boolean {\n\t\treturn super.containsAbs(x - px - ox, y - py - oy, ax, ay, sw, ss, sa);\n\t}\n\n\tcalcHitPoint<RESULT>(\n\t\tx: number,\n\t\ty: number,\n\t\ttoThreshold: EShapeLineOfAnyPointsHitTesterToThreshold | null,\n\t\ttoRange: EShapeLineOfAnyPointsHitTesterToRange | null,\n\t\ttester: EShapeLineOfAnyPointsHitTester<RESULT> | null,\n\t\tresult: RESULT\n\t): boolean {\n\t\tconst data = this.toHitTestData(x, y);\n\t\tconst threshold = (toThreshold || toThresholdDefault)(\n\t\t\tdata.strokeWidth,\n\t\t\tdata.strokeScale,\n\t\t\tthis._points.size.getLimit()\n\t\t);\n\t\tif (this.containsAbsBBox(data.x, data.y, data.width + threshold, data.height + threshold)) {\n\t\t\treturn this._points.calcHitPointAbs(\n\t\t\t\tdata.x,\n\t\t\t\tdata.y,\n\t\t\t\tdata.strokeWidth,\n\t\t\t\tdata.strokeScale,\n\t\t\t\tdata.strokeAlign,\n\t\t\t\tthreshold,\n\t\t\t\ttoRange,\n\t\t\t\ttester || this._tester,\n\t\t\t\tresult\n\t\t\t);\n\t\t}\n\t\treturn false;\n\t}\n}\n"]}
|
|
@@ -9,8 +9,9 @@ import { EShapeRectangleRounded } from "./e-shape-rectangle-rounded";
|
|
|
9
9
|
import { toThresholdDefault } from "./to-threshold-default";
|
|
10
10
|
var EShapeLineOfRectangleRoundeds = /** @class */ (function (_super) {
|
|
11
11
|
__extends(EShapeLineOfRectangleRoundeds, _super);
|
|
12
|
-
function EShapeLineOfRectangleRoundeds() {
|
|
13
|
-
|
|
12
|
+
function EShapeLineOfRectangleRoundeds(type) {
|
|
13
|
+
if (type === void 0) { type = EShapeType.LINE_OF_RECTANGLE_ROUNDEDS; }
|
|
14
|
+
var _this = _super.call(this, type) || this;
|
|
14
15
|
_this._points = new EShapeLineOfAnyPointsImpl(_this);
|
|
15
16
|
_this._tester = function (x, y, ax, ay, ox, oy, px, py, sw, ss, sa) {
|
|
16
17
|
return _this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);
|
|
@@ -25,7 +26,7 @@ var EShapeLineOfRectangleRoundeds = /** @class */ (function (_super) {
|
|
|
25
26
|
configurable: true
|
|
26
27
|
});
|
|
27
28
|
EShapeLineOfRectangleRoundeds.prototype.clone = function () {
|
|
28
|
-
return new EShapeLineOfRectangleRoundeds().copy(this);
|
|
29
|
+
return new EShapeLineOfRectangleRoundeds(this.type).copy(this);
|
|
29
30
|
};
|
|
30
31
|
EShapeLineOfRectangleRoundeds.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
31
32
|
var threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-line-of-rectangle-roundeds.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-line-of-rectangle-roundeds.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAM7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;IACS,iDAAsB;IAM9B;
|
|
1
|
+
{"version":3,"file":"e-shape-line-of-rectangle-roundeds.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-line-of-rectangle-roundeds.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAM7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;IACS,iDAAsB;IAM9B,uCAAY,IAAwD;QAAxD,qBAAA,EAAA,OAAmB,UAAU,CAAC,0BAA0B;QAApE,YACC,kBAAM,IAAI,CAAC,SAMX;QALA,KAAI,CAAC,OAAO,GAAG,IAAI,yBAAyB,CAAC,KAAI,CAAC,CAAC;QAEnD,KAAI,CAAC,OAAO,GAAG,UAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;YACvD,OAAO,KAAI,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C,CAAC;IACxE,CAAC;IAED,oDAAY,GAAZ,UACC,CAAS,EACT,CAAS,EACT,WAA6D,EAC7D,OAAqD,EACrD,MAAqD,EACrD,MAAc;QAEd,IAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACtC,IAAM,SAAS,GAAG,CAAC,WAAW,IAAI,kBAAkB,CAAC,CACpD,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,CAC5B,CAAC;QACF,IAAI,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,GAAG,SAAS,EAAE,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE;YAC1F,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CAClC,IAAI,CAAC,CAAC,EACN,IAAI,CAAC,CAAC,EACN,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,WAAW,EAChB,SAAS,EACT,OAAO,EACP,MAAM,IAAI,IAAI,CAAC,OAAO,EACtB,MAAM,CACN,CAAC;SACF;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IACF,oCAAC;AAAD,CAAC,AA/FD,CACS,sBAAsB,GA8F9B","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeLineOfAny } from \"./e-shape-line-of-any\";\nimport { EShapeLineOfAnyPoints } from \"./e-shape-line-of-any-points\";\nimport { EShapeLineOfAnyPointsHitTester } from \"./e-shape-line-of-any-points-hit-tester\";\nimport { EShapeLineOfAnyPointsHitTesterToRange } from \"./e-shape-line-of-any-points-hit-tester-to-range\";\nimport { EShapeLineOfAnyPointsHitTesterToThreshold } from \"./e-shape-line-of-any-points-hit-tester-to-threshold\";\nimport { EShapeLineOfAnyPointsImpl } from \"./e-shape-line-of-any-points-impl\";\nimport { EShapeRectangleRounded } from \"./e-shape-rectangle-rounded\";\nimport { toThresholdDefault } from \"./to-threshold-default\";\n\nexport class EShapeLineOfRectangleRoundeds\n\textends EShapeRectangleRounded\n\timplements EShapeLineOfAny\n{\n\tprotected declare _points: EShapeLineOfAnyPoints;\n\tprotected _tester: EShapeLineOfAnyPointsHitTester<unknown>;\n\n\tconstructor(type: EShapeType = EShapeType.LINE_OF_RECTANGLE_ROUNDEDS) {\n\t\tsuper(type);\n\t\tthis._points = new EShapeLineOfAnyPointsImpl(this);\n\n\t\tthis._tester = (x, y, ax, ay, ox, oy, px, py, sw, ss, sa): boolean => {\n\t\t\treturn this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);\n\t\t};\n\t}\n\n\tget points(): EShapeLineOfAnyPoints {\n\t\treturn this._points;\n\t}\n\n\tclone(): EShapeLineOfRectangleRoundeds {\n\t\treturn new EShapeLineOfRectangleRoundeds(this.type).copy(this);\n\t}\n\n\tcontainsAbs(\n\t\tx: number,\n\t\ty: number,\n\t\tax: number,\n\t\tay: number,\n\t\tsw: number,\n\t\tss: number,\n\t\tsa: number\n\t): boolean {\n\t\tconst threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());\n\t\tif (this.containsAbsBBox(x, y, ax + threshold, ay + threshold)) {\n\t\t\treturn this._points.calcHitPointAbs(\n\t\t\t\tx,\n\t\t\t\ty,\n\t\t\t\tthreshold,\n\t\t\t\tsw,\n\t\t\t\tss,\n\t\t\t\tsa,\n\t\t\t\tnull,\n\t\t\t\tthis._tester,\n\t\t\t\tnull\n\t\t\t);\n\t\t}\n\t\treturn false;\n\t}\n\n\tcontainsPointAbs(\n\t\tx: number,\n\t\ty: number,\n\t\tax: number,\n\t\tay: number,\n\t\tox: number,\n\t\toy: number,\n\t\tpx: number,\n\t\tpy: number,\n\t\tsw: number,\n\t\tss: number,\n\t\tsa: number\n\t): boolean {\n\t\treturn super.containsAbs(x - px - ox, y - py - oy, ax, ay, sw, ss, sa);\n\t}\n\n\tcalcHitPoint<RESULT>(\n\t\tx: number,\n\t\ty: number,\n\t\ttoThreshold: EShapeLineOfAnyPointsHitTesterToThreshold | null,\n\t\ttoRange: EShapeLineOfAnyPointsHitTesterToRange | null,\n\t\ttester: EShapeLineOfAnyPointsHitTester<RESULT> | null,\n\t\tresult: RESULT\n\t): boolean {\n\t\tconst data = this.toHitTestData(x, y);\n\t\tconst threshold = (toThreshold || toThresholdDefault)(\n\t\t\tdata.strokeWidth,\n\t\t\tdata.strokeScale,\n\t\t\tthis._points.size.getLimit()\n\t\t);\n\t\tif (this.containsAbsBBox(data.x, data.y, data.width + threshold, data.height + threshold)) {\n\t\t\treturn this._points.calcHitPointAbs(\n\t\t\t\tdata.x,\n\t\t\t\tdata.y,\n\t\t\t\tdata.strokeWidth,\n\t\t\t\tdata.strokeScale,\n\t\t\t\tdata.strokeAlign,\n\t\t\t\tthreshold,\n\t\t\t\ttoRange,\n\t\t\t\ttester || this._tester,\n\t\t\t\tresult\n\t\t\t);\n\t\t}\n\t\treturn false;\n\t}\n}\n"]}
|
|
@@ -9,8 +9,9 @@ import { EShapeRectangle } from "./e-shape-rectangle";
|
|
|
9
9
|
import { toThresholdDefault } from "./to-threshold-default";
|
|
10
10
|
var EShapeLineOfRectangles = /** @class */ (function (_super) {
|
|
11
11
|
__extends(EShapeLineOfRectangles, _super);
|
|
12
|
-
function EShapeLineOfRectangles() {
|
|
13
|
-
|
|
12
|
+
function EShapeLineOfRectangles(type) {
|
|
13
|
+
if (type === void 0) { type = EShapeType.LINE_OF_RECTANGLES; }
|
|
14
|
+
var _this = _super.call(this, type) || this;
|
|
14
15
|
_this._points = new EShapeLineOfAnyPointsImpl(_this);
|
|
15
16
|
_this._tester = function (x, y, ax, ay, ox, oy, px, py, sw, ss, sa) {
|
|
16
17
|
return _this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);
|
|
@@ -25,7 +26,7 @@ var EShapeLineOfRectangles = /** @class */ (function (_super) {
|
|
|
25
26
|
configurable: true
|
|
26
27
|
});
|
|
27
28
|
EShapeLineOfRectangles.prototype.clone = function () {
|
|
28
|
-
return new EShapeLineOfRectangles().copy(this);
|
|
29
|
+
return new EShapeLineOfRectangles(this.type).copy(this);
|
|
29
30
|
};
|
|
30
31
|
EShapeLineOfRectangles.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
31
32
|
var threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-line-of-rectangles.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-line-of-rectangles.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAM7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;IAA4C,0CAAe;IAI1D;
|
|
1
|
+
{"version":3,"file":"e-shape-line-of-rectangles.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-line-of-rectangles.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAM7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;IAA4C,0CAAe;IAI1D,gCAAY,IAAgD;QAAhD,qBAAA,EAAA,OAAmB,UAAU,CAAC,kBAAkB;QAA5D,YACC,kBAAM,IAAI,CAAC,S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EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU;QAEV,OAAO,iBAAM,WAAW,YAAC,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACxE,CAAC;IAED,6CAAY,GAAZ,UACC,CAAS,EACT,CAAS,EACT,WAA6D,EAC7D,OAAqD,EACrD,MAAqD,EACrD,MAAc;QAEd,IAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACtC,IAAM,SAAS,GAAG,CAAC,WAAW,IAAI,kBAAkB,CAAC,CACpD,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,EAAE,CAC5B,CAAC;QACF,IAAI,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,GAAG,SAAS,EAAE,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE;YAC1F,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CAClC,IAAI,CAAC,CAAC,EACN,IAAI,CAAC,CAAC,EACN,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,WAAW,EAChB,SAAS,EACT,OAAO,EACP,MAAM,IAAI,IAAI,CAAC,OAAO,EACtB,MAAM,CACN,CAAC;SACF;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IACF,6BAAC;AAAD,CAAC,AA5FD,CAA4C,eAAe,GA4F1D","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeLineOfAny } from \"./e-shape-line-of-any\";\nimport { EShapeLineOfAnyPoints } from \"./e-shape-line-of-any-points\";\nimport { EShapeLineOfAnyPointsHitTester } from \"./e-shape-line-of-any-points-hit-tester\";\nimport { EShapeLineOfAnyPointsHitTesterToRange } from \"./e-shape-line-of-any-points-hit-tester-to-range\";\nimport { EShapeLineOfAnyPointsHitTesterToThreshold } from \"./e-shape-line-of-any-points-hit-tester-to-threshold\";\nimport { EShapeLineOfAnyPointsImpl } from \"./e-shape-line-of-any-points-impl\";\nimport { EShapeRectangle } from \"./e-shape-rectangle\";\nimport { toThresholdDefault } from \"./to-threshold-default\";\n\nexport class EShapeLineOfRectangles extends EShapeRectangle implements EShapeLineOfAny {\n\tprotected declare _points: EShapeLineOfAnyPoints;\n\tprotected _tester: EShapeLineOfAnyPointsHitTester<unknown>;\n\n\tconstructor(type: EShapeType = EShapeType.LINE_OF_RECTANGLES) {\n\t\tsuper(type);\n\t\tthis._points = new EShapeLineOfAnyPointsImpl(this);\n\n\t\tthis._tester = (x, y, ax, ay, ox, oy, px, py, sw, ss, sa): boolean => {\n\t\t\treturn this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);\n\t\t};\n\t}\n\n\tget points(): EShapeLineOfAnyPoints {\n\t\treturn this._points;\n\t}\n\n\tclone(): EShapeLineOfRectangles {\n\t\treturn new EShapeLineOfRectangles(this.type).copy(this);\n\t}\n\n\tcontainsAbs(\n\t\tx: number,\n\t\ty: number,\n\t\tax: number,\n\t\tay: number,\n\t\tsw: number,\n\t\tss: number,\n\t\tsa: number\n\t): boolean {\n\t\tconst threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());\n\t\tif (this.containsAbsBBox(x, y, ax + threshold, ay + threshold)) {\n\t\t\treturn this._points.calcHitPointAbs(\n\t\t\t\tx,\n\t\t\t\ty,\n\t\t\t\tsw,\n\t\t\t\tss,\n\t\t\t\tsa,\n\t\t\t\tthreshold,\n\t\t\t\tnull,\n\t\t\t\tthis._tester,\n\t\t\t\tnull\n\t\t\t);\n\t\t}\n\t\treturn false;\n\t}\n\n\tcontainsPointAbs(\n\t\tx: number,\n\t\ty: number,\n\t\tax: number,\n\t\tay: number,\n\t\tox: number,\n\t\toy: number,\n\t\tpx: number,\n\t\tpy: number,\n\t\tsw: number,\n\t\tss: number,\n\t\tsa: number\n\t): boolean {\n\t\treturn super.containsAbs(x - px - ox, y - py - oy, ax, ay, sw, ss, sa);\n\t}\n\n\tcalcHitPoint<RESULT>(\n\t\tx: number,\n\t\ty: number,\n\t\ttoThreshold: EShapeLineOfAnyPointsHitTesterToThreshold | null,\n\t\ttoRange: EShapeLineOfAnyPointsHitTesterToRange | null,\n\t\ttester: EShapeLineOfAnyPointsHitTester<RESULT> | null,\n\t\tresult: RESULT\n\t): boolean {\n\t\tconst data = this.toHitTestData(x, y);\n\t\tconst threshold = (toThreshold || toThresholdDefault)(\n\t\t\tdata.strokeWidth,\n\t\t\tdata.strokeScale,\n\t\t\tthis._points.size.getLimit()\n\t\t);\n\t\tif (this.containsAbsBBox(data.x, data.y, data.width + threshold, data.height + threshold)) {\n\t\t\treturn this._points.calcHitPointAbs(\n\t\t\t\tdata.x,\n\t\t\t\tdata.y,\n\t\t\t\tdata.strokeWidth,\n\t\t\t\tdata.strokeScale,\n\t\t\t\tdata.strokeAlign,\n\t\t\t\tthreshold,\n\t\t\t\ttoRange,\n\t\t\t\ttester || this._tester,\n\t\t\t\tresult\n\t\t\t);\n\t\t}\n\t\treturn false;\n\t}\n}\n"]}
|
|
@@ -9,8 +9,9 @@ import { EShapeTriangleRounded } from "./e-shape-triangle-rounded";
|
|
|
9
9
|
import { toThresholdDefault } from "./to-threshold-default";
|
|
10
10
|
var EShapeLineOfTriangleRoundeds = /** @class */ (function (_super) {
|
|
11
11
|
__extends(EShapeLineOfTriangleRoundeds, _super);
|
|
12
|
-
function EShapeLineOfTriangleRoundeds() {
|
|
13
|
-
|
|
12
|
+
function EShapeLineOfTriangleRoundeds(type) {
|
|
13
|
+
if (type === void 0) { type = EShapeType.LINE_OF_TRIANGLE_ROUNDEDS; }
|
|
14
|
+
var _this = _super.call(this, type) || this;
|
|
14
15
|
_this._points = new EShapeLineOfAnyPointsImpl(_this);
|
|
15
16
|
_this._tester = function (x, y, ax, ay, ox, oy, px, py, sw, ss, sa) {
|
|
16
17
|
return _this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);
|
|
@@ -25,7 +26,7 @@ var EShapeLineOfTriangleRoundeds = /** @class */ (function (_super) {
|
|
|
25
26
|
configurable: true
|
|
26
27
|
});
|
|
27
28
|
EShapeLineOfTriangleRoundeds.prototype.clone = function () {
|
|
28
|
-
return new EShapeLineOfTriangleRoundeds().copy(this);
|
|
29
|
+
return new EShapeLineOfTriangleRoundeds(this.type).copy(this);
|
|
29
30
|
};
|
|
30
31
|
EShapeLineOfTriangleRoundeds.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
31
32
|
var threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-line-of-triangle-roundeds.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-line-of-triangle-roundeds.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAM7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;IAAkD,gDAAqB;IAItE;
|
|
1
|
+
{"version":3,"file":"e-shape-line-of-triangle-roundeds.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-line-of-triangle-roundeds.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,i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C,WAAW,EAChB,SAAS,EACT,OAAO,EACP,MAAM,IAAI,IAAI,CAAC,OAAO,EACtB,MAAM,CACN,CAAC;SACF;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IACF,mCAAC;AAAD,CAAC,AA5FD,CAAkD,qBAAqB,GA4FtE","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeLineOfAny } from \"./e-shape-line-of-any\";\nimport { EShapeLineOfAnyPoints } from \"./e-shape-line-of-any-points\";\nimport { EShapeLineOfAnyPointsHitTester } from \"./e-shape-line-of-any-points-hit-tester\";\nimport { EShapeLineOfAnyPointsHitTesterToRange } from \"./e-shape-line-of-any-points-hit-tester-to-range\";\nimport { EShapeLineOfAnyPointsHitTesterToThreshold } from \"./e-shape-line-of-any-points-hit-tester-to-threshold\";\nimport { EShapeLineOfAnyPointsImpl } from \"./e-shape-line-of-any-points-impl\";\nimport { EShapeTriangleRounded } from \"./e-shape-triangle-rounded\";\nimport { toThresholdDefault } from \"./to-threshold-default\";\n\nexport class EShapeLineOfTriangleRoundeds extends EShapeTriangleRounded implements EShapeLineOfAny {\n\tprotected declare _points: EShapeLineOfAnyPoints;\n\tprotected _tester: EShapeLineOfAnyPointsHitTester<unknown>;\n\n\tconstructor(type: EShapeType = EShapeType.LINE_OF_TRIANGLE_ROUNDEDS) {\n\t\tsuper(type);\n\t\tthis._points = new EShapeLineOfAnyPointsImpl(this);\n\n\t\tthis._tester = (x, y, ax, ay, ox, oy, px, py, sw, ss, sa): boolean => {\n\t\t\treturn this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);\n\t\t};\n\t}\n\n\tget points(): EShapeLineOfAnyPoints {\n\t\treturn this._points;\n\t}\n\n\tclone(): EShapeLineOfTriangleRoundeds {\n\t\treturn new EShapeLineOfTriangleRoundeds(this.type).copy(this);\n\t}\n\n\tcontainsAbs(\n\t\tx: number,\n\t\ty: number,\n\t\tax: number,\n\t\tay: number,\n\t\tsw: number,\n\t\tss: number,\n\t\tsa: number\n\t): boolean {\n\t\tconst threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());\n\t\tif (this.containsAbsBBox(x, y, ax + threshold, ay + threshold)) {\n\t\t\treturn this._points.calcHitPointAbs(\n\t\t\t\tx,\n\t\t\t\ty,\n\t\t\t\tsw,\n\t\t\t\tss,\n\t\t\t\tsa,\n\t\t\t\tthreshold,\n\t\t\t\tnull,\n\t\t\t\tthis._tester,\n\t\t\t\tnull\n\t\t\t);\n\t\t}\n\t\treturn false;\n\t}\n\n\tcontainsPointAbs(\n\t\tx: number,\n\t\ty: number,\n\t\tax: number,\n\t\tay: number,\n\t\tox: number,\n\t\toy: number,\n\t\tpx: number,\n\t\tpy: number,\n\t\tsw: number,\n\t\tss: number,\n\t\tsa: number\n\t): boolean {\n\t\treturn super.containsAbs(x - px - ox, y - py - oy, ax, ay, sw, ss, sa);\n\t}\n\n\tcalcHitPoint<RESULT>(\n\t\tx: number,\n\t\ty: number,\n\t\ttoThreshold: EShapeLineOfAnyPointsHitTesterToThreshold | null,\n\t\ttoRange: EShapeLineOfAnyPointsHitTesterToRange | null,\n\t\ttester: EShapeLineOfAnyPointsHitTester<RESULT> | null,\n\t\tresult: RESULT\n\t): boolean {\n\t\tconst data = this.toHitTestData(x, y);\n\t\tconst threshold = (toThreshold || toThresholdDefault)(\n\t\t\tdata.strokeWidth,\n\t\t\tdata.strokeScale,\n\t\t\tthis._points.size.getLimit()\n\t\t);\n\t\tif (this.containsAbsBBox(data.x, data.y, data.width + threshold, data.height + threshold)) {\n\t\t\treturn this._points.calcHitPointAbs(\n\t\t\t\tdata.x,\n\t\t\t\tdata.y,\n\t\t\t\tdata.strokeWidth,\n\t\t\t\tdata.strokeScale,\n\t\t\t\tdata.strokeAlign,\n\t\t\t\tthreshold,\n\t\t\t\ttoRange,\n\t\t\t\ttester || this._tester,\n\t\t\t\tresult\n\t\t\t);\n\t\t}\n\t\treturn false;\n\t}\n}\n"]}
|
|
@@ -9,8 +9,9 @@ import { EShapeTriangle } from "./e-shape-triangle";
|
|
|
9
9
|
import { toThresholdDefault } from "./to-threshold-default";
|
|
10
10
|
var EShapeLineOfTriangles = /** @class */ (function (_super) {
|
|
11
11
|
__extends(EShapeLineOfTriangles, _super);
|
|
12
|
-
function EShapeLineOfTriangles() {
|
|
13
|
-
|
|
12
|
+
function EShapeLineOfTriangles(type) {
|
|
13
|
+
if (type === void 0) { type = EShapeType.LINE_OF_TRIANGLES; }
|
|
14
|
+
var _this = _super.call(this, type) || this;
|
|
14
15
|
_this._points = new EShapeLineOfAnyPointsImpl(_this);
|
|
15
16
|
_this._tester = function (x, y, ax, ay, ox, oy, px, py, sw, ss, sa) {
|
|
16
17
|
return _this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);
|
|
@@ -25,7 +26,7 @@ var EShapeLineOfTriangles = /** @class */ (function (_super) {
|
|
|
25
26
|
configurable: true
|
|
26
27
|
});
|
|
27
28
|
EShapeLineOfTriangles.prototype.clone = function () {
|
|
28
|
-
return new EShapeLineOfTriangles().copy(this);
|
|
29
|
+
return new EShapeLineOfTriangles(this.type).copy(this);
|
|
29
30
|
};
|
|
30
31
|
EShapeLineOfTriangles.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
31
32
|
var threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-line-of-triangles.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-line-of-triangles.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAM7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;IAA2C,yCAAc;IAIxD;
|
|
1
|
+
{"version":3,"file":"e-shape-line-of-triangles.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-line-of-triangles.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAM7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D;IAA2C,yCAAc;IAIxD,+BAAY,IAA+C;QAA/C,qBAAA,EAAA,OAAmB,UAAU,CAAC,iBAAiB;QAA3D,YACC,kBAAM,IAAI,CAAC,SAMX;QALA,KAAI,CAAC,OAAO,GAAG,IAAI,yBAAyB,CAAC,KAAI,CAAC,CAAC;QAEnD,KAAI,CAAC,OAAO,GAAG,UAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;YACvD,OAAO,KAAI,CAAC,gBAAgB,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;QACxE,CAAC,CAAC;;IACH,CAAC;IAED,sBAAI,yCAAM;aAAV;YACC,OAAO,IAAI,CAAC,OAAO,CAAC;QACrB,CAAC;;;OAAA;IAED,qCAAK,GAAL;QACC,OAAO,IAAI,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxD,CAAC;IAED,2CAAW,GAAX,UACC,CAAS,EACT,CAAS,EACT,EAAU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,EAAE,IAAI,CAAC,KAAK,GAAG,SAAS,EAAE,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE;YAC1F,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CAClC,IAAI,CAAC,CAAC,EACN,IAAI,CAAC,CAAC,EACN,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,WAAW,EAChB,IAAI,CAAC,WAAW,EAChB,SAAS,EACT,OAAO,EACP,MAAM,IAAI,IAAI,CAAC,OAAO,EACtB,MAAM,CACN,CAAC;SACF;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IACF,4BAAC;AAAD,CAAC,AA5FD,CAA2C,cAAc,GA4FxD","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeLineOfAny } from \"./e-shape-line-of-any\";\nimport { EShapeLineOfAnyPoints } from \"./e-shape-line-of-any-points\";\nimport { EShapeLineOfAnyPointsHitTester } from \"./e-shape-line-of-any-points-hit-tester\";\nimport { EShapeLineOfAnyPointsHitTesterToRange } from \"./e-shape-line-of-any-points-hit-tester-to-range\";\nimport { EShapeLineOfAnyPointsHitTesterToThreshold } from \"./e-shape-line-of-any-points-hit-tester-to-threshold\";\nimport { EShapeLineOfAnyPointsImpl } from \"./e-shape-line-of-any-points-impl\";\nimport { EShapeTriangle } from \"./e-shape-triangle\";\nimport { toThresholdDefault } from \"./to-threshold-default\";\n\nexport class EShapeLineOfTriangles extends EShapeTriangle implements EShapeLineOfAny {\n\tprotected declare _points: EShapeLineOfAnyPoints;\n\tprotected _tester: EShapeLineOfAnyPointsHitTester<unknown>;\n\n\tconstructor(type: EShapeType = EShapeType.LINE_OF_TRIANGLES) {\n\t\tsuper(type);\n\t\tthis._points = new EShapeLineOfAnyPointsImpl(this);\n\n\t\tthis._tester = (x, y, ax, ay, ox, oy, px, py, sw, ss, sa): boolean => {\n\t\t\treturn this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);\n\t\t};\n\t}\n\n\tget points(): EShapeLineOfAnyPoints {\n\t\treturn this._points;\n\t}\n\n\tclone(): EShapeLineOfTriangles {\n\t\treturn new EShapeLineOfTriangles(this.type).copy(this);\n\t}\n\n\tcontainsAbs(\n\t\tx: number,\n\t\ty: number,\n\t\tax: number,\n\t\tay: number,\n\t\tsw: number,\n\t\tss: number,\n\t\tsa: number\n\t): boolean {\n\t\tconst threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());\n\t\tif (this.containsAbsBBox(x, y, ax + threshold, ay + threshold)) {\n\t\t\treturn this._points.calcHitPointAbs(\n\t\t\t\tx,\n\t\t\t\ty,\n\t\t\t\tsw,\n\t\t\t\tss,\n\t\t\t\tsa,\n\t\t\t\tthreshold,\n\t\t\t\tnull,\n\t\t\t\tthis._tester,\n\t\t\t\tnull\n\t\t\t);\n\t\t}\n\t\treturn false;\n\t}\n\n\tcontainsPointAbs(\n\t\tx: number,\n\t\ty: number,\n\t\tax: number,\n\t\tay: number,\n\t\tox: number,\n\t\toy: number,\n\t\tpx: number,\n\t\tpy: number,\n\t\tsw: number,\n\t\tss: number,\n\t\tsa: number\n\t): boolean {\n\t\treturn super.containsAbs(x - px - ox, y - py - oy, ax, ay, sw, ss, sa);\n\t}\n\n\tcalcHitPoint<RESULT>(\n\t\tx: number,\n\t\ty: number,\n\t\ttoThreshold: EShapeLineOfAnyPointsHitTesterToThreshold | null,\n\t\ttoRange: EShapeLineOfAnyPointsHitTesterToRange | null,\n\t\ttester: EShapeLineOfAnyPointsHitTester<RESULT> | null,\n\t\tresult: RESULT\n\t): boolean {\n\t\tconst data = this.toHitTestData(x, y);\n\t\tconst threshold = (toThreshold || toThresholdDefault)(\n\t\t\tdata.strokeWidth,\n\t\t\tdata.strokeScale,\n\t\t\tthis._points.size.getLimit()\n\t\t);\n\t\tif (this.containsAbsBBox(data.x, data.y, data.width + threshold, data.height + threshold)) {\n\t\t\treturn this._points.calcHitPointAbs(\n\t\t\t\tdata.x,\n\t\t\t\tdata.y,\n\t\t\t\tdata.strokeWidth,\n\t\t\t\tdata.strokeScale,\n\t\t\t\tdata.strokeAlign,\n\t\t\t\tthreshold,\n\t\t\t\ttoRange,\n\t\t\t\ttester || this._tester,\n\t\t\t\tresult\n\t\t\t);\n\t\t}\n\t\treturn false;\n\t}\n}\n"]}
|
|
@@ -22,7 +22,7 @@ var EShapeLine = /** @class */ (function (_super) {
|
|
|
22
22
|
configurable: true
|
|
23
23
|
});
|
|
24
24
|
EShapeLine.prototype.clone = function () {
|
|
25
|
-
return new EShapeLine().copy(this);
|
|
25
|
+
return new EShapeLine(this.type).copy(this);
|
|
26
26
|
};
|
|
27
27
|
EShapeLine.prototype.serialize = function (manager) {
|
|
28
28
|
var result = _super.prototype.serialize.call(this, manager);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-line.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-line.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;IAAgC,8BAAc;IAG7C,oBAAY,IAAkC;QAAlC,qBAAA,EAAA,OAAmB,UAAU,CAAC,IAAI;QAA9C,YACC,kBAAM,IAAI,CAAC,SAEX;QADA,KAAI,CAAC,OAAO,GAAG,IAAI,gBAAgB,CAAC,KAAI,CAAC,CAAC;;IAC3C,CAAC;IAED,sBAAI,8BAAM;aAAV;YACC,OAAO,IAAI,CAAC,OAAO,CAAC;QACrB,CAAC;;;OAAA;IAED,0BAAK,GAAL;QACC,OAAO,IAAI,UAAU,
|
|
1
|
+
{"version":3,"file":"e-shape-line.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-line.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD;IAAgC,8BAAc;IAG7C,oBAAY,IAAkC;QAAlC,qBAAA,EAAA,OAAmB,UAAU,CAAC,IAAI;QAA9C,YACC,kBAAM,IAAI,CAAC,SAEX;QADA,KAAI,CAAC,OAAO,GAAG,IAAI,gBAAgB,CAAC,KAAI,CAAC,CAAC;;IAC3C,CAAC;IAED,sBAAI,8BAAM;aAAV;YACC,OAAO,IAAI,CAAC,OAAO,CAAC;QACrB,CAAC;;;OAAA;IAED,0BAAK,GAAL;QACC,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;IAED,8BAAS,GAAT,UAAU,OAA2C;QACpD,IAAM,MAAM,GAAG,iBAAM,SAAS,YAAC,OAAO,CAAC,CAAC;QACxC,MAAM,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAC7C,OAAO,MAAM,CAAC;IACf,CAAC;IACF,iBAAC;AAAD,CAAC,AArBD,CAAgC,cAAc,GAqB7C","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DDiagramSerializedItem } from \"../../d-diagram-serialized\";\nimport { EShapeResourceManagerSerialization } from \"../e-shape-resource-manager-serialization\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeLineBase } from \"./e-shape-line-base\";\nimport { EShapeLinePoints } from \"./e-shape-line-points\";\n\nexport class EShapeLine extends EShapeLineBase {\n\tprotected declare _points: EShapeLinePoints;\n\n\tconstructor(type: EShapeType = EShapeType.LINE) {\n\t\tsuper(type);\n\t\tthis._points = new EShapeLinePoints(this);\n\t}\n\n\tget points(): EShapeLinePoints {\n\t\treturn this._points;\n\t}\n\n\tclone(): EShapeLine {\n\t\treturn new EShapeLine(this.type).copy(this);\n\t}\n\n\tserialize(manager: EShapeResourceManagerSerialization): DDiagramSerializedItem {\n\t\tconst result = super.serialize(manager);\n\t\tresult[15] = this._points.serialize(manager);\n\t\treturn result;\n\t}\n}\n"]}
|
|
@@ -12,7 +12,7 @@ var EShapeNull = /** @class */ (function (_super) {
|
|
|
12
12
|
return _super.call(this, type) || this;
|
|
13
13
|
}
|
|
14
14
|
EShapeNull.prototype.clone = function () {
|
|
15
|
-
return new EShapeNull().copy(this);
|
|
15
|
+
return new EShapeNull(this.type).copy(this);
|
|
16
16
|
};
|
|
17
17
|
return EShapeNull;
|
|
18
18
|
}(EShapePrimitive));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-null.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-null.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD;IAAgC,8BAAe;IAC9C,oBAAY,IAAkC;QAAlC,qBAAA,EAAA,OAAmB,UAAU,CAAC,IAAI;eAC7C,kBAAM,IAAI,CAAC;IACZ,CAAC;IAED,0BAAK,GAAL;QACC,OAAO,IAAI,UAAU,
|
|
1
|
+
{"version":3,"file":"e-shape-null.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-null.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD;IAAgC,8BAAe;IAC9C,oBAAY,IAAkC;QAAlC,qBAAA,EAAA,OAAmB,UAAU,CAAC,IAAI;eAC7C,kBAAM,IAAI,CAAC;IACZ,CAAC;IAED,0BAAK,GAAL;QACC,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC;IACF,iBAAC;AAAD,CAAC,AARD,CAAgC,eAAe,GAQ9C","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapePrimitive } from \"./e-shape-primitive\";\n\nexport class EShapeNull extends EShapePrimitive {\n\tconstructor(type: EShapeType = EShapeType.NULL) {\n\t\tsuper(type);\n\t}\n\n\tclone(): EShapeNull {\n\t\treturn new EShapeNull(this.type).copy(this);\n\t}\n}\n"]}
|
|
@@ -13,7 +13,7 @@ var EShapeRectangleRounded = /** @class */ (function (_super) {
|
|
|
13
13
|
return _super.call(this, type) || this;
|
|
14
14
|
}
|
|
15
15
|
EShapeRectangleRounded.prototype.clone = function () {
|
|
16
|
-
return new EShapeRectangleRounded().copy(this);
|
|
16
|
+
return new EShapeRectangleRounded(this.type).copy(this);
|
|
17
17
|
};
|
|
18
18
|
EShapeRectangleRounded.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
19
19
|
if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-rectangle-rounded.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-rectangle-rounded.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE;IAA4C,0CAAe;IAC1D,gCAAY,IAA+C;QAA/C,qBAAA,EAAA,OAAmB,UAAU,CAAC,iBAAiB;eAC1D,kBAAM,IAAI,CAAC;IACZ,CAAC;IAED,sCAAK,GAAL;QACC,OAAO,IAAI,sBAAsB,
|
|
1
|
+
{"version":3,"file":"e-shape-rectangle-rounded.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-rectangle-rounded.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE;IAA4C,0CAAe;IAC1D,gCAAY,IAA+C;QAA/C,qBAAA,EAAA,OAAmB,UAAU,CAAC,iBAAiB;eAC1D,kBAAM,IAAI,CAAC;IACZ,CAAC;IAED,sCAAK,GAAL;QACC,OAAO,IAAI,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;IAED,4CAAW,GAAX,UACC,CAAS,EACT,CAAS,EACT,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU;QAEV,IAAI,iBAAM,eAAe,YAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;YACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;SAC3D;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IACF,6BAAC;AAAD,CAAC,AAvBD,CAA4C,eAAe,GAuB1D","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapePrimitive } from \"./e-shape-primitive\";\nimport { hitTestRectangleRounded } from \"./hit-test-rectangle-rounded\";\n\nexport class EShapeRectangleRounded extends EShapePrimitive {\n\tconstructor(type: EShapeType = EShapeType.RECTANGLE_ROUNDED) {\n\t\tsuper(type);\n\t}\n\n\tclone(): EShapeRectangleRounded {\n\t\treturn new EShapeRectangleRounded(this.type).copy(this);\n\t}\n\n\tcontainsAbs(\n\t\tx: number,\n\t\ty: number,\n\t\tax: number,\n\t\tay: number,\n\t\tsw: number,\n\t\tss: number,\n\t\tsa: number\n\t): boolean {\n\t\tif (super.containsAbsBBox(x, y, ax, ay)) {\n\t\t\treturn hitTestRectangleRounded(this, x, y, ax, ay, sw, ss);\n\t\t}\n\t\treturn false;\n\t}\n}\n"]}
|
|
@@ -13,7 +13,7 @@ var EShapeRectangle = /** @class */ (function (_super) {
|
|
|
13
13
|
return _super.call(this, type) || this;
|
|
14
14
|
}
|
|
15
15
|
EShapeRectangle.prototype.clone = function () {
|
|
16
|
-
return new EShapeRectangle().copy(this);
|
|
16
|
+
return new EShapeRectangle(this.type).copy(this);
|
|
17
17
|
};
|
|
18
18
|
EShapeRectangle.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
19
19
|
if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-rectangle.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-rectangle.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;IAAqC,mCAAe;IACnD,yBAAY,IAAuC;QAAvC,qBAAA,EAAA,OAAmB,UAAU,CAAC,SAAS;eAClD,kBAAM,IAAI,CAAC;IACZ,CAAC;IAED,+BAAK,GAAL;QACC,OAAO,IAAI,eAAe,
|
|
1
|
+
{"version":3,"file":"e-shape-rectangle.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-rectangle.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD;IAAqC,mCAAe;IACnD,yBAAY,IAAuC;QAAvC,qBAAA,EAAA,OAAmB,UAAU,CAAC,SAAS;eAClD,kBAAM,IAAI,CAAC;IACZ,CAAC;IAED,+BAAK,GAAL;QACC,OAAO,IAAI,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IAED,qCAAW,GAAX,UACC,CAAS,EACT,CAAS,EACT,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU;QAEV,IAAI,iBAAM,eAAe,YAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;YACxC,OAAO,gBAAgB,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;SACpD;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IACF,sBAAC;AAAD,CAAC,AAvBD,CAAqC,eAAe,GAuBnD","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapePrimitive } from \"./e-shape-primitive\";\nimport { hitTestRectangle } from \"./hit-test-rectangle\";\n\nexport class EShapeRectangle extends EShapePrimitive {\n\tconstructor(type: EShapeType = EShapeType.RECTANGLE) {\n\t\tsuper(type);\n\t}\n\n\tclone(): EShapeRectangle {\n\t\treturn new EShapeRectangle(this.type).copy(this);\n\t}\n\n\tcontainsAbs(\n\t\tx: number,\n\t\ty: number,\n\t\tax: number,\n\t\tay: number,\n\t\tsw: number,\n\t\tss: number,\n\t\tsa: number\n\t): boolean {\n\t\tif (super.containsAbsBBox(x, y, ax, ay)) {\n\t\t\treturn hitTestRectangle(this, x, y, ax, ay, sw, ss);\n\t\t}\n\t\treturn false;\n\t}\n}\n"]}
|
|
@@ -13,7 +13,7 @@ var EShapeTriangleRounded = /** @class */ (function (_super) {
|
|
|
13
13
|
return _super.call(this, type) || this;
|
|
14
14
|
}
|
|
15
15
|
EShapeTriangleRounded.prototype.clone = function () {
|
|
16
|
-
return new EShapeTriangleRounded().copy(this);
|
|
16
|
+
return new EShapeTriangleRounded(this.type).copy(this);
|
|
17
17
|
};
|
|
18
18
|
EShapeTriangleRounded.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
19
19
|
if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-triangle-rounded.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-triangle-rounded.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE;IAA2C,yCAAe;IACzD,+BAAY,IAA8C;QAA9C,qBAAA,EAAA,OAAmB,UAAU,CAAC,gBAAgB;eACzD,kBAAM,IAAI,CAAC;IACZ,CAAC;IAED,qCAAK,GAAL;QACC,OAAO,IAAI,qBAAqB,
|
|
1
|
+
{"version":3,"file":"e-shape-triangle-rounded.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-triangle-rounded.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE;IAA2C,yCAAe;IACzD,+BAAY,IAA8C;QAA9C,qBAAA,EAAA,OAAmB,UAAU,CAAC,gBAAgB;eACzD,kBAAM,IAAI,CAAC;IACZ,CAAC;IAED,qCAAK,GAAL;QACC,OAAO,IAAI,qBAAqB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACxD,CAAC;IAED,2CAAW,GAAX,UACC,CAAS,EACT,CAAS,EACT,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU;QAEV,IAAI,iBAAM,eAAe,YAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;YACxC,OAAO,sBAAsB,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;SAC1D;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IACF,4BAAC;AAAD,CAAC,AAvBD,CAA2C,eAAe,GAuBzD","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapePrimitive } from \"./e-shape-primitive\";\nimport { hitTestTriangleRounded } from \"./hit-test-triangle-rounded\";\n\nexport class EShapeTriangleRounded extends EShapePrimitive {\n\tconstructor(type: EShapeType = EShapeType.TRIANGLE_ROUNDED) {\n\t\tsuper(type);\n\t}\n\n\tclone(): EShapeTriangleRounded {\n\t\treturn new EShapeTriangleRounded(this.type).copy(this);\n\t}\n\n\tcontainsAbs(\n\t\tx: number,\n\t\ty: number,\n\t\tax: number,\n\t\tay: number,\n\t\tsw: number,\n\t\tss: number,\n\t\tsa: number\n\t): boolean {\n\t\tif (super.containsAbsBBox(x, y, ax, ay)) {\n\t\t\treturn hitTestTriangleRounded(this, x, y, ax, ay, sw, ss);\n\t\t}\n\t\treturn false;\n\t}\n}\n"]}
|
|
@@ -13,7 +13,7 @@ var EShapeTriangle = /** @class */ (function (_super) {
|
|
|
13
13
|
return _super.call(this, type) || this;
|
|
14
14
|
}
|
|
15
15
|
EShapeTriangle.prototype.clone = function () {
|
|
16
|
-
return new EShapeTriangle().copy(this);
|
|
16
|
+
return new EShapeTriangle(this.type).copy(this);
|
|
17
17
|
};
|
|
18
18
|
EShapeTriangle.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
19
19
|
if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-triangle.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-triangle.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD;IAAoC,kCAAe;IAClD,wBAAY,IAAsC;QAAtC,qBAAA,EAAA,OAAmB,UAAU,CAAC,QAAQ;eACjD,kBAAM,IAAI,CAAC;IACZ,CAAC;IAED,8BAAK,GAAL;QACC,OAAO,IAAI,cAAc,
|
|
1
|
+
{"version":3,"file":"e-shape-triangle.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-triangle.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD;IAAoC,kCAAe;IAClD,wBAAY,IAAsC;QAAtC,qBAAA,EAAA,OAAmB,UAAU,CAAC,QAAQ;eACjD,kBAAM,IAAI,CAAC;IACZ,CAAC;IAED,8BAAK,GAAL;QACC,OAAO,IAAI,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IAED,oCAAW,GAAX,UACC,CAAS,EACT,CAAS,EACT,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU;QAEV,IAAI,iBAAM,eAAe,YAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE;YACxC,OAAO,eAAe,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;SACnD;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IACF,qBAAC;AAAD,CAAC,AAvBD,CAAoC,eAAe,GAuBlD","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapePrimitive } from \"./e-shape-primitive\";\nimport { hitTestTriangle } from \"./hit-test-triangle\";\n\nexport class EShapeTriangle extends EShapePrimitive {\n\tconstructor(type: EShapeType = EShapeType.TRIANGLE) {\n\t\tsuper(type);\n\t}\n\n\tclone(): EShapeTriangle {\n\t\treturn new EShapeTriangle(this.type).copy(this);\n\t}\n\n\tcontainsAbs(\n\t\tx: number,\n\t\ty: number,\n\t\tax: number,\n\t\tay: number,\n\t\tsw: number,\n\t\tss: number,\n\t\tsa: number\n\t): boolean {\n\t\tif (super.containsAbsBBox(x, y, ax, ay)) {\n\t\t\treturn hitTestTriangle(this, x, y, ax, ay, sw, ss);\n\t\t}\n\t\treturn false;\n\t}\n}\n"]}
|
|
@@ -71,11 +71,14 @@ export * from "./create-rectangle-rounded-uploaded";
|
|
|
71
71
|
export * from "./create-rectangle-uploaded";
|
|
72
72
|
export * from "./create-triangle-rounded-uploaded";
|
|
73
73
|
export * from "./create-triangle-uploaded";
|
|
74
|
+
export * from "./deserialize-all";
|
|
74
75
|
export * from "./deserialize-bar";
|
|
76
|
+
export * from "./deserialize-base";
|
|
75
77
|
export * from "./deserialize-button";
|
|
76
78
|
export * from "./deserialize-circle";
|
|
77
79
|
export * from "./deserialize-connector-line";
|
|
78
80
|
export * from "./deserialize-embedded";
|
|
81
|
+
export * from "./deserialize-gradient";
|
|
79
82
|
export * from "./deserialize-group-shadowed";
|
|
80
83
|
export * from "./deserialize-group";
|
|
81
84
|
export * from "./deserialize-image-sdf";
|
|
@@ -92,6 +95,7 @@ export * from "./deserialize-rectangle-rounded";
|
|
|
92
95
|
export * from "./deserialize-rectangle";
|
|
93
96
|
export * from "./deserialize-triangle-rounded";
|
|
94
97
|
export * from "./deserialize-triangle";
|
|
98
|
+
export * from "./deserialize";
|
|
95
99
|
export * from "./e-shape-bar-points";
|
|
96
100
|
export * from "./e-shape-bar-position";
|
|
97
101
|
export * from "./e-shape-bar";
|
|
@@ -113,7 +117,6 @@ export * from "./e-shape-embedded";
|
|
|
113
117
|
export * from "./e-shape-embeddeds";
|
|
114
118
|
export * from "./e-shape-fill-impl-parent";
|
|
115
119
|
export * from "./e-shape-fill-impl";
|
|
116
|
-
export * from "./e-shape-gradients";
|
|
117
120
|
export * from "./e-shape-group-fill-editor";
|
|
118
121
|
export * from "./e-shape-group-fill-viewer";
|
|
119
122
|
export * from "./e-shape-group-points";
|
|
@@ -196,7 +199,13 @@ export * from "./hit-test-triangle";
|
|
|
196
199
|
export * from "./is-static";
|
|
197
200
|
export * from "./to-computed";
|
|
198
201
|
export * from "./to-dash";
|
|
199
|
-
export * from "./to-
|
|
202
|
+
export * from "./to-gradient-image-url";
|
|
203
|
+
export * from "./to-gradient-serialized";
|
|
204
|
+
export * from "./to-image-element";
|
|
200
205
|
export * from "./to-length";
|
|
206
|
+
export * from "./to-resized";
|
|
201
207
|
export * from "./to-scale-invariant";
|
|
208
|
+
export * from "./to-size-normalized";
|
|
209
|
+
export * from "./to-size-rounded";
|
|
210
|
+
export * from "./to-threshold-default";
|
|
202
211
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sCAAsC,CAAC;AACrD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gBAAgB,CAAC;AAC/B,cA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,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,mCAAmC,CAAC;AAClD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./build-bar\";\nexport * from \"./build-circle\";\nexport * from \"./build-color\";\nexport * from \"./build-image-sdf\";\nexport * from \"./build-line-of-any\";\nexport * from \"./build-line\";\nexport * from \"./build-null\";\nexport * from \"./build-rectangle-rounded\";\nexport * from \"./build-rectangle\";\nexport * from \"./build-text\";\nexport * from \"./build-triangle-rounded\";\nexport * from \"./build-triangle\";\nexport * from \"./builder-bar\";\nexport * from \"./builder-base\";\nexport * from \"./builder-circle\";\nexport * from \"./builder-image-sdf\";\nexport * from \"./builder-label\";\nexport * from \"./builder-line-of-any\";\nexport * from \"./builder-line-of-circles\";\nexport * from \"./builder-line-of-rectangle-roundeds\";\nexport * from \"./builder-line-of-rectangles\";\nexport * from \"./builder-line-of-triangle-roundeds\";\nexport * from \"./builder-line-of-triangles\";\nexport * from \"./builder-line\";\nexport * from \"./builder-marker-circle-head\";\nexport * from \"./builder-marker-circle-tail\";\nexport * from \"./builder-marker-circle\";\nexport * from \"./builder-marker-rectangle-head\";\nexport * from \"./builder-marker-rectangle-tail\";\nexport * from \"./builder-marker-rectangle\";\nexport * from \"./builder-marker-triangle-head\";\nexport * from \"./builder-marker-triangle-tail\";\nexport * from \"./builder-marker-triangle\";\nexport * from \"./builder-null\";\nexport * from \"./builder-rectangle-pivoted\";\nexport * from \"./builder-rectangle-rounded\";\nexport * from \"./builder-rectangle\";\nexport * from \"./builder-text\";\nexport * from \"./builder-triangle-rounded\";\nexport * from \"./builder-triangle\";\nexport * from \"./builder\";\nexport * from \"./builders\";\nexport * from \"./copy-clipping\";\nexport * from \"./copy-index\";\nexport * from \"./copy-step\";\nexport * from \"./copy-uv\";\nexport * from \"./copy-vertex\";\nexport * from \"./create-bar-uploaded\";\nexport * from \"./create-button-uploaded\";\nexport * from \"./create-circle-uploaded\";\nexport * from \"./create-rectangle-pivoted-uploaded\";\nexport * from \"./create-group-uploaded\";\nexport * from \"./create-image-sdf-uploaded\";\nexport * from \"./create-image-sdf\";\nexport * from \"./create-image\";\nexport * from \"./create-label-uploaded\";\nexport * from \"./create-line-of-any-uploaded\";\nexport * from \"./create-line-of-circles-uploaded\";\nexport * from \"./create-line-of-rectangle-roundeds-uploaded\";\nexport * from \"./create-line-of-rectangles-uploaded\";\nexport * from \"./create-line-of-triangle-roundeds-uploaded\";\nexport * from \"./create-line-of-triangles-uploaded\";\nexport * from \"./create-line-uploaded\";\nexport * from \"./create-line\";\nexport * from \"./create-null-uploaded\";\nexport * from \"./create-rectangle-rounded-uploaded\";\nexport * from \"./create-rectangle-uploaded\";\nexport * from \"./create-triangle-rounded-uploaded\";\nexport * from \"./create-triangle-uploaded\";\nexport * from \"./deserialize-bar\";\nexport * from \"./deserialize-button\";\nexport * from \"./deserialize-circle\";\nexport * from \"./deserialize-connector-line\";\nexport * from \"./deserialize-embedded\";\nexport * from \"./deserialize-group-shadowed\";\nexport * from \"./deserialize-group\";\nexport * from \"./deserialize-image-sdf\";\nexport * from \"./deserialize-image\";\nexport * from \"./deserialize-label\";\nexport * from \"./deserialize-line-of-circles\";\nexport * from \"./deserialize-line-of-rectangle-roundeds\";\nexport * from \"./deserialize-line-of-rectangles\";\nexport * from \"./deserialize-line-of-triangle-roundeds\";\nexport * from \"./deserialize-line-of-triangles\";\nexport * from \"./deserialize-line\";\nexport * from \"./deserialize-null\";\nexport * from \"./deserialize-rectangle-rounded\";\nexport * from \"./deserialize-rectangle\";\nexport * from \"./deserialize-triangle-rounded\";\nexport * from \"./deserialize-triangle\";\nexport * from \"./e-shape-bar-points\";\nexport * from \"./e-shape-bar-position\";\nexport * from \"./e-shape-bar\";\nexport * from \"./e-shape-base-hit-test-data\";\nexport * from \"./e-shape-base\";\nexport * from \"./e-shape-button-runtime-action-toggle\";\nexport * from \"./e-shape-button-runtime-action\";\nexport * from \"./e-shape-button-runtime\";\nexport * from \"./e-shape-button\";\nexport * from \"./e-shape-circle\";\nexport * from \"./e-shape-connector-line\";\nexport * from \"./e-shape-data-impl\";\nexport * from \"./e-shape-data-value-impl\";\nexport * from \"./e-shape-data-value-range-impl\";\nexport * from \"./e-shape-embedded-datum\";\nexport * from \"./e-shape-embedded-layer-container\";\nexport * from \"./e-shape-embedded-layer\";\nexport * from \"./e-shape-embedded\";\nexport * from \"./e-shape-embeddeds\";\nexport * from \"./e-shape-fill-impl-parent\";\nexport * from \"./e-shape-fill-impl\";\nexport * from \"./e-shape-gradients\";\nexport * from \"./e-shape-group-fill-editor\";\nexport * from \"./e-shape-group-fill-viewer\";\nexport * from \"./e-shape-group-points\";\nexport * from \"./e-shape-group-property-parent\";\nexport * from \"./e-shape-group-shadowed\";\nexport * from \"./e-shape-group-size-editor\";\nexport * from \"./e-shape-group-size-layout\";\nexport * from \"./e-shape-group-size-parent\";\nexport * from \"./e-shape-group-size-shadowed\";\nexport * from \"./e-shape-group-size-viewer\";\nexport * from \"./e-shape-group-size\";\nexport * from \"./e-shape-group-stroke-editor\";\nexport * from \"./e-shape-group-stroke-viewer\";\nexport * from \"./e-shape-group-text-align-editor\";\nexport * from \"./e-shape-group-text-align-viewer\";\nexport * from \"./e-shape-group-text-editor\";\nexport * from \"./e-shape-group-text-offset-editor\";\nexport * from \"./e-shape-group-text-offset-viewer\";\nexport * from \"./e-shape-group-text-outline-editor\";\nexport * from \"./e-shape-group-text-outline-viewer\";\nexport * from \"./e-shape-group-text-padding-editor\";\nexport * from \"./e-shape-group-text-padding-viewer\";\nexport * from \"./e-shape-group-text-spacing-editor\";\nexport * from \"./e-shape-group-text-spacing-viewer\";\nexport * from \"./e-shape-group-text-viewer\";\nexport * from \"./e-shape-group-viewer\";\nexport * from \"./e-shape-group\";\nexport * from \"./e-shape-image-sdf\";\nexport * from \"./e-shape-image\";\nexport * from \"./e-shape-label\";\nexport * from \"./e-shape-line-base-hit-part\";\nexport * from \"./e-shape-line-base-points-hit-tester-to-range\";\nexport * from \"./e-shape-line-base-points-hit-tester-to-threshold\";\nexport * from \"./e-shape-line-base-points-hit-tester\";\nexport * from \"./e-shape-line-base-points\";\nexport * from \"./e-shape-line-base\";\nexport * from \"./e-shape-line-of-any-points-fill-impl\";\nexport * from \"./e-shape-line-of-any-points-fill\";\nexport * from \"./e-shape-line-of-any-points-hit-tester-to-range\";\nexport * from \"./e-shape-line-of-any-points-hit-tester-to-threshold\";\nexport * from \"./e-shape-line-of-any-points-hit-tester\";\nexport * from \"./e-shape-line-of-any-points-impl\";\nexport * from \"./e-shape-line-of-any-points-point-impl\";\nexport * from \"./e-shape-line-of-any-points-point\";\nexport * from \"./e-shape-line-of-any-points-stroke-impl\";\nexport * from \"./e-shape-line-of-any-points-stroke\";\nexport * from \"./e-shape-line-of-any-points\";\nexport * from \"./e-shape-line-of-any-value\";\nexport * from \"./e-shape-line-of-any\";\nexport * from \"./e-shape-line-of-circles\";\nexport * from \"./e-shape-line-of-rectangle-roundeds\";\nexport * from \"./e-shape-line-of-rectangles\";\nexport * from \"./e-shape-line-of-triangle-roundeds\";\nexport * from \"./e-shape-line-of-triangles\";\nexport * from \"./e-shape-line-points\";\nexport * from \"./e-shape-line\";\nexport * from \"./e-shape-null\";\nexport * from \"./e-shape-primitive\";\nexport * from \"./e-shape-rectangle-pivoted\";\nexport * from \"./e-shape-rectangle-rounded\";\nexport * from \"./e-shape-rectangle\";\nexport * from \"./e-shape-stroke-impl-parent\";\nexport * from \"./e-shape-stroke-impl\";\nexport * from \"./e-shape-text-align-impl-parent\";\nexport * from \"./e-shape-text-align-impl\";\nexport * from \"./e-shape-text-impl-parent\";\nexport * from \"./e-shape-text-impl\";\nexport * from \"./e-shape-text-offset-impl-parent\";\nexport * from \"./e-shape-text-offset-impl\";\nexport * from \"./e-shape-text-outline-impl-parent\";\nexport * from \"./e-shape-text-outline-impl\";\nexport * from \"./e-shape-triangle-rounded\";\nexport * from \"./e-shape-triangle\";\nexport * from \"./hit-test-bbox\";\nexport * from \"./hit-test-circle\";\nexport * from \"./hit-test-rectangle-rounded\";\nexport * from \"./hit-test-rectangle\";\nexport * from \"./hit-test-triangle-rounded\";\nexport * from \"./hit-test-triangle\";\nexport * from \"./is-static\";\nexport * from \"./to-computed\";\nexport * from \"./to-dash\";\nexport * from \"./to-threshold-default\";\nexport * from \"./to-length\";\nexport * from \"./to-scale-invariant\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B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AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./build-bar\";\nexport * from \"./build-circle\";\nexport * from \"./build-color\";\nexport * from \"./build-image-sdf\";\nexport * from \"./build-line-of-any\";\nexport * from \"./build-line\";\nexport * from \"./build-null\";\nexport * from \"./build-rectangle-rounded\";\nexport * from \"./build-rectangle\";\nexport * from \"./build-text\";\nexport * from \"./build-triangle-rounded\";\nexport * from \"./build-triangle\";\nexport * from \"./builder-bar\";\nexport * from \"./builder-base\";\nexport * from \"./builder-circle\";\nexport * from \"./builder-image-sdf\";\nexport * from \"./builder-label\";\nexport * from \"./builder-line-of-any\";\nexport * from \"./builder-line-of-circles\";\nexport * from \"./builder-line-of-rectangle-roundeds\";\nexport * from \"./builder-line-of-rectangles\";\nexport * from \"./builder-line-of-triangle-roundeds\";\nexport * from \"./builder-line-of-triangles\";\nexport * from \"./builder-line\";\nexport * from \"./builder-marker-circle-head\";\nexport * from \"./builder-marker-circle-tail\";\nexport * from \"./builder-marker-circle\";\nexport * from \"./builder-marker-rectangle-head\";\nexport * from \"./builder-marker-rectangle-tail\";\nexport * from \"./builder-marker-rectangle\";\nexport * from \"./builder-marker-triangle-head\";\nexport * from \"./builder-marker-triangle-tail\";\nexport * from \"./builder-marker-triangle\";\nexport * from \"./builder-null\";\nexport * from \"./builder-rectangle-pivoted\";\nexport * from \"./builder-rectangle-rounded\";\nexport * from \"./builder-rectangle\";\nexport * from \"./builder-text\";\nexport * from \"./builder-triangle-rounded\";\nexport * from \"./builder-triangle\";\nexport * from \"./builder\";\nexport * from \"./builders\";\nexport * from \"./copy-clipping\";\nexport * from \"./copy-index\";\nexport * from \"./copy-step\";\nexport * from \"./copy-uv\";\nexport * from \"./copy-vertex\";\nexport * from \"./create-bar-uploaded\";\nexport * from \"./create-button-uploaded\";\nexport * from \"./create-circle-uploaded\";\nexport * from \"./create-rectangle-pivoted-uploaded\";\nexport * from \"./create-group-uploaded\";\nexport * from \"./create-image-sdf-uploaded\";\nexport * from \"./create-image-sdf\";\nexport * from \"./create-image\";\nexport * from \"./create-label-uploaded\";\nexport * from \"./create-line-of-any-uploaded\";\nexport * from \"./create-line-of-circles-uploaded\";\nexport * from \"./create-line-of-rectangle-roundeds-uploaded\";\nexport * from \"./create-line-of-rectangles-uploaded\";\nexport * from \"./create-line-of-triangle-roundeds-uploaded\";\nexport * from \"./create-line-of-triangles-uploaded\";\nexport * from \"./create-line-uploaded\";\nexport * from \"./create-line\";\nexport * from \"./create-null-uploaded\";\nexport * from \"./create-rectangle-rounded-uploaded\";\nexport * from \"./create-rectangle-uploaded\";\nexport * from \"./create-triangle-rounded-uploaded\";\nexport * from \"./create-triangle-uploaded\";\nexport * from \"./deserialize-all\";\nexport * from \"./deserialize-bar\";\nexport * from \"./deserialize-base\";\nexport * from \"./deserialize-button\";\nexport * from \"./deserialize-circle\";\nexport * from \"./deserialize-connector-line\";\nexport * from \"./deserialize-embedded\";\nexport * from \"./deserialize-gradient\";\nexport * from \"./deserialize-group-shadowed\";\nexport * from \"./deserialize-group\";\nexport * from \"./deserialize-image-sdf\";\nexport * from \"./deserialize-image\";\nexport * from \"./deserialize-label\";\nexport * from \"./deserialize-line-of-circles\";\nexport * from \"./deserialize-line-of-rectangle-roundeds\";\nexport * from \"./deserialize-line-of-rectangles\";\nexport * from \"./deserialize-line-of-triangle-roundeds\";\nexport * from \"./deserialize-line-of-triangles\";\nexport * from \"./deserialize-line\";\nexport * from \"./deserialize-null\";\nexport * from \"./deserialize-rectangle-rounded\";\nexport * from \"./deserialize-rectangle\";\nexport * from \"./deserialize-triangle-rounded\";\nexport * from \"./deserialize-triangle\";\nexport * from \"./deserialize\";\nexport * from \"./e-shape-bar-points\";\nexport * from \"./e-shape-bar-position\";\nexport * from \"./e-shape-bar\";\nexport * from \"./e-shape-base-hit-test-data\";\nexport * from \"./e-shape-base\";\nexport * from \"./e-shape-button-runtime-action-toggle\";\nexport * from \"./e-shape-button-runtime-action\";\nexport * from \"./e-shape-button-runtime\";\nexport * from \"./e-shape-button\";\nexport * from \"./e-shape-circle\";\nexport * from \"./e-shape-connector-line\";\nexport * from \"./e-shape-data-impl\";\nexport * from \"./e-shape-data-value-impl\";\nexport * from \"./e-shape-data-value-range-impl\";\nexport * from \"./e-shape-embedded-datum\";\nexport * from \"./e-shape-embedded-layer-container\";\nexport * from \"./e-shape-embedded-layer\";\nexport * from \"./e-shape-embedded\";\nexport * from \"./e-shape-embeddeds\";\nexport * from \"./e-shape-fill-impl-parent\";\nexport * from \"./e-shape-fill-impl\";\nexport * from \"./e-shape-group-fill-editor\";\nexport * from \"./e-shape-group-fill-viewer\";\nexport * from \"./e-shape-group-points\";\nexport * from \"./e-shape-group-property-parent\";\nexport * from \"./e-shape-group-shadowed\";\nexport * from \"./e-shape-group-size-editor\";\nexport * from \"./e-shape-group-size-layout\";\nexport * from \"./e-shape-group-size-parent\";\nexport * from \"./e-shape-group-size-shadowed\";\nexport * from \"./e-shape-group-size-viewer\";\nexport * from \"./e-shape-group-size\";\nexport * from \"./e-shape-group-stroke-editor\";\nexport * from \"./e-shape-group-stroke-viewer\";\nexport * from \"./e-shape-group-text-align-editor\";\nexport * from \"./e-shape-group-text-align-viewer\";\nexport * from \"./e-shape-group-text-editor\";\nexport * from \"./e-shape-group-text-offset-editor\";\nexport * from \"./e-shape-group-text-offset-viewer\";\nexport * from \"./e-shape-group-text-outline-editor\";\nexport * from \"./e-shape-group-text-outline-viewer\";\nexport * from \"./e-shape-group-text-padding-editor\";\nexport * from \"./e-shape-group-text-padding-viewer\";\nexport * from \"./e-shape-group-text-spacing-editor\";\nexport * from \"./e-shape-group-text-spacing-viewer\";\nexport * from \"./e-shape-group-text-viewer\";\nexport * from \"./e-shape-group-viewer\";\nexport * from \"./e-shape-group\";\nexport * from \"./e-shape-image-sdf\";\nexport * from \"./e-shape-image\";\nexport * from \"./e-shape-label\";\nexport * from \"./e-shape-line-base-hit-part\";\nexport * from \"./e-shape-line-base-points-hit-tester-to-range\";\nexport * from \"./e-shape-line-base-points-hit-tester-to-threshold\";\nexport * from \"./e-shape-line-base-points-hit-tester\";\nexport * from \"./e-shape-line-base-points\";\nexport * from \"./e-shape-line-base\";\nexport * from \"./e-shape-line-of-any-points-fill-impl\";\nexport * from \"./e-shape-line-of-any-points-fill\";\nexport * from \"./e-shape-line-of-any-points-hit-tester-to-range\";\nexport * from \"./e-shape-line-of-any-points-hit-tester-to-threshold\";\nexport * from \"./e-shape-line-of-any-points-hit-tester\";\nexport * from \"./e-shape-line-of-any-points-impl\";\nexport * from \"./e-shape-line-of-any-points-point-impl\";\nexport * from \"./e-shape-line-of-any-points-point\";\nexport * from \"./e-shape-line-of-any-points-stroke-impl\";\nexport * from \"./e-shape-line-of-any-points-stroke\";\nexport * from \"./e-shape-line-of-any-points\";\nexport * from \"./e-shape-line-of-any-value\";\nexport * from \"./e-shape-line-of-any\";\nexport * from \"./e-shape-line-of-circles\";\nexport * from \"./e-shape-line-of-rectangle-roundeds\";\nexport * from \"./e-shape-line-of-rectangles\";\nexport * from \"./e-shape-line-of-triangle-roundeds\";\nexport * from \"./e-shape-line-of-triangles\";\nexport * from \"./e-shape-line-points\";\nexport * from \"./e-shape-line\";\nexport * from \"./e-shape-null\";\nexport * from \"./e-shape-primitive\";\nexport * from \"./e-shape-rectangle-pivoted\";\nexport * from \"./e-shape-rectangle-rounded\";\nexport * from \"./e-shape-rectangle\";\nexport * from \"./e-shape-stroke-impl-parent\";\nexport * from \"./e-shape-stroke-impl\";\nexport * from \"./e-shape-text-align-impl-parent\";\nexport * from \"./e-shape-text-align-impl\";\nexport * from \"./e-shape-text-impl-parent\";\nexport * from \"./e-shape-text-impl\";\nexport * from \"./e-shape-text-offset-impl-parent\";\nexport * from \"./e-shape-text-offset-impl\";\nexport * from \"./e-shape-text-outline-impl-parent\";\nexport * from \"./e-shape-text-outline-impl\";\nexport * from \"./e-shape-triangle-rounded\";\nexport * from \"./e-shape-triangle\";\nexport * from \"./hit-test-bbox\";\nexport * from \"./hit-test-circle\";\nexport * from \"./hit-test-rectangle-rounded\";\nexport * from \"./hit-test-rectangle\";\nexport * from \"./hit-test-triangle-rounded\";\nexport * from \"./hit-test-triangle\";\nexport * from \"./is-static\";\nexport * from \"./to-computed\";\nexport * from \"./to-dash\";\nexport * from \"./to-gradient-image-url\";\nexport * from \"./to-gradient-serialized\";\nexport * from \"./to-image-element\";\nexport * from \"./to-length\";\nexport * from \"./to-resized\";\nexport * from \"./to-scale-invariant\";\nexport * from \"./to-size-normalized\";\nexport * from \"./to-size-rounded\";\nexport * from \"./to-threshold-default\";\n"]}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { toSvgUrl } from "../../util/to-svg-url";
|
|
6
|
+
import { UtilRgb } from "../../util/util-rgb";
|
|
7
|
+
export var toGradientImageUrl = function (gradient) {
|
|
8
|
+
var direction = gradient.direction;
|
|
9
|
+
var points = gradient.points;
|
|
10
|
+
var stops = "";
|
|
11
|
+
for (var i = 0, imax = points.length; i < imax; ++i) {
|
|
12
|
+
var point = points[i];
|
|
13
|
+
var color = UtilRgb.toCode(point.color);
|
|
14
|
+
var alpha = point.alpha;
|
|
15
|
+
var offset = point.position * 100;
|
|
16
|
+
stops += "<stop offset=\"" + offset + "%\" stop-color=\"#" + color + "\" stop-opacity=\"" + alpha + "\" />";
|
|
17
|
+
}
|
|
18
|
+
var radian = (direction * Math.PI) / 180;
|
|
19
|
+
var dx = 0.5 * Math.cos(radian);
|
|
20
|
+
var dy = -0.5 * Math.sin(radian);
|
|
21
|
+
var url = toSvgUrl(
|
|
22
|
+
/* eslint-disable prettier/prettier */
|
|
23
|
+
"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\">" +
|
|
24
|
+
"<defs>" +
|
|
25
|
+
("<linearGradient id=\"o2glkm3aeu2oio\" x1=\"" + (0.5 - dx) + "\" x2=\"" + (0.5 + dx) + "\" y1=\"" + (0.5 - dy) + "\" y2=\"" + (0.5 + dy) + "\">") +
|
|
26
|
+
stops +
|
|
27
|
+
"</linearGradient>" +
|
|
28
|
+
"</defs>" +
|
|
29
|
+
"<rect x=\"0\" y=\"0\" width=\"32\" height=\"32\" stroke=\"none\" fill=\"url(#o2glkm3aeu2oio)\" />" +
|
|
30
|
+
"</svg>"
|
|
31
|
+
/* eslint-enable prettier/prettier */
|
|
32
|
+
);
|
|
33
|
+
return url;
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=to-gradient-image-url.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-gradient-image-url.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/to-gradient-image-url.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,MAAM,CAAC,IAAM,kBAAkB,GAAG,UAAC,QAA4B;IAC9D,IAAM,SAAS,GAAG,QAAQ,CAAC,SAAS,CAAC;IACrC,IAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;IAE/B,IAAI,KAAK,GAAG,EAAE,CAAC;IACf,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,EAAE;QACpD,IAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QACxB,IAAM,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC1C,IAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;QAC1B,IAAM,MAAM,GAAG,KAAK,CAAC,QAAQ,GAAG,GAAG,CAAC;QACpC,KAAK,IAAI,oBAAiB,MAAM,0BAAmB,KAAK,0BAAmB,KAAK,UAAM,CAAC;KACvF;IAED,IAAM,MAAM,GAAG,CAAC,SAAS,GAAG,IAAI,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC;IAC3C,IAAM,EAAE,GAAG,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAClC,IAAM,EAAE,GAAG,CAAC,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAEnC,IAAM,GAAG,GAAG,QAAQ;IACnB,sCAAsC;IACtC,6FAAqF;QACpF,QAAQ;SACP,iDAA2C,GAAG,GAAG,EAAE,kBAAS,GAAG,GAAG,EAAE,kBAAS,GAAG,GAAG,EAAE,kBAAS,GAAG,GAAG,EAAE,SAAI,CAAA;QACzG,KAAK;QACN,mBAAmB;QACpB,SAAS;QACT,mGAAuF;QACxF,QAAQ;IACR,qCAAqC;KACrC,CAAC;IAEF,OAAO,GAAG,CAAC;AACZ,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { toSvgUrl } from \"../../util/to-svg-url\";\nimport { UtilRgb } from \"../../util/util-rgb\";\nimport { EShapeGradientLike } from \"../e-shape-gradient\";\n\nexport const toGradientImageUrl = (gradient: EShapeGradientLike): string => {\n\tconst direction = gradient.direction;\n\tconst points = gradient.points;\n\n\tlet stops = \"\";\n\tfor (let i = 0, imax = points.length; i < imax; ++i) {\n\t\tconst point = points[i];\n\t\tconst color = UtilRgb.toCode(point.color);\n\t\tconst alpha = point.alpha;\n\t\tconst offset = point.position * 100;\n\t\tstops += `<stop offset=\"${offset}%\" stop-color=\"#${color}\" stop-opacity=\"${alpha}\" />`;\n\t}\n\n\tconst radian = (direction * Math.PI) / 180;\n\tconst dx = 0.5 * Math.cos(radian);\n\tconst dy = -0.5 * Math.sin(radian);\n\n\tconst url = toSvgUrl(\n\t\t/* eslint-disable prettier/prettier */\n\t\t`<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"32\" height=\"32\" viewBox=\"0 0 32 32\">` +\n\t\t\t`<defs>` +\n\t\t\t\t`<linearGradient id=\"o2glkm3aeu2oio\" x1=\"${0.5 - dx}\" x2=\"${0.5 + dx}\" y1=\"${0.5 - dy}\" y2=\"${0.5 + dy}\">` +\n\t\t\t\t\tstops +\n\t\t\t\t`</linearGradient>` +\n\t\t\t`</defs>` +\n\t\t\t`<rect x=\"0\" y=\"0\" width=\"32\" height=\"32\" stroke=\"none\" fill=\"url(#o2glkm3aeu2oio)\" />` +\n\t\t`</svg>`\n\t\t/* eslint-enable prettier/prettier */\n\t);\n\n\treturn url;\n};\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
export var toGradientSerialized = function (gradient) {
|
|
6
|
+
var points = gradient.points;
|
|
7
|
+
var result = "[" + gradient.direction;
|
|
8
|
+
for (var i = 0, imax = points.length, j = 1; i < imax; i += 1, j += 3) {
|
|
9
|
+
var point = points[i];
|
|
10
|
+
result += "," + point.color + "," + point.alpha + "," + point.position;
|
|
11
|
+
}
|
|
12
|
+
result += "]";
|
|
13
|
+
return result;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=to-gradient-serialized.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"to-gradient-serialized.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/to-gradient-serialized.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,MAAM,CAAC,IAAM,oBAAoB,GAAG,UAAC,QAA4B;IAChE,IAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;IAC/B,IAAI,MAAM,GAAG,MAAI,QAAQ,CAAC,SAAW,CAAC;IACtC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE;QACtE,IAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QACxB,MAAM,IAAI,MAAI,KAAK,CAAC,KAAK,SAAI,KAAK,CAAC,KAAK,SAAI,KAAK,CAAC,QAAU,CAAC;KAC7D;IACD,MAAM,IAAI,GAAG,CAAC;IACd,OAAO,MAAM,CAAC;AACf,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeGradientLike } from \"../e-shape-gradient\";\n\nexport const toGradientSerialized = (gradient: EShapeGradientLike): string => {\n\tconst points = gradient.points;\n\tlet result = `[${gradient.direction}`;\n\tfor (let i = 0, imax = points.length, j = 1; i < imax; i += 1, j += 3) {\n\t\tconst point = points[i];\n\t\tresult += `,${point.color},${point.alpha},${point.position}`;\n\t}\n\tresult += \"]\";\n\treturn result;\n};\n"]}
|