@wcardinal/wcardinal-ui 0.460.0-beta.0 → 0.461.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 (95) 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-impl.d.ts +3 -1
  17. package/dist/types/wcardinal/ui/shape/e-shape-runtime.d.ts +3 -1
  18. package/dist/types/wcardinal/ui/shape/e-shape-state-set-impl-observable.d.ts +5 -0
  19. package/dist/types/wcardinal/ui/shape/e-shape-state-set.d.ts +4 -0
  20. package/dist/types/wcardinal/ui/shape/e-shape-state.d.ts +1 -0
  21. package/dist/types/wcardinal/ui/theme/common/new-shape-drag-image.d.ts +1 -0
  22. package/dist/types/wcardinal/ui/theme/dark/e-theme-dark-shape-action-value-open.d.ts +9 -0
  23. package/dist/types/wcardinal/ui/theme/dark/index-zz-zz.d.ts +1 -0
  24. package/dist/types/wcardinal/ui/theme/white/e-theme-white-shape-action-value-open.d.ts +9 -0
  25. package/dist/types/wcardinal/ui/theme/white/index-zz-zz.d.ts +1 -0
  26. package/dist/types/wcardinal/ui/util/util-file-opener.d.ts +3 -1
  27. package/dist/wcardinal/ui/d-application-layer.js +30 -8
  28. package/dist/wcardinal/ui/d-application-layer.js.map +1 -1
  29. package/dist/wcardinal/ui/d-chart-plot-area-twofold-sub-base.js.map +1 -1
  30. package/dist/wcardinal/ui/d-chart-plot-area-twofold-sub-primary.js.map +1 -1
  31. package/dist/wcardinal/ui/d-chart-plot-area-twofold-sub-secondary.js.map +1 -1
  32. package/dist/wcardinal/ui/d-chart-plot-area-twofold-sub.js.map +1 -1
  33. package/dist/wcardinal/ui/d-diagram-canvas-editor.js.map +1 -1
  34. package/dist/wcardinal/ui/d-diagram-canvas.js +66 -14
  35. package/dist/wcardinal/ui/d-diagram-canvas.js.map +1 -1
  36. package/dist/wcardinal/ui/d-diagram.js +7 -0
  37. package/dist/wcardinal/ui/d-diagram.js.map +1 -1
  38. package/dist/wcardinal/ui/d-view-to-target.js.map +1 -1
  39. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-base.js +6 -0
  40. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-base.js.map +1 -1
  41. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open-dropped.js +17 -0
  42. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open-dropped.js.map +1 -0
  43. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open.js +39 -0
  44. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime-open.js.map +1 -1
  45. package/dist/wcardinal/ui/shape/action/e-shape-action-runtime.js.map +1 -1
  46. package/dist/wcardinal/ui/shape/action/e-shape-action-value-open.js.map +1 -1
  47. package/dist/wcardinal/ui/shape/action/index.js +1 -0
  48. package/dist/wcardinal/ui/shape/action/index.js.map +1 -1
  49. package/dist/wcardinal/ui/shape/e-shape-runtime-impl.js +32 -0
  50. package/dist/wcardinal/ui/shape/e-shape-runtime-impl.js.map +1 -1
  51. package/dist/wcardinal/ui/shape/e-shape-runtime.js.map +1 -1
  52. package/dist/wcardinal/ui/shape/e-shape-state-set-impl-observable.js +31 -0
  53. package/dist/wcardinal/ui/shape/e-shape-state-set-impl-observable.js.map +1 -1
  54. package/dist/wcardinal/ui/shape/e-shape-state-set.js.map +1 -1
  55. package/dist/wcardinal/ui/shape/e-shape-state.js +1 -0
  56. package/dist/wcardinal/ui/shape/e-shape-state.js.map +1 -1
  57. package/dist/wcardinal/ui/theme/common/new-shape-drag-image.js +26 -0
  58. package/dist/wcardinal/ui/theme/common/new-shape-drag-image.js.map +1 -0
  59. package/dist/wcardinal/ui/theme/dark/e-theme-dark-shape-action-value-open.js +32 -0
  60. package/dist/wcardinal/ui/theme/dark/e-theme-dark-shape-action-value-open.js.map +1 -0
  61. package/dist/wcardinal/ui/theme/dark/index-zz-zz.js +1 -0
  62. package/dist/wcardinal/ui/theme/dark/index-zz-zz.js.map +1 -1
  63. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-shape-action-value.js +2 -0
  64. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-shape-action-value.js.map +1 -1
  65. package/dist/wcardinal/ui/theme/white/e-theme-white-shape-action-value-open.js +32 -0
  66. package/dist/wcardinal/ui/theme/white/e-theme-white-shape-action-value-open.js.map +1 -0
  67. package/dist/wcardinal/ui/theme/white/index-zz-zz.js +1 -0
  68. package/dist/wcardinal/ui/theme/white/index-zz-zz.js.map +1 -1
  69. package/dist/wcardinal/ui/theme/white/load/load-theme-white-shape-action-value.js +2 -0
  70. package/dist/wcardinal/ui/theme/white/load/load-theme-white-shape-action-value.js.map +1 -1
  71. package/dist/wcardinal/ui/util/util-file-downloader.js +21 -1
  72. package/dist/wcardinal/ui/util/util-file-downloader.js.map +1 -1
  73. package/dist/wcardinal/ui/util/util-file-opener.js +5 -3
  74. package/dist/wcardinal/ui/util/util-file-opener.js.map +1 -1
  75. package/dist/wcardinal-ui-theme-dark-en-us.js +57 -1
  76. package/dist/wcardinal-ui-theme-dark-en-us.min.js +2 -2
  77. package/dist/wcardinal-ui-theme-dark-en-us.min.js.map +1 -1
  78. package/dist/wcardinal-ui-theme-dark-ja-jp.js +57 -1
  79. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +2 -2
  80. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js.map +1 -1
  81. package/dist/wcardinal-ui-theme-dark.js +57 -1
  82. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  83. package/dist/wcardinal-ui-theme-white-en-us.js +57 -1
  84. package/dist/wcardinal-ui-theme-white-en-us.min.js +2 -2
  85. package/dist/wcardinal-ui-theme-white-en-us.min.js.map +1 -1
  86. package/dist/wcardinal-ui-theme-white-ja-jp.js +57 -1
  87. package/dist/wcardinal-ui-theme-white-ja-jp.min.js +2 -2
  88. package/dist/wcardinal-ui-theme-white-ja-jp.min.js.map +1 -1
  89. package/dist/wcardinal-ui-theme-white.js +57 -1
  90. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  91. package/dist/wcardinal-ui.cjs.js +38861 -38548
  92. package/dist/wcardinal-ui.js +254 -27
  93. package/dist/wcardinal-ui.min.js +2 -2
  94. package/dist/wcardinal-ui.min.js.map +1 -1
  95. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.460.0-beta.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;
@@ -24930,6 +24988,38 @@
24930
24988
  // Done
24931
24989
  return false;
24932
24990
  };
24991
+ EShapeRuntimeImpl.prototype.isDraggable = function (shape, e) {
24992
+ var state = shape.state;
24993
+ var wasDragged = state.isDragged;
24994
+ try {
24995
+ // State
24996
+ if (state.isActionable) {
24997
+ state.isDragged = true;
24998
+ }
24999
+ // Actions
25000
+ var actions = this.actions;
25001
+ for (var i = 0, imax = actions.length; i < imax; ++i) {
25002
+ if (actions[i].isDraggable(shape, this, e)) {
25003
+ return true;
25004
+ }
25005
+ }
25006
+ // Done
25007
+ return false;
25008
+ }
25009
+ finally {
25010
+ state.isDragged = wasDragged;
25011
+ }
25012
+ };
25013
+ EShapeRuntimeImpl.prototype.onDragStart = function (shape, e, interactionManager) {
25014
+ var result = false;
25015
+ var actions = this.actions;
25016
+ for (var i = 0, imax = actions.length; i < imax; ++i) {
25017
+ if (actions[i].onDragStart(shape, this, e, interactionManager)) {
25018
+ result = true;
25019
+ }
25020
+ }
25021
+ return result;
25022
+ };
24933
25023
  EShapeRuntimeImpl.prototype.onOver = function (shape, e) {
24934
25024
  var state = shape.state;
24935
25025
  if (!state.isHovered) {
@@ -26577,6 +26667,7 @@
26577
26667
  _this._updateBound = function () {
26578
26668
  DApplications.update(_this);
26579
26669
  };
26670
+ _this._dragging = null;
26580
26671
  return _this;
26581
26672
  }
26582
26673
  Object.defineProperty(DDiagramCanvas.prototype, "data", {
@@ -27034,11 +27125,15 @@
27034
27125
  if (found) {
27035
27126
  this._downeds.add(found);
27036
27127
  var target = found;
27128
+ var isDraggable = false;
27037
27129
  while (true) {
27038
27130
  var runtime = target.runtime;
27039
27131
  if (runtime) {
27040
27132
  EShapes.CURRENT = target;
27041
27133
  runtime.onDown(target, e);
27134
+ if (!isDraggable && runtime.isDraggable(target, e)) {
27135
+ isDraggable = true;
27136
+ }
27042
27137
  EShapes.CURRENT = null;
27043
27138
  }
27044
27139
  var parent_3 = target.parent;
@@ -27049,6 +27144,13 @@
27049
27144
  break;
27050
27145
  }
27051
27146
  }
27147
+ if (isDraggable && this._dragging == null) {
27148
+ var element = e.data.originalEvent.target;
27149
+ if (element instanceof HTMLCanvasElement) {
27150
+ this._dragging = element;
27151
+ element.setAttribute("draggable", "true");
27152
+ }
27153
+ }
27052
27154
  return true;
27053
27155
  }
27054
27156
  return false;
@@ -27100,9 +27202,12 @@
27100
27202
  }
27101
27203
  });
27102
27204
  downeds.clear();
27103
- return true;
27104
27205
  }
27105
- return false;
27206
+ var dragging = this._dragging;
27207
+ if (dragging != null) {
27208
+ this._dragging = null;
27209
+ dragging.removeAttribute("draggable");
27210
+ }
27106
27211
  };
27107
27212
  DDiagramCanvas.prototype.onShapeClick = function (e) {
27108
27213
  var found = this.hitTestInteractives(e.data.global);
@@ -27153,6 +27258,43 @@
27153
27258
  }
27154
27259
  return false;
27155
27260
  };
27261
+ DDiagramCanvas.prototype.onShapeDragStart = function (e, interactionManager) {
27262
+ var dragging = this._dragging;
27263
+ if (dragging != null) {
27264
+ this._dragging = null;
27265
+ dragging.removeAttribute("draggable");
27266
+ }
27267
+ var downed = this._downed;
27268
+ if (downed) {
27269
+ var result = false;
27270
+ var target = downed;
27271
+ while (true) {
27272
+ var runtime = target.runtime;
27273
+ if (runtime) {
27274
+ EShapes.CURRENT = target;
27275
+ if (runtime.onDragStart(target, e, interactionManager)) {
27276
+ result = true;
27277
+ }
27278
+ EShapes.CURRENT = null;
27279
+ }
27280
+ var parent_8 = target.parent;
27281
+ if (parent_8 instanceof EShapeBase) {
27282
+ target = parent_8;
27283
+ }
27284
+ else {
27285
+ break;
27286
+ }
27287
+ }
27288
+ if (result) {
27289
+ this.onShapeCancel(e);
27290
+ }
27291
+ else {
27292
+ e.preventDefault();
27293
+ }
27294
+ return result;
27295
+ }
27296
+ return false;
27297
+ };
27156
27298
  DDiagramCanvas.prototype.onShapeRightClick = function (e) {
27157
27299
  var found = this.hitTestInteractives(e.data.global);
27158
27300
  if (found && this._downed === found) {
@@ -27164,9 +27306,9 @@
27164
27306
  runtime.onRightClick(target, e);
27165
27307
  EShapes.CURRENT = null;
27166
27308
  }
27167
- var parent_8 = target.parent;
27168
- if (parent_8 instanceof EShapeBase) {
27169
- target = parent_8;
27309
+ var parent_9 = target.parent;
27310
+ if (parent_9 instanceof EShapeBase) {
27311
+ target = parent_9;
27170
27312
  }
27171
27313
  else {
27172
27314
  break;
@@ -27189,9 +27331,9 @@
27189
27331
  runtime.onRightDown(target, e);
27190
27332
  EShapes.CURRENT = null;
27191
27333
  }
27192
- var parent_9 = target.parent;
27193
- if (parent_9 instanceof EShapeBase) {
27194
- target = parent_9;
27334
+ var parent_10 = target.parent;
27335
+ if (parent_10 instanceof EShapeBase) {
27336
+ target = parent_10;
27195
27337
  }
27196
27338
  else {
27197
27339
  break;
@@ -27214,9 +27356,9 @@
27214
27356
  runtime.onRightUp(target, e);
27215
27357
  EShapes.CURRENT = null;
27216
27358
  }
27217
- var parent_10 = target.parent;
27218
- if (parent_10 instanceof EShapeBase) {
27219
- target = parent_10;
27359
+ var parent_11 = target.parent;
27360
+ if (parent_11 instanceof EShapeBase) {
27361
+ target = parent_11;
27220
27362
  }
27221
27363
  else {
27222
27364
  break;
@@ -27238,9 +27380,9 @@
27238
27380
  runtime.onRightUpOutside(target, e);
27239
27381
  EShapes.CURRENT = null;
27240
27382
  }
27241
- var parent_11 = target.parent;
27242
- if (parent_11 instanceof EShapeBase) {
27243
- target = parent_11;
27383
+ var parent_12 = target.parent;
27384
+ if (parent_12 instanceof EShapeBase) {
27385
+ target = parent_12;
27244
27386
  }
27245
27387
  else {
27246
27388
  break;
@@ -27834,6 +27976,13 @@
27834
27976
  return _super.prototype.onDblClick.call(this, e, manager);
27835
27977
  }
27836
27978
  };
27979
+ DDiagram.prototype.onDragStart = function (e, manager) {
27980
+ var canvas = this.canvas;
27981
+ if (canvas) {
27982
+ return canvas.onShapeDragStart(e, manager);
27983
+ }
27984
+ return false;
27985
+ };
27837
27986
  DDiagram.prototype.onPrerender = function (renderer) {
27838
27987
  var canvas = this._canvas;
27839
27988
  if (canvas) {
@@ -30194,6 +30343,22 @@
30194
30343
  return EShapeActionValueMiscExtension;
30195
30344
  }(EShapeActionValueSubtyped));
30196
30345
 
30346
+ /*
30347
+ * Copyright (C) 2026 Toshiba Corporation
30348
+ * SPDX-License-Identifier: Apache-2.0
30349
+ */
30350
+ /**
30351
+ * Data that open actions set to {@link DataTransfer.setData} when users drag and drop shapes.
30352
+ */
30353
+ var EShapeActionRuntimeOpenDropped = /** @class */ (function () {
30354
+ function EShapeActionRuntimeOpenDropped(shape, type, target) {
30355
+ this.shape = shape.id;
30356
+ this.type = type;
30357
+ this.target = target;
30358
+ }
30359
+ return EShapeActionRuntimeOpenDropped;
30360
+ }());
30361
+
30197
30362
  /*
30198
30363
  * Copyright (C) 2019 Toshiba Corporation
30199
30364
  * SPDX-License-Identifier: Apache-2.0
@@ -30207,6 +30372,43 @@
30207
30372
  _this.inNewWindow = value.inNewWindow;
30208
30373
  return _this;
30209
30374
  }
30375
+ EShapeActionRuntimeOpen.prototype.isDraggable = function (shape, runtime, e) {
30376
+ return this.condition(shape, e.data.originalEvent.timeStamp, EShapeActionEnvironment);
30377
+ };
30378
+ EShapeActionRuntimeOpen.prototype.onDragStart = function (shape, runtime, e, manager) {
30379
+ var dataTransfer = e.dataTransfer;
30380
+ if (dataTransfer == null) {
30381
+ return false;
30382
+ }
30383
+ var target = this.target(shape, e.timeStamp, EShapeActionEnvironment);
30384
+ if (target == null) {
30385
+ return false;
30386
+ }
30387
+ var data = this.toDragData(new EShapeActionRuntimeOpenDropped(shape, this.subtype, target));
30388
+ if (data == null) {
30389
+ return false;
30390
+ }
30391
+ var theme = DThemes.getInstance().get("EShapeActionValueOpen");
30392
+ dataTransfer.setData(theme.getDragDataFormat(), data);
30393
+ dataTransfer.effectAllowed = theme.getDragEffectAllowed();
30394
+ var dragImage = theme.getDragImage();
30395
+ if (dragImage != null) {
30396
+ document.body.appendChild(dragImage);
30397
+ dataTransfer.setDragImage(dragImage, theme.getDragImageOffsetX(), theme.getDragImageOffsetY());
30398
+ requestAnimationFrame(function () {
30399
+ document.body.removeChild(dragImage);
30400
+ });
30401
+ }
30402
+ return true;
30403
+ };
30404
+ EShapeActionRuntimeOpen.prototype.toDragData = function (target) {
30405
+ try {
30406
+ return JSON.stringify(target);
30407
+ }
30408
+ catch (_a) {
30409
+ return null;
30410
+ }
30411
+ };
30210
30412
  EShapeActionRuntimeOpen.prototype.execute = function (shape, runtime, time) {
30211
30413
  if (this.condition(shape, time, EShapeActionEnvironment)) {
30212
30414
  var target = this.target(shape, time, EShapeActionEnvironment);
@@ -55088,7 +55290,9 @@
55088
55290
  TEXT: 0,
55089
55291
  DATA_URL: 1,
55090
55292
  BINARY_STRING: 2,
55293
+ /** @deprecated in favor of {@link ARRAY_BUFFER} */
55091
55294
  ARRAY_BUTTER: 3,
55295
+ ARRAY_BUFFER: 3,
55092
55296
  FILE: 4
55093
55297
  };
55094
55298
  /**
@@ -55143,7 +55347,7 @@
55143
55347
  }
55144
55348
  };
55145
55349
  fileReader.onabort = function (e) {
55146
- _this.onAboart(e);
55350
+ _this.onAbort(e);
55147
55351
  };
55148
55352
  switch (this._as) {
55149
55353
  case UtilFileAs.TEXT:
@@ -55155,7 +55359,7 @@
55155
55359
  case UtilFileAs.BINARY_STRING:
55156
55360
  fileReader.readAsBinaryString(file_1);
55157
55361
  break;
55158
- case UtilFileAs.ARRAY_BUTTER:
55362
+ case UtilFileAs.ARRAY_BUFFER:
55159
55363
  fileReader.readAsArrayBuffer(file_1);
55160
55364
  break;
55161
55365
  default:
@@ -55172,7 +55376,7 @@
55172
55376
  var facade = this._facade;
55173
55377
  facade.emit("open", result, file, facade);
55174
55378
  };
55175
- UtilFileOpener.prototype.onAboart = function (e) {
55379
+ UtilFileOpener.prototype.onAbort = function (e) {
55176
55380
  var facade = this._facade;
55177
55381
  facade.emit("abort", e, facade);
55178
55382
  };
@@ -56462,6 +56666,9 @@
56462
56666
  var isDblClickable = function (target) {
56463
56667
  return target != null && target.onDblClick != null;
56464
56668
  };
56669
+ var isDragStartable = function (target) {
56670
+ return target != null && target.onDragStart != null;
56671
+ };
56465
56672
  var isWheelable = function (target) {
56466
56673
  return target != null && target.onWheel != null;
56467
56674
  };
@@ -56488,10 +56695,11 @@
56488
56695
  _this.initStage();
56489
56696
  _this.initView();
56490
56697
  _this.initRootElement();
56491
- _this.initFocusHandling();
56492
- _this.initResizeHandling();
56493
- _this.initWheelHandling();
56494
- _this.initDoubleClickHandling();
56698
+ _this.initFocus();
56699
+ _this.initResize();
56700
+ _this.initWheel();
56701
+ _this.initDblClick();
56702
+ _this.initDragStart();
56495
56703
  return _this;
56496
56704
  }
56497
56705
  DApplicationLayer.prototype.newElementContainer = function () {
@@ -56561,7 +56769,7 @@
56561
56769
  rootElementStyle.padding = "0";
56562
56770
  rootElementStyle.overflow = "hidden";
56563
56771
  };
56564
- DApplicationLayer.prototype.initFocusHandling = function () {
56772
+ DApplicationLayer.prototype.initFocus = function () {
56565
56773
  var view = this.view;
56566
56774
  var stage = this.stage;
56567
56775
  var focusController = this.getFocusController();
@@ -56574,7 +56782,7 @@
56574
56782
  }
56575
56783
  });
56576
56784
  };
56577
- DApplicationLayer.prototype.initResizeHandling = function () {
56785
+ DApplicationLayer.prototype.initResize = function () {
56578
56786
  var _this = this;
56579
56787
  var options = this._options;
56580
56788
  var isWidthFixed = options.isWidthFixed();
@@ -56619,7 +56827,7 @@
56619
56827
  this.render();
56620
56828
  }
56621
56829
  };
56622
- DApplicationLayer.prototype.initWheelHandling = function () {
56830
+ DApplicationLayer.prototype.initWheel = function () {
56623
56831
  var global = new pixi_js.Point();
56624
56832
  var util = UtilWheelEvent.getInstance();
56625
56833
  var interactionManager = this.renderer.plugins.interaction;
@@ -56641,7 +56849,7 @@
56641
56849
  }
56642
56850
  });
56643
56851
  };
56644
- DApplicationLayer.prototype.initDoubleClickHandling = function () {
56852
+ DApplicationLayer.prototype.initDblClick = function () {
56645
56853
  var focusController = this.getFocusController();
56646
56854
  var interactionManager = this.renderer.plugins.interaction;
56647
56855
  UtilPointerEvent.onDblClick(this.view, function (e) {
@@ -56659,6 +56867,24 @@
56659
56867
  }
56660
56868
  });
56661
56869
  };
56870
+ DApplicationLayer.prototype.initDragStart = function () {
56871
+ var focusController = this.getFocusController();
56872
+ var interactionManager = this.renderer.plugins.interaction;
56873
+ this.view.addEventListener("dragstart", function (e) {
56874
+ var focused = focusController.get();
56875
+ if (focused != null) {
56876
+ var current = focused;
56877
+ while (current != null) {
56878
+ if (isDragStartable(current)) {
56879
+ if (current.onDragStart(e, interactionManager)) {
56880
+ break;
56881
+ }
56882
+ }
56883
+ current = current.parent;
56884
+ }
56885
+ }
56886
+ });
56887
+ };
56662
56888
  DApplicationLayer.prototype.lock = function () {
56663
56889
  this._isLocked = true;
56664
56890
  };
@@ -83276,6 +83502,7 @@
83276
83502
  EShapeActionRuntimeOpenDialogText: EShapeActionRuntimeOpenDialogText,
83277
83503
  EShapeActionRuntimeOpenDialogTime: EShapeActionRuntimeOpenDialogTime,
83278
83504
  EShapeActionRuntimeOpenDialog: EShapeActionRuntimeOpenDialog,
83505
+ EShapeActionRuntimeOpenDropped: EShapeActionRuntimeOpenDropped,
83279
83506
  EShapeActionRuntimeOpen: EShapeActionRuntimeOpen,
83280
83507
  EShapeActionRuntimeShowHideLayer: EShapeActionRuntimeShowHideLayer,
83281
83508
  EShapeActionRuntimeShowHideShape: EShapeActionRuntimeShowHideShape,