@wcardinal/wcardinal-ui 0.372.0 → 0.373.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/shape/e-shape-connector-container-impl.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/e-shape-connector-container.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/e-shape-connector-edge-container-impl.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/e-shape-connector-edge-container.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/e-shape-connector-edge-impl.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/e-shape-connector-edge.d.ts +1 -1
- package/dist/types/wcardinal/ui/shape/e-shape-deleter.d.ts +2 -0
- package/dist/types/wcardinal/ui/shape/e-shape.d.ts +6 -8
- package/dist/types/wcardinal/ui/shape/variant/e-shape-base.d.ts +10 -13
- package/dist/types/wcardinal/ui/shape/variant/e-shape-connector-line.d.ts +6 -5
- package/dist/types/wcardinal/ui/shape/variant/e-shape-group-size-parent.d.ts +4 -3
- package/dist/types/wcardinal/ui/shape/variant/e-shape-lock-part.d.ts +8 -0
- package/dist/types/wcardinal/ui/shape/variant/e-shape-lock.d.ts +9 -0
- package/dist/types/wcardinal/ui/shape/variant/index.d.ts +2 -0
- package/dist/wcardinal/ui/d-chart-axis-base-bar.js +3 -2
- package/dist/wcardinal/ui/d-chart-axis-base-bar.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-base-tick-container.js +7 -6
- package/dist/wcardinal/ui/d-chart-axis-base-tick-container.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-axis-guide-simple-shape-impl.js +7 -6
- package/dist/wcardinal/ui/d-chart-axis-guide-simple-shape-impl.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-series-line-of-any.js +3 -2
- package/dist/wcardinal/ui/d-chart-series-line-of-any.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-series-line.js +3 -2
- package/dist/wcardinal/ui/d-chart-series-line.js.map +1 -1
- package/dist/wcardinal/ui/d-chart-series-linear.js +3 -2
- package/dist/wcardinal/ui/d-chart-series-linear.js.map +1 -1
- package/dist/wcardinal/ui/d-diagram-canvas-editor-snap.js +5 -4
- package/dist/wcardinal/ui/d-diagram-canvas-editor-snap.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-capability.js +1 -1
- package/dist/wcardinal/ui/shape/e-shape-capability.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-connector-container-impl.js +4 -2
- package/dist/wcardinal/ui/shape/e-shape-connector-container-impl.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-connector-container.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-connector-edge-container-impl.js +3 -3
- package/dist/wcardinal/ui/shape/e-shape-connector-edge-container-impl.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-connector-edge-container.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-connector-edge-impl.js +2 -2
- package/dist/wcardinal/ui/shape/e-shape-connector-edge-impl.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-connector-edge.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-deleter.js +18 -2
- package/dist/wcardinal/ui/shape/e-shape-deleter.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-runtime-impl.js +5 -4
- package/dist/wcardinal/ui/shape/e-shape-runtime-impl.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-transforms.js +5 -4
- package/dist/wcardinal/ui/shape/e-shape-transforms.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/deserialize-connector-line.js +3 -2
- package/dist/wcardinal/ui/shape/variant/deserialize-connector-line.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-base.js +59 -73
- package/dist/wcardinal/ui/shape/variant/e-shape-base.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-connector-line.js +18 -18
- package/dist/wcardinal/ui/shape/variant/e-shape-connector-line.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-group-size-editor.js +33 -26
- package/dist/wcardinal/ui/shape/variant/e-shape-group-size-editor.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-group-size-layout.js +3 -2
- package/dist/wcardinal/ui/shape/variant/e-shape-group-size-layout.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-group-size-parent.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-group.js +2 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-group.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-lock-part.js +8 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-lock-part.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-lock.js +31 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-lock.js.map +1 -0
- package/dist/wcardinal/ui/shape/variant/index.js +2 -0
- package/dist/wcardinal/ui/shape/variant/index.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/to-resized.js +3 -2
- package/dist/wcardinal/ui/shape/variant/to-resized.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-atlas.js +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-atlas.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-atlas.js +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-atlas.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +2 -2
- 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 +2 -2
- 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 +215 -168
- package/dist/wcardinal-ui.js +213 -166
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,6 +6,7 @@ import { Matrix, Point } from "pixi.js";
|
|
|
6
6
|
import { EShapeCapabilities } from "../e-shape-capabilities";
|
|
7
7
|
import { EShapeCapability } from "../e-shape-capability";
|
|
8
8
|
import { EShapeTransforms } from "../e-shape-transforms";
|
|
9
|
+
import { EShapeLockPart } from "./e-shape-lock-part";
|
|
9
10
|
var EShapeGroupSizeLayout = /** @class */ (function () {
|
|
10
11
|
function EShapeGroupSizeLayout(shape, bx, by) {
|
|
11
12
|
this.shape = shape;
|
|
@@ -51,9 +52,9 @@ var EShapeGroupSizeLayout = /** @class */ (function () {
|
|
|
51
52
|
.translate(-pivotX, -pivotY)
|
|
52
53
|
.scale(sx, sy)
|
|
53
54
|
.translate(+pivotX, +pivotY);
|
|
54
|
-
shape.
|
|
55
|
+
shape.lock(EShapeLockPart.TRANSFORM);
|
|
55
56
|
EShapeTransforms.applyLocal(shape, transform, EShapeCapability.ALL, childBase);
|
|
56
|
-
shape.
|
|
57
|
+
shape.unlock(EShapeLockPart.TRANSFORM, false);
|
|
57
58
|
};
|
|
58
59
|
EShapeGroupSizeLayout.WORK_TRANSFORM = new Matrix();
|
|
59
60
|
return EShapeGroupSizeLayout;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-group-size-layout.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-group-size-layout.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAExC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"e-shape-group-size-layout.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcard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CAAC,UAAU,CAAC,KAAK,EAAE,SAAS,EAAE,gBAAgB,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;QAC/E,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IAC/C,CAAC;IAjEgB,oCAAc,GAAW,IAAI,MAAM,EAAE,CAAC;IAkExD,4BAAC;CAAA,AAnED,IAmEC;SAnEY,qBAAqB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Matrix, Point } from \"pixi.js\";\nimport { EShape } from \"../e-shape\";\nimport { EShapeCapabilities } from \"../e-shape-capabilities\";\nimport { EShapeCapability } from \"../e-shape-capability\";\nimport { EShapeLayout } from \"../e-shape-layout\";\nimport { EShapeTransforms } from \"../e-shape-transforms\";\nimport { EShapeLockPart } from \"./e-shape-lock-part\";\n\nexport class EShapeGroupSizeLayout implements EShapeLayout {\n\tprotected static WORK_TRANSFORM: Matrix = new Matrix();\n\n\tprotected shape: EShape;\n\tprotected base: Point;\n\tprotected shapeBase: Point;\n\tprotected transform: Matrix;\n\n\tprotected capable: boolean;\n\n\tconstructor(shape: EShape, bx: number, by: number) {\n\t\tthis.shape = shape;\n\n\t\t// Base group size\n\t\tthis.base = new Point(bx, by);\n\n\t\t// Base shape size\n\t\tconst size = shape.size;\n\t\tthis.shapeBase = new Point(size.x, size.y);\n\n\t\t// Transform\n\t\tthis.transform = new Matrix();\n\t\tshape.updateTransform();\n\t\tshape.transform.localTransform.copyTo(this.transform);\n\n\t\tthis.capable =\n\t\t\tEShapeCapabilities.contains(shape, EShapeCapability.POSITION) &&\n\t\t\tEShapeCapabilities.contains(shape, EShapeCapability.WIDTH) &&\n\t\t\tEShapeCapabilities.contains(shape, EShapeCapability.HEIGHT) &&\n\t\t\tEShapeCapabilities.contains(shape, EShapeCapability.ROTATION) &&\n\t\t\tEShapeCapabilities.contains(shape, EShapeCapability.SKEW);\n\t}\n\n\tisCompatible(shape: EShape): boolean {\n\t\treturn this.shape === shape;\n\t}\n\n\treset(shape: EShape, baseX: number, baseY: number): void {\n\t\tthis.base.set(baseX, baseY);\n\n\t\t// Base shape size\n\t\tconst size = shape.size;\n\t\tthis.shapeBase.copyFrom(size);\n\n\t\t// Transform\n\t\tshape.updateTransform();\n\t\tshape.transform.localTransform.copyTo(this.transform);\n\t}\n\n\tupdate(shape: EShape, baseX: number, baseY: number, pivotX: number, pivotY: number): void {\n\t\tif (!this.capable) {\n\t\t\treturn;\n\t\t}\n\t\tconst sx = baseX / this.base.x;\n\t\tconst sy = baseY / this.base.y;\n\t\tconst childBase = this.shapeBase;\n\t\tconst transform = EShapeGroupSizeLayout.WORK_TRANSFORM;\n\t\ttransform\n\t\t\t.identity()\n\t\t\t.append(this.transform)\n\t\t\t.translate(-pivotX, -pivotY)\n\t\t\t.scale(sx, sy)\n\t\t\t.translate(+pivotX, +pivotY);\n\t\tshape.lock(EShapeLockPart.TRANSFORM);\n\t\tEShapeTransforms.applyLocal(shape, transform, EShapeCapability.ALL, childBase);\n\t\tshape.unlock(EShapeLockPart.TRANSFORM, false);\n\t}\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-group-size-parent.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-group-size-parent.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"../e-shape\";\nimport { EShapeTransform } from \"../e-shape-transform\";\n\nexport interface EShapeGroupSizeParent {\n\treadonly children: EShape[];\n\treadonly transform: EShapeTransform;\n\
|
|
1
|
+
{"version":3,"file":"e-shape-group-size-parent.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-group-size-parent.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"../e-shape\";\nimport { EShapeTransform } from \"../e-shape-transform\";\nimport { EShapeLockPart } from \"./e-shape-lock-part\";\n\nexport interface EShapeGroupSizeParent {\n\treadonly children: EShape[];\n\treadonly transform: EShapeTransform;\n\tlock(part: EShapeLockPart): void;\n\tunlock(part: EShapeLockPart, invoke: boolean): void;\n\tonSizeChange(): void;\n\tupdateTransform(): void;\n}\n"]}
|
|
@@ -15,6 +15,7 @@ import { EShapeGroupStrokeEditor } from "./e-shape-group-stroke-editor";
|
|
|
15
15
|
import { EShapeDataImpl } from "../e-shape-data-impl";
|
|
16
16
|
import { EShapeTextImpl } from "./e-shape-text-impl";
|
|
17
17
|
import { EShapeResourceManagerDeserializationMode } from "../e-shape-resource-manager-deserialization-mode";
|
|
18
|
+
import { EShapeConnectors } from "../e-shape-connectors";
|
|
18
19
|
var EShapeGroup = /** @class */ (function (_super) {
|
|
19
20
|
__extends(EShapeGroup, _super);
|
|
20
21
|
function EShapeGroup(mode, type) {
|
|
@@ -175,6 +176,7 @@ var EShapeGroup = /** @class */ (function (_super) {
|
|
|
175
176
|
clone.parent = result;
|
|
176
177
|
result.children.push(clone);
|
|
177
178
|
}
|
|
179
|
+
EShapeConnectors.moveAll(children, result.children, children, result.children);
|
|
178
180
|
result.onChildTransformChange();
|
|
179
181
|
result.toDirty();
|
|
180
182
|
return result;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-group.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-group.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAOrD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM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*/\n\nimport { IPoint } from \"pixi.js\";\nimport { EShapeCorner } from \"../e-shape-corner\";\nimport { EShapeDefaults } from \"../e-shape-defaults\";\nimport { EShapeFill } from \"../e-shape-fill\";\nimport { EShapeGradientLike } from \"../e-shape-gradient\";\nimport { EShapePoints } from \"../e-shape-points\";\nimport { EShapeStroke } from \"../e-shape-stroke\";\nimport { EShapeData } from \"../e-shape-data\";\nimport { EShapeText } from \"../e-shape-text\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeBase } from \"./e-shape-base\";\nimport { EShapeGroupFillEditor } from \"./e-shape-group-fill-editor\";\nimport { EShapeGroupPoints } from \"./e-shape-group-points\";\nimport { EShapeGroupPropertyParent } from \"./e-shape-group-property-parent\";\nimport { EShapeGroupSize } from \"./e-shape-group-size\";\nimport { EShapeGroupSizeEditor } from \"./e-shape-group-size-editor\";\nimport { EShapeGroupSizeViewer } from \"./e-shape-group-size-viewer\";\nimport { EShapeGroupStrokeEditor } from \"./e-shape-group-stroke-editor\";\nimport { EShapeDataImpl } from \"../e-shape-data-impl\";\nimport { EShapeTextImpl } from \"./e-shape-text-impl\";\nimport { EShapeResourceManagerDeserializationMode } from \"../e-shape-resource-manager-deserialization-mode\";\n\nexport class EShapeGroup extends EShapeBase implements EShapeGroupPropertyParent {\n\tsize: EShapeGroupSize;\n\tfill: EShapeFill;\n\tstroke: EShapeStroke;\n\t/** @deprecated in favor of {@link data} */\n\ttag: EShapeData;\n\tdata: EShapeData;\n\ttext: EShapeText;\n\n\tprotected _mode: EShapeResourceManagerDeserializationMode;\n\tprotected _points?: EShapePoints;\n\n\tconstructor(\n\t\tmode: EShapeResourceManagerDeserializationMode,\n\t\ttype: EShapeType = EShapeType.GROUP\n\t) {\n\t\tsuper(type);\n\t\tthis._mode = mode;\n\t\tconst data = new EShapeDataImpl();\n\t\tthis.data = data;\n\t\tthis.tag = data;\n\t\tthis.size = this.newGroupSize(mode);\n\t\tthis.fill = this.newGroupFill();\n\t\tthis.stroke = this.newGroupStroke();\n\t\tthis.text = this.newGroupText();\n\t\tthis._points = this.newGroupPoints();\n\t}\n\n\tget mode(): EShapeResourceManagerDeserializationMode {\n\t\treturn this._mode;\n\t}\n\n\tprotected newGroupSize(mode: EShapeResourceManagerDeserializationMode): EShapeGroupSize {\n\t\tconst sizeX = EShapeDefaults.SIZE_X;\n\t\tconst sizeY = EShapeDefaults.SIZE_Y;\n\t\tif (mode !== EShapeResourceManagerDeserializationMode.VIEWER) {\n\t\t\treturn new EShapeGroupSizeEditor(this, sizeX, sizeY, this.isGroupSizeFittable());\n\t\t} else {\n\t\t\treturn new EShapeGroupSizeViewer(this, sizeX, sizeY, sizeX, sizeY);\n\t\t}\n\t}\n\n\tprotected isGroupSizeFittable(): boolean {\n\t\treturn true;\n\t}\n\n\tprotected newGroupFill(): EShapeFill {\n\t\treturn new EShapeGroupFillEditor(this);\n\t}\n\n\tprotected newGroupStroke(): EShapeStroke {\n\t\treturn new EShapeGroupStrokeEditor(this);\n\t}\n\n\tprotected newGroupText(): EShapeText {\n\t\treturn new EShapeTextImpl(\n\t\t\tthis,\n\t\t\tEShapeDefaults.TEXT_VALUE,\n\t\t\tEShapeDefaults.TEXT_COLOR,\n\t\t\tEShapeDefaults.TEXT_ALPHA,\n\t\t\tEShapeDefaults.TEXT_FAMILY,\n\t\t\tEShapeDefaults.TEXT_SIZE\n\t\t);\n\t}\n\n\tprotected newGroupPoints(): EShapePoints | undefined {\n\t\treturn new EShapeGroupPoints(this);\n\t}\n\n\tprotected getBoundsSize(): IPoint {\n\t\tconst size = this.size;\n\t\tif (size instanceof EShapeGroupSizeViewer) {\n\t\t\treturn size.base;\n\t\t} else {\n\t\t\treturn size;\n\t\t}\n\t}\n\n\tonChildTransformChange(): void {\n\t\tsuper.onChildTransformChange();\n\t\tthis.size.fit();\n\t}\n\n\tget corner(): EShapeCorner {\n\t\tconst children = this.children;\n\t\tif (0 < children.length) {\n\t\t\treturn children[children.length - 1].corner;\n\t\t}\n\t\treturn EShapeCorner.ALL;\n\t}\n\n\tset corner(corner: EShapeCorner) {\n\t\tconst children = this.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tchildren[i].corner = corner;\n\t\t}\n\t}\n\n\tget gradient(): EShapeGradientLike | undefined {\n\t\tconst children = this.children;\n\t\tfor (let i = children.length - 1; 0 <= i; --i) {\n\t\t\tconst gradient = children[i].gradient;\n\t\t\tif (gradient != null) {\n\t\t\t\treturn gradient;\n\t\t\t}\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tset gradient(gradient: EShapeGradientLike | undefined) {\n\t\tconst children = this.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tchildren[i].gradient = gradient;\n\t\t}\n\t}\n\n\tget radius(): number {\n\t\tconst children = this.children;\n\t\tif (0 < children.length) {\n\t\t\treturn children[children.length - 1].radius;\n\t\t}\n\t\treturn 0.5;\n\t}\n\n\tset radius(radius: number) {\n\t\tconst children = this.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tchildren[i].radius = radius;\n\t\t}\n\t}\n\n\tget image(): HTMLImageElement | undefined {\n\t\tconst children = this.children;\n\t\tfor (let i = children.length - 1; 0 <= i; --i) {\n\t\t\tconst image = children[i].image;\n\t\t\tif (image != null) {\n\t\t\t\treturn image;\n\t\t\t}\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tset image(image: HTMLImageElement | undefined) {\n\t\tconst children = this.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tchildren[i].image = image;\n\t\t}\n\t}\n\n\tget points(): EShapePoints | undefined {\n\t\tconst children = this.children;\n\t\tfor (let i = children.length - 1; 0 <= i; --i) {\n\t\t\tconst points = children[i].points;\n\t\t\tif (points != null) {\n\t\t\t\treturn this._points;\n\t\t\t}\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tset points(points: EShapePoints | undefined) {\n\t\t// DO NOTHING\n\t}\n\n\tclone(): EShapeGroup {\n\t\tconst result = this.newClone().copy(this);\n\t\tconst children = this.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tconst clone = children[i].clone();\n\t\t\tclone.parent = result;\n\t\t\tresult.children.push(clone);\n\t\t}\n\t\tresult.onChildTransformChange();\n\t\tresult.toDirty();\n\t\treturn result;\n\t}\n\n\tprotected newClone(): EShapeGroup {\n\t\tconst constructor = this.constructor as typeof EShapeGroup;\n\t\treturn new constructor(this._mode, this.type);\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\treturn false;\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"e-shape-group.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-group.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAOrD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAG3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,wCAAwC,EAAE,MAAM,kDAAkD,CAAC;AAC5G,OAAO,EAAE,gBAAgB,EAAE,MAAM,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C,GAAG,CAAC,EAAE,IAAI,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,EAAE;YACtD,IAAM,KAAK,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC;YAClC,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;YACtB,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC5B;QACD,gBAAgB,CAAC,OAAO,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;QAC/E,MAAM,CAAC,sBAAsB,EAAE,CAAC;QAChC,MAAM,CAAC,OAAO,EAAE,CAAC;QACjB,OAAO,MAAM,CAAC;IACf,CAAC;IAES,8BAAQ,GAAlB;QACC,IAAM,WAAW,GAAG,IAAI,CAAC,WAAiC,CAAC;QAC3D,OAAO,IAAI,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;IAED,iCAAW,GAAX,UACC,CAAS,EACT,CAAS,EACT,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU,EACV,EAAU;QAEV,OAAO,KAAK,CAAC;IACd,CAAC;IACF,kBAAC;AAAD,CAAC,AAlMD,CAAiC,UAAU,GAkM1C","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IPoint } from \"pixi.js\";\nimport { EShapeCorner } from \"../e-shape-corner\";\nimport { EShapeDefaults } from \"../e-shape-defaults\";\nimport { EShapeFill } from \"../e-shape-fill\";\nimport { EShapeGradientLike } from \"../e-shape-gradient\";\nimport { EShapePoints } from \"../e-shape-points\";\nimport { EShapeStroke } from \"../e-shape-stroke\";\nimport { EShapeData } from \"../e-shape-data\";\nimport { EShapeText } from \"../e-shape-text\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeBase } from \"./e-shape-base\";\nimport { EShapeGroupFillEditor } from \"./e-shape-group-fill-editor\";\nimport { EShapeGroupPoints } from \"./e-shape-group-points\";\nimport { EShapeGroupPropertyParent } from \"./e-shape-group-property-parent\";\nimport { EShapeGroupSize } from \"./e-shape-group-size\";\nimport { EShapeGroupSizeEditor } from \"./e-shape-group-size-editor\";\nimport { EShapeGroupSizeViewer } from \"./e-shape-group-size-viewer\";\nimport { EShapeGroupStrokeEditor } from \"./e-shape-group-stroke-editor\";\nimport { EShapeDataImpl } from \"../e-shape-data-impl\";\nimport { EShapeTextImpl } from \"./e-shape-text-impl\";\nimport { EShapeResourceManagerDeserializationMode } from \"../e-shape-resource-manager-deserialization-mode\";\nimport { EShapeConnectors } from \"../e-shape-connectors\";\n\nexport class EShapeGroup extends EShapeBase implements EShapeGroupPropertyParent {\n\tsize: EShapeGroupSize;\n\tfill: EShapeFill;\n\tstroke: EShapeStroke;\n\t/** @deprecated in favor of {@link data} */\n\ttag: EShapeData;\n\tdata: EShapeData;\n\ttext: EShapeText;\n\n\tprotected _mode: EShapeResourceManagerDeserializationMode;\n\tprotected _points?: EShapePoints;\n\n\tconstructor(\n\t\tmode: EShapeResourceManagerDeserializationMode,\n\t\ttype: EShapeType = EShapeType.GROUP\n\t) {\n\t\tsuper(type);\n\t\tthis._mode = mode;\n\t\tconst data = new EShapeDataImpl();\n\t\tthis.data = data;\n\t\tthis.tag = data;\n\t\tthis.size = this.newGroupSize(mode);\n\t\tthis.fill = this.newGroupFill();\n\t\tthis.stroke = this.newGroupStroke();\n\t\tthis.text = this.newGroupText();\n\t\tthis._points = this.newGroupPoints();\n\t}\n\n\tget mode(): EShapeResourceManagerDeserializationMode {\n\t\treturn this._mode;\n\t}\n\n\tprotected newGroupSize(mode: EShapeResourceManagerDeserializationMode): EShapeGroupSize {\n\t\tconst sizeX = EShapeDefaults.SIZE_X;\n\t\tconst sizeY = EShapeDefaults.SIZE_Y;\n\t\tif (mode !== EShapeResourceManagerDeserializationMode.VIEWER) {\n\t\t\treturn new EShapeGroupSizeEditor(this, sizeX, sizeY, this.isGroupSizeFittable());\n\t\t} else {\n\t\t\treturn new EShapeGroupSizeViewer(this, sizeX, sizeY, sizeX, sizeY);\n\t\t}\n\t}\n\n\tprotected isGroupSizeFittable(): boolean {\n\t\treturn true;\n\t}\n\n\tprotected newGroupFill(): EShapeFill {\n\t\treturn new EShapeGroupFillEditor(this);\n\t}\n\n\tprotected newGroupStroke(): EShapeStroke {\n\t\treturn new EShapeGroupStrokeEditor(this);\n\t}\n\n\tprotected newGroupText(): EShapeText {\n\t\treturn new EShapeTextImpl(\n\t\t\tthis,\n\t\t\tEShapeDefaults.TEXT_VALUE,\n\t\t\tEShapeDefaults.TEXT_COLOR,\n\t\t\tEShapeDefaults.TEXT_ALPHA,\n\t\t\tEShapeDefaults.TEXT_FAMILY,\n\t\t\tEShapeDefaults.TEXT_SIZE\n\t\t);\n\t}\n\n\tprotected newGroupPoints(): EShapePoints | undefined {\n\t\treturn new EShapeGroupPoints(this);\n\t}\n\n\tprotected getBoundsSize(): IPoint {\n\t\tconst size = this.size;\n\t\tif (size instanceof EShapeGroupSizeViewer) {\n\t\t\treturn size.base;\n\t\t} else {\n\t\t\treturn size;\n\t\t}\n\t}\n\n\tonChildTransformChange(): void {\n\t\tsuper.onChildTransformChange();\n\t\tthis.size.fit();\n\t}\n\n\tget corner(): EShapeCorner {\n\t\tconst children = this.children;\n\t\tif (0 < children.length) {\n\t\t\treturn children[children.length - 1].corner;\n\t\t}\n\t\treturn EShapeCorner.ALL;\n\t}\n\n\tset corner(corner: EShapeCorner) {\n\t\tconst children = this.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tchildren[i].corner = corner;\n\t\t}\n\t}\n\n\tget gradient(): EShapeGradientLike | undefined {\n\t\tconst children = this.children;\n\t\tfor (let i = children.length - 1; 0 <= i; --i) {\n\t\t\tconst gradient = children[i].gradient;\n\t\t\tif (gradient != null) {\n\t\t\t\treturn gradient;\n\t\t\t}\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tset gradient(gradient: EShapeGradientLike | undefined) {\n\t\tconst children = this.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tchildren[i].gradient = gradient;\n\t\t}\n\t}\n\n\tget radius(): number {\n\t\tconst children = this.children;\n\t\tif (0 < children.length) {\n\t\t\treturn children[children.length - 1].radius;\n\t\t}\n\t\treturn 0.5;\n\t}\n\n\tset radius(radius: number) {\n\t\tconst children = this.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tchildren[i].radius = radius;\n\t\t}\n\t}\n\n\tget image(): HTMLImageElement | undefined {\n\t\tconst children = this.children;\n\t\tfor (let i = children.length - 1; 0 <= i; --i) {\n\t\t\tconst image = children[i].image;\n\t\t\tif (image != null) {\n\t\t\t\treturn image;\n\t\t\t}\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tset image(image: HTMLImageElement | undefined) {\n\t\tconst children = this.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tchildren[i].image = image;\n\t\t}\n\t}\n\n\tget points(): EShapePoints | undefined {\n\t\tconst children = this.children;\n\t\tfor (let i = children.length - 1; 0 <= i; --i) {\n\t\t\tconst points = children[i].points;\n\t\t\tif (points != null) {\n\t\t\t\treturn this._points;\n\t\t\t}\n\t\t}\n\t\treturn undefined;\n\t}\n\n\tset points(points: EShapePoints | undefined) {\n\t\t// DO NOTHING\n\t}\n\n\tclone(): EShapeGroup {\n\t\tconst result = this.newClone().copy(this);\n\t\tconst children = this.children;\n\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\tconst clone = children[i].clone();\n\t\t\tclone.parent = result;\n\t\t\tresult.children.push(clone);\n\t\t}\n\t\tEShapeConnectors.moveAll(children, result.children, children, result.children);\n\t\tresult.onChildTransformChange();\n\t\tresult.toDirty();\n\t\treturn result;\n\t}\n\n\tprotected newClone(): EShapeGroup {\n\t\tconst constructor = this.constructor as typeof EShapeGroup;\n\t\treturn new constructor(this._mode, this.type);\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\treturn false;\n\t}\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e-shape-lock-part.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-lock-part.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,cAAc,GAAG;IAC7B,SAAS,EAAE,CAAC;IACZ,gBAAgB,EAAE,CAAC;IACnB,QAAQ,EAAE,CAAC;IACX,sBAAsB,EAAE,CAAC;IACzB,SAAS,EAAE,CAAC;CACH,CAAC","sourcesContent":["export const EShapeLockPart = {\n\tTRANSFORM: 1,\n\tTRANSFORM_PARENT: 2,\n\tUPLOADED: 4,\n\tTRANSFORM_AND_UPLOADED: 7,\n\tCONNECTOR: 8\n} as const;\n\nexport type EShapeLockPart = number;\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var EShapeLock = /** @class */ (function () {
|
|
2
|
+
function EShapeLock() {
|
|
3
|
+
this._count = 0;
|
|
4
|
+
this._flag = 0;
|
|
5
|
+
}
|
|
6
|
+
EShapeLock.prototype.lock = function () {
|
|
7
|
+
this._count += 1;
|
|
8
|
+
if (this._count === 1) {
|
|
9
|
+
this._flag = 0;
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
return false;
|
|
13
|
+
};
|
|
14
|
+
EShapeLock.prototype.unlock = function () {
|
|
15
|
+
this._count -= 1;
|
|
16
|
+
return this._count <= 0 && this._flag !== 0;
|
|
17
|
+
};
|
|
18
|
+
EShapeLock.prototype.isLocked = function (high) {
|
|
19
|
+
if (0 < this._count) {
|
|
20
|
+
this._flag |= high ? 3 : 1;
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
return false;
|
|
24
|
+
};
|
|
25
|
+
EShapeLock.prototype.isHigh = function () {
|
|
26
|
+
return 1 < this._flag;
|
|
27
|
+
};
|
|
28
|
+
return EShapeLock;
|
|
29
|
+
}());
|
|
30
|
+
export { EShapeLock };
|
|
31
|
+
//# sourceMappingURL=e-shape-lock.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"e-shape-lock.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/e-shape-lock.ts"],"names":[],"mappings":"AAAA;IAIC;QACC,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;QAChB,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;IAChB,CAAC;IAED,yBAAI,GAAJ;QACC,IAAI,CAAC,MAAM,IAAI,CAAC,CAAC;QACjB,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;YACtB,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;YACf,OAAO,IAAI,CAAC;SACZ;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IAED,2BAAM,GAAN;QACC,IAAI,CAAC,MAAM,IAAI,CAAC,CAAC;QACjB,OAAO,IAAI,CAAC,MAAM,IAAI,CAAC,IAAI,IAAI,CAAC,KAAK,KAAK,CAAC,CAAC;IAC7C,CAAC;IAED,6BAAQ,GAAR,UAAS,IAAc;QACtB,IAAI,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE;YACpB,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC3B,OAAO,IAAI,CAAC;SACZ;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IAED,2BAAM,GAAN;QACC,OAAO,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC;IACvB,CAAC;IACF,iBAAC;AAAD,CAAC,AAlCD,IAkCC","sourcesContent":["export class EShapeLock {\n\tprotected _count: number;\n\tprotected _flag: number;\n\n\tconstructor() {\n\t\tthis._count = 0;\n\t\tthis._flag = 0;\n\t}\n\n\tlock(): boolean {\n\t\tthis._count += 1;\n\t\tif (this._count === 1) {\n\t\t\tthis._flag = 0;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\tunlock(): boolean {\n\t\tthis._count -= 1;\n\t\treturn this._count <= 0 && this._flag !== 0;\n\t}\n\n\tisLocked(high?: boolean): boolean {\n\t\tif (0 < this._count) {\n\t\t\tthis._flag |= high ? 3 : 1;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\tisHigh(): boolean {\n\t\treturn 1 < this._flag;\n\t}\n}\n"]}
|
|
@@ -170,6 +170,8 @@ export * from "./e-shape-line-of-triangle-roundeds";
|
|
|
170
170
|
export * from "./e-shape-line-of-triangles";
|
|
171
171
|
export * from "./e-shape-line-points";
|
|
172
172
|
export * from "./e-shape-line";
|
|
173
|
+
export * from "./e-shape-lock-part";
|
|
174
|
+
export * from "./e-shape-lock";
|
|
173
175
|
export * from "./e-shape-null";
|
|
174
176
|
export * from "./e-shape-primitive";
|
|
175
177
|
export * from "./e-shape-rectangle-pivoted";
|
|
@@ -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,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAg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BAAoB,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-semicircle\";\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-semicircle\";\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-semicircle-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-elbow\";\nexport * from \"./deserialize-connector-line\";\nexport * from \"./deserialize-embedded-acceptor-edge\";\nexport * from \"./deserialize-embedded-layer\";\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-pivoted\";\nexport * from \"./deserialize-rectangle-rounded\";\nexport * from \"./deserialize-rectangle\";\nexport * from \"./deserialize-semicircle\";\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-elbow-points-filler\";\nexport * from \"./e-shape-connector-elbow\";\nexport * from \"./e-shape-connector-line\";\nexport * from \"./e-shape-embedded-acceptor-edge\";\nexport * from \"./e-shape-embedded-acceptor\";\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-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-semicircle\";\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-semicircle\";\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"]}
|
|
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,oBAAoB,CAAC;AACnC,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,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(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-semicircle\";\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-semicircle\";\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-semicircle-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-elbow\";\nexport * from \"./deserialize-connector-line\";\nexport * from \"./deserialize-embedded-acceptor-edge\";\nexport * from \"./deserialize-embedded-layer\";\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-pivoted\";\nexport * from \"./deserialize-rectangle-rounded\";\nexport * from \"./deserialize-rectangle\";\nexport * from \"./deserialize-semicircle\";\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-elbow-points-filler\";\nexport * from \"./e-shape-connector-elbow\";\nexport * from \"./e-shape-connector-line\";\nexport * from \"./e-shape-embedded-acceptor-edge\";\nexport * from \"./e-shape-embedded-acceptor\";\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-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-lock-part\";\nexport * from \"./e-shape-lock\";\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-semicircle\";\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-semicircle\";\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"]}
|
|
@@ -6,11 +6,12 @@ import { toSizeNormalized } from "./to-size-normalized";
|
|
|
6
6
|
import { toSizeRounded } from "./to-size-rounded";
|
|
7
7
|
import { EShapeCapabilities } from "../e-shape-capabilities";
|
|
8
8
|
import { EShapeCapability } from "../e-shape-capability";
|
|
9
|
+
import { EShapeLockPart } from "./e-shape-lock-part";
|
|
9
10
|
export var toResized = function (shape, from, to, centerMode, isPerfect) {
|
|
10
11
|
var cposition = EShapeCapabilities.contains(shape, EShapeCapability.POSITION);
|
|
11
12
|
var cwidth = EShapeCapabilities.contains(shape, EShapeCapability.WIDTH);
|
|
12
13
|
var cheight = EShapeCapabilities.contains(shape, EShapeCapability.HEIGHT);
|
|
13
|
-
shape.
|
|
14
|
+
shape.lock(EShapeLockPart.UPLOADED);
|
|
14
15
|
var position = shape.transform.position;
|
|
15
16
|
if (centerMode) {
|
|
16
17
|
var dx = Math.abs(to.x - from.x);
|
|
@@ -107,6 +108,6 @@ export var toResized = function (shape, from, to, centerMode, isPerfect) {
|
|
|
107
108
|
}
|
|
108
109
|
}
|
|
109
110
|
}
|
|
110
|
-
shape.
|
|
111
|
+
shape.unlock(EShapeLockPart.UPLOADED, true);
|
|
111
112
|
};
|
|
112
113
|
//# sourceMappingURL=to-resized.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-resized.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/to-resized.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"to-resized.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/to-resized.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAErD,MAAM,CAAC,IAAM,SAAS,GAAG,UACxB,KAAa,EACb,IAAY,EACZ,EAAU,EACV,UAAmB,EACnB,SAAkB;IAElB,IAAM,SAAS,GAAG,kBAAkB,CAAC,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IAChF,IAAM,MAAM,GAAG,kBAAkB,CAAC,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAC1E,IAAM,OAAO,GAAG,kBAAkB,CAAC,QAAQ,CAAC,KAAK,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IAC5E,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;IACpC,IAAM,QAAQ,GAAG,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC;IAC1C,IAAI,UAAU,EAAE;QACf,IAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,C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,CAAC;YACjC,IAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;YACxB,IAAI,MAAM,IAAI,OAAO,EAAE;gBACtB,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;aACf;iBAAM,IAAI,MAAM,EAAE;gBAClB,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;aACX;iBAAM,IAAI,OAAO,EAAE;gBACnB,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC;aACX;YACD,IAAI,SAAS,EAAE;gBACd,QAAQ,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;aACnB;SACD;KACD;IACD,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;AAC7C,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { IPoint } from \"pixi.js\";\nimport { EShape } from \"../e-shape\";\nimport { toSizeNormalized } from \"./to-size-normalized\";\nimport { toSizeRounded } from \"./to-size-rounded\";\nimport { EShapeCapabilities } from \"../e-shape-capabilities\";\nimport { EShapeCapability } from \"../e-shape-capability\";\nimport { EShapeLockPart } from \"./e-shape-lock-part\";\n\nexport const toResized = (\n\tshape: EShape,\n\tfrom: IPoint,\n\tto: IPoint,\n\tcenterMode: boolean,\n\tisPerfect: boolean\n): void => {\n\tconst cposition = EShapeCapabilities.contains(shape, EShapeCapability.POSITION);\n\tconst cwidth = EShapeCapabilities.contains(shape, EShapeCapability.WIDTH);\n\tconst cheight = EShapeCapabilities.contains(shape, EShapeCapability.HEIGHT);\n\tshape.lock(EShapeLockPart.UPLOADED);\n\tconst position = shape.transform.position;\n\tif (centerMode) {\n\t\tconst dx = Math.abs(to.x - from.x);\n\t\tconst dy = Math.abs(to.y - from.y);\n\t\tif (isPerfect) {\n\t\t\tconst d = Math.max(dx, dy);\n\t\t\tconst s = toSizeNormalized(d + d);\n\t\t\tconst x = toSizeRounded(from.x);\n\t\t\tconst y = toSizeRounded(from.y);\n\t\t\tconst size = shape.size;\n\t\t\tif (cwidth && cheight) {\n\t\t\t\tsize.set(s, s);\n\t\t\t} else if (cwidth) {\n\t\t\t\tsize.x = s;\n\t\t\t} else if (cheight) {\n\t\t\t\tsize.y = s;\n\t\t\t}\n\t\t\tif (cposition) {\n\t\t\t\tposition.set(x, y);\n\t\t\t}\n\t\t} else {\n\t\t\tconst w = toSizeNormalized(dx + dx);\n\t\t\tconst h = toSizeNormalized(dy + dy);\n\t\t\tconst x = toSizeRounded(from.x);\n\t\t\tconst y = toSizeRounded(from.y);\n\t\t\tconst size = shape.size;\n\t\t\tif (cwidth && cheight) {\n\t\t\t\tsize.set(w, h);\n\t\t\t} else if (cwidth) {\n\t\t\t\tsize.x = w;\n\t\t\t} else if (cheight) {\n\t\t\t\tsize.y = h;\n\t\t\t}\n\t\t\tif (cposition) {\n\t\t\t\tposition.set(x, y);\n\t\t\t}\n\t\t}\n\t} else {\n\t\tif (isPerfect) {\n\t\t\tconst dx = to.x - from.x;\n\t\t\tconst dy = to.y - from.y;\n\t\t\tconst d = Math.max(Math.abs(dx), Math.abs(dy));\n\t\t\tconst x2 = from.x + (dx < 0 ? -d : +d);\n\t\t\tconst y2 = from.y + (dy < 0 ? -d : +d);\n\t\t\tconst hd = d * 0.5;\n\t\t\tconst s = toSizeNormalized(d);\n\t\t\tconst x = toSizeRounded(Math.min(from.x, x2) + hd);\n\t\t\tconst y = toSizeRounded(Math.min(from.y, y2) + hd);\n\t\t\tconst size = shape.size;\n\t\t\tif (cwidth && cheight) {\n\t\t\t\tsize.set(s, s);\n\t\t\t} else if (cwidth) {\n\t\t\t\tsize.x = s;\n\t\t\t} else if (cheight) {\n\t\t\t\tsize.y = s;\n\t\t\t}\n\t\t\tif (cposition) {\n\t\t\t\tposition.set(x, y);\n\t\t\t}\n\t\t} else {\n\t\t\tconst x0 = Math.min(from.x, to.x);\n\t\t\tconst y0 = Math.min(from.y, to.y);\n\t\t\tconst x1 = Math.max(from.x, to.x);\n\t\t\tconst y1 = Math.max(from.y, to.y);\n\t\t\tconst dx = x1 - x0;\n\t\t\tconst dy = y1 - y0;\n\t\t\tconst px = dx * 0.5;\n\t\t\tconst py = dy * 0.5;\n\t\t\tconst w = toSizeNormalized(dx);\n\t\t\tconst h = toSizeNormalized(dy);\n\t\t\tconst x = toSizeRounded(x0 + px);\n\t\t\tconst y = toSizeRounded(y0 + py);\n\t\t\tconst size = shape.size;\n\t\t\tif (cwidth && cheight) {\n\t\t\t\tsize.set(w, h);\n\t\t\t} else if (cwidth) {\n\t\t\t\tsize.x = w;\n\t\t\t} else if (cheight) {\n\t\t\t\tsize.y = h;\n\t\t\t}\n\t\t\tif (cposition) {\n\t\t\t\tposition.set(x, y);\n\t\t\t}\n\t\t}\n\t}\n\tshape.unlock(EShapeLockPart.UPLOADED, true);\n};\n"]}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { UtilSvgAtlasBuilder } from "../../util/util-svg-atlas-builder";
|
|
6
|
-
export var DThemeDarkAtlas = new UtilSvgAtlasBuilder(
|
|
6
|
+
export var DThemeDarkAtlas = new UtilSvgAtlasBuilder(512, 1, 3);
|
|
7
7
|
//# sourceMappingURL=d-theme-dark-atlas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"d-theme-dark-atlas.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/dark/d-theme-dark-atlas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,MAAM,CAAC,IAAM,eAAe,GAAG,IAAI,mBAAmB,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { UtilSvgAtlasBuilder } from \"../../util/util-svg-atlas-builder\";\n\nexport const DThemeDarkAtlas = new UtilSvgAtlasBuilder(
|
|
1
|
+
{"version":3,"file":"d-theme-dark-atlas.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/dark/d-theme-dark-atlas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,MAAM,CAAC,IAAM,eAAe,GAAG,IAAI,mBAAmB,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { UtilSvgAtlasBuilder } from \"../../util/util-svg-atlas-builder\";\n\nexport const DThemeDarkAtlas = new UtilSvgAtlasBuilder(512, 1, 3);\n"]}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { UtilSvgAtlasBuilder } from "../../util/util-svg-atlas-builder";
|
|
6
|
-
export var DThemeWhiteAtlas = new UtilSvgAtlasBuilder(
|
|
6
|
+
export var DThemeWhiteAtlas = new UtilSvgAtlasBuilder(512, 1, 3);
|
|
7
7
|
//# sourceMappingURL=d-theme-white-atlas.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"d-theme-white-atlas.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/d-theme-white-atlas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,MAAM,CAAC,IAAM,gBAAgB,GAAG,IAAI,mBAAmB,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { UtilSvgAtlasBuilder } from \"../../util/util-svg-atlas-builder\";\n\nexport const DThemeWhiteAtlas = new UtilSvgAtlasBuilder(
|
|
1
|
+
{"version":3,"file":"d-theme-white-atlas.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/d-theme-white-atlas.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AAExE,MAAM,CAAC,IAAM,gBAAgB,GAAG,IAAI,mBAAmB,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { UtilSvgAtlasBuilder } from \"../../util/util-svg-atlas-builder\";\n\nexport const DThemeWhiteAtlas = new UtilSvgAtlasBuilder(512, 1, 3);\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.373.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* Copyright (C) 2019 Toshiba Corporation
|
|
18
18
|
* SPDX-License-Identifier: Apache-2.0
|
|
19
19
|
*/
|
|
20
|
-
var DThemeDarkAtlas = new UtilSvgAtlasBuilder(
|
|
20
|
+
var DThemeDarkAtlas = new UtilSvgAtlasBuilder(512, 1, 3);
|
|
21
21
|
|
|
22
22
|
/*
|
|
23
23
|
* Copyright (C) 2019 Toshiba Corporation
|