@wcardinal/wcardinal-ui 0.462.0 → 0.462.1

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.
Files changed (26) hide show
  1. package/dist/types/wcardinal/ui/shape/e-shape-transform.d.ts +8 -0
  2. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-forward-or-backward.js +1 -3
  3. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-forward-or-backward.js.map +1 -1
  4. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-left-or-right.js +1 -3
  5. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-left-or-right.js.map +1 -1
  6. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize.js +1 -3
  7. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize.js.map +1 -1
  8. package/dist/wcardinal/ui/shape/e-shape-transform.js +28 -0
  9. package/dist/wcardinal/ui/shape/e-shape-transform.js.map +1 -1
  10. package/dist/wcardinal-ui-theme-dark-en-us.js +1 -1
  11. package/dist/wcardinal-ui-theme-dark-en-us.min.js +1 -1
  12. package/dist/wcardinal-ui-theme-dark-ja-jp.js +1 -1
  13. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +1 -1
  14. package/dist/wcardinal-ui-theme-dark.js +1 -1
  15. package/dist/wcardinal-ui-theme-dark.min.js +1 -1
  16. package/dist/wcardinal-ui-theme-white-en-us.js +1 -1
  17. package/dist/wcardinal-ui-theme-white-en-us.min.js +1 -1
  18. package/dist/wcardinal-ui-theme-white-ja-jp.js +1 -1
  19. package/dist/wcardinal-ui-theme-white-ja-jp.min.js +1 -1
  20. package/dist/wcardinal-ui-theme-white.js +1 -1
  21. package/dist/wcardinal-ui-theme-white.min.js +1 -1
  22. package/dist/wcardinal-ui.cjs.js +32 -10
  23. package/dist/wcardinal-ui.js +32 -10
  24. package/dist/wcardinal-ui.min.js +2 -2
  25. package/dist/wcardinal-ui.min.js.map +1 -1
  26. package/package.json +1 -1
@@ -7,6 +7,10 @@ export interface EShapeTransform extends Transform {
7
7
  rotation: number;
8
8
  skew: ObservablePoint;
9
9
  scale: ObservablePoint;
10
+ readonly cx: number;
11
+ readonly sx: number;
12
+ readonly cy: number;
13
+ readonly sy: number;
10
14
  getLocalIdCurrent(): number;
11
15
  getLocalId(): number;
12
16
  getParentId(): number;
@@ -22,5 +26,9 @@ export declare class EShapeTransformImpl extends Transform implements EShapeTran
22
26
  getLocalId(): number;
23
27
  getParentId(): number;
24
28
  getWorldId(): number;
29
+ get cx(): number;
30
+ get sx(): number;
31
+ get cy(): number;
32
+ get sy(): number;
25
33
  updateTransform(parentTransform: Transform): void;
26
34
  }
@@ -20,9 +20,7 @@ var EShapeActionRuntimeTransformMoveForwardOrBackward = /** @class */ (function
20
20
  var writtenPositionY = !!(runtime.written & EShapeRuntimeReset.POSITION_Y);
21
21
  var oldPositionX = writtenPositionX ? position.x : runtime.x;
22
22
  var oldPositionY = writtenPositionY ? position.y : runtime.y;
23
- shape.updateTransform();
24
- var localTransform = transform.localTransform;
25
- position.set(oldPositionX - localTransform.c * amount, oldPositionY - localTransform.d * amount);
23
+ position.set(oldPositionX - transform.cy * amount, oldPositionY - transform.sy * amount);
26
24
  runtime.written |= this.reset;
27
25
  }
28
26
  };
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-action-runtime-transform-move-forward-or-backward.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-forward-or-backward.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,gCAAgC,EAAE,MAAM,yCAAyC,CAAC;AAG3F;IAAuE,qEAAgC;IACtG,2DAAY,KAAqC;QAChD,OAAA,MAAK,YAAC,KAAK,EA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0\n */\n\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime } from \"../e-shape-runtime\";\nimport { EShapeRuntimeReset } from \"../e-shape-runtime-reset\";\nimport { EShapeActionEnvironment } from \"./e-shape-action-environment\";\nimport { EShapeActionRuntimeTransformMove } from \"./e-shape-action-runtime-transform-move\";\nimport { EShapeActionValueTransformMove } from \"./e-shape-action-value-transform-move\";\n\nexport class EShapeActionRuntimeTransformMoveForwardOrBackward extends EShapeActionRuntimeTransformMove {\n\tconstructor(value: EShapeActionValueTransformMove) {\n\t\tsuper(value, EShapeRuntimeReset.POSITION);\n\t}\n\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void {\n\t\tif (this.condition(shape, time, EShapeActionEnvironment)) {\n\t\t\tconst amount = this.amount(shape, time, EShapeActionEnvironment);\n\t\t\tconst transform = shape.transform;\n\t\t\tconst position = transform.position;\n\t\t\tconst writtenPositionX = !!(runtime.written & EShapeRuntimeReset.POSITION_X);\n\t\t\tconst writtenPositionY = !!(runtime.written & EShapeRuntimeReset.POSITION_Y);\n\t\t\tconst oldPositionX = writtenPositionX ? position.x : runtime.x;\n\t\t\tconst oldPositionY = writtenPositionY ? position.y : runtime.y;\n\t\t\tshape.updateTransform();\n\t\t\tconst localTransform = transform.localTransform;\n\t\t\tposition.set(\n\t\t\t\toldPositionX - localTransform.c * amount,\n\t\t\t\toldPositionY - localTransform.d * amount\n\t\t\t);\n\t\t\truntime.written |= this.reset;\n\t\t}\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-shape-action-runtime-transform-move-forward-or-backward.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-forward-or-backward.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,gCAAgC,EAAE,MAAM,yCAA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0\n */\n\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime } from \"../e-shape-runtime\";\nimport { EShapeRuntimeReset } from \"../e-shape-runtime-reset\";\nimport { EShapeActionEnvironment } from \"./e-shape-action-environment\";\nimport { EShapeActionRuntimeTransformMove } from \"./e-shape-action-runtime-transform-move\";\nimport { EShapeActionValueTransformMove } from \"./e-shape-action-value-transform-move\";\n\nexport class EShapeActionRuntimeTransformMoveForwardOrBackward extends EShapeActionRuntimeTransformMove {\n\tconstructor(value: EShapeActionValueTransformMove) {\n\t\tsuper(value, EShapeRuntimeReset.POSITION);\n\t}\n\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void {\n\t\tif (this.condition(shape, time, EShapeActionEnvironment)) {\n\t\t\tconst amount = this.amount(shape, time, EShapeActionEnvironment);\n\t\t\tconst transform = shape.transform;\n\t\t\tconst position = transform.position;\n\t\t\tconst writtenPositionX = !!(runtime.written & EShapeRuntimeReset.POSITION_X);\n\t\t\tconst writtenPositionY = !!(runtime.written & EShapeRuntimeReset.POSITION_Y);\n\t\t\tconst oldPositionX = writtenPositionX ? position.x : runtime.x;\n\t\t\tconst oldPositionY = writtenPositionY ? position.y : runtime.y;\n\t\t\tposition.set(\n\t\t\t\toldPositionX - transform.cy * amount,\n\t\t\t\toldPositionY - transform.sy * amount\n\t\t\t);\n\t\t\truntime.written |= this.reset;\n\t\t}\n\t}\n}\n"]}
@@ -20,9 +20,7 @@ var EShapeActionRuntimeTransformMoveLeftOrRight = /** @class */ (function (_supe
20
20
  var writtenPositionY = !!(runtime.written & EShapeRuntimeReset.POSITION_Y);
21
21
  var oldPositionX = writtenPositionX ? position.x : runtime.x;
22
22
  var oldPositionY = writtenPositionY ? position.y : runtime.y;
23
- shape.updateTransform();
24
- var localTransform = transform.localTransform;
25
- position.set(oldPositionX + localTransform.a * amount, oldPositionY + localTransform.b * amount);
23
+ position.set(oldPositionX + transform.cx * amount, oldPositionY + transform.sx * amount);
26
24
  runtime.written |= this.reset;
27
25
  }
28
26
  };
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-action-runtime-transform-move-left-or-right.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-left-or-right.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,gCAAgC,EAAE,MAAM,yCAAyC,CAAC;AAG3F;IAAiE,+DAAgC;IAChG,qDAAY,KAAqC;QAChD,OAAA,MAAK,YAAC,KAAK,EAAE,kBAAkB,CAAC,QAAQ,CAAC,SAAC;IAC3C,CAAC;IAED,6DAAO,GAAP,UAAQ,KAAa,EAAE,OAAsB,EAAE,IAAY;QAC1D,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,uBAAuB,CAAC,EAAE,CAAC;YAC1D,IAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,uBAAuB,CAAC,CAAC;YACjE,IAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;YAClC,IAAM,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC;YACpC,IAAM,gBAAgB,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC;YAC7E,IAAM,gBAAgB,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC;YAC7E,IAAM,YAAY,GAAG,gBAAgB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAC/D,IAAM,YAAY,GAAG,gBAAgB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAC/D,KAAK,CAAC,eAAe,EAAE,CAAC;YACxB,IAAM,cAAc,GAAG,SAAS,CAAC,cAAc,CAAC;YAChD,QAAQ,CAAC,GAAG,CACX,YAAY,GAAG,cAAc,CAAC,CAAC,GAAG,MAAM,EACxC,YAAY,GAAG,cAAc,CAAC,CAAC,GAAG,MAAM,CACxC,CAAC;YACF,OAAO,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC;QAC/B,CAAC;IACF,CAAC;IACF,kDAAC;AAAD,CAAC,AAvBD,CAAiE,gCAAgC,GAuBhG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime } from \"../e-shape-runtime\";\nimport { EShapeRuntimeReset } from \"../e-shape-runtime-reset\";\nimport { EShapeActionEnvironment } from \"./e-shape-action-environment\";\nimport { EShapeActionRuntimeTransformMove } from \"./e-shape-action-runtime-transform-move\";\nimport { EShapeActionValueTransformMove } from \"./e-shape-action-value-transform-move\";\n\nexport class EShapeActionRuntimeTransformMoveLeftOrRight extends EShapeActionRuntimeTransformMove {\n\tconstructor(value: EShapeActionValueTransformMove) {\n\t\tsuper(value, EShapeRuntimeReset.POSITION);\n\t}\n\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void {\n\t\tif (this.condition(shape, time, EShapeActionEnvironment)) {\n\t\t\tconst amount = this.amount(shape, time, EShapeActionEnvironment);\n\t\t\tconst transform = shape.transform;\n\t\t\tconst position = transform.position;\n\t\t\tconst writtenPositionX = !!(runtime.written & EShapeRuntimeReset.POSITION_X);\n\t\t\tconst writtenPositionY = !!(runtime.written & EShapeRuntimeReset.POSITION_Y);\n\t\t\tconst oldPositionX = writtenPositionX ? position.x : runtime.x;\n\t\t\tconst oldPositionY = writtenPositionY ? position.y : runtime.y;\n\t\t\tshape.updateTransform();\n\t\t\tconst localTransform = transform.localTransform;\n\t\t\tposition.set(\n\t\t\t\toldPositionX + localTransform.a * amount,\n\t\t\t\toldPositionY + localTransform.b * amount\n\t\t\t);\n\t\t\truntime.written |= this.reset;\n\t\t}\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-shape-action-runtime-transform-move-left-or-right.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-left-or-right.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,gCAAgC,EAAE,MAAM,yCAAyC,CAAC;AAG3F;IAAiE,+DAAgC;IAChG,qDAAY,KAAqC;QAChD,OAAA,MAAK,YAAC,KAAK,EAAE,kBAAkB,CAAC,QAAQ,CAAC,SAAC;IAC3C,CAAC;IAED,6DAAO,GAAP,UAAQ,KAAa,EAAE,OAAsB,EAAE,IAAY;QAC1D,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,uBAAuB,CAAC,EAAE,CAAC;YAC1D,IAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,uBAAuB,CAAC,CAAC;YACjE,IAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC;YAClC,IAAM,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC;YACpC,IAAM,gBAAgB,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC;YAC7E,IAAM,gBAAgB,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC;YAC7E,IAAM,YAAY,GAAG,gBAAgB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAC/D,IAAM,YAAY,GAAG,gBAAgB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;YAC/D,QAAQ,CAAC,GAAG,CACX,YAAY,GAAG,SAAS,CAAC,EAAE,GAAG,MAAM,EACpC,YAAY,GAAG,SAAS,CAAC,EAAE,GAAG,MAAM,CACpC,CAAC;YACF,OAAO,CAAC,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC;QAC/B,CAAC;IACF,CAAC;IACF,kDAAC;AAAD,CAAC,AArBD,CAAiE,gCAAgC,GAqBhG","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime } from \"../e-shape-runtime\";\nimport { EShapeRuntimeReset } from \"../e-shape-runtime-reset\";\nimport { EShapeActionEnvironment } from \"./e-shape-action-environment\";\nimport { EShapeActionRuntimeTransformMove } from \"./e-shape-action-runtime-transform-move\";\nimport { EShapeActionValueTransformMove } from \"./e-shape-action-value-transform-move\";\n\nexport class EShapeActionRuntimeTransformMoveLeftOrRight extends EShapeActionRuntimeTransformMove {\n\tconstructor(value: EShapeActionValueTransformMove) {\n\t\tsuper(value, EShapeRuntimeReset.POSITION);\n\t}\n\n\texecute(shape: EShape, runtime: EShapeRuntime, time: number): void {\n\t\tif (this.condition(shape, time, EShapeActionEnvironment)) {\n\t\t\tconst amount = this.amount(shape, time, EShapeActionEnvironment);\n\t\t\tconst transform = shape.transform;\n\t\t\tconst position = transform.position;\n\t\t\tconst writtenPositionX = !!(runtime.written & EShapeRuntimeReset.POSITION_X);\n\t\t\tconst writtenPositionY = !!(runtime.written & EShapeRuntimeReset.POSITION_Y);\n\t\t\tconst oldPositionX = writtenPositionX ? position.x : runtime.x;\n\t\t\tconst oldPositionY = writtenPositionY ? position.y : runtime.y;\n\t\t\tposition.set(\n\t\t\t\toldPositionX + transform.cx * amount,\n\t\t\t\toldPositionY + transform.sx * amount\n\t\t\t);\n\t\t\truntime.written |= this.reset;\n\t\t}\n\t}\n}\n"]}
@@ -38,16 +38,14 @@ var EShapeActionRuntimeTransformResize = /** @class */ (function (_super) {
38
38
  EShapeActionRuntimeTransformResize.prototype.adjustPosition = function (shape, runtime, dsx, dsy, originX, originY) {
39
39
  var dx = (-0.5 + originX) * dsx;
40
40
  var dy = (-0.5 + originY) * dsy;
41
- shape.updateTransform();
42
41
  var transform = shape.transform;
43
42
  var position = transform.position;
44
- var localTransform = transform.localTransform;
45
43
  var writtenPositionX = !!(runtime.written & EShapeRuntimeReset.POSITION_X);
46
44
  var writtenPositionY = !!(runtime.written & EShapeRuntimeReset.POSITION_Y);
47
45
  var oldPositionX = writtenPositionX ? position.x : runtime.x;
48
46
  var oldPositionY = writtenPositionY ? position.y : runtime.y;
49
47
  runtime.written |= EShapeRuntimeReset.POSITION;
50
- position.set(oldPositionX + dx * localTransform.a + dy * localTransform.c, oldPositionY + dx * localTransform.b + dy * localTransform.d);
48
+ position.set(oldPositionX + dx * transform.cx + dy * transform.cy, oldPositionY + dx * transform.sx + dy * transform.sy);
51
49
  };
52
50
  return EShapeActionRuntimeTransformResize;
53
51
  }(EShapeActionRuntimeConditional));
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-action-runtime-transform-resize.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAEtF,OAAO,EAAE,oCAAoC,EAAE,MAAM,8CAA8C,CAAC;AAEpG;IAAwD,sDAA8B;IAGrF,4CAAY,KAAuC,EAAE,KAAyB;QAC7E,YAAA,MAAK,YAAC,KAAK,EAAE,KAAK,CAAC,SAAC;QACpB,Q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K,CAAC,SAAS,CAAC;QAClC,IAAM,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC;QACpC,IAAM,cAAc,GAAG,SAAS,CAAC,cAAc,CAAC;QAChD,IAAM,gBAAgB,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAC7E,IAAM,gBAAgB,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC;QAC7E,IAAM,YAAY,GAAG,gBAAgB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QAC/D,IAAM,YAAY,GAAG,gBAAgB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QAC/D,OAAO,CAAC,OAAO,IAAI,kBAAkB,CAAC,QAAQ,CAAC;QAC/C,QAAQ,CAAC,GAAG,CACX,YAAY,GAAG,EAAE,GAAG,cAAc,CAAC,CAAC,GAAG,EAAE,GAAG,cAAc,CAAC,CAAC,EAC5D,YAAY,GAAG,EAAE,GAAG,cAAc,CAAC,CAAC,GAAG,EAAE,GAAG,cAAc,CAAC,CAAC,CAC5D,CAAC;IACH,CAAC;IACF,yCAAC;AAAD,CAAC,AArDD,CAAwD,8BAA8B,GAqDrF","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime } from \"../e-shape-runtime\";\nimport { EShapeRuntimeReset } from \"../e-shape-runtime-reset\";\nimport { EShapeActionExpression } from \"./e-shape-action-expression\";\nimport { EShapeActionExpressions } from \"./e-shape-action-expressions\";\nimport { EShapeActionRuntimeConditional } from \"./e-shape-action-runtime-conditional\";\nimport { EShapeActionValueTransformResize } from \"./e-shape-action-value-transform-resize\";\nimport { EShapeActionValueTransformResizeType } from \"./e-shape-action-value-transform-resize-type\";\n\nexport class EShapeActionRuntimeTransformResize extends EShapeActionRuntimeConditional {\n\tprotected readonly size: EShapeActionExpression<number>;\n\n\tconstructor(value: EShapeActionValueTransformResize, reset: EShapeRuntimeReset) {\n\t\tsuper(value, reset);\n\t\tswitch (value.opetype) {\n\t\t\tcase EShapeActionValueTransformResizeType.RELATIVE_SIZE:\n\t\t\t\tthis.size = EShapeActionExpressions.ofNumberOrOne(value.amount);\n\t\t\t\tbreak;\n\t\t\tcase EShapeActionValueTransformResizeType.ABSOLUTE_SIZE:\n\t\t\t\tthis.size = EShapeActionExpressions.ofNumberOrOneHundred(value.amount);\n\t\t\t\tbreak;\n\t\t\tcase EShapeActionValueTransformResizeType.RELATIVE_HEIGHT:\n\t\t\t\tthis.size = EShapeActionExpressions.ofNumberOrOne(value.amount);\n\t\t\t\tbreak;\n\t\t\tcase EShapeActionValueTransformResizeType.ABSOLUTE_HEIGHT:\n\t\t\t\tthis.size = EShapeActionExpressions.ofNumberOrOneHundred(value.amount);\n\t\t\t\tbreak;\n\t\t\tcase EShapeActionValueTransformResizeType.RELATIVE_WIDTH:\n\t\t\t\tthis.size = EShapeActionExpressions.ofNumberOrOne(value.amount);\n\t\t\t\tbreak;\n\t\t\tcase EShapeActionValueTransformResizeType.ABSOLUTE_WIDTH:\n\t\t\t\tthis.size = EShapeActionExpressions.ofNumberOrOneHundred(value.amount);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthis.size = EShapeActionExpressions.ONE;\n\t\t}\n\t}\n\n\tprotected adjustPosition(\n\t\tshape: EShape,\n\t\truntime: EShapeRuntime,\n\t\tdsx: number,\n\t\tdsy: number,\n\t\toriginX: number,\n\t\toriginY: number\n\t): void {\n\t\tconst dx = (-0.5 + originX) * dsx;\n\t\tconst dy = (-0.5 + originY) * dsy;\n\t\tshape.updateTransform();\n\t\tconst transform = shape.transform;\n\t\tconst position = transform.position;\n\t\tconst localTransform = transform.localTransform;\n\t\tconst writtenPositionX = !!(runtime.written & EShapeRuntimeReset.POSITION_X);\n\t\tconst writtenPositionY = !!(runtime.written & EShapeRuntimeReset.POSITION_Y);\n\t\tconst oldPositionX = writtenPositionX ? position.x : runtime.x;\n\t\tconst oldPositionY = writtenPositionY ? position.y : runtime.y;\n\t\truntime.written |= EShapeRuntimeReset.POSITION;\n\t\tposition.set(\n\t\t\toldPositionX + dx * localTransform.a + dy * localTransform.c,\n\t\t\toldPositionY + dx * localTransform.b + dy * localTransform.d\n\t\t);\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-shape-action-runtime-transform-resize.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAIH,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;AAEtF,OAAO,EAAE,oCAAoC,EAAE,MAAM,8CAA8C,CAAC;AAEpG;IAAwD,sDAA8B;IAGrF,4CAAY,KAAuC,EAAE,KAAyB;QAC7E,YAAA,MAAK,YAAC,KAAK,EAAE,KAAK,CAAC,SAAC;QACpB,QAAQ,KAAK,CAAC,OAAO,EAAE,CAAC;YACvB,KAAK,oCAAoC,CAAC,aAAa;gBACtD,KAAI,CAAC,IAAI,GAAG,uBAAuB,CAAC,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;gBAChE,MAAM;YACP,KAAK,oCAAoC,CAAC,aAAa;gBACtD,KAAI,CAAC,IAAI,GAAG,uBAAuB,CAAC,oBAAoB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;gBACvE,MAAM;YACP,KAAK,oCAAoC,CAAC,eAAe;gBACxD,KAAI,CAAC,IAAI,GAAG,uBAAuB,CAAC,aAAa,CAAC,KAAK,CAAC,MAA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,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QAC/D,OAAO,CAAC,OAAO,IAAI,kBAAkB,CAAC,QAAQ,CAAC;QAC/C,QAAQ,CAAC,GAAG,CACX,YAAY,GAAG,EAAE,GAAG,SAAS,CAAC,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC,EAAE,EACpD,YAAY,GAAG,EAAE,GAAG,SAAS,CAAC,EAAE,GAAG,EAAE,GAAG,SAAS,CAAC,EAAE,CACpD,CAAC;IACH,CAAC;IACF,yCAAC;AAAD,CAAC,AAnDD,CAAwD,8BAA8B,GAmDrF","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"../e-shape\";\nimport { EShapeRuntime } from \"../e-shape-runtime\";\nimport { EShapeRuntimeReset } from \"../e-shape-runtime-reset\";\nimport { EShapeActionExpression } from \"./e-shape-action-expression\";\nimport { EShapeActionExpressions } from \"./e-shape-action-expressions\";\nimport { EShapeActionRuntimeConditional } from \"./e-shape-action-runtime-conditional\";\nimport { EShapeActionValueTransformResize } from \"./e-shape-action-value-transform-resize\";\nimport { EShapeActionValueTransformResizeType } from \"./e-shape-action-value-transform-resize-type\";\n\nexport class EShapeActionRuntimeTransformResize extends EShapeActionRuntimeConditional {\n\tprotected readonly size: EShapeActionExpression<number>;\n\n\tconstructor(value: EShapeActionValueTransformResize, reset: EShapeRuntimeReset) {\n\t\tsuper(value, reset);\n\t\tswitch (value.opetype) {\n\t\t\tcase EShapeActionValueTransformResizeType.RELATIVE_SIZE:\n\t\t\t\tthis.size = EShapeActionExpressions.ofNumberOrOne(value.amount);\n\t\t\t\tbreak;\n\t\t\tcase EShapeActionValueTransformResizeType.ABSOLUTE_SIZE:\n\t\t\t\tthis.size = EShapeActionExpressions.ofNumberOrOneHundred(value.amount);\n\t\t\t\tbreak;\n\t\t\tcase EShapeActionValueTransformResizeType.RELATIVE_HEIGHT:\n\t\t\t\tthis.size = EShapeActionExpressions.ofNumberOrOne(value.amount);\n\t\t\t\tbreak;\n\t\t\tcase EShapeActionValueTransformResizeType.ABSOLUTE_HEIGHT:\n\t\t\t\tthis.size = EShapeActionExpressions.ofNumberOrOneHundred(value.amount);\n\t\t\t\tbreak;\n\t\t\tcase EShapeActionValueTransformResizeType.RELATIVE_WIDTH:\n\t\t\t\tthis.size = EShapeActionExpressions.ofNumberOrOne(value.amount);\n\t\t\t\tbreak;\n\t\t\tcase EShapeActionValueTransformResizeType.ABSOLUTE_WIDTH:\n\t\t\t\tthis.size = EShapeActionExpressions.ofNumberOrOneHundred(value.amount);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tthis.size = EShapeActionExpressions.ONE;\n\t\t}\n\t}\n\n\tprotected adjustPosition(\n\t\tshape: EShape,\n\t\truntime: EShapeRuntime,\n\t\tdsx: number,\n\t\tdsy: number,\n\t\toriginX: number,\n\t\toriginY: number\n\t): void {\n\t\tconst dx = (-0.5 + originX) * dsx;\n\t\tconst dy = (-0.5 + originY) * dsy;\n\t\tconst transform = shape.transform;\n\t\tconst position = transform.position;\n\t\tconst writtenPositionX = !!(runtime.written & EShapeRuntimeReset.POSITION_X);\n\t\tconst writtenPositionY = !!(runtime.written & EShapeRuntimeReset.POSITION_Y);\n\t\tconst oldPositionX = writtenPositionX ? position.x : runtime.x;\n\t\tconst oldPositionY = writtenPositionY ? position.y : runtime.y;\n\t\truntime.written |= EShapeRuntimeReset.POSITION;\n\t\tposition.set(\n\t\t\toldPositionX + dx * transform.cx + dy * transform.cy,\n\t\t\toldPositionY + dx * transform.sx + dy * transform.sy\n\t\t);\n\t}\n}\n"]}
@@ -32,6 +32,34 @@ var EShapeTransformImpl = /** @class */ (function (_super) {
32
32
  EShapeTransformImpl.prototype.getWorldId = function () {
33
33
  return this._worldID;
34
34
  };
35
+ Object.defineProperty(EShapeTransformImpl.prototype, "cx", {
36
+ get: function () {
37
+ return this._cx;
38
+ },
39
+ enumerable: false,
40
+ configurable: true
41
+ });
42
+ Object.defineProperty(EShapeTransformImpl.prototype, "sx", {
43
+ get: function () {
44
+ return this._sx;
45
+ },
46
+ enumerable: false,
47
+ configurable: true
48
+ });
49
+ Object.defineProperty(EShapeTransformImpl.prototype, "cy", {
50
+ get: function () {
51
+ return this._cy;
52
+ },
53
+ enumerable: false,
54
+ configurable: true
55
+ });
56
+ Object.defineProperty(EShapeTransformImpl.prototype, "sy", {
57
+ get: function () {
58
+ return this._sy;
59
+ },
60
+ enumerable: false,
61
+ configurable: true
62
+ });
35
63
  EShapeTransformImpl.prototype.updateTransform = function (parentTransform) {
36
64
  var oldLocalId = this._currentLocalID;
37
65
  var oldWorldId = this._worldID;
@@ -1 +1 @@
1
- {"version":3,"file":"e-shape-transform.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-transform.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,MAAM,EAAmB,SAAS,EAAE,MAAM,SAAS,CAAC;AAkB7D;IAAyC,uCAAS;IAIjD,6BAAY,MAA6B;QACxC,YAAA,MAAK,WAAE,SAAC;QACR,KAAI,CAAC,iBAAiB,GAAG,IAAI,MAAM,EAAE,CAAC;QACtC,KAAI,CAAC,OAAO,GAAG,MAAM,CAAC;;IACvB,CAAC;IAES,sCAAQ,GAAlB;QACC,gBAAK,CAAC,QAAQ,WAAE,CAAC;QACjB,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAClC,CAAC;IAES,wCAAU,GAApB;QACC,gBAAK,CAAC,UAAU,WAAE,CAAC;QACnB,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAClC,CAAC;IAED,+CAAiB,GAAjB;QACC,OAAO,IAAI,CAAC,eAAe,CAAC;IAC7B,CAAC;IAED,wCAAU,GAAV;QACC,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;IAED,yCAAW,GAAX;QACC,OAAO,IAAI,CAAC,SAAS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\n */\n\nimport { Matrix, ObservablePoint, Transform } from \"pixi.js\";\nimport { EShapeTransformParent } from \"./e-shape-transform-parent\";\n\nexport interface EShapeTransform extends Transform {\n\tinternalTransform: Matrix;\n\n\tposition: ObservablePoint;\n\tpivot: ObservablePoint;\n\trotation: number;\n\tskew: ObservablePoint;\n\tscale: ObservablePoint;\n\n\tgetLocalIdCurrent(): number;\n\tgetLocalId(): number;\n\tgetParentId(): number;\n\tgetWorldId(): number;\n}\n\nexport class EShapeTransformImpl extends Transform implements EShapeTransform {\n\tprotected _parent: EShapeTransformParent;\n\tinternalTransform: Matrix;\n\n\tconstructor(parent: EShapeTransformParent) {\n\t\tsuper();\n\t\tthis.internalTransform = new Matrix();\n\t\tthis._parent = parent;\n\t}\n\n\tprotected onChange(): void {\n\t\tsuper.onChange();\n\t\tthis._parent.onTransformChange();\n\t}\n\n\tprotected updateSkew(): void {\n\t\tsuper.updateSkew();\n\t\tthis._parent.onTransformChange();\n\t}\n\n\tgetLocalIdCurrent(): number {\n\t\treturn this._currentLocalID;\n\t}\n\n\tgetLocalId(): number {\n\t\treturn this._localID;\n\t}\n\n\tgetParentId(): number {\n\t\treturn this._parentID;\n\t}\n\n\tgetWorldId(): number {\n\t\treturn this._worldID;\n\t}\n\n\tupdateTransform(parentTransform: Transform): void {\n\t\tconst oldLocalId = this._currentLocalID;\n\t\tconst oldWorldId = this._worldID;\n\t\tsuper.updateTransform(parentTransform);\n\t\tconst newLocalId = this._currentLocalID;\n\t\tconst newWorldId = this._worldID;\n\t\tif (oldLocalId !== newLocalId) {\n\t\t\tconst localTransform = this.localTransform;\n\t\t\tconst internalTransform = this.internalTransform;\n\t\t\tlocalTransform.copyTo(internalTransform);\n\t\t\tif (parentTransform instanceof EShapeTransformImpl) {\n\t\t\t\tinternalTransform.prepend(parentTransform.internalTransform);\n\t\t\t}\n\t\t} else if (oldWorldId !== newWorldId) {\n\t\t\tconst localTransform = this.localTransform;\n\t\t\tconst internalTransform = this.internalTransform;\n\t\t\tif (parentTransform instanceof EShapeTransformImpl) {\n\t\t\t\tlocalTransform.copyTo(internalTransform).prepend(parentTransform.internalTransform);\n\t\t\t\tthis._currentLocalID += 1;\n\t\t\t\tthis._localID = this._currentLocalID;\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
1
+ {"version":3,"file":"e-shape-transform.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-transform.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAEH,OAAO,EAAE,MAAM,EAAmB,SAAS,EAAE,MAAM,SAAS,CAAC;AAuB7D;IAAyC,uCAAS;IAIjD,6BAAY,MAA6B;QACxC,YAAA,MAAK,WAAE,SAAC;QACR,KAAI,CAAC,iBAAiB,GAAG,IAAI,MAAM,EAAE,CAAC;QACtC,KAAI,CAAC,OAAO,GAAG,MAAM,CAAC;;IACvB,CAAC;IAES,sCAAQ,GAAlB;QACC,gBAAK,CAAC,QAAQ,WAAE,CAAC;QACjB,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAClC,CAAC;IAES,wCAAU,GAApB;QACC,gBAAK,CAAC,UAAU,WAAE,CAAC;QACnB,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,CAAC;IAClC,CAAC;IAED,+CAAiB,GAAjB;QACC,OAAO,IAAI,CAAC,eAAe,CAAC;IAC7B,CAAC;IAED,wCAAU,GAAV;QACC,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;IAED,yCAAW,GAAX;QACC,OAAO,IAAI,CAAC,SAAS,CAAC;IACvB,CAAC;IAED,wCAAU,GAAV;QACC,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;IAED,sBAAI,mCAAE;aAAN;YACC,OAAO,IAAI,CAAC,GAAG,CAAC;QACjB,CAAC;;;OAAA;IAED,sBAAI,mCAAE;aAAN;YACC,OAAO,IAAI,CAAC,GAAG,CAAC;QACjB,CAAC;;;OAAA;IAED,sBAAI,mCAAE;aAAN;Y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copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { Matrix, ObservablePoint, Transform } from \"pixi.js\";\nimport { EShapeTransformParent } from \"./e-shape-transform-parent\";\n\nexport interface EShapeTransform extends Transform {\n\tinternalTransform: Matrix;\n\n\tposition: ObservablePoint;\n\tpivot: ObservablePoint;\n\trotation: number;\n\tskew: ObservablePoint;\n\tscale: ObservablePoint;\n\n\treadonly cx: number;\n\treadonly sx: number;\n\treadonly cy: number;\n\treadonly sy: number;\n\n\tgetLocalIdCurrent(): number;\n\tgetLocalId(): number;\n\tgetParentId(): number;\n\tgetWorldId(): number;\n}\n\nexport class EShapeTransformImpl extends Transform implements EShapeTransform {\n\tprotected _parent: EShapeTransformParent;\n\tinternalTransform: Matrix;\n\n\tconstructor(parent: EShapeTransformParent) {\n\t\tsuper();\n\t\tthis.internalTransform = new Matrix();\n\t\tthis._parent = parent;\n\t}\n\n\tprotected onChange(): void {\n\t\tsuper.onChange();\n\t\tthis._parent.onTransformChange();\n\t}\n\n\tprotected updateSkew(): void {\n\t\tsuper.updateSkew();\n\t\tthis._parent.onTransformChange();\n\t}\n\n\tgetLocalIdCurrent(): number {\n\t\treturn this._currentLocalID;\n\t}\n\n\tgetLocalId(): number {\n\t\treturn this._localID;\n\t}\n\n\tgetParentId(): number {\n\t\treturn this._parentID;\n\t}\n\n\tgetWorldId(): number {\n\t\treturn this._worldID;\n\t}\n\n\tget cx(): number {\n\t\treturn this._cx;\n\t}\n\n\tget sx(): number {\n\t\treturn this._sx;\n\t}\n\n\tget cy(): number {\n\t\treturn this._cy;\n\t}\n\n\tget sy(): number {\n\t\treturn this._sy;\n\t}\n\n\tupdateTransform(parentTransform: Transform): void {\n\t\tconst oldLocalId = this._currentLocalID;\n\t\tconst oldWorldId = this._worldID;\n\t\tsuper.updateTransform(parentTransform);\n\t\tconst newLocalId = this._currentLocalID;\n\t\tconst newWorldId = this._worldID;\n\t\tif (oldLocalId !== newLocalId) {\n\t\t\tconst localTransform = this.localTransform;\n\t\t\tconst internalTransform = this.internalTransform;\n\t\t\tlocalTransform.copyTo(internalTransform);\n\t\t\tif (parentTransform instanceof EShapeTransformImpl) {\n\t\t\t\tinternalTransform.prepend(parentTransform.internalTransform);\n\t\t\t}\n\t\t} else if (oldWorldId !== newWorldId) {\n\t\t\tconst localTransform = this.localTransform;\n\t\t\tconst internalTransform = this.internalTransform;\n\t\t\tif (parentTransform instanceof EShapeTransformImpl) {\n\t\t\t\tlocalTransform.copyTo(internalTransform).prepend(parentTransform.internalTransform);\n\t\t\t\tthis._currentLocalID += 1;\n\t\t\t\tthis._localID = this._currentLocalID;\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.461.0
2
+ Winter Cardinal UI v0.462.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.461.0
2
+ Winter Cardinal UI v0.462.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.461.0
2
+ Winter Cardinal UI v0.462.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.461.0
2
+ Winter Cardinal UI v0.462.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.461.0
2
+ Winter Cardinal UI v0.462.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.461.0
2
+ Winter Cardinal UI v0.462.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.461.0
2
+ Winter Cardinal UI v0.462.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.461.0
2
+ Winter Cardinal UI v0.462.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.461.0
2
+ Winter Cardinal UI v0.462.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.461.0
2
+ Winter Cardinal UI v0.462.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.461.0
2
+ Winter Cardinal UI v0.462.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.461.0
2
+ Winter Cardinal UI v0.462.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.461.0
2
+ Winter Cardinal UI v0.462.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -4558,6 +4558,34 @@ var EShapeTransformImpl = /** @class */ (function (_super) {
4558
4558
  EShapeTransformImpl.prototype.getWorldId = function () {
4559
4559
  return this._worldID;
4560
4560
  };
4561
+ Object.defineProperty(EShapeTransformImpl.prototype, "cx", {
4562
+ get: function () {
4563
+ return this._cx;
4564
+ },
4565
+ enumerable: false,
4566
+ configurable: true
4567
+ });
4568
+ Object.defineProperty(EShapeTransformImpl.prototype, "sx", {
4569
+ get: function () {
4570
+ return this._sx;
4571
+ },
4572
+ enumerable: false,
4573
+ configurable: true
4574
+ });
4575
+ Object.defineProperty(EShapeTransformImpl.prototype, "cy", {
4576
+ get: function () {
4577
+ return this._cy;
4578
+ },
4579
+ enumerable: false,
4580
+ configurable: true
4581
+ });
4582
+ Object.defineProperty(EShapeTransformImpl.prototype, "sy", {
4583
+ get: function () {
4584
+ return this._sy;
4585
+ },
4586
+ enumerable: false,
4587
+ configurable: true
4588
+ });
4561
4589
  EShapeTransformImpl.prototype.updateTransform = function (parentTransform) {
4562
4590
  var oldLocalId = this._currentLocalID;
4563
4591
  var oldWorldId = this._worldID;
@@ -61292,9 +61320,7 @@ var EShapeActionRuntimeTransformMoveForwardOrBackward = /** @class */ (function
61292
61320
  var writtenPositionY = !!(runtime.written & EShapeRuntimeReset.POSITION_Y);
61293
61321
  var oldPositionX = writtenPositionX ? position.x : runtime.x;
61294
61322
  var oldPositionY = writtenPositionY ? position.y : runtime.y;
61295
- shape.updateTransform();
61296
- var localTransform = transform.localTransform;
61297
- position.set(oldPositionX - localTransform.c * amount, oldPositionY - localTransform.d * amount);
61323
+ position.set(oldPositionX - transform.cy * amount, oldPositionY - transform.sy * amount);
61298
61324
  runtime.written |= this.reset;
61299
61325
  }
61300
61326
  };
@@ -61319,9 +61345,7 @@ var EShapeActionRuntimeTransformMoveLeftOrRight = /** @class */ (function (_supe
61319
61345
  var writtenPositionY = !!(runtime.written & EShapeRuntimeReset.POSITION_Y);
61320
61346
  var oldPositionX = writtenPositionX ? position.x : runtime.x;
61321
61347
  var oldPositionY = writtenPositionY ? position.y : runtime.y;
61322
- shape.updateTransform();
61323
- var localTransform = transform.localTransform;
61324
- position.set(oldPositionX + localTransform.a * amount, oldPositionY + localTransform.b * amount);
61348
+ position.set(oldPositionX + transform.cx * amount, oldPositionY + transform.sx * amount);
61325
61349
  runtime.written |= this.reset;
61326
61350
  }
61327
61351
  };
@@ -61452,16 +61476,14 @@ var EShapeActionRuntimeTransformResize = /** @class */ (function (_super) {
61452
61476
  EShapeActionRuntimeTransformResize.prototype.adjustPosition = function (shape, runtime, dsx, dsy, originX, originY) {
61453
61477
  var dx = (-0.5 + originX) * dsx;
61454
61478
  var dy = (-0.5 + originY) * dsy;
61455
- shape.updateTransform();
61456
61479
  var transform = shape.transform;
61457
61480
  var position = transform.position;
61458
- var localTransform = transform.localTransform;
61459
61481
  var writtenPositionX = !!(runtime.written & EShapeRuntimeReset.POSITION_X);
61460
61482
  var writtenPositionY = !!(runtime.written & EShapeRuntimeReset.POSITION_Y);
61461
61483
  var oldPositionX = writtenPositionX ? position.x : runtime.x;
61462
61484
  var oldPositionY = writtenPositionY ? position.y : runtime.y;
61463
61485
  runtime.written |= EShapeRuntimeReset.POSITION;
61464
- position.set(oldPositionX + dx * localTransform.a + dy * localTransform.c, oldPositionY + dx * localTransform.b + dy * localTransform.d);
61486
+ position.set(oldPositionX + dx * transform.cx + dy * transform.cy, oldPositionY + dx * transform.sx + dy * transform.sy);
61465
61487
  };
61466
61488
  return EShapeActionRuntimeTransformResize;
61467
61489
  }(EShapeActionRuntimeConditional));
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.461.0
2
+ Winter Cardinal UI v0.462.1
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -4555,6 +4555,34 @@
4555
4555
  EShapeTransformImpl.prototype.getWorldId = function () {
4556
4556
  return this._worldID;
4557
4557
  };
4558
+ Object.defineProperty(EShapeTransformImpl.prototype, "cx", {
4559
+ get: function () {
4560
+ return this._cx;
4561
+ },
4562
+ enumerable: false,
4563
+ configurable: true
4564
+ });
4565
+ Object.defineProperty(EShapeTransformImpl.prototype, "sx", {
4566
+ get: function () {
4567
+ return this._sx;
4568
+ },
4569
+ enumerable: false,
4570
+ configurable: true
4571
+ });
4572
+ Object.defineProperty(EShapeTransformImpl.prototype, "cy", {
4573
+ get: function () {
4574
+ return this._cy;
4575
+ },
4576
+ enumerable: false,
4577
+ configurable: true
4578
+ });
4579
+ Object.defineProperty(EShapeTransformImpl.prototype, "sy", {
4580
+ get: function () {
4581
+ return this._sy;
4582
+ },
4583
+ enumerable: false,
4584
+ configurable: true
4585
+ });
4558
4586
  EShapeTransformImpl.prototype.updateTransform = function (parentTransform) {
4559
4587
  var oldLocalId = this._currentLocalID;
4560
4588
  var oldWorldId = this._worldID;
@@ -39143,9 +39171,7 @@
39143
39171
  var writtenPositionY = !!(runtime.written & EShapeRuntimeReset.POSITION_Y);
39144
39172
  var oldPositionX = writtenPositionX ? position.x : runtime.x;
39145
39173
  var oldPositionY = writtenPositionY ? position.y : runtime.y;
39146
- shape.updateTransform();
39147
- var localTransform = transform.localTransform;
39148
- position.set(oldPositionX - localTransform.c * amount, oldPositionY - localTransform.d * amount);
39174
+ position.set(oldPositionX - transform.cy * amount, oldPositionY - transform.sy * amount);
39149
39175
  runtime.written |= this.reset;
39150
39176
  }
39151
39177
  };
@@ -39170,9 +39196,7 @@
39170
39196
  var writtenPositionY = !!(runtime.written & EShapeRuntimeReset.POSITION_Y);
39171
39197
  var oldPositionX = writtenPositionX ? position.x : runtime.x;
39172
39198
  var oldPositionY = writtenPositionY ? position.y : runtime.y;
39173
- shape.updateTransform();
39174
- var localTransform = transform.localTransform;
39175
- position.set(oldPositionX + localTransform.a * amount, oldPositionY + localTransform.b * amount);
39199
+ position.set(oldPositionX + transform.cx * amount, oldPositionY + transform.sx * amount);
39176
39200
  runtime.written |= this.reset;
39177
39201
  }
39178
39202
  };
@@ -39358,16 +39382,14 @@
39358
39382
  EShapeActionRuntimeTransformResize.prototype.adjustPosition = function (shape, runtime, dsx, dsy, originX, originY) {
39359
39383
  var dx = (-0.5 + originX) * dsx;
39360
39384
  var dy = (-0.5 + originY) * dsy;
39361
- shape.updateTransform();
39362
39385
  var transform = shape.transform;
39363
39386
  var position = transform.position;
39364
- var localTransform = transform.localTransform;
39365
39387
  var writtenPositionX = !!(runtime.written & EShapeRuntimeReset.POSITION_X);
39366
39388
  var writtenPositionY = !!(runtime.written & EShapeRuntimeReset.POSITION_Y);
39367
39389
  var oldPositionX = writtenPositionX ? position.x : runtime.x;
39368
39390
  var oldPositionY = writtenPositionY ? position.y : runtime.y;
39369
39391
  runtime.written |= EShapeRuntimeReset.POSITION;
39370
- position.set(oldPositionX + dx * localTransform.a + dy * localTransform.c, oldPositionY + dx * localTransform.b + dy * localTransform.d);
39392
+ position.set(oldPositionX + dx * transform.cx + dy * transform.cy, oldPositionY + dx * transform.sx + dy * transform.sy);
39371
39393
  };
39372
39394
  return EShapeActionRuntimeTransformResize;
39373
39395
  }(EShapeActionRuntimeConditional));