@wcardinal/wcardinal-ui 0.461.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 (34) hide show
  1. package/dist/types/wcardinal/ui/shape/e-shape-runtime-drag-state.d.ts +5 -0
  2. package/dist/types/wcardinal/ui/shape/e-shape-transform.d.ts +8 -0
  3. package/dist/types/wcardinal/ui/shape/index.d.ts +1 -0
  4. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-forward-or-backward.js +1 -3
  5. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-forward-or-backward.js.map +1 -1
  6. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-left-or-right.js +1 -3
  7. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-move-left-or-right.js.map +1 -1
  8. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize.js +1 -3
  9. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-transform-resize.js.map +1 -1
  10. package/dist/wcardinal/ui/shape/e-shape-runtime-drag-state.js +19 -0
  11. package/dist/wcardinal/ui/shape/e-shape-runtime-drag-state.js.map +1 -0
  12. package/dist/wcardinal/ui/shape/e-shape-runtime-impl.js +5 -3
  13. package/dist/wcardinal/ui/shape/e-shape-runtime-impl.js.map +1 -1
  14. package/dist/wcardinal/ui/shape/e-shape-transform.js +28 -0
  15. package/dist/wcardinal/ui/shape/e-shape-transform.js.map +1 -1
  16. package/dist/wcardinal/ui/shape/index.js +1 -0
  17. package/dist/wcardinal/ui/shape/index.js.map +1 -1
  18. package/dist/wcardinal-ui-theme-dark-en-us.js +1 -1
  19. package/dist/wcardinal-ui-theme-dark-en-us.min.js +1 -1
  20. package/dist/wcardinal-ui-theme-dark-ja-jp.js +1 -1
  21. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +1 -1
  22. package/dist/wcardinal-ui-theme-dark.js +1 -1
  23. package/dist/wcardinal-ui-theme-dark.min.js +1 -1
  24. package/dist/wcardinal-ui-theme-white-en-us.js +1 -1
  25. package/dist/wcardinal-ui-theme-white-en-us.min.js +1 -1
  26. package/dist/wcardinal-ui-theme-white-ja-jp.js +1 -1
  27. package/dist/wcardinal-ui-theme-white-ja-jp.min.js +1 -1
  28. package/dist/wcardinal-ui-theme-white.js +1 -1
  29. package/dist/wcardinal-ui-theme-white.min.js +1 -1
  30. package/dist/wcardinal-ui.cjs.js +54 -13
  31. package/dist/wcardinal-ui.js +54 -13
  32. package/dist/wcardinal-ui.min.js +2 -2
  33. package/dist/wcardinal-ui.min.js.map +1 -1
  34. package/package.json +1 -1
@@ -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;
@@ -24922,6 +24950,23 @@ var DDiagramCanvasTile = /** @class */ (function () {
24922
24950
  return DDiagramCanvasTile;
24923
24951
  }());
24924
24952
 
24953
+ /*
24954
+ * Copyright (C) 2026 Toshiba Corporation
24955
+ * SPDX-License-Identifier: Apache-2.0
24956
+ */
24957
+ var EShapeRuntimeDragStates = /** @class */ (function () {
24958
+ function EShapeRuntimeDragStates() {
24959
+ }
24960
+ EShapeRuntimeDragStates.get = function () {
24961
+ return this._STATE;
24962
+ };
24963
+ EShapeRuntimeDragStates.set = function (state) {
24964
+ this._STATE = state;
24965
+ };
24966
+ EShapeRuntimeDragStates._STATE = EShapeState.DRAGGED;
24967
+ return EShapeRuntimeDragStates;
24968
+ }());
24969
+
24925
24970
  /*
24926
24971
  * Copyright (C) 2019 Toshiba Corporation
24927
24972
  * SPDX-License-Identifier: Apache-2.0
@@ -24993,11 +25038,12 @@ var EShapeRuntimeImpl = /** @class */ (function () {
24993
25038
  };
24994
25039
  EShapeRuntimeImpl.prototype.isDraggable = function (shape, e) {
24995
25040
  var state = shape.state;
24996
- var wasDragged = state.isDragged;
25041
+ var dragState = EShapeRuntimeDragStates.get();
25042
+ var wasDragged = state.is(dragState);
24997
25043
  try {
24998
25044
  // State
24999
25045
  if (state.isActionable) {
25000
- state.isDragged = true;
25046
+ state.add(dragState);
25001
25047
  }
25002
25048
  // Actions
25003
25049
  var actions = this.actions;
@@ -25010,7 +25056,7 @@ var EShapeRuntimeImpl = /** @class */ (function () {
25010
25056
  return false;
25011
25057
  }
25012
25058
  finally {
25013
- state.isDragged = wasDragged;
25059
+ state.set(dragState, wasDragged);
25014
25060
  }
25015
25061
  };
25016
25062
  EShapeRuntimeImpl.prototype.onDragStart = function (shape, e, interactionManager) {
@@ -61274,9 +61320,7 @@ var EShapeActionRuntimeTransformMoveForwardOrBackward = /** @class */ (function
61274
61320
  var writtenPositionY = !!(runtime.written & EShapeRuntimeReset.POSITION_Y);
61275
61321
  var oldPositionX = writtenPositionX ? position.x : runtime.x;
61276
61322
  var oldPositionY = writtenPositionY ? position.y : runtime.y;
61277
- shape.updateTransform();
61278
- var localTransform = transform.localTransform;
61279
- position.set(oldPositionX - localTransform.c * amount, oldPositionY - localTransform.d * amount);
61323
+ position.set(oldPositionX - transform.cy * amount, oldPositionY - transform.sy * amount);
61280
61324
  runtime.written |= this.reset;
61281
61325
  }
61282
61326
  };
@@ -61301,9 +61345,7 @@ var EShapeActionRuntimeTransformMoveLeftOrRight = /** @class */ (function (_supe
61301
61345
  var writtenPositionY = !!(runtime.written & EShapeRuntimeReset.POSITION_Y);
61302
61346
  var oldPositionX = writtenPositionX ? position.x : runtime.x;
61303
61347
  var oldPositionY = writtenPositionY ? position.y : runtime.y;
61304
- shape.updateTransform();
61305
- var localTransform = transform.localTransform;
61306
- position.set(oldPositionX + localTransform.a * amount, oldPositionY + localTransform.b * amount);
61348
+ position.set(oldPositionX + transform.cx * amount, oldPositionY + transform.sx * amount);
61307
61349
  runtime.written |= this.reset;
61308
61350
  }
61309
61351
  };
@@ -61434,16 +61476,14 @@ var EShapeActionRuntimeTransformResize = /** @class */ (function (_super) {
61434
61476
  EShapeActionRuntimeTransformResize.prototype.adjustPosition = function (shape, runtime, dsx, dsy, originX, originY) {
61435
61477
  var dx = (-0.5 + originX) * dsx;
61436
61478
  var dy = (-0.5 + originY) * dsy;
61437
- shape.updateTransform();
61438
61479
  var transform = shape.transform;
61439
61480
  var position = transform.position;
61440
- var localTransform = transform.localTransform;
61441
61481
  var writtenPositionX = !!(runtime.written & EShapeRuntimeReset.POSITION_X);
61442
61482
  var writtenPositionY = !!(runtime.written & EShapeRuntimeReset.POSITION_Y);
61443
61483
  var oldPositionX = writtenPositionX ? position.x : runtime.x;
61444
61484
  var oldPositionY = writtenPositionY ? position.y : runtime.y;
61445
61485
  runtime.written |= EShapeRuntimeReset.POSITION;
61446
- 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);
61447
61487
  };
61448
61488
  return EShapeActionRuntimeTransformResize;
61449
61489
  }(EShapeActionRuntimeConditional));
@@ -106074,6 +106114,7 @@ exports.EShapeRendererIteratorDatum = EShapeRendererIteratorDatum;
106074
106114
  exports.EShapeResourceManagerDeserialization = EShapeResourceManagerDeserialization;
106075
106115
  exports.EShapeResourceManagerDeserializationMode = EShapeResourceManagerDeserializationMode;
106076
106116
  exports.EShapeResourceManagerSerialization = EShapeResourceManagerSerialization;
106117
+ exports.EShapeRuntimeDragStates = EShapeRuntimeDragStates;
106077
106118
  exports.EShapeRuntimeImpl = EShapeRuntimeImpl;
106078
106119
  exports.EShapeRuntimeReset = EShapeRuntimeReset;
106079
106120
  exports.EShapeRuntimes = EShapeRuntimes;
@@ -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;
@@ -24919,6 +24947,23 @@
24919
24947
  return DDiagramCanvasTile;
24920
24948
  }());
24921
24949
 
24950
+ /*
24951
+ * Copyright (C) 2026 Toshiba Corporation
24952
+ * SPDX-License-Identifier: Apache-2.0
24953
+ */
24954
+ var EShapeRuntimeDragStates = /** @class */ (function () {
24955
+ function EShapeRuntimeDragStates() {
24956
+ }
24957
+ EShapeRuntimeDragStates.get = function () {
24958
+ return this._STATE;
24959
+ };
24960
+ EShapeRuntimeDragStates.set = function (state) {
24961
+ this._STATE = state;
24962
+ };
24963
+ EShapeRuntimeDragStates._STATE = EShapeState.DRAGGED;
24964
+ return EShapeRuntimeDragStates;
24965
+ }());
24966
+
24922
24967
  /*
24923
24968
  * Copyright (C) 2019 Toshiba Corporation
24924
24969
  * SPDX-License-Identifier: Apache-2.0
@@ -24990,11 +25035,12 @@
24990
25035
  };
24991
25036
  EShapeRuntimeImpl.prototype.isDraggable = function (shape, e) {
24992
25037
  var state = shape.state;
24993
- var wasDragged = state.isDragged;
25038
+ var dragState = EShapeRuntimeDragStates.get();
25039
+ var wasDragged = state.is(dragState);
24994
25040
  try {
24995
25041
  // State
24996
25042
  if (state.isActionable) {
24997
- state.isDragged = true;
25043
+ state.add(dragState);
24998
25044
  }
24999
25045
  // Actions
25000
25046
  var actions = this.actions;
@@ -25007,7 +25053,7 @@
25007
25053
  return false;
25008
25054
  }
25009
25055
  finally {
25010
- state.isDragged = wasDragged;
25056
+ state.set(dragState, wasDragged);
25011
25057
  }
25012
25058
  };
25013
25059
  EShapeRuntimeImpl.prototype.onDragStart = function (shape, e, interactionManager) {
@@ -39125,9 +39171,7 @@
39125
39171
  var writtenPositionY = !!(runtime.written & EShapeRuntimeReset.POSITION_Y);
39126
39172
  var oldPositionX = writtenPositionX ? position.x : runtime.x;
39127
39173
  var oldPositionY = writtenPositionY ? position.y : runtime.y;
39128
- shape.updateTransform();
39129
- var localTransform = transform.localTransform;
39130
- position.set(oldPositionX - localTransform.c * amount, oldPositionY - localTransform.d * amount);
39174
+ position.set(oldPositionX - transform.cy * amount, oldPositionY - transform.sy * amount);
39131
39175
  runtime.written |= this.reset;
39132
39176
  }
39133
39177
  };
@@ -39152,9 +39196,7 @@
39152
39196
  var writtenPositionY = !!(runtime.written & EShapeRuntimeReset.POSITION_Y);
39153
39197
  var oldPositionX = writtenPositionX ? position.x : runtime.x;
39154
39198
  var oldPositionY = writtenPositionY ? position.y : runtime.y;
39155
- shape.updateTransform();
39156
- var localTransform = transform.localTransform;
39157
- position.set(oldPositionX + localTransform.a * amount, oldPositionY + localTransform.b * amount);
39199
+ position.set(oldPositionX + transform.cx * amount, oldPositionY + transform.sx * amount);
39158
39200
  runtime.written |= this.reset;
39159
39201
  }
39160
39202
  };
@@ -39340,16 +39382,14 @@
39340
39382
  EShapeActionRuntimeTransformResize.prototype.adjustPosition = function (shape, runtime, dsx, dsy, originX, originY) {
39341
39383
  var dx = (-0.5 + originX) * dsx;
39342
39384
  var dy = (-0.5 + originY) * dsy;
39343
- shape.updateTransform();
39344
39385
  var transform = shape.transform;
39345
39386
  var position = transform.position;
39346
- var localTransform = transform.localTransform;
39347
39387
  var writtenPositionX = !!(runtime.written & EShapeRuntimeReset.POSITION_X);
39348
39388
  var writtenPositionY = !!(runtime.written & EShapeRuntimeReset.POSITION_Y);
39349
39389
  var oldPositionX = writtenPositionX ? position.x : runtime.x;
39350
39390
  var oldPositionY = writtenPositionY ? position.y : runtime.y;
39351
39391
  runtime.written |= EShapeRuntimeReset.POSITION;
39352
- 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);
39353
39393
  };
39354
39394
  return EShapeActionRuntimeTransformResize;
39355
39395
  }(EShapeActionRuntimeConditional));
@@ -83927,6 +83967,7 @@
83927
83967
  EShapeResourceManagerDeserializationMode: EShapeResourceManagerDeserializationMode,
83928
83968
  EShapeResourceManagerDeserialization: EShapeResourceManagerDeserialization,
83929
83969
  EShapeResourceManagerSerialization: EShapeResourceManagerSerialization,
83970
+ EShapeRuntimeDragStates: EShapeRuntimeDragStates,
83930
83971
  EShapeRuntimeImpl: EShapeRuntimeImpl,
83931
83972
  EShapeRuntimeReset: EShapeRuntimeReset,
83932
83973
  EShapeRuntimes: EShapeRuntimes,