@wcardinal/wcardinal-ui 0.460.0 → 0.462.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.
Files changed (101) hide show
  1. package/dist/types/wcardinal/ui/d-application-layer.d.ts +5 -4
  2. package/dist/types/wcardinal/ui/d-chart-plot-area-twofold-sub-base.d.ts +1 -1
  3. package/dist/types/wcardinal/ui/d-chart-plot-area-twofold-sub-primary.d.ts +1 -1
  4. package/dist/types/wcardinal/ui/d-chart-plot-area-twofold-sub-secondary.d.ts +1 -1
  5. package/dist/types/wcardinal/ui/d-chart-plot-area-twofold-sub.d.ts +2 -1
  6. package/dist/types/wcardinal/ui/d-diagram-canvas-editor.d.ts +2 -1
  7. package/dist/types/wcardinal/ui/d-diagram-canvas.d.ts +3 -1
  8. package/dist/types/wcardinal/ui/d-diagram.d.ts +1 -0
  9. package/dist/types/wcardinal/ui/d-view-to-target.d.ts +1 -1
  10. package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime-base.d.ts +5 -3
  11. package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime-open-dropped.d.ts +19 -0
  12. package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime-open.d.ts +4 -0
  13. package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtime.d.ts +22 -3
  14. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-open.d.ts +7 -0
  15. package/dist/types/wcardinal/ui/shape/action/index.d.ts +1 -0
  16. package/dist/types/wcardinal/ui/shape/e-shape-runtime-drag-state.d.ts +5 -0
  17. package/dist/types/wcardinal/ui/shape/e-shape-runtime-impl.d.ts +3 -1
  18. package/dist/types/wcardinal/ui/shape/e-shape-runtime.d.ts +3 -1
  19. package/dist/types/wcardinal/ui/shape/e-shape-state-set-impl-observable.d.ts +5 -0
  20. package/dist/types/wcardinal/ui/shape/e-shape-state-set.d.ts +4 -0
  21. package/dist/types/wcardinal/ui/shape/e-shape-state.d.ts +1 -0
  22. package/dist/types/wcardinal/ui/shape/index.d.ts +1 -0
  23. package/dist/types/wcardinal/ui/theme/common/new-shape-drag-image.d.ts +1 -0
  24. package/dist/types/wcardinal/ui/theme/dark/e-theme-dark-shape-action-value-open.d.ts +9 -0
  25. package/dist/types/wcardinal/ui/theme/dark/index-zz-zz.d.ts +1 -0
  26. package/dist/types/wcardinal/ui/theme/white/e-theme-white-shape-action-value-open.d.ts +9 -0
  27. package/dist/types/wcardinal/ui/theme/white/index-zz-zz.d.ts +1 -0
  28. package/dist/types/wcardinal/ui/util/util-file-opener.d.ts +3 -1
  29. package/dist/wcardinal/ui/d-application-layer.js +30 -8
  30. package/dist/wcardinal/ui/d-application-layer.js.map +1 -1
  31. package/dist/wcardinal/ui/d-chart-plot-area-twofold-sub-base.js.map +1 -1
  32. package/dist/wcardinal/ui/d-chart-plot-area-twofold-sub-primary.js.map +1 -1
  33. package/dist/wcardinal/ui/d-chart-plot-area-twofold-sub-secondary.js.map +1 -1
  34. package/dist/wcardinal/ui/d-chart-plot-area-twofold-sub.js.map +1 -1
  35. package/dist/wcardinal/ui/d-diagram-canvas-editor.js.map +1 -1
  36. package/dist/wcardinal/ui/d-diagram-canvas.js +66 -14
  37. package/dist/wcardinal/ui/d-diagram-canvas.js.map +1 -1
  38. package/dist/wcardinal/ui/d-diagram.js +7 -0
  39. package/dist/wcardinal/ui/d-diagram.js.map +1 -1
  40. package/dist/wcardinal/ui/d-view-to-target.js.map +1 -1
  41. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-base.js +6 -0
  42. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-base.js.map +1 -1
  43. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open-dropped.js +17 -0
  44. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open-dropped.js.map +1 -0
  45. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open.js +39 -0
  46. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open.js.map +1 -1
  47. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime.js.map +1 -1
  48. package/dist/wcardinal/ui/shape/action/e-shape-action-value-open.js.map +1 -1
  49. package/dist/wcardinal/ui/shape/action/index.js +1 -0
  50. package/dist/wcardinal/ui/shape/action/index.js.map +1 -1
  51. package/dist/wcardinal/ui/shape/e-shape-runtime-drag-state.js +19 -0
  52. package/dist/wcardinal/ui/shape/e-shape-runtime-drag-state.js.map +1 -0
  53. package/dist/wcardinal/ui/shape/e-shape-runtime-impl.js +34 -0
  54. package/dist/wcardinal/ui/shape/e-shape-runtime-impl.js.map +1 -1
  55. package/dist/wcardinal/ui/shape/e-shape-runtime.js.map +1 -1
  56. package/dist/wcardinal/ui/shape/e-shape-state-set-impl-observable.js +31 -0
  57. package/dist/wcardinal/ui/shape/e-shape-state-set-impl-observable.js.map +1 -1
  58. package/dist/wcardinal/ui/shape/e-shape-state-set.js.map +1 -1
  59. package/dist/wcardinal/ui/shape/e-shape-state.js +1 -0
  60. package/dist/wcardinal/ui/shape/e-shape-state.js.map +1 -1
  61. package/dist/wcardinal/ui/shape/index.js +1 -0
  62. package/dist/wcardinal/ui/shape/index.js.map +1 -1
  63. package/dist/wcardinal/ui/theme/common/new-shape-drag-image.js +26 -0
  64. package/dist/wcardinal/ui/theme/common/new-shape-drag-image.js.map +1 -0
  65. package/dist/wcardinal/ui/theme/dark/e-theme-dark-shape-action-value-open.js +32 -0
  66. package/dist/wcardinal/ui/theme/dark/e-theme-dark-shape-action-value-open.js.map +1 -0
  67. package/dist/wcardinal/ui/theme/dark/index-zz-zz.js +1 -0
  68. package/dist/wcardinal/ui/theme/dark/index-zz-zz.js.map +1 -1
  69. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-shape-action-value.js +2 -0
  70. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-shape-action-value.js.map +1 -1
  71. package/dist/wcardinal/ui/theme/white/e-theme-white-shape-action-value-open.js +32 -0
  72. package/dist/wcardinal/ui/theme/white/e-theme-white-shape-action-value-open.js.map +1 -0
  73. package/dist/wcardinal/ui/theme/white/index-zz-zz.js +1 -0
  74. package/dist/wcardinal/ui/theme/white/index-zz-zz.js.map +1 -1
  75. package/dist/wcardinal/ui/theme/white/load/load-theme-white-shape-action-value.js +2 -0
  76. package/dist/wcardinal/ui/theme/white/load/load-theme-white-shape-action-value.js.map +1 -1
  77. package/dist/wcardinal/ui/util/util-file-downloader.js +21 -1
  78. package/dist/wcardinal/ui/util/util-file-downloader.js.map +1 -1
  79. package/dist/wcardinal/ui/util/util-file-opener.js +5 -3
  80. package/dist/wcardinal/ui/util/util-file-opener.js.map +1 -1
  81. package/dist/wcardinal-ui-theme-dark-en-us.js +57 -1
  82. package/dist/wcardinal-ui-theme-dark-en-us.min.js +2 -2
  83. package/dist/wcardinal-ui-theme-dark-en-us.min.js.map +1 -1
  84. package/dist/wcardinal-ui-theme-dark-ja-jp.js +57 -1
  85. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +2 -2
  86. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js.map +1 -1
  87. package/dist/wcardinal-ui-theme-dark.js +57 -1
  88. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  89. package/dist/wcardinal-ui-theme-white-en-us.js +57 -1
  90. package/dist/wcardinal-ui-theme-white-en-us.min.js +2 -2
  91. package/dist/wcardinal-ui-theme-white-en-us.min.js.map +1 -1
  92. package/dist/wcardinal-ui-theme-white-ja-jp.js +57 -1
  93. package/dist/wcardinal-ui-theme-white-ja-jp.min.js +2 -2
  94. package/dist/wcardinal-ui-theme-white-ja-jp.min.js.map +1 -1
  95. package/dist/wcardinal-ui-theme-white.js +57 -1
  96. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  97. package/dist/wcardinal-ui.cjs.js +38876 -38544
  98. package/dist/wcardinal-ui.js +273 -27
  99. package/dist/wcardinal-ui.min.js +2 -2
  100. package/dist/wcardinal-ui.min.js.map +1 -1
  101. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.460.0
2
+ Winter Cardinal UI v0.461.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -4082,6 +4082,7 @@
4082
4082
  var EShapeState = {
4083
4083
  CLICKED: "CLICKED",
4084
4084
  DBL_CLICKED: "DBL_CLICKED",
4085
+ DRAGGED: "DRAGGED",
4085
4086
  DOWN: "DOWN",
4086
4087
  UP: "UP",
4087
4088
  UP_OUTSIDE: "UP_OUTSIDE",
@@ -4178,6 +4179,37 @@
4178
4179
  enumerable: false,
4179
4180
  configurable: true
4180
4181
  });
4182
+ Object.defineProperty(EShapeStateSetImplObservable.prototype, "isDragged", {
4183
+ get: function () {
4184
+ return this.is(EShapeState.DRAGGED);
4185
+ },
4186
+ set: function (isDragged) {
4187
+ this.set(EShapeState.DRAGGED, isDragged);
4188
+ },
4189
+ enumerable: false,
4190
+ configurable: true
4191
+ });
4192
+ Object.defineProperty(EShapeStateSetImplObservable.prototype, "inDragged", {
4193
+ get: function () {
4194
+ return this.in(EShapeState.DRAGGED);
4195
+ },
4196
+ enumerable: false,
4197
+ configurable: true
4198
+ });
4199
+ Object.defineProperty(EShapeStateSetImplObservable.prototype, "onDragged", {
4200
+ get: function () {
4201
+ return this.on(EShapeState.DRAGGED);
4202
+ },
4203
+ enumerable: false,
4204
+ configurable: true
4205
+ });
4206
+ Object.defineProperty(EShapeStateSetImplObservable.prototype, "underDragged", {
4207
+ get: function () {
4208
+ return this.under(EShapeState.DRAGGED);
4209
+ },
4210
+ enumerable: false,
4211
+ configurable: true
4212
+ });
4181
4213
  Object.defineProperty(EShapeStateSetImplObservable.prototype, "isDown", {
4182
4214
  get: function () {
4183
4215
  return this.is(EShapeState.DOWN);
@@ -9349,6 +9381,12 @@
9349
9381
  EShapeActionRuntimeBase.prototype.onDblClick = function (shape, runtime, e, manager) {
9350
9382
  // DO NOTHING
9351
9383
  };
9384
+ EShapeActionRuntimeBase.prototype.isDraggable = function (shape, runtime, e) {
9385
+ return false;
9386
+ };
9387
+ EShapeActionRuntimeBase.prototype.onDragStart = function (shape, runtime, e, manager) {
9388
+ return false;
9389
+ };
9352
9390
  EShapeActionRuntimeBase.prototype.onDowning = function (shape, runtime, e) {
9353
9391
  // DO NOTHING
9354
9392
  };
@@ -24117,7 +24155,27 @@
24117
24155
  navigator.msSaveBlob(blob, filename);
24118
24156
  }
24119
24157
  else {
24120
- this.downloadUrl(filename, URL.createObjectURL(blob));
24158
+ var url_1 = URL.createObjectURL(blob);
24159
+ var a_1 = document.createElement("a");
24160
+ if ("download" in a_1) {
24161
+ a_1.href = url_1;
24162
+ a_1.setAttribute("download", filename);
24163
+ a_1.style.display = "none";
24164
+ document.body.appendChild(a_1);
24165
+ a_1.click();
24166
+ setTimeout(function () {
24167
+ document.body.removeChild(a_1);
24168
+ URL.revokeObjectURL(url_1);
24169
+ }, 66);
24170
+ }
24171
+ else {
24172
+ if (!window.open(url_1)) {
24173
+ location.href = url_1;
24174
+ }
24175
+ setTimeout(function () {
24176
+ URL.revokeObjectURL(url_1);
24177
+ }, 66);
24178
+ }
24121
24179
  }
24122
24180
  };
24123
24181
  return UtilFileDownloader;
@@ -24861,6 +24919,23 @@
24861
24919
  return DDiagramCanvasTile;
24862
24920
  }());
24863
24921
 
24922
+ /*
24923
+ * Copyright (C) 2026 Toshiba Corporation
24924
+ * SPDX-License-Identifier: Apache-2.0
24925
+ */
24926
+ var EShapeRuntimeDragStates = /** @class */ (function () {
24927
+ function EShapeRuntimeDragStates() {
24928
+ }
24929
+ EShapeRuntimeDragStates.get = function () {
24930
+ return this._STATE;
24931
+ };
24932
+ EShapeRuntimeDragStates.set = function (state) {
24933
+ this._STATE = state;
24934
+ };
24935
+ EShapeRuntimeDragStates._STATE = EShapeState.DRAGGED;
24936
+ return EShapeRuntimeDragStates;
24937
+ }());
24938
+
24864
24939
  /*
24865
24940
  * Copyright (C) 2019 Toshiba Corporation
24866
24941
  * SPDX-License-Identifier: Apache-2.0
@@ -24930,6 +25005,39 @@
24930
25005
  // Done
24931
25006
  return false;
24932
25007
  };
25008
+ EShapeRuntimeImpl.prototype.isDraggable = function (shape, e) {
25009
+ var state = shape.state;
25010
+ var dragState = EShapeRuntimeDragStates.get();
25011
+ var wasDragged = state.is(dragState);
25012
+ try {
25013
+ // State
25014
+ if (state.isActionable) {
25015
+ state.add(dragState);
25016
+ }
25017
+ // Actions
25018
+ var actions = this.actions;
25019
+ for (var i = 0, imax = actions.length; i < imax; ++i) {
25020
+ if (actions[i].isDraggable(shape, this, e)) {
25021
+ return true;
25022
+ }
25023
+ }
25024
+ // Done
25025
+ return false;
25026
+ }
25027
+ finally {
25028
+ state.set(dragState, wasDragged);
25029
+ }
25030
+ };
25031
+ EShapeRuntimeImpl.prototype.onDragStart = function (shape, e, interactionManager) {
25032
+ var result = false;
25033
+ var actions = this.actions;
25034
+ for (var i = 0, imax = actions.length; i < imax; ++i) {
25035
+ if (actions[i].onDragStart(shape, this, e, interactionManager)) {
25036
+ result = true;
25037
+ }
25038
+ }
25039
+ return result;
25040
+ };
24933
25041
  EShapeRuntimeImpl.prototype.onOver = function (shape, e) {
24934
25042
  var state = shape.state;
24935
25043
  if (!state.isHovered) {
@@ -26577,6 +26685,7 @@
26577
26685
  _this._updateBound = function () {
26578
26686
  DApplications.update(_this);
26579
26687
  };
26688
+ _this._dragging = null;
26580
26689
  return _this;
26581
26690
  }
26582
26691
  Object.defineProperty(DDiagramCanvas.prototype, "data", {
@@ -27034,11 +27143,15 @@
27034
27143
  if (found) {
27035
27144
  this._downeds.add(found);
27036
27145
  var target = found;
27146
+ var isDraggable = false;
27037
27147
  while (true) {
27038
27148
  var runtime = target.runtime;
27039
27149
  if (runtime) {
27040
27150
  EShapes.CURRENT = target;
27041
27151
  runtime.onDown(target, e);
27152
+ if (!isDraggable && runtime.isDraggable(target, e)) {
27153
+ isDraggable = true;
27154
+ }
27042
27155
  EShapes.CURRENT = null;
27043
27156
  }
27044
27157
  var parent_3 = target.parent;
@@ -27049,6 +27162,13 @@
27049
27162
  break;
27050
27163
  }
27051
27164
  }
27165
+ if (isDraggable && this._dragging == null) {
27166
+ var element = e.data.originalEvent.target;
27167
+ if (element instanceof HTMLCanvasElement) {
27168
+ this._dragging = element;
27169
+ element.setAttribute("draggable", "true");
27170
+ }
27171
+ }
27052
27172
  return true;
27053
27173
  }
27054
27174
  return false;
@@ -27100,9 +27220,12 @@
27100
27220
  }
27101
27221
  });
27102
27222
  downeds.clear();
27103
- return true;
27104
27223
  }
27105
- return false;
27224
+ var dragging = this._dragging;
27225
+ if (dragging != null) {
27226
+ this._dragging = null;
27227
+ dragging.removeAttribute("draggable");
27228
+ }
27106
27229
  };
27107
27230
  DDiagramCanvas.prototype.onShapeClick = function (e) {
27108
27231
  var found = this.hitTestInteractives(e.data.global);
@@ -27153,6 +27276,43 @@
27153
27276
  }
27154
27277
  return false;
27155
27278
  };
27279
+ DDiagramCanvas.prototype.onShapeDragStart = function (e, interactionManager) {
27280
+ var dragging = this._dragging;
27281
+ if (dragging != null) {
27282
+ this._dragging = null;
27283
+ dragging.removeAttribute("draggable");
27284
+ }
27285
+ var downed = this._downed;
27286
+ if (downed) {
27287
+ var result = false;
27288
+ var target = downed;
27289
+ while (true) {
27290
+ var runtime = target.runtime;
27291
+ if (runtime) {
27292
+ EShapes.CURRENT = target;
27293
+ if (runtime.onDragStart(target, e, interactionManager)) {
27294
+ result = true;
27295
+ }
27296
+ EShapes.CURRENT = null;
27297
+ }
27298
+ var parent_8 = target.parent;
27299
+ if (parent_8 instanceof EShapeBase) {
27300
+ target = parent_8;
27301
+ }
27302
+ else {
27303
+ break;
27304
+ }
27305
+ }
27306
+ if (result) {
27307
+ this.onShapeCancel(e);
27308
+ }
27309
+ else {
27310
+ e.preventDefault();
27311
+ }
27312
+ return result;
27313
+ }
27314
+ return false;
27315
+ };
27156
27316
  DDiagramCanvas.prototype.onShapeRightClick = function (e) {
27157
27317
  var found = this.hitTestInteractives(e.data.global);
27158
27318
  if (found && this._downed === found) {
@@ -27164,9 +27324,9 @@
27164
27324
  runtime.onRightClick(target, e);
27165
27325
  EShapes.CURRENT = null;
27166
27326
  }
27167
- var parent_8 = target.parent;
27168
- if (parent_8 instanceof EShapeBase) {
27169
- target = parent_8;
27327
+ var parent_9 = target.parent;
27328
+ if (parent_9 instanceof EShapeBase) {
27329
+ target = parent_9;
27170
27330
  }
27171
27331
  else {
27172
27332
  break;
@@ -27189,9 +27349,9 @@
27189
27349
  runtime.onRightDown(target, e);
27190
27350
  EShapes.CURRENT = null;
27191
27351
  }
27192
- var parent_9 = target.parent;
27193
- if (parent_9 instanceof EShapeBase) {
27194
- target = parent_9;
27352
+ var parent_10 = target.parent;
27353
+ if (parent_10 instanceof EShapeBase) {
27354
+ target = parent_10;
27195
27355
  }
27196
27356
  else {
27197
27357
  break;
@@ -27214,9 +27374,9 @@
27214
27374
  runtime.onRightUp(target, e);
27215
27375
  EShapes.CURRENT = null;
27216
27376
  }
27217
- var parent_10 = target.parent;
27218
- if (parent_10 instanceof EShapeBase) {
27219
- target = parent_10;
27377
+ var parent_11 = target.parent;
27378
+ if (parent_11 instanceof EShapeBase) {
27379
+ target = parent_11;
27220
27380
  }
27221
27381
  else {
27222
27382
  break;
@@ -27238,9 +27398,9 @@
27238
27398
  runtime.onRightUpOutside(target, e);
27239
27399
  EShapes.CURRENT = null;
27240
27400
  }
27241
- var parent_11 = target.parent;
27242
- if (parent_11 instanceof EShapeBase) {
27243
- target = parent_11;
27401
+ var parent_12 = target.parent;
27402
+ if (parent_12 instanceof EShapeBase) {
27403
+ target = parent_12;
27244
27404
  }
27245
27405
  else {
27246
27406
  break;
@@ -27834,6 +27994,13 @@
27834
27994
  return _super.prototype.onDblClick.call(this, e, manager);
27835
27995
  }
27836
27996
  };
27997
+ DDiagram.prototype.onDragStart = function (e, manager) {
27998
+ var canvas = this.canvas;
27999
+ if (canvas) {
28000
+ return canvas.onShapeDragStart(e, manager);
28001
+ }
28002
+ return false;
28003
+ };
27837
28004
  DDiagram.prototype.onPrerender = function (renderer) {
27838
28005
  var canvas = this._canvas;
27839
28006
  if (canvas) {
@@ -30194,6 +30361,22 @@
30194
30361
  return EShapeActionValueMiscExtension;
30195
30362
  }(EShapeActionValueSubtyped));
30196
30363
 
30364
+ /*
30365
+ * Copyright (C) 2026 Toshiba Corporation
30366
+ * SPDX-License-Identifier: Apache-2.0
30367
+ */
30368
+ /**
30369
+ * Data that open actions set to {@link DataTransfer.setData} when users drag and drop shapes.
30370
+ */
30371
+ var EShapeActionRuntimeOpenDropped = /** @class */ (function () {
30372
+ function EShapeActionRuntimeOpenDropped(shape, type, target) {
30373
+ this.shape = shape.id;
30374
+ this.type = type;
30375
+ this.target = target;
30376
+ }
30377
+ return EShapeActionRuntimeOpenDropped;
30378
+ }());
30379
+
30197
30380
  /*
30198
30381
  * Copyright (C) 2019 Toshiba Corporation
30199
30382
  * SPDX-License-Identifier: Apache-2.0
@@ -30207,6 +30390,43 @@
30207
30390
  _this.inNewWindow = value.inNewWindow;
30208
30391
  return _this;
30209
30392
  }
30393
+ EShapeActionRuntimeOpen.prototype.isDraggable = function (shape, runtime, e) {
30394
+ return this.condition(shape, e.data.originalEvent.timeStamp, EShapeActionEnvironment);
30395
+ };
30396
+ EShapeActionRuntimeOpen.prototype.onDragStart = function (shape, runtime, e, manager) {
30397
+ var dataTransfer = e.dataTransfer;
30398
+ if (dataTransfer == null) {
30399
+ return false;
30400
+ }
30401
+ var target = this.target(shape, e.timeStamp, EShapeActionEnvironment);
30402
+ if (target == null) {
30403
+ return false;
30404
+ }
30405
+ var data = this.toDragData(new EShapeActionRuntimeOpenDropped(shape, this.subtype, target));
30406
+ if (data == null) {
30407
+ return false;
30408
+ }
30409
+ var theme = DThemes.getInstance().get("EShapeActionValueOpen");
30410
+ dataTransfer.setData(theme.getDragDataFormat(), data);
30411
+ dataTransfer.effectAllowed = theme.getDragEffectAllowed();
30412
+ var dragImage = theme.getDragImage();
30413
+ if (dragImage != null) {
30414
+ document.body.appendChild(dragImage);
30415
+ dataTransfer.setDragImage(dragImage, theme.getDragImageOffsetX(), theme.getDragImageOffsetY());
30416
+ requestAnimationFrame(function () {
30417
+ document.body.removeChild(dragImage);
30418
+ });
30419
+ }
30420
+ return true;
30421
+ };
30422
+ EShapeActionRuntimeOpen.prototype.toDragData = function (target) {
30423
+ try {
30424
+ return JSON.stringify(target);
30425
+ }
30426
+ catch (_a) {
30427
+ return null;
30428
+ }
30429
+ };
30210
30430
  EShapeActionRuntimeOpen.prototype.execute = function (shape, runtime, time) {
30211
30431
  if (this.condition(shape, time, EShapeActionEnvironment)) {
30212
30432
  var target = this.target(shape, time, EShapeActionEnvironment);
@@ -55088,7 +55308,9 @@
55088
55308
  TEXT: 0,
55089
55309
  DATA_URL: 1,
55090
55310
  BINARY_STRING: 2,
55311
+ /** @deprecated in favor of {@link ARRAY_BUFFER} */
55091
55312
  ARRAY_BUTTER: 3,
55313
+ ARRAY_BUFFER: 3,
55092
55314
  FILE: 4
55093
55315
  };
55094
55316
  /**
@@ -55143,7 +55365,7 @@
55143
55365
  }
55144
55366
  };
55145
55367
  fileReader.onabort = function (e) {
55146
- _this.onAboart(e);
55368
+ _this.onAbort(e);
55147
55369
  };
55148
55370
  switch (this._as) {
55149
55371
  case UtilFileAs.TEXT:
@@ -55155,7 +55377,7 @@
55155
55377
  case UtilFileAs.BINARY_STRING:
55156
55378
  fileReader.readAsBinaryString(file_1);
55157
55379
  break;
55158
- case UtilFileAs.ARRAY_BUTTER:
55380
+ case UtilFileAs.ARRAY_BUFFER:
55159
55381
  fileReader.readAsArrayBuffer(file_1);
55160
55382
  break;
55161
55383
  default:
@@ -55172,7 +55394,7 @@
55172
55394
  var facade = this._facade;
55173
55395
  facade.emit("open", result, file, facade);
55174
55396
  };
55175
- UtilFileOpener.prototype.onAboart = function (e) {
55397
+ UtilFileOpener.prototype.onAbort = function (e) {
55176
55398
  var facade = this._facade;
55177
55399
  facade.emit("abort", e, facade);
55178
55400
  };
@@ -56462,6 +56684,9 @@
56462
56684
  var isDblClickable = function (target) {
56463
56685
  return target != null && target.onDblClick != null;
56464
56686
  };
56687
+ var isDragStartable = function (target) {
56688
+ return target != null && target.onDragStart != null;
56689
+ };
56465
56690
  var isWheelable = function (target) {
56466
56691
  return target != null && target.onWheel != null;
56467
56692
  };
@@ -56488,10 +56713,11 @@
56488
56713
  _this.initStage();
56489
56714
  _this.initView();
56490
56715
  _this.initRootElement();
56491
- _this.initFocusHandling();
56492
- _this.initResizeHandling();
56493
- _this.initWheelHandling();
56494
- _this.initDoubleClickHandling();
56716
+ _this.initFocus();
56717
+ _this.initResize();
56718
+ _this.initWheel();
56719
+ _this.initDblClick();
56720
+ _this.initDragStart();
56495
56721
  return _this;
56496
56722
  }
56497
56723
  DApplicationLayer.prototype.newElementContainer = function () {
@@ -56561,7 +56787,7 @@
56561
56787
  rootElementStyle.padding = "0";
56562
56788
  rootElementStyle.overflow = "hidden";
56563
56789
  };
56564
- DApplicationLayer.prototype.initFocusHandling = function () {
56790
+ DApplicationLayer.prototype.initFocus = function () {
56565
56791
  var view = this.view;
56566
56792
  var stage = this.stage;
56567
56793
  var focusController = this.getFocusController();
@@ -56574,7 +56800,7 @@
56574
56800
  }
56575
56801
  });
56576
56802
  };
56577
- DApplicationLayer.prototype.initResizeHandling = function () {
56803
+ DApplicationLayer.prototype.initResize = function () {
56578
56804
  var _this = this;
56579
56805
  var options = this._options;
56580
56806
  var isWidthFixed = options.isWidthFixed();
@@ -56619,7 +56845,7 @@
56619
56845
  this.render();
56620
56846
  }
56621
56847
  };
56622
- DApplicationLayer.prototype.initWheelHandling = function () {
56848
+ DApplicationLayer.prototype.initWheel = function () {
56623
56849
  var global = new pixi_js.Point();
56624
56850
  var util = UtilWheelEvent.getInstance();
56625
56851
  var interactionManager = this.renderer.plugins.interaction;
@@ -56641,7 +56867,7 @@
56641
56867
  }
56642
56868
  });
56643
56869
  };
56644
- DApplicationLayer.prototype.initDoubleClickHandling = function () {
56870
+ DApplicationLayer.prototype.initDblClick = function () {
56645
56871
  var focusController = this.getFocusController();
56646
56872
  var interactionManager = this.renderer.plugins.interaction;
56647
56873
  UtilPointerEvent.onDblClick(this.view, function (e) {
@@ -56659,6 +56885,24 @@
56659
56885
  }
56660
56886
  });
56661
56887
  };
56888
+ DApplicationLayer.prototype.initDragStart = function () {
56889
+ var focusController = this.getFocusController();
56890
+ var interactionManager = this.renderer.plugins.interaction;
56891
+ this.view.addEventListener("dragstart", function (e) {
56892
+ var focused = focusController.get();
56893
+ if (focused != null) {
56894
+ var current = focused;
56895
+ while (current != null) {
56896
+ if (isDragStartable(current)) {
56897
+ if (current.onDragStart(e, interactionManager)) {
56898
+ break;
56899
+ }
56900
+ }
56901
+ current = current.parent;
56902
+ }
56903
+ }
56904
+ });
56905
+ };
56662
56906
  DApplicationLayer.prototype.lock = function () {
56663
56907
  this._isLocked = true;
56664
56908
  };
@@ -83276,6 +83520,7 @@
83276
83520
  EShapeActionRuntimeOpenDialogText: EShapeActionRuntimeOpenDialogText,
83277
83521
  EShapeActionRuntimeOpenDialogTime: EShapeActionRuntimeOpenDialogTime,
83278
83522
  EShapeActionRuntimeOpenDialog: EShapeActionRuntimeOpenDialog,
83523
+ EShapeActionRuntimeOpenDropped: EShapeActionRuntimeOpenDropped,
83279
83524
  EShapeActionRuntimeOpen: EShapeActionRuntimeOpen,
83280
83525
  EShapeActionRuntimeShowHideLayer: EShapeActionRuntimeShowHideLayer,
83281
83526
  EShapeActionRuntimeShowHideShape: EShapeActionRuntimeShowHideShape,
@@ -83700,6 +83945,7 @@
83700
83945
  EShapeResourceManagerDeserializationMode: EShapeResourceManagerDeserializationMode,
83701
83946
  EShapeResourceManagerDeserialization: EShapeResourceManagerDeserialization,
83702
83947
  EShapeResourceManagerSerialization: EShapeResourceManagerSerialization,
83948
+ EShapeRuntimeDragStates: EShapeRuntimeDragStates,
83703
83949
  EShapeRuntimeImpl: EShapeRuntimeImpl,
83704
83950
  EShapeRuntimeReset: EShapeRuntimeReset,
83705
83951
  EShapeRuntimes: EShapeRuntimes,