@wcardinal/wcardinal-ui 0.150.2 → 0.151.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/action/{e-shape-action-value-deserializer.d.ts → deserialize-action-value.d.ts} +1 -4
- 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/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/wcardinal/ui/d-diagrams.js +2 -2
- package/dist/wcardinal/ui/d-diagrams.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/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-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-embeddeds.js +0 -13
- package/dist/wcardinal/ui/shape/variant/e-shape-embeddeds.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.js +1 -1
- package/dist/wcardinal-ui-theme-dark.min.js +1 -1
- package/dist/wcardinal-ui-theme-white.js +1 -1
- package/dist/wcardinal-ui-theme-white.min.js +1 -1
- package/dist/wcardinal-ui.cjs.js +2475 -2459
- package/dist/wcardinal-ui.js +1910 -1894
- 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/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/shape/action/e-shape-action-runtime-transform-resize-height-relative.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { __extends } from "tslib";
|
|
6
6
|
import { EShapeRuntimeReset } from "../e-shape-runtime";
|
|
7
|
-
import {
|
|
7
|
+
import { toSizeNormalized } from "../variant/to-size-normalized";
|
|
8
8
|
import { EShapeActionRuntimeTransformResize } from "./e-shape-action-runtime-transform-resize";
|
|
9
9
|
var EShapeActionRuntimeTransformResizeHeightRelative = /** @class */ (function (_super) {
|
|
10
10
|
__extends(EShapeActionRuntimeTransformResizeHeightRelative, _super);
|
|
@@ -20,7 +20,7 @@ var EShapeActionRuntimeTransformResizeHeightRelative = /** @class */ (function (
|
|
|
20
20
|
var size = shape.size;
|
|
21
21
|
var writtenHeight = !!(runtime.written & EShapeRuntimeReset.HEIGHT);
|
|
22
22
|
var oldSizeY = writtenHeight ? size.y : runtime.size.y;
|
|
23
|
-
size.y =
|
|
23
|
+
size.y = toSizeNormalized(oldSizeY * sizeRelative);
|
|
24
24
|
runtime.written |= EShapeRuntimeReset.HEIGHT;
|
|
25
25
|
this.adjustPosition(shape, runtime, 0, oldSizeY - size.y, 0.5, this.origin);
|
|
26
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-action-runtime-transform-resize-height-relative.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-height-relative.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAiB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"e-shape-action-runtime-transform-resize-height-relative.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-height-relative.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAiB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,kCAAkC,EAAE,MAAM,2CAA2C,CAAC;AAG/F;IAAsE,oEAAkC;IAGvG,0DAAY,KAAuC;QAAnD,YACC,kBAAM,KAAK,EAAE,kBAAkB,CAAC,MAAM,CAAC,SAGvC;QAFA,KAAI,CAAC,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC;QAC5B,KAAI,CAAC,KAAK,IAAI,kBAAkB,CAAC,QAAQ,CAAC;;IAC3C,CAAC;IAED,kEAAO,GAAP,UAAQ,KAAa,EAAE,OAAsB,EAAE,IAAY;QAC1D,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE;YAChC,IAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;YAC5C,IAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;YACxB,IAAM,aAAa,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;YACtE,IAAM,QAAQ,GAAG,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;YACzD,IAAI,CAAC,CAAC,GAAG,gBAAgB,CAAC,QAAQ,GAAG,YAAY,CAAC,CAAC;YACnD,OAAO,CAAC,OAAO,IAAI,kBAAkB,CAAC,MAAM,CAAC;YAC7C,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;SAC5E;IACF,CAAC;IACF,uDAAC;AAAD,CAAC,AApBD,CAAsE,kCAAkC,GAoBvG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime, EShapeRuntimeReset } from \"../e-shape-runtime\";\nimport { toSizeNormalized } from \"../variant/to-size-normalized\";\nimport { EShapeActionRuntimeTransformResize } from \"./e-shape-action-runtime-transform-resize\";\nimport { EShapeActionValueTransformResize } from \"./e-shape-action-value-transform-resize\";\n\nexport class EShapeActionRuntimeTransformResizeHeightRelative extends EShapeActionRuntimeTransformResize {\n\tprotected origin: number;\n\n\tconstructor(value: EShapeActionValueTransformResize) {\n\t\tsuper(value, EShapeRuntimeReset.HEIGHT);\n\t\tthis.origin = value.originY;\n\t\tthis.reset |= EShapeRuntimeReset.POSITION;\n\t}\n\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void {\n\t\tif (this.condition(shape, time)) {\n\t\t\tconst sizeRelative = this.size(shape, time);\n\t\t\tconst size = shape.size;\n\t\t\tconst writtenHeight = !!(runtime.written & EShapeRuntimeReset.HEIGHT);\n\t\t\tconst oldSizeY = writtenHeight ? size.y : runtime.size.y;\n\t\t\tsize.y = toSizeNormalized(oldSizeY * sizeRelative);\n\t\t\truntime.written |= EShapeRuntimeReset.HEIGHT;\n\t\t\tthis.adjustPosition(shape, runtime, 0, oldSizeY - size.y, 0.5, this.origin);\n\t\t}\n\t}\n}\n"]}
|
package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-size-absolute.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { __extends } from "tslib";
|
|
6
6
|
import { EShapeRuntimeReset } from "../e-shape-runtime";
|
|
7
|
-
import {
|
|
7
|
+
import { toSizeNormalized } from "../variant/to-size-normalized";
|
|
8
8
|
import { EShapeActionRuntimeTransformResize } from "./e-shape-action-runtime-transform-resize";
|
|
9
9
|
var EShapeActionRuntimeTransformResizeSizeAbsolute = /** @class */ (function (_super) {
|
|
10
10
|
__extends(EShapeActionRuntimeTransformResizeSizeAbsolute, _super);
|
|
@@ -17,7 +17,7 @@ var EShapeActionRuntimeTransformResizeSizeAbsolute = /** @class */ (function (_s
|
|
|
17
17
|
}
|
|
18
18
|
EShapeActionRuntimeTransformResizeSizeAbsolute.prototype.execute = function (shape, runtime, time) {
|
|
19
19
|
if (this.condition(shape, time)) {
|
|
20
|
-
var sizeAbsolute =
|
|
20
|
+
var sizeAbsolute = toSizeNormalized(this.size(shape, time));
|
|
21
21
|
var size = shape.size;
|
|
22
22
|
var writtenWidth = !!(runtime.written & EShapeRuntimeReset.WIDTH);
|
|
23
23
|
var writtenHeight = !!(runtime.written & EShapeRuntimeReset.HEIGHT);
|
package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-size-absolute.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-action-runtime-transform-resize-size-absolute.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-size-absolute.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAiB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"e-shape-action-runtime-transform-resize-size-absolute.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-size-absolute.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAiB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO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AI,CAAC,CAAC,EACjB,QAAQ,GAAG,IAAI,CAAC,CAAC,EACjB,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,OAAO,CACZ,CAAC;SACF;IACF,CAAC;IACF,qDAAC;AAAD,CAAC,AA/BD,CAAoE,kCAAkC,GA+BrG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime, EShapeRuntimeReset } from \"../e-shape-runtime\";\nimport { toSizeNormalized } from \"../variant/to-size-normalized\";\nimport { EShapeActionRuntimeTransformResize } from \"./e-shape-action-runtime-transform-resize\";\nimport { EShapeActionValueTransformResize } from \"./e-shape-action-value-transform-resize\";\n\nexport class EShapeActionRuntimeTransformResizeSizeAbsolute extends EShapeActionRuntimeTransformResize {\n\tprotected originX: number;\n\tprotected originY: number;\n\n\tconstructor(value: EShapeActionValueTransformResize) {\n\t\tsuper(value, EShapeRuntimeReset.SIZE);\n\t\tthis.originX = value.originX;\n\t\tthis.originY = value.originY;\n\t\tthis.reset |= EShapeRuntimeReset.POSITION;\n\t}\n\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void {\n\t\tif (this.condition(shape, time)) {\n\t\t\tconst sizeAbsolute = toSizeNormalized(this.size(shape, time));\n\t\t\tconst size = shape.size;\n\t\t\tconst writtenWidth = !!(runtime.written & EShapeRuntimeReset.WIDTH);\n\t\t\tconst writtenHeight = !!(runtime.written & EShapeRuntimeReset.HEIGHT);\n\t\t\tconst oldSizeX = writtenWidth ? size.x : runtime.size.x;\n\t\t\tconst oldSizeY = writtenHeight ? size.y : runtime.size.y;\n\t\t\tsize.set(sizeAbsolute, sizeAbsolute);\n\t\t\truntime.written |= EShapeRuntimeReset.SIZE;\n\t\t\tthis.adjustPosition(\n\t\t\t\tshape,\n\t\t\t\truntime,\n\t\t\t\toldSizeX - size.x,\n\t\t\t\toldSizeY - size.y,\n\t\t\t\tthis.originX,\n\t\t\t\tthis.originY\n\t\t\t);\n\t\t}\n\t}\n}\n"]}
|
package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-size-relative.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { __extends } from "tslib";
|
|
6
6
|
import { EShapeRuntimeReset } from "../e-shape-runtime";
|
|
7
|
-
import {
|
|
7
|
+
import { toSizeNormalized } from "../variant/to-size-normalized";
|
|
8
8
|
import { EShapeActionRuntimeTransformResize } from "./e-shape-action-runtime-transform-resize";
|
|
9
9
|
var EShapeActionRuntimeTransformResizeSizeRelative = /** @class */ (function (_super) {
|
|
10
10
|
__extends(EShapeActionRuntimeTransformResizeSizeRelative, _super);
|
|
@@ -23,7 +23,7 @@ var EShapeActionRuntimeTransformResizeSizeRelative = /** @class */ (function (_s
|
|
|
23
23
|
var writtenHeight = !!(runtime.written & EShapeRuntimeReset.HEIGHT);
|
|
24
24
|
var oldSizeX = writtenWidth ? size.x : runtime.size.x;
|
|
25
25
|
var oldSizeY = writtenHeight ? size.y : runtime.size.y;
|
|
26
|
-
size.set(
|
|
26
|
+
size.set(toSizeNormalized(oldSizeX * sizeRelative), toSizeNormalized(oldSizeY * sizeRelative));
|
|
27
27
|
runtime.written |= EShapeRuntimeReset.SIZE;
|
|
28
28
|
this.adjustPosition(shape, runtime, oldSizeX - size.x, oldSizeY - size.y, this.originX, this.originY);
|
|
29
29
|
}
|
package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-size-relative.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-action-runtime-transform-resize-size-relative.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-size-relative.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAiB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"e-shape-action-runtime-transform-resize-size-relative.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-size-relative.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAiB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,kCAAkC,EAAE,MAAM,2CAA2C,CAAC;AAG/F;IAAoE,kEAAkC;IAIrG,wDAAY,KAAuC;QAAnD,YACC,kBAAM,KAAK,EAAE,kBAAkB,CAAC,IAAI,CAAC,SAIrC;QAHA,KAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;QAC7B,KAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;QAC7B,KAAI,CAAC,KAAK,IAAI,kBAAkB,CAAC,QAAQ,CAAC;;IAC3C,CAAC;IAED,gEAAO,GAAP,UAAQ,KAAa,EAAE,OAAsB,EAAE,IAAY;QAC1D,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE;YAChC,IAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;YAC5C,IAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;YACxB,IAAM,YAAY,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;YACpE,IAAM,aAAa,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;YACtE,IAAM,QAAQ,GAAG,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;YACxD,IAAM,QAAQ,GAAG,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;YACzD,IAAI,CAAC,GAAG,CACP,gBAAgB,CAAC,QAAQ,GAAG,YAAY,CAAC,EACzC,gBAAgB,CAAC,QAAQ,GAAG,YAAY,CAAC,CACzC,CAAC;YACF,OAAO,CAAC,OAAO,IAAI,kBAAkB,CAAC,IAAI,CAAC;YAC3C,IAAI,CAAC,cAAc,CAClB,KAAK,EACL,OAAO,EACP,QAAQ,GAAG,IAAI,CAAC,CAAC,EACjB,QAAQ,GAAG,IAAI,CAAC,CAAC,EACjB,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,OAAO,CACZ,CAAC;SACF;IACF,CAAC;IACF,qDAAC;AAAD,CAAC,AAlCD,CAAoE,kCAAkC,GAkCrG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime, EShapeRuntimeReset } from \"../e-shape-runtime\";\nimport { toSizeNormalized } from \"../variant/to-size-normalized\";\nimport { EShapeActionRuntimeTransformResize } from \"./e-shape-action-runtime-transform-resize\";\nimport { EShapeActionValueTransformResize } from \"./e-shape-action-value-transform-resize\";\n\nexport class EShapeActionRuntimeTransformResizeSizeRelative extends EShapeActionRuntimeTransformResize {\n\tprotected originX: number;\n\tprotected originY: number;\n\n\tconstructor(value: EShapeActionValueTransformResize) {\n\t\tsuper(value, EShapeRuntimeReset.SIZE);\n\t\tthis.originX = value.originX;\n\t\tthis.originY = value.originY;\n\t\tthis.reset |= EShapeRuntimeReset.POSITION;\n\t}\n\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void {\n\t\tif (this.condition(shape, time)) {\n\t\t\tconst sizeRelative = this.size(shape, time);\n\t\t\tconst size = shape.size;\n\t\t\tconst writtenWidth = !!(runtime.written & EShapeRuntimeReset.WIDTH);\n\t\t\tconst writtenHeight = !!(runtime.written & EShapeRuntimeReset.HEIGHT);\n\t\t\tconst oldSizeX = writtenWidth ? size.x : runtime.size.x;\n\t\t\tconst oldSizeY = writtenHeight ? size.y : runtime.size.y;\n\t\t\tsize.set(\n\t\t\t\ttoSizeNormalized(oldSizeX * sizeRelative),\n\t\t\t\ttoSizeNormalized(oldSizeY * sizeRelative)\n\t\t\t);\n\t\t\truntime.written |= EShapeRuntimeReset.SIZE;\n\t\t\tthis.adjustPosition(\n\t\t\t\tshape,\n\t\t\t\truntime,\n\t\t\t\toldSizeX - size.x,\n\t\t\t\toldSizeY - size.y,\n\t\t\t\tthis.originX,\n\t\t\t\tthis.originY\n\t\t\t);\n\t\t}\n\t}\n}\n"]}
|
package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-width-absolute.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { __extends } from "tslib";
|
|
6
6
|
import { EShapeRuntimeReset } from "../e-shape-runtime";
|
|
7
|
-
import {
|
|
7
|
+
import { toSizeNormalized } from "../variant/to-size-normalized";
|
|
8
8
|
import { EShapeActionRuntimeTransformResize } from "./e-shape-action-runtime-transform-resize";
|
|
9
9
|
var EShapeActionRuntimeTransformResizeWidthAbsolute = /** @class */ (function (_super) {
|
|
10
10
|
__extends(EShapeActionRuntimeTransformResizeWidthAbsolute, _super);
|
|
@@ -20,7 +20,7 @@ var EShapeActionRuntimeTransformResizeWidthAbsolute = /** @class */ (function (_
|
|
|
20
20
|
var size = shape.size;
|
|
21
21
|
var writtenWidth = !!(runtime.written & EShapeRuntimeReset.WIDTH);
|
|
22
22
|
var oldSizeX = writtenWidth ? size.x : runtime.size.x;
|
|
23
|
-
size.x =
|
|
23
|
+
size.x = toSizeNormalized(sizeAbsolute);
|
|
24
24
|
runtime.written |= EShapeRuntimeReset.WIDTH;
|
|
25
25
|
this.adjustPosition(shape, runtime, oldSizeX - size.x, 0, this.origin, 0.5);
|
|
26
26
|
}
|
package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-width-absolute.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-action-runtime-transform-resize-width-absolute.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-width-absolute.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAiB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"e-shape-action-runtime-transform-resize-width-absolute.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-width-absolute.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAiB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,kCAAkC,EAAE,MAAM,2CAA2C,CAAC;AAG/F;IAAqE,mEAAkC;IAGtG,yDAAY,KAAuC;QAAnD,YACC,kBAAM,KAAK,EAAE,kBAAkB,CAAC,KAAK,CAAC,SAGtC;QAFA,KAAI,CAAC,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC;QAC5B,KAAI,CAAC,KAAK,IAAI,kBAAkB,CAAC,QAAQ,CAAC;;IAC3C,CAAC;IAED,iEAAO,GAAP,UAAQ,KAAa,EAAE,OAAsB,EAAE,IAAY;QAC1D,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE;YAChC,IAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;YAC5C,IAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC;YACxB,IAAM,YAAY,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;YACpE,IAAM,QAAQ,GAAG,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;YACxD,IAAI,CAAC,CAAC,GAAG,gBAAgB,CAAC,YAAY,CAAC,CAAC;YACxC,OAAO,CAAC,OAAO,IAAI,kBAAkB,CAAC,KAAK,CAAC;YAC5C,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;SAC5E;IACF,CAAC;IACF,sDAAC;AAAD,CAAC,AApBD,CAAqE,kCAAkC,GAoBtG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime, EShapeRuntimeReset } from \"../e-shape-runtime\";\nimport { toSizeNormalized } from \"../variant/to-size-normalized\";\nimport { EShapeActionRuntimeTransformResize } from \"./e-shape-action-runtime-transform-resize\";\nimport { EShapeActionValueTransformResize } from \"./e-shape-action-value-transform-resize\";\n\nexport class EShapeActionRuntimeTransformResizeWidthAbsolute extends EShapeActionRuntimeTransformResize {\n\tprotected origin: number;\n\n\tconstructor(value: EShapeActionValueTransformResize) {\n\t\tsuper(value, EShapeRuntimeReset.WIDTH);\n\t\tthis.origin = value.originX;\n\t\tthis.reset |= EShapeRuntimeReset.POSITION;\n\t}\n\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void {\n\t\tif (this.condition(shape, time)) {\n\t\t\tconst sizeAbsolute = this.size(shape, time);\n\t\t\tconst size = shape.size;\n\t\t\tconst writtenWidth = !!(runtime.written & EShapeRuntimeReset.WIDTH);\n\t\t\tconst oldSizeX = writtenWidth ? size.x : runtime.size.x;\n\t\t\tsize.x = toSizeNormalized(sizeAbsolute);\n\t\t\truntime.written |= EShapeRuntimeReset.WIDTH;\n\t\t\tthis.adjustPosition(shape, runtime, oldSizeX - size.x, 0, this.origin, 0.5);\n\t\t}\n\t}\n}\n"]}
|
package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-width-relative.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { __extends } from "tslib";
|
|
6
6
|
import { EShapeRuntimeReset } from "../e-shape-runtime";
|
|
7
|
-
import {
|
|
7
|
+
import { toSizeNormalized } from "../variant/to-size-normalized";
|
|
8
8
|
import { EShapeActionRuntimeTransformResize } from "./e-shape-action-runtime-transform-resize";
|
|
9
9
|
var EShapeActionRuntimeTransformResizeWidthRelative = /** @class */ (function (_super) {
|
|
10
10
|
__extends(EShapeActionRuntimeTransformResizeWidthRelative, _super);
|
|
@@ -20,7 +20,7 @@ var EShapeActionRuntimeTransformResizeWidthRelative = /** @class */ (function (_
|
|
|
20
20
|
var size = shape.size;
|
|
21
21
|
var writtenWidth = !!(runtime.written & EShapeRuntimeReset.WIDTH);
|
|
22
22
|
var oldSizeX = writtenWidth ? size.x : runtime.size.x;
|
|
23
|
-
size.x =
|
|
23
|
+
size.x = toSizeNormalized(oldSizeX * sizeRelative);
|
|
24
24
|
runtime.written |= EShapeRuntimeReset.WIDTH;
|
|
25
25
|
this.adjustPosition(shape, runtime, oldSizeX - size.x, 0, this.origin, 0.5);
|
|
26
26
|
}
|
package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-width-relative.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-action-runtime-transform-resize-width-relative.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize-width-relative.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAiB,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"e-shape-action-runtime-transform-resize-width-relative.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wc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F,CAAC;IACF,sDAAC;AAAD,CAAC,AApBD,CAAqE,kCAAkC,GAoBtG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime, EShapeRuntimeReset } from \"../e-shape-runtime\";\nimport { toSizeNormalized } from \"../variant/to-size-normalized\";\nimport { EShapeActionRuntimeTransformResize } from \"./e-shape-action-runtime-transform-resize\";\nimport { EShapeActionValueTransformResize } from \"./e-shape-action-value-transform-resize\";\n\nexport class EShapeActionRuntimeTransformResizeWidthRelative extends EShapeActionRuntimeTransformResize {\n\tprotected origin: number;\n\n\tconstructor(value: EShapeActionValueTransformResize) {\n\t\tsuper(value, EShapeRuntimeReset.WIDTH);\n\t\tthis.origin = value.originX;\n\t\tthis.reset |= EShapeRuntimeReset.POSITION;\n\t}\n\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void {\n\t\tif (this.condition(shape, time)) {\n\t\t\tconst sizeRelative = this.size(shape, time);\n\t\t\tconst size = shape.size;\n\t\t\tconst writtenWidth = !!(runtime.written & EShapeRuntimeReset.WIDTH);\n\t\t\tconst oldSizeX = writtenWidth ? size.x : runtime.size.x;\n\t\t\tsize.x = toSizeNormalized(oldSizeX * sizeRelative);\n\t\t\truntime.written |= EShapeRuntimeReset.WIDTH;\n\t\t\tthis.adjustPosition(shape, runtime, oldSizeX - size.x, 0, this.origin, 0.5);\n\t\t}\n\t}\n}\n"]}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* Copyright (C) 2019 Toshiba Corporation
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
+
export * from "./deserialize-action-value";
|
|
5
6
|
export * from "./e-shape-action-bases";
|
|
6
7
|
export * from "./e-shape-action-expression";
|
|
7
8
|
export * from "./e-shape-action-expressions";
|
|
@@ -77,7 +78,6 @@ export * from "./e-shape-action-value-change-color";
|
|
|
77
78
|
export * from "./e-shape-action-value-change-cursor";
|
|
78
79
|
export * from "./e-shape-action-value-change-text-type";
|
|
79
80
|
export * from "./e-shape-action-value-change-text";
|
|
80
|
-
export * from "./e-shape-action-value-deserializer";
|
|
81
81
|
export * from "./e-shape-action-value-emit-event";
|
|
82
82
|
export * from "./e-shape-action-value-misc-emit-event";
|
|
83
83
|
export * from "./e-shape-action-value-misc-gesture-type";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yCAAyC,CAAC;AACxD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kDAAkD,CAAC;AACjE,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,sCAAsC,CAAC;AACrD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,0CAA0C,CAAC;AACzD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,0CAA0C,CAAC;AACzD,cAAc,0CAA0C,CAAC;AACzD,cAAc,qCAAqC,CAAC;AACpD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,0CAA0C,CAAC;AACzD,cAAc,2CAA2C,CAAC;AAC1D,c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yC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AACtD,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,yCAAyC,CAAC;AACxD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./deserialize-action-value\";\nexport * from \"./e-shape-action-bases\";\nexport * from \"./e-shape-action-expression\";\nexport * from \"./e-shape-action-expressions\";\nexport * from \"./e-shape-action-runtime-blink-brighten\";\nexport * from \"./e-shape-action-runtime-blink-color-fill\";\nexport * from \"./e-shape-action-runtime-blink-color-stroke\";\nexport * from \"./e-shape-action-runtime-blink-darken\";\nexport * from \"./e-shape-action-runtime-blink-opacity\";\nexport * from \"./e-shape-action-runtime-blink-visibility\";\nexport * from \"./e-shape-action-runtime-blink\";\nexport * from \"./e-shape-action-runtime-change-color-brightness\";\nexport * from \"./e-shape-action-runtime-change-color-code\";\nexport * from \"./e-shape-action-runtime-change-color\";\nexport * from \"./e-shape-action-runtime-change-cursor\";\nexport * from \"./e-shape-action-runtime-change-text-number\";\nexport * from \"./e-shape-action-runtime-change-text-text\";\nexport * from \"./e-shape-action-runtime-conditional\";\nexport * from \"./e-shape-action-runtime-emit-event\";\nexport * from \"./e-shape-action-runtime-misc-gesture\";\nexport * from \"./e-shape-action-runtime-misc-emit-event\";\nexport * from \"./e-shape-action-runtime-misc-html-element\";\nexport * from \"./e-shape-action-runtime-misc-input-input\";\nexport * from \"./e-shape-action-runtime-misc-input-integer\";\nexport * from \"./e-shape-action-runtime-misc-input-number\";\nexport * from \"./e-shape-action-runtime-misc-input-real\";\nexport * from \"./e-shape-action-runtime-misc-input-text\";\nexport * from \"./e-shape-action-runtime-misc-input\";\nexport * from \"./e-shape-action-runtime-misc-layer-gesture\";\nexport * from \"./e-shape-action-runtime-misc-layer-show-hide\";\nexport * from \"./e-shape-action-runtime-misc-write-both\";\nexport * from \"./e-shape-action-runtime-misc-write-local\";\nexport * from \"./e-shape-action-runtime-misc-write-remote\";\nexport * from \"./e-shape-action-runtime-misc-write\";\nexport * from \"./e-shape-action-runtime-open-diagram\";\nexport * from \"./e-shape-action-runtime-open-dialog-boolean\";\nexport * from \"./e-shape-action-runtime-open-dialog-integer\";\nexport * from \"./e-shape-action-runtime-open-dialog-real\";\nexport * from \"./e-shape-action-runtime-open-dialog-text\";\nexport * from \"./e-shape-action-runtime-open-dialog\";\nexport * from \"./e-shape-action-runtime-open-page-inplace\";\nexport * from \"./e-shape-action-runtime-open-page\";\nexport * from \"./e-shape-action-runtime-open\";\nexport * from \"./e-shape-action-runtime-show-hide\";\nexport * from \"./e-shape-action-runtime-transform-move-absolute-x\";\nexport * from \"./e-shape-action-runtime-transform-move-absolute-y\";\nexport * from \"./e-shape-action-runtime-transform-move-forward-or-backward\";\nexport * from \"./e-shape-action-runtime-transform-move-left-or-right\";\nexport * from \"./e-shape-action-runtime-transform-move-relative-x\";\nexport * from \"./e-shape-action-runtime-transform-move-relative-y\";\nexport * from \"./e-shape-action-runtime-transform-move\";\nexport * from \"./e-shape-action-runtime-transform-resize-height-absolute\";\nexport * from \"./e-shape-action-runtime-transform-resize-height-relative\";\nexport * from \"./e-shape-action-runtime-transform-resize-size-absolute\";\nexport * from \"./e-shape-action-runtime-transform-resize-size-relative\";\nexport * from \"./e-shape-action-runtime-transform-resize-width-absolute\";\nexport * from \"./e-shape-action-runtime-transform-resize-width-relative\";\nexport * from \"./e-shape-action-runtime-transform-resize\";\nexport * from \"./e-shape-action-runtime-transform-rotate-absolute\";\nexport * from \"./e-shape-action-runtime-transform-rotate-relative\";\nexport * from \"./e-shape-action-runtime-transform-rotate\";\nexport * from \"./e-shape-action-runtime\";\nexport * from \"./e-shape-action-runtimes\";\nexport * from \"./e-shape-action-value-base\";\nexport * from \"./e-shape-action-value-blink-type\";\nexport * from \"./e-shape-action-value-blink\";\nexport * from \"./e-shape-action-value-change-color-brightness\";\nexport * from \"./e-shape-action-value-change-color-code\";\nexport * from \"./e-shape-action-value-change-color-target\";\nexport * from \"./e-shape-action-value-change-color-type-legacy\";\nexport * from \"./e-shape-action-value-change-color-type\";\nexport * from \"./e-shape-action-value-change-color-types\";\nexport * from \"./e-shape-action-value-change-color\";\nexport * from \"./e-shape-action-value-change-cursor\";\nexport * from \"./e-shape-action-value-change-text-type\";\nexport * from \"./e-shape-action-value-change-text\";\nexport * from \"./e-shape-action-value-emit-event\";\nexport * from \"./e-shape-action-value-misc-emit-event\";\nexport * from \"./e-shape-action-value-misc-gesture-type\";\nexport * from \"./e-shape-action-value-misc-gesture\";\nexport * from \"./e-shape-action-value-misc-html-element\";\nexport * from \"./e-shape-action-value-misc-input\";\nexport * from \"./e-shape-action-value-misc-layer-gesture\";\nexport * from \"./e-shape-action-value-misc-layer-show-hide\";\nexport * from \"./e-shape-action-value-misc-type\";\nexport * from \"./e-shape-action-value-misc-write\";\nexport * from \"./e-shape-action-value-misc\";\nexport * from \"./e-shape-action-value-on-input-action\";\nexport * from \"./e-shape-action-value-on-input-actions\";\nexport * from \"./e-shape-action-value-open-type\";\nexport * from \"./e-shape-action-value-open\";\nexport * from \"./e-shape-action-value-opetyped\";\nexport * from \"./e-shape-action-value-show-hide-type\";\nexport * from \"./e-shape-action-value-show-hide\";\nexport * from \"./e-shape-action-value-subtyped\";\nexport * from \"./e-shape-action-value-transform-move-type\";\nexport * from \"./e-shape-action-value-transform-move\";\nexport * from \"./e-shape-action-value-transform-resize-type\";\nexport * from \"./e-shape-action-value-transform-resize\";\nexport * from \"./e-shape-action-value-transform-rotate-type\";\nexport * from \"./e-shape-action-value-transform-rotate\";\nexport * from \"./e-shape-action-value-transform-type\";\nexport * from \"./e-shape-action-value-type\";\nexport * from \"./e-shape-action-value\";\nexport * from \"./e-shape-action-values\";\nexport * from \"./e-shape-action\";\n"]}
|
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
* Copyright (C) 2019 Toshiba Corporation
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
* Mappings of shape types and deserializers.
|
|
7
|
+
*/
|
|
5
8
|
export var EShapeDeserializers = {};
|
|
6
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Mappings of shape types and `onDeserialized` handlers.
|
|
11
|
+
*/
|
|
12
|
+
export var EShapeOnDeserializeds = {};
|
|
7
13
|
//# sourceMappingURL=e-shape-deserializers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-deserializers.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-deserializers.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"e-shape-deserializers.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-deserializers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAeH;;GAEG;AACH,MAAM,CAAC,IAAM,mBAAmB,GAAuD,EAAE,CAAC;AAY1F;;GAEG;AACH,MAAM,CAAC,IAAM,qBAAqB,GAAyD,EAAE,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DDiagramSerializedItem } from \"../d-diagram-serialized\";\nimport { EShape } from \"./e-shape\";\nimport { EShapeResourceManagerDeserialization } from \"./e-shape-resource-manager-deserialization\";\nimport { EShapeUuidMapping } from \"./e-shape-uuid-mapping\";\n\n/**\n * A shape deserializer\n */\nexport type EShapeDeserializer = (\n\titem: DDiagramSerializedItem,\n\tmanager: EShapeResourceManagerDeserialization\n) => Promise<EShape> | EShape | null;\n\n/**\n * Mappings of shape types and deserializers.\n */\nexport const EShapeDeserializers: { [type: number]: EShapeDeserializer | undefined } = {};\n\n/**\n * A handler which is called after the deserializations of all the shapes are completed.\n */\nexport type EShapeOnDeserialized = (\n\titem: DDiagramSerializedItem,\n\tshape: EShape,\n\tmapping: EShapeUuidMapping,\n\tmanager: EShapeResourceManagerDeserialization\n) => void;\n\n/**\n * Mappings of shape types and `onDeserialized` handlers.\n */\nexport const EShapeOnDeserializeds: { [type: number]: EShapeOnDeserialized | undefined } = {};\n"]}
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { EShapeEditor } from "./e-shape-editor";
|
|
6
|
-
import { EShapeSizes } from "./e-shape-sizes";
|
|
7
6
|
import { EShapeBase } from "./variant/e-shape-base";
|
|
7
|
+
import { toSizeNormalized } from "./variant/to-size-normalized";
|
|
8
8
|
var EShapeTransforms = /** @class */ (function () {
|
|
9
9
|
function EShapeTransforms() {
|
|
10
10
|
}
|
|
11
11
|
EShapeTransforms.prepare = function (shape) {
|
|
12
12
|
var editor = shape.editor || new EShapeEditor();
|
|
13
13
|
shape.editor = editor;
|
|
14
|
-
//
|
|
14
|
+
// Transform
|
|
15
15
|
shape.updateTransform();
|
|
16
16
|
var parent = shape.parent;
|
|
17
17
|
if (parent instanceof EShapeBase) {
|
|
@@ -82,7 +82,7 @@ var EShapeTransforms = /** @class */ (function () {
|
|
|
82
82
|
if (bx != null && by != null) {
|
|
83
83
|
var sx = Math.sqrt(a * a + b * b);
|
|
84
84
|
var sy = Math.sqrt(c * c + d * d);
|
|
85
|
-
shape.size.set(
|
|
85
|
+
shape.size.set(toSizeNormalized(bx * sx), toSizeNormalized(by * sy));
|
|
86
86
|
}
|
|
87
87
|
//
|
|
88
88
|
shape.allowUploadedUpdate();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-transforms.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-transforms.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"e-shape-transforms.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-transforms.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE;IAAA;IA2FA,CAAC;IA1FO,wBAAO,GAAd,UAAe,KAAa;QAC3B,IAAM,MAAM,GAAG,KAAK,CAAC,MAAM,IAAI,IAAI,YAAY,EAAE,CAAC;QAClD,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;QAEtB,YAAY;QACZ,KAAK,CAAC,eAAe,EAAE,CAAC;QACxB,IAAM,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC5B,IAAI,MAAM,YAAY,UAAU,EAAE;YACjC,MAAM,CAAC,SAAS,CAAC,iBAAiB;iBAChC,MAAM,CAAC,MAAM,CAAC,8BAA8B,CAAC;iBAC7C,MAAM,EAAE,CAAC;SACX;aAAM;YACN,MAAM,CAAC,8BAA8B,CAAC,QAAQ,EAAE,CAAC;SACjD;QACD,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,MAAM,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;QAEnE,WAAW;QACX,MAAM,CAAC,QAAQ,GAAG,KAAK,CAAC,SAAS,CAAC,QAAQ,CAAC;QAE3C,OAAO;QACP,MAAM,CAAC,IAAI,CAA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AAC,CAAC;YACpC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,gBAAgB,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;SACrE;QAED,EAAE;QACF,KAAK,CAAC,mBAAmB,EAAE,CAAC;IAC7B,CAAC;IACF,uBAAC;AAAD,CAAC,AA3FD,IA2FC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Matrix } from \"pixi.js\";\nimport { EShape } from \"./e-shape\";\nimport { EShapeEditor } from \"./e-shape-editor\";\nimport { EShapeBase } from \"./variant/e-shape-base\";\nimport { toSizeNormalized } from \"./variant/to-size-normalized\";\n\nexport class EShapeTransforms {\n\tstatic prepare(shape: EShape): void {\n\t\tconst editor = shape.editor || new EShapeEditor();\n\t\tshape.editor = editor;\n\n\t\t// Transform\n\t\tshape.updateTransform();\n\t\tconst parent = shape.parent;\n\t\tif (parent instanceof EShapeBase) {\n\t\t\tparent.transform.internalTransform\n\t\t\t\t.copyTo(editor.internalTransformParentInverse)\n\t\t\t\t.invert();\n\t\t} else {\n\t\t\teditor.internalTransformParentInverse.identity();\n\t\t}\n\t\tshape.transform.internalTransform.copyTo(editor.internalTransform);\n\n\t\t// Rotation\n\t\teditor.rotation = shape.transform.rotation;\n\n\t\t// Size\n\t\teditor.size.copyFrom(shape.size);\n\n\t\t//\n\t\tshape.disallowOnTransformChange();\n\t}\n\n\tstatic finalize(shape: EShape): void {\n\t\tshape.allowOnTransformChange(true);\n\t}\n\n\tstatic apply(shape: EShape, transform: Matrix, keepSize: boolean): void {\n\t\tconst editor = shape.editor;\n\t\tif (editor != null) {\n\t\t\tconst newLocalTransform = editor.localTransform;\n\t\t\teditor.internalTransformParentInverse\n\t\t\t\t.copyTo(newLocalTransform)\n\t\t\t\t.append(transform)\n\t\t\t\t.append(editor.internalTransform);\n\t\t\tif (keepSize) {\n\t\t\t\tthis.applyLocal(shape, newLocalTransform);\n\t\t\t} else {\n\t\t\t\tconst size = editor.size;\n\t\t\t\tthis.applyLocal(shape, newLocalTransform, size.x, size.y);\n\t\t\t}\n\t\t}\n\t}\n\n\tstatic applyLocal(shape: EShape, localTransform: Matrix, bx?: number, by?: number): void {\n\t\tshape.disallowUploadedUpdate();\n\n\t\t// Reconstruct the position, the rotation and the size\n\t\tconst a = localTransform.a;\n\t\tconst b = localTransform.b;\n\t\tconst c = localTransform.c;\n\t\tconst d = localTransform.d;\n\t\tconst tx = localTransform.tx;\n\t\tconst ty = localTransform.ty;\n\n\t\t// Rotation\n\t\tconst transform = shape.transform;\n\t\tconst rx = Math.atan2(-c, d); // rotation - skewX\n\t\tconst ry = Math.atan2(+b, a); // rotation + skewY\n\t\ttransform.rotation = (rx + ry) * 0.5; // Here, assumes `skewX` === `skewY`\n\n\t\t// Skew\n\t\tconst skew = (ry - rx) * 0.5;\n\t\ttransform.skew.set(skew, skew);\n\n\t\t// Position: Assumes the pivot is invariant.\n\t\t// tx = position.x - (a * px + c * py)\n\t\t// ty = position.y - (b * px + d * py)\n\t\t//\n\t\t// Thus,\n\t\t// position.x = tx + (a * px + c * py)\n\t\t// position.y = ty + (b * px + d * py)\n\t\tconst pivot = transform.pivot;\n\t\tconst px = pivot.x;\n\t\tconst py = pivot.y;\n\t\ttransform.position.set(tx + (a * px + c * py), ty + (b * px + d * py));\n\n\t\t// Scale\n\t\tif (bx != null && by != null) {\n\t\t\tconst sx = Math.sqrt(a * a + b * b);\n\t\t\tconst sy = Math.sqrt(c * c + d * d);\n\t\t\tshape.size.set(toSizeNormalized(bx * sx), toSizeNormalized(by * sy));\n\t\t}\n\n\t\t//\n\t\tshape.allowUploadedUpdate();\n\t}\n}\n"]}
|
|
@@ -35,12 +35,10 @@ export * from "./e-shape-data-value";
|
|
|
35
35
|
export * from "./e-shape-data";
|
|
36
36
|
export * from "./e-shape-defaults";
|
|
37
37
|
export * from "./e-shape-deleter";
|
|
38
|
-
export * from "./e-shape-deserializer";
|
|
39
38
|
export * from "./e-shape-deserializers";
|
|
40
39
|
export * from "./e-shape-editor";
|
|
41
40
|
export * from "./e-shape-fill";
|
|
42
41
|
export * from "./e-shape-gradient";
|
|
43
|
-
export * from "./e-shape-image-elements";
|
|
44
42
|
export * from "./e-shape-layer-container";
|
|
45
43
|
export * from "./e-shape-layer-state";
|
|
46
44
|
export * from "./e-shape-layer";
|
|
@@ -68,7 +66,6 @@ export * from "./e-shape-resource-manager-serialization";
|
|
|
68
66
|
export * from "./e-shape-runtime";
|
|
69
67
|
export * from "./e-shape-runtimes";
|
|
70
68
|
export * from "./e-shape-search";
|
|
71
|
-
export * from "./e-shape-sizes";
|
|
72
69
|
export * from "./e-shape-state-set-impl-observable";
|
|
73
70
|
export * from "./e-shape-state-set";
|
|
74
71
|
export * from "./e-shape-state";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wCAAwC,CAAC;AACvD,cAAc,mCAAmC,CAAC;AAClD,cAAc,yCAAyC,CAAC;AACxD,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,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C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./action\";\nexport * from \"./load\";\nexport * from \"./variant\";\nexport * from \"./e-shape-acceptor-impl\";\nexport * from \"./e-shape-acceptor-type\";\nexport * from \"./e-shape-acceptor\";\nexport * from \"./e-shape-acceptors\";\nexport * from \"./e-shape-buffer-unit-builder\";\nexport * from \"./e-shape-buffer-unit\";\nexport * from \"./e-shape-buffer\";\nexport * from \"./e-shape-capabilities\";\nexport * from \"./e-shape-capability\";\nexport * from \"./e-shape-connector-bodies\";\nexport * from \"./e-shape-connector-body-impl\";\nexport * from \"./e-shape-connector-body\";\nexport * from \"./e-shape-connector-container-impl\";\nexport * from \"./e-shape-connector-container\";\nexport * from \"./e-shape-connector-edge-acceptor-impl\";\nexport * from \"./e-shape-connector-edge-acceptor\";\nexport * from \"./e-shape-connector-edge-container-impl\";\nexport * from \"./e-shape-connector-edge-container\";\nexport * from \"./e-shape-connector-edge-impl\";\nexport * from \"./e-shape-connector-edge\";\nexport * from \"./e-shape-connector\";\nexport * from \"./e-shape-connectors\";\nexport * from \"./e-shape-container\";\nexport * from \"./e-shape-copy-part\";\nexport * from \"./e-shape-corner\";\nexport * from \"./e-shape-data-value-range\";\nexport * from \"./e-shape-data-value\";\nexport * from \"./e-shape-data\";\nexport * from \"./e-shape-defaults\";\nexport * from \"./e-shape-deleter\";\nexport * from \"./e-shape-deserializers\";\nexport * from \"./e-shape-editor\";\nexport * from \"./e-shape-fill\";\nexport * from \"./e-shape-gradient\";\nexport * from \"./e-shape-layer-container\";\nexport * from \"./e-shape-layer-state\";\nexport * from \"./e-shape-layer\";\nexport * from \"./e-shape-layout\";\nexport * from \"./e-shape-points-formatted\";\nexport * from \"./e-shape-points-formatter-curve\";\nexport * from \"./e-shape-points-formatter\";\nexport * from \"./e-shape-points-marker-base\";\nexport * from \"./e-shape-points-marker-container-impl-noop\";\nexport * from \"./e-shape-points-marker-container-impl\";\nexport * from \"./e-shape-points-marker-container\";\nexport * from \"./e-shape-points-marker-head\";\nexport * from \"./e-shape-points-marker-noop\";\nexport * from \"./e-shape-points-marker-tail\";\nexport * from \"./e-shape-points-marker-type\";\nexport * from \"./e-shape-points-marker\";\nexport * from \"./e-shape-points-style\";\nexport * from \"./e-shape-points-styles\";\nexport * from \"./e-shape-points\";\nexport * from \"./e-shape-renderer-iterator-datum\";\nexport * from \"./e-shape-renderer-iterator\";\nexport * from \"./e-shape-renderer\";\nexport * from \"./e-shape-resource-manager-deserialization\";\nexport * from \"./e-shape-resource-manager-serialization\";\nexport * from \"./e-shape-runtime\";\nexport * from \"./e-shape-runtimes\";\nexport * from \"./e-shape-search\";\nexport * from \"./e-shape-state-set-impl-observable\";\nexport * from \"./e-shape-state-set\";\nexport * from \"./e-shape-state\";\nexport * from \"./e-shape-stroke-side\";\nexport * from \"./e-shape-stroke-style\";\nexport * from \"./e-shape-stroke\";\nexport * from \"./e-shape-text-align-horizontal\";\nexport * from \"./e-shape-text-align-vertical\";\nexport * from \"./e-shape-text-align\";\nexport * from \"./e-shape-text-direction\";\nexport * from \"./e-shape-text-offset\";\nexport * from \"./e-shape-text-outline\";\nexport * from \"./e-shape-text\";\nexport * from \"./e-shape-transform-parent\";\nexport * from \"./e-shape-transform\";\nexport * from \"./e-shape-transforms\";\nexport * from \"./e-shape-type\";\nexport * from \"./e-shape-uploaded-constructor\";\nexport * from \"./e-shape-uploaded\";\nexport * from \"./e-shape-uploadeds\";\nexport * from \"./e-shape-uuid-mapping-impl\";\nexport * from \"./e-shape-uuid-mapping\";\nexport * from \"./e-shape\";\n"]}
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { EShapeCapabilities } from "../e-shape-capabilities";
|
|
6
6
|
import { EShapeCapability } from "../e-shape-capability";
|
|
7
|
-
import { EShapeDeserializers,
|
|
7
|
+
import { EShapeDeserializers, EShapeOnDeserializeds } from "../e-shape-deserializers";
|
|
8
8
|
import { EShapeType } from "../e-shape-type";
|
|
9
9
|
import { EShapeUploadeds } from "../e-shape-uploadeds";
|
|
10
10
|
import { createLineUploaded } from "../variant/create-line-uploaded";
|
|
11
|
-
import { deserializeConnectorLine,
|
|
11
|
+
import { deserializeConnectorLine, onDeserializedConnectorLine } from "../variant/deserialize-connector-line";
|
|
12
12
|
export var loadShapeConnectorLine = function () {
|
|
13
13
|
EShapeUploadeds[EShapeType.CONNECTOR_LINE] = createLineUploaded;
|
|
14
14
|
EShapeDeserializers[EShapeType.CONNECTOR_LINE] = deserializeConnectorLine;
|
|
15
|
-
|
|
15
|
+
EShapeOnDeserializeds[EShapeType.CONNECTOR_LINE] = onDeserializedConnectorLine;
|
|
16
16
|
EShapeCapabilities.set(EShapeType.CONNECTOR_LINE, EShapeCapability.CONNECTOR);
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=load-shape-connector-line.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load-shape-connector-line.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/load/load-shape-connector-line.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"load-shape-connector-line.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/load/load-shape-connector-line.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACN,wBAAwB,EACxB,2BAA2B,EAC3B,MAAM,uCAAuC,CAAC;AAE/C,MAAM,CAAC,IAAM,sBAAsB,GAAG;IACrC,eAAe,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;IAChE,mBAAmB,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,wBAAwB,CAAC;IAC1E,qBAAqB,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,2BAA2B,CAAC;IAC/E,kBAAkB,CAAC,GAAG,CAAC,UAAU,CAAC,cAAc,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;AAC/E,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeCapabilities } from \"../e-shape-capabilities\";\nimport { EShapeCapability } from \"../e-shape-capability\";\nimport { EShapeDeserializers, EShapeOnDeserializeds } from \"../e-shape-deserializers\";\nimport { EShapeType } from \"../e-shape-type\";\nimport { EShapeUploadeds } from \"../e-shape-uploadeds\";\nimport { createLineUploaded } from \"../variant/create-line-uploaded\";\nimport {\n\tdeserializeConnectorLine,\n\tonDeserializedConnectorLine\n} from \"../variant/deserialize-connector-line\";\n\nexport const loadShapeConnectorLine = (): void => {\n\tEShapeUploadeds[EShapeType.CONNECTOR_LINE] = createLineUploaded;\n\tEShapeDeserializers[EShapeType.CONNECTOR_LINE] = deserializeConnectorLine;\n\tEShapeOnDeserializeds[EShapeType.CONNECTOR_LINE] = onDeserializedConnectorLine;\n\tEShapeCapabilities.set(EShapeType.CONNECTOR_LINE, EShapeCapability.CONNECTOR);\n};\n"]}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
5
|
import { DynamicSDFFontGenerator } from "../../util/dynamic-sdf-font-generator";
|
|
6
|
-
import { EShapeImageElements } from "../e-shape-image-elements";
|
|
7
6
|
import { EShapeImageSdf } from "./e-shape-image-sdf";
|
|
7
|
+
import { toImageElement } from "./to-image-element";
|
|
8
8
|
export var createImageSdf = function (dataUrl, convertToSdf) {
|
|
9
9
|
if (convertToSdf) {
|
|
10
|
-
return
|
|
10
|
+
return toImageElement(dataUrl).then(function (imageElement) {
|
|
11
11
|
var generator = DynamicSDFFontGenerator.getInstance().init();
|
|
12
12
|
generator.updateTexture(imageElement);
|
|
13
13
|
generator.render();
|
|
@@ -17,7 +17,7 @@ export var createImageSdf = function (dataUrl, convertToSdf) {
|
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
else {
|
|
20
|
-
return
|
|
20
|
+
return toImageElement(dataUrl).then(function (imageElement) {
|
|
21
21
|
return new EShapeImageSdf(imageElement);
|
|
22
22
|
});
|
|
23
23
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-image-sdf.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/create-image-sdf.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"create-image-sdf.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/create-image-sdf.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,CAAC,IAAM,cAAc,GAAG,UAAC,OAAe,EAAE,YAAqB;IACpE,IAAI,YAAY,EAAE;QACjB,OAAO,cAAc,CAAC,OAAO,CAAC,CAAC,IAAI,CAClC,UAAC,YAA8B;YAC9B,IAAM,SAAS,GAAG,uBAAuB,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC;YAC/D,SAAS,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;YACtC,SAAS,CAAC,MAAM,EAAE,CAAC;YAEnB,IAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;YAChD,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAEvB,OAAO,cAAc,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,KAAK,CAAC,CAAC;QAClD,CAAC,CACD,CAAC;KACF;SAAM;QACN,OAAO,cAAc,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,UAAC,YAA8B;YAClE,OAAO,IAAI,cAAc,CAAC,YAAY,CAAC,CAAC;QACzC,CAAC,CAAC,CAAC;KACH;AACF,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DynamicSDFFontGenerator } from \"../../util/dynamic-sdf-font-generator\";\nimport { EShapeImageSdf } from \"./e-shape-image-sdf\";\nimport { toImageElement } from \"./to-image-element\";\n\nexport const createImageSdf = (dataUrl: string, convertToSdf: boolean): Promise<EShapeImageSdf> => {\n\tif (convertToSdf) {\n\t\treturn toImageElement(dataUrl).then(\n\t\t\t(imageElement: HTMLImageElement): Promise<EShapeImageSdf> => {\n\t\t\t\tconst generator = DynamicSDFFontGenerator.getInstance().init();\n\t\t\t\tgenerator.updateTexture(imageElement);\n\t\t\t\tgenerator.render();\n\n\t\t\t\tconst canvas = document.createElement(\"canvas\");\n\t\t\t\tgenerator.read(canvas);\n\n\t\t\t\treturn createImageSdf(canvas.toDataURL(), false);\n\t\t\t}\n\t\t);\n\t} else {\n\t\treturn toImageElement(dataUrl).then((imageElement: HTMLImageElement): EShapeImageSdf => {\n\t\t\treturn new EShapeImageSdf(imageElement);\n\t\t});\n\t}\n};\n"]}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Copyright (C) 2019 Toshiba Corporation
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
-
import { EShapeImageElements } from "../e-shape-image-elements";
|
|
6
5
|
import { EShapeImage } from "./e-shape-image";
|
|
6
|
+
import { toImageElement } from "./to-image-element";
|
|
7
7
|
export var createImage = function (dataUrl) {
|
|
8
|
-
return
|
|
8
|
+
return toImageElement(dataUrl).then(function (imageElement) {
|
|
9
9
|
return new EShapeImage(imageElement);
|
|
10
10
|
});
|
|
11
11
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-image.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/create-image.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"create-image.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/create-image.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,MAAM,CAAC,IAAM,WAAW,GAAG,UAAC,OAAe;IAC1C,OAAO,cAAc,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,UAAC,YAA8B;QAClE,OAAO,IAAI,WAAW,CAAC,YAAY,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShapeImage } from \"./e-shape-image\";\nimport { toImageElement } from \"./to-image-element\";\n\nexport const createImage = (dataUrl: string): Promise<EShapeImage> => {\n\treturn toImageElement(dataUrl).then((imageElement: HTMLImageElement): EShapeImage => {\n\t\treturn new EShapeImage(imageElement);\n\t});\n};\n"]}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2019 Toshiba Corporation
|
|
3
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
import { EShapeOnDeserializeds } from "../e-shape-deserializers";
|
|
6
|
+
import { EShapeUuidMappingImpl } from "../e-shape-uuid-mapping-impl";
|
|
7
|
+
import { deserialize } from "./deserialize";
|
|
8
|
+
export var deserializeAll = function (serializeds, manager) {
|
|
9
|
+
var shapes = [];
|
|
10
|
+
for (var i = 0, imax = serializeds.length; i < imax; ++i) {
|
|
11
|
+
shapes.push(deserialize(serializeds[i], manager));
|
|
12
|
+
}
|
|
13
|
+
if (0 < shapes.length) {
|
|
14
|
+
return Promise.all(shapes).then(function (resolved) {
|
|
15
|
+
callOnDeserialized(serializeds, resolved, new EShapeUuidMappingImpl(resolved), manager);
|
|
16
|
+
return resolved;
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return null;
|
|
20
|
+
};
|
|
21
|
+
var callOnDeserialized = function (serializeds, shapes, mapping, manager) {
|
|
22
|
+
for (var i = 0, imax = serializeds.length; i < imax; ++i) {
|
|
23
|
+
var serialized = serializeds[i];
|
|
24
|
+
var shape = shapes[i];
|
|
25
|
+
var onDeserialized = EShapeOnDeserializeds[serialized[0]];
|
|
26
|
+
if (onDeserialized) {
|
|
27
|
+
onDeserialized(serialized, shape, mapping, manager);
|
|
28
|
+
}
|
|
29
|
+
callOnDeserialized(serialized[20], shape.children, mapping, manager);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=deserialize-all.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deserialize-all.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/deserialize-all.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAGjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,CAAC,IAAM,cAAc,GAAG,UAC7B,WAAqC,EACrC,OAA6C;IAE7C,IAAM,MAAM,GAAoC,EAAE,CAAC;IACnD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,EAAE;QACzD,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;KAClD;IACD,IAAI,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE;QACtB,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,UAAC,QAAkB;YAClD,kBAAkB,CAAC,WAAW,EAAE,QAAQ,EAAE,IAAI,qBAAqB,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC;YACxF,OAAO,QAAQ,CAAC;QACjB,CAAC,CAAC,CAAC;KACH;IACD,OAAO,IAAI,CAAC;AACb,CAAC,CAAC;AAEF,IAAM,kBAAkB,GAAG,UAC1B,WAAqC,EACrC,MAAgB,EAChB,OAA0B,EAC1B,OAA6C;IAE7C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,GAAG,WAAW,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,EAAE;QACzD,IAAM,UAAU,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC;QAClC,IAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;QACxB,IAAM,cAAc,GAAG,qBAAqB,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5D,IAAI,cAAc,EAAE;YACnB,cAAc,CAAC,UAAU,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SACpD;QACD,kBAAkB,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;KACrE;AACF,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DDiagramSerializedItem } from \"../../d-diagram-serialized\";\nimport { EShape } from \"../e-shape\";\nimport { EShapeOnDeserializeds } from \"../e-shape-deserializers\";\nimport { EShapeResourceManagerDeserialization } from \"../e-shape-resource-manager-deserialization\";\nimport { EShapeUuidMapping } from \"../e-shape-uuid-mapping\";\nimport { EShapeUuidMappingImpl } from \"../e-shape-uuid-mapping-impl\";\nimport { deserialize } from \"./deserialize\";\n\nexport const deserializeAll = (\n\tserializeds: DDiagramSerializedItem[],\n\tmanager: EShapeResourceManagerDeserialization\n): Promise<EShape[]> | null => {\n\tconst shapes: Array<Promise<EShape> | EShape> = [];\n\tfor (let i = 0, imax = serializeds.length; i < imax; ++i) {\n\t\tshapes.push(deserialize(serializeds[i], manager));\n\t}\n\tif (0 < shapes.length) {\n\t\treturn Promise.all(shapes).then((resolved: EShape[]): EShape[] => {\n\t\t\tcallOnDeserialized(serializeds, resolved, new EShapeUuidMappingImpl(resolved), manager);\n\t\t\treturn resolved;\n\t\t});\n\t}\n\treturn null;\n};\n\nconst callOnDeserialized = (\n\tserializeds: DDiagramSerializedItem[],\n\tshapes: EShape[],\n\tmapping: EShapeUuidMapping,\n\tmanager: EShapeResourceManagerDeserialization\n): void => {\n\tfor (let i = 0, imax = serializeds.length; i < imax; ++i) {\n\t\tconst serialized = serializeds[i];\n\t\tconst shape = shapes[i];\n\t\tconst onDeserialized = EShapeOnDeserializeds[serialized[0]];\n\t\tif (onDeserialized) {\n\t\t\tonDeserialized(serialized, shape, mapping, manager);\n\t\t}\n\t\tcallOnDeserialized(serialized[20], shape.children, mapping, manager);\n\t}\n};\n"]}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* Copyright (C) 2019 Toshiba Corporation
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
-
import { EShapeDeserializer } from "../e-shape-deserializer";
|
|
6
5
|
import { EShapePointsStyle } from "../e-shape-points-style";
|
|
6
|
+
import { deserializeBase } from "./deserialize-base";
|
|
7
7
|
import { EShapeBar } from "./e-shape-bar";
|
|
8
|
-
export var deserializeBar = function (item, manager) {
|
|
9
|
-
|
|
10
|
-
var result =
|
|
8
|
+
export var deserializeBar = function (item, manager, shape) {
|
|
9
|
+
shape = shape || new EShapeBar();
|
|
10
|
+
var result = deserializeBase(item, manager, shape);
|
|
11
11
|
shape.points.deserialize(item[15], manager);
|
|
12
12
|
var style = shape.points.style;
|
|
13
13
|
var mask = EShapePointsStyle.NON_SCALING_MASK |
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deserialize-bar.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/deserialize-bar.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"deserialize-bar.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/variant/deserialize-bar.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,MAAM,CAAC,IAAM,cAAc,GAAG,UAC7B,IAA4B,EAC5B,OAA6C,EAC7C,KAAiB;IAEjB,KAAK,GAAG,KAAK,IAAI,IAAI,SAAS,EAAE,CAAC;IACjC,IAAM,MAAM,GAAG,eAAe,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;IACrD,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,OAAO,CAAC,CAAC;IAC5C,IAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;IACjC,IAAM,IAAI,GACT,iBAAiB,CAAC,gBAAgB;QAClC,iBAAiB,CAAC,WAAW;QAC7B,iBAAiB,CAAC,WAAW,CAAC;IAC/B,IAAM,UAAU,GAAG,KAAK,GAAG,IAAI,CAAC;IAChC,IAAI,UAAU,EAAE;QACf,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC;QAC5B,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,UAAU,CAAC;KACjC;IACD,OAAO,MAAM,CAAC;AACf,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DDiagramSerializedItem } from \"../../d-diagram-serialized\";\nimport { EShapePointsStyle } from \"../e-shape-points-style\";\nimport { EShapeResourceManagerDeserialization } from \"../e-shape-resource-manager-deserialization\";\nimport { deserializeBase } from \"./deserialize-base\";\nimport { EShapeBar } from \"./e-shape-bar\";\n\nexport const deserializeBar = (\n\titem: DDiagramSerializedItem,\n\tmanager: EShapeResourceManagerDeserialization,\n\tshape?: EShapeBar\n): Promise<EShapeBar> | EShapeBar => {\n\tshape = shape || new EShapeBar();\n\tconst result = deserializeBase(item, manager, shape);\n\tshape.points.deserialize(item[15], manager);\n\tconst style = shape.points.style;\n\tconst mask =\n\t\tEShapePointsStyle.NON_SCALING_MASK |\n\t\tEShapePointsStyle.DOTTED_MASK |\n\t\tEShapePointsStyle.DASHED_MASK;\n\tconst deprecated = style & mask;\n\tif (deprecated) {\n\t\tshape.points.style &= ~mask;\n\t\tshape.stroke.style |= deprecated;\n\t}\n\treturn result;\n};\n"]}
|