@wcardinal/wcardinal-ui 0.145.0 → 0.149.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 (141) hide show
  1. package/dist/types/wcardinal/ui/d-note-small-error.d.ts +8 -0
  2. package/dist/types/wcardinal/ui/d-note-small-no-items-found.d.ts +8 -0
  3. package/dist/types/wcardinal/ui/d-note-small-searching.d.ts +8 -0
  4. package/dist/types/wcardinal/ui/d-note-small.d.ts +8 -0
  5. package/dist/types/wcardinal/ui/index.d.ts +4 -0
  6. package/dist/types/wcardinal/ui/shape/e-shape-connector-bodies.d.ts +3 -0
  7. package/dist/types/wcardinal/ui/shape/e-shape-connector-body-impl.d.ts +24 -0
  8. package/dist/types/wcardinal/ui/shape/e-shape-connector-body.d.ts +14 -0
  9. package/dist/types/wcardinal/ui/shape/e-shape-connector-edge-container.d.ts +3 -0
  10. package/dist/types/wcardinal/ui/shape/index.d.ts +3 -0
  11. package/dist/types/wcardinal/ui/shape/variant/e-shape-connector-line.d.ts +9 -2
  12. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-note-error.d.ts +0 -3
  13. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-note-no-items-found.d.ts +0 -3
  14. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-note-searching.d.ts +0 -3
  15. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-note-small-error.d.ts +5 -0
  16. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-note-small-no-items-found.d.ts +5 -0
  17. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-note-small-searching.d.ts +5 -0
  18. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-note-small.d.ts +4 -0
  19. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-note.d.ts +3 -0
  20. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-slider-thumb.d.ts +1 -0
  21. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-slider-track.d.ts +3 -0
  22. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-table-body-cells.d.ts +4 -2
  23. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-table-header-cell.d.ts +2 -0
  24. package/dist/types/wcardinal/ui/theme/dark/index.d.ts +4 -0
  25. package/dist/types/wcardinal/ui/theme/white/d-theme-white-note-error.d.ts +0 -3
  26. package/dist/types/wcardinal/ui/theme/white/d-theme-white-note-no-items-found.d.ts +0 -3
  27. package/dist/types/wcardinal/ui/theme/white/d-theme-white-note-searching.d.ts +0 -3
  28. package/dist/types/wcardinal/ui/theme/white/d-theme-white-note-small-error.d.ts +5 -0
  29. package/dist/types/wcardinal/ui/theme/white/d-theme-white-note-small-no-items-found.d.ts +5 -0
  30. package/dist/types/wcardinal/ui/theme/white/d-theme-white-note-small-searching.d.ts +5 -0
  31. package/dist/types/wcardinal/ui/theme/white/d-theme-white-note-small.d.ts +4 -0
  32. package/dist/types/wcardinal/ui/theme/white/d-theme-white-note.d.ts +3 -0
  33. package/dist/types/wcardinal/ui/theme/white/d-theme-white-slider-thumb.d.ts +1 -0
  34. package/dist/types/wcardinal/ui/theme/white/d-theme-white-slider-track.d.ts +3 -0
  35. package/dist/types/wcardinal/ui/theme/white/d-theme-white-table-body-cells.d.ts +4 -2
  36. package/dist/types/wcardinal/ui/theme/white/d-theme-white-table-header-cell.d.ts +2 -0
  37. package/dist/types/wcardinal/ui/theme/white/index.d.ts +4 -0
  38. package/dist/types/wcardinal/ui/util/util-svg-atlas-builder.d.ts +1 -0
  39. package/dist/wcardinal/ui/d-dialog-select.js +6 -6
  40. package/dist/wcardinal/ui/d-dialog-select.js.map +1 -1
  41. package/dist/wcardinal/ui/d-note-small-error.js +18 -0
  42. package/dist/wcardinal/ui/d-note-small-error.js.map +1 -0
  43. package/dist/wcardinal/ui/d-note-small-no-items-found.js +18 -0
  44. package/dist/wcardinal/ui/d-note-small-no-items-found.js.map +1 -0
  45. package/dist/wcardinal/ui/d-note-small-searching.js +18 -0
  46. package/dist/wcardinal/ui/d-note-small-searching.js.map +1 -0
  47. package/dist/wcardinal/ui/d-note-small.js +18 -0
  48. package/dist/wcardinal/ui/d-note-small.js.map +1 -0
  49. package/dist/wcardinal/ui/d-view-gesture-impl.js +12 -4
  50. package/dist/wcardinal/ui/d-view-gesture-impl.js.map +1 -1
  51. package/dist/wcardinal/ui/index.js +4 -0
  52. package/dist/wcardinal/ui/index.js.map +1 -1
  53. package/dist/wcardinal/ui/shape/e-shape-connector-bodies.js +36 -0
  54. package/dist/wcardinal/ui/shape/e-shape-connector-bodies.js.map +1 -0
  55. package/dist/wcardinal/ui/shape/e-shape-connector-body-impl.js +88 -0
  56. package/dist/wcardinal/ui/shape/e-shape-connector-body-impl.js.map +1 -0
  57. package/dist/wcardinal/ui/shape/e-shape-connector-body.js +6 -0
  58. package/dist/wcardinal/ui/shape/e-shape-connector-body.js.map +1 -0
  59. package/dist/wcardinal/ui/shape/e-shape-connector-edge-container-impl.js.map +1 -1
  60. package/dist/wcardinal/ui/shape/e-shape-connector-edge-container.js.map +1 -1
  61. package/dist/wcardinal/ui/shape/e-shape-runtime.js +6 -4
  62. package/dist/wcardinal/ui/shape/e-shape-runtime.js.map +1 -1
  63. package/dist/wcardinal/ui/shape/index.js +3 -0
  64. package/dist/wcardinal/ui/shape/index.js.map +1 -1
  65. package/dist/wcardinal/ui/shape/variant/deserialize-connector-line.js +19 -1
  66. package/dist/wcardinal/ui/shape/variant/deserialize-connector-line.js.map +1 -1
  67. package/dist/wcardinal/ui/shape/variant/e-shape-connector-line.js +104 -81
  68. package/dist/wcardinal/ui/shape/variant/e-shape-connector-line.js.map +1 -1
  69. package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-error.js +0 -9
  70. package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-error.js.map +1 -1
  71. package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-no-items-found.js +0 -10
  72. package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-no-items-found.js.map +1 -1
  73. package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-searching.js +0 -11
  74. package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-searching.js.map +1 -1
  75. package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-small-error.js +18 -0
  76. package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-small-error.js.map +1 -0
  77. package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-small-no-items-found.js +18 -0
  78. package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-small-no-items-found.js.map +1 -0
  79. package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-small-searching.js +18 -0
  80. package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-small-searching.js.map +1 -0
  81. package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-small.js +18 -0
  82. package/dist/wcardinal/ui/theme/dark/d-theme-dark-note-small.js.map +1 -0
  83. package/dist/wcardinal/ui/theme/dark/d-theme-dark-note.js +9 -2
  84. package/dist/wcardinal/ui/theme/dark/d-theme-dark-note.js.map +1 -1
  85. package/dist/wcardinal/ui/theme/dark/d-theme-dark-slider-thumb.js +3 -0
  86. package/dist/wcardinal/ui/theme/dark/d-theme-dark-slider-thumb.js.map +1 -1
  87. package/dist/wcardinal/ui/theme/dark/d-theme-dark-slider-track.js +10 -0
  88. package/dist/wcardinal/ui/theme/dark/d-theme-dark-slider-track.js.map +1 -1
  89. package/dist/wcardinal/ui/theme/dark/d-theme-dark-slider-value.js +1 -1
  90. package/dist/wcardinal/ui/theme/dark/d-theme-dark-slider-value.js.map +1 -1
  91. package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-body-cells.js +13 -5
  92. package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-body-cells.js.map +1 -1
  93. package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-header-cell.js +7 -2
  94. package/dist/wcardinal/ui/theme/dark/d-theme-dark-table-header-cell.js.map +1 -1
  95. package/dist/wcardinal/ui/theme/dark/index.js +4 -0
  96. package/dist/wcardinal/ui/theme/dark/index.js.map +1 -1
  97. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-note.js +6 -0
  98. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-note.js.map +1 -1
  99. package/dist/wcardinal/ui/theme/white/d-theme-white-note-error.js +0 -9
  100. package/dist/wcardinal/ui/theme/white/d-theme-white-note-error.js.map +1 -1
  101. package/dist/wcardinal/ui/theme/white/d-theme-white-note-no-items-found.js +0 -10
  102. package/dist/wcardinal/ui/theme/white/d-theme-white-note-no-items-found.js.map +1 -1
  103. package/dist/wcardinal/ui/theme/white/d-theme-white-note-searching.js +0 -11
  104. package/dist/wcardinal/ui/theme/white/d-theme-white-note-searching.js.map +1 -1
  105. package/dist/wcardinal/ui/theme/white/d-theme-white-note-small-error.js +18 -0
  106. package/dist/wcardinal/ui/theme/white/d-theme-white-note-small-error.js.map +1 -0
  107. package/dist/wcardinal/ui/theme/white/d-theme-white-note-small-no-items-found.js +18 -0
  108. package/dist/wcardinal/ui/theme/white/d-theme-white-note-small-no-items-found.js.map +1 -0
  109. package/dist/wcardinal/ui/theme/white/d-theme-white-note-small-searching.js +18 -0
  110. package/dist/wcardinal/ui/theme/white/d-theme-white-note-small-searching.js.map +1 -0
  111. package/dist/wcardinal/ui/theme/white/d-theme-white-note-small.js +18 -0
  112. package/dist/wcardinal/ui/theme/white/d-theme-white-note-small.js.map +1 -0
  113. package/dist/wcardinal/ui/theme/white/d-theme-white-note.js +9 -2
  114. package/dist/wcardinal/ui/theme/white/d-theme-white-note.js.map +1 -1
  115. package/dist/wcardinal/ui/theme/white/d-theme-white-slider-thumb.js +3 -0
  116. package/dist/wcardinal/ui/theme/white/d-theme-white-slider-thumb.js.map +1 -1
  117. package/dist/wcardinal/ui/theme/white/d-theme-white-slider-track.js +10 -0
  118. package/dist/wcardinal/ui/theme/white/d-theme-white-slider-track.js.map +1 -1
  119. package/dist/wcardinal/ui/theme/white/d-theme-white-slider-value.js +1 -1
  120. package/dist/wcardinal/ui/theme/white/d-theme-white-slider-value.js.map +1 -1
  121. package/dist/wcardinal/ui/theme/white/d-theme-white-table-body-cells.js +16 -5
  122. package/dist/wcardinal/ui/theme/white/d-theme-white-table-body-cells.js.map +1 -1
  123. package/dist/wcardinal/ui/theme/white/d-theme-white-table-header-cell.js +7 -2
  124. package/dist/wcardinal/ui/theme/white/d-theme-white-table-header-cell.js.map +1 -1
  125. package/dist/wcardinal/ui/theme/white/index.js +4 -0
  126. package/dist/wcardinal/ui/theme/white/index.js.map +1 -1
  127. package/dist/wcardinal/ui/theme/white/load/load-theme-white-note.js +6 -0
  128. package/dist/wcardinal/ui/theme/white/load/load-theme-white-note.js.map +1 -1
  129. package/dist/wcardinal/ui/util/util-svg-atlas-builder.js +3 -0
  130. package/dist/wcardinal/ui/util/util-svg-atlas-builder.js.map +1 -1
  131. package/dist/wcardinal-ui-theme-dark.js +111 -38
  132. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  133. package/dist/wcardinal-ui-theme-dark.min.js.map +1 -1
  134. package/dist/wcardinal-ui-theme-white.js +114 -38
  135. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  136. package/dist/wcardinal-ui-theme-white.min.js.map +1 -1
  137. package/dist/wcardinal-ui.cjs.js +577 -188
  138. package/dist/wcardinal-ui.js +354 -114
  139. package/dist/wcardinal-ui.min.js +2 -2
  140. package/dist/wcardinal-ui.min.js.map +1 -1
  141. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.145.0
2
+ Winter Cardinal UI v0.149.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -7511,10 +7511,12 @@
7511
7511
  EShapeRuntime.prototype.onKeyUp = function (shape, e) {
7512
7512
  if (UtilKeyboardEvent.isActivateKey(e)) {
7513
7513
  var state = shape.state;
7514
- var wasUp = state.isUp;
7515
- this.onUp(shape, e);
7516
- if (!wasUp && state.isUp) {
7517
- this.onClick(shape, e);
7514
+ if (state.isPressed) {
7515
+ var wasUp = state.isUp;
7516
+ this.onUp(shape, e);
7517
+ if (!wasUp && state.isUp) {
7518
+ this.onClick(shape, e);
7519
+ }
7518
7520
  }
7519
7521
  }
7520
7522
  return false;
@@ -14201,9 +14203,17 @@
14201
14203
  DViewGestureImpl.prototype.onGestureMove = function (target, dx, dy, x, y, ds) {
14202
14204
  if (target) {
14203
14205
  // Scale
14204
- var oldScale = target.scale.y;
14205
- var newScale = this._stopper.toNormalizedScale(oldScale * ds);
14206
- var scaleRatio = newScale / oldScale;
14206
+ var stopper = this._stopper;
14207
+ var oldScale = target.scale;
14208
+ var oldScaleX = oldScale.x;
14209
+ var oldScaleY = oldScale.y;
14210
+ var newScaleX = stopper.toNormalizedScale(oldScaleX * ds);
14211
+ var newScaleY = stopper.toNormalizedScale(oldScaleY * ds);
14212
+ var scaleRatioX = newScaleX / oldScaleX;
14213
+ var scaleRatioY = newScaleY / oldScaleY;
14214
+ var scaleRatio = ds < 1 ? Math.max(scaleRatioX, scaleRatioY) : Math.min(scaleRatioX, scaleRatioY);
14215
+ newScaleX = scaleRatio * oldScaleX;
14216
+ newScaleY = scaleRatio * oldScaleY;
14207
14217
  // Position
14208
14218
  var cx = x - dx;
14209
14219
  var cy = y - dy;
@@ -14211,7 +14221,7 @@
14211
14221
  var newX = (position.x - cx) * scaleRatio + x;
14212
14222
  var newY = (position.y - cy) * scaleRatio + y;
14213
14223
  // Update
14214
- target.scale.set(newScale, newScale);
14224
+ target.scale.set(newScaleX, newScaleY);
14215
14225
  target.position.set(newX, newY);
14216
14226
  }
14217
14227
  };
@@ -30898,6 +30908,41 @@
30898
30908
  return null;
30899
30909
  };
30900
30910
 
30911
+ /*
30912
+ * Copyright (C) 2019 Toshiba Corporation
30913
+ * SPDX-License-Identifier: Apache-2.0
30914
+ */
30915
+ var EShapeConnectorBodies = /** @class */ (function () {
30916
+ function EShapeConnectorBodies() {
30917
+ }
30918
+ EShapeConnectorBodies.from = function (values) {
30919
+ var result = [];
30920
+ var length = values.length;
30921
+ if (4 < length) {
30922
+ var x0 = values[0];
30923
+ var y0 = values[1];
30924
+ var x1 = values[length - 2];
30925
+ var y1 = values[length - 1];
30926
+ var cx = (x1 + x0) * 0.5;
30927
+ var cy = (y1 + y0) * 0.5;
30928
+ var dx = x1 - x0;
30929
+ var dy = y1 - y0;
30930
+ var a = Math.atan2(dy, dx);
30931
+ var c = Math.cos(a);
30932
+ var s = Math.sin(a);
30933
+ var l = dx * dx + dy * dy;
30934
+ var m = 0.000001 < l ? 1 / Math.sqrt(l) : 1;
30935
+ for (var i = 2, imax = length - 2; i < imax; i += 2) {
30936
+ var x = values[i + 0] - cx;
30937
+ var y = values[i + 1] - cy;
30938
+ result.push((c * x - s * y) * m, (c * y + s * x) * m);
30939
+ }
30940
+ }
30941
+ return result;
30942
+ };
30943
+ return EShapeConnectorBodies;
30944
+ }());
30945
+
30901
30946
  /*
30902
30947
  * Copyright (C) 2019 Toshiba Corporation
30903
30948
  * SPDX-License-Identifier: Apache-2.0
@@ -31365,6 +31410,93 @@
31365
31410
  return EShapeConnectorEdgeContainerImpl;
31366
31411
  }());
31367
31412
 
31413
+ /*
31414
+ * Copyright (C) 2019 Toshiba Corporation
31415
+ * SPDX-License-Identifier: Apache-2.0
31416
+ */
31417
+ var EShapeConnectorBodyImpl = /** @class */ (function () {
31418
+ function EShapeConnectorBodyImpl(parent, onChange) {
31419
+ this._parent = parent;
31420
+ this._id = 0;
31421
+ this._values = [];
31422
+ this._lockCount = 0;
31423
+ this._isChanged = false;
31424
+ this._onChange = onChange;
31425
+ }
31426
+ EShapeConnectorBodyImpl.prototype.lock = function () {
31427
+ this._lockCount += 1;
31428
+ if (this._lockCount === 1) {
31429
+ this._isChanged = false;
31430
+ }
31431
+ };
31432
+ EShapeConnectorBodyImpl.prototype.unlock = function () {
31433
+ this._lockCount -= 1;
31434
+ if (this._lockCount === 0) {
31435
+ if (this._isChanged) {
31436
+ this.onChange();
31437
+ }
31438
+ this._isChanged = false;
31439
+ }
31440
+ };
31441
+ Object.defineProperty(EShapeConnectorBodyImpl.prototype, "id", {
31442
+ get: function () {
31443
+ return this._id;
31444
+ },
31445
+ enumerable: false,
31446
+ configurable: true
31447
+ });
31448
+ Object.defineProperty(EShapeConnectorBodyImpl.prototype, "values", {
31449
+ get: function () {
31450
+ return this._values;
31451
+ },
31452
+ set: function (newValues) {
31453
+ this.set(newValues);
31454
+ },
31455
+ enumerable: false,
31456
+ configurable: true
31457
+ });
31458
+ EShapeConnectorBodyImpl.prototype.set = function (newValues) {
31459
+ if (newValues != null) {
31460
+ this._id += 1;
31461
+ if (this._values !== newValues) {
31462
+ var length_1 = newValues.length;
31463
+ var values = this._values;
31464
+ for (var i = 0; i < length_1; ++i) {
31465
+ values[i] = newValues[i];
31466
+ }
31467
+ values.length = length_1;
31468
+ }
31469
+ this.onChange();
31470
+ }
31471
+ return this;
31472
+ };
31473
+ EShapeConnectorBodyImpl.prototype.copy = function (source) {
31474
+ return this.set(source.values);
31475
+ };
31476
+ EShapeConnectorBodyImpl.prototype.serialize = function (manager) {
31477
+ return manager.addResource(JSON.stringify(this._values));
31478
+ };
31479
+ EShapeConnectorBodyImpl.prototype.deserialize = function (resourceId, mapping, manager) {
31480
+ var resources = manager.resources;
31481
+ if (0 <= resourceId && resourceId < resources.length) {
31482
+ var parsed = manager.getExtension(resourceId);
31483
+ if (parsed == null) {
31484
+ parsed = JSON.parse(resources[resourceId]);
31485
+ manager.setExtension(resourceId, parsed);
31486
+ }
31487
+ this.set(parsed);
31488
+ }
31489
+ };
31490
+ EShapeConnectorBodyImpl.prototype.onChange = function () {
31491
+ if (0 < this._lockCount) {
31492
+ this._isChanged = true;
31493
+ return;
31494
+ }
31495
+ this._onChange();
31496
+ };
31497
+ return EShapeConnectorBodyImpl;
31498
+ }());
31499
+
31368
31500
  /*
31369
31501
  * Copyright (C) 2019 Toshiba Corporation
31370
31502
  * SPDX-License-Identifier: Apache-2.0
@@ -31378,16 +31510,36 @@
31378
31510
  _this._tailMargin = 0;
31379
31511
  _this._headLocalId = 0;
31380
31512
  _this._headMargin = 0;
31513
+ _this._bodyId = 0;
31514
+ _this._lockCount = 0;
31515
+ _this._isChanged = false;
31381
31516
  var sx = EShapeDefaults.SIZE_X;
31382
31517
  var sy = EShapeDefaults.SIZE_Y;
31383
31518
  var hx = sx * 0.5;
31384
31519
  var hy = sy * 0.5;
31385
- _this._points = new EShapeLinePoints(_this).set(_this.toValues(-hx, -hy, +hx, +hy, 0, 0, []));
31386
- _this._edge = new EShapeConnectorEdgeContainerImpl(_this, function () {
31387
- _this.onEdgeChange();
31388
- });
31520
+ _this._points = new EShapeLinePoints(_this).set([-hx, -hy, +hx, +hy]);
31521
+ var onChangeBound = function () {
31522
+ _this.onChange();
31523
+ };
31524
+ _this._edge = new EShapeConnectorEdgeContainerImpl(_this, onChangeBound);
31525
+ _this._body = new EShapeConnectorBodyImpl(_this, onChangeBound);
31389
31526
  return _this;
31390
31527
  }
31528
+ EShapeConnectorLine.prototype.lock = function () {
31529
+ this._lockCount += 1;
31530
+ if (this._lockCount === 1) {
31531
+ this._isChanged = false;
31532
+ }
31533
+ };
31534
+ EShapeConnectorLine.prototype.unlock = function () {
31535
+ this._lockCount -= 1;
31536
+ if (this._lockCount === 0) {
31537
+ if (this._isChanged) {
31538
+ this.onChange();
31539
+ }
31540
+ this._isChanged = false;
31541
+ }
31542
+ };
31391
31543
  Object.defineProperty(EShapeConnectorLine.prototype, "points", {
31392
31544
  get: function () {
31393
31545
  return this._points;
@@ -31402,6 +31554,13 @@
31402
31554
  enumerable: false,
31403
31555
  configurable: true
31404
31556
  });
31557
+ Object.defineProperty(EShapeConnectorLine.prototype, "body", {
31558
+ get: function () {
31559
+ return this._body;
31560
+ },
31561
+ enumerable: false,
31562
+ configurable: true
31563
+ });
31405
31564
  EShapeConnectorLine.prototype.onAttach = function () {
31406
31565
  _super.prototype.onAttach.call(this);
31407
31566
  this._edge.attach();
@@ -31410,8 +31569,12 @@
31410
31569
  this._edge.detach();
31411
31570
  _super.prototype.onDetach.call(this);
31412
31571
  };
31413
- EShapeConnectorLine.prototype.onEdgeChange = function () {
31572
+ EShapeConnectorLine.prototype.onChange = function () {
31414
31573
  var _a;
31574
+ if (0 < this._lockCount) {
31575
+ this._isChanged = true;
31576
+ return;
31577
+ }
31415
31578
  var edge = this._edge;
31416
31579
  var tail = edge.tail;
31417
31580
  var tailLocalId = tail.localId;
@@ -31419,22 +31582,29 @@
31419
31582
  var head = edge.head;
31420
31583
  var headLocalId = head.localId;
31421
31584
  var headMargin = head.margin;
31585
+ var body = this._body;
31586
+ var bodyId = body.id;
31422
31587
  if (this._tailLocalId !== tailLocalId ||
31423
31588
  this._tailMargin !== tailMargin ||
31424
31589
  this._headLocalId !== headLocalId ||
31425
- this._headMargin !== headMargin) {
31590
+ this._headMargin !== headMargin ||
31591
+ this._bodyId !== bodyId) {
31426
31592
  this._tailLocalId = tailLocalId;
31427
31593
  this._tailMargin = tailMargin;
31428
31594
  this._headLocalId = headLocalId;
31429
31595
  this._headMargin = headMargin;
31430
- // Left
31596
+ this._bodyId !== bodyId;
31597
+ // Tail
31431
31598
  var tailLocal = tail.local;
31432
31599
  var tailLocalX = tailLocal.x;
31433
31600
  var tailLocalY = tailLocal.y;
31434
- // Right
31601
+ // Head
31435
31602
  var headLocal = head.local;
31436
31603
  var headLocalX = headLocal.x;
31437
31604
  var headLocalY = headLocal.y;
31605
+ // Body
31606
+ var bodyValues = body.values;
31607
+ var bodyValuesLength = bodyValues.length;
31438
31608
  // Values
31439
31609
  var transform = this.transform;
31440
31610
  var transformPosition = transform.position;
@@ -31442,7 +31612,58 @@
31442
31612
  var py = transformPosition.y;
31443
31613
  var points = this._points;
31444
31614
  var values = points.values;
31445
- this.toValues(tailLocalX - px, tailLocalY - py, headLocalX - px, headLocalY - py, tailMargin, headMargin, values);
31615
+ if (values.length < 4) {
31616
+ values[0] = 0;
31617
+ values[1] = 0;
31618
+ }
31619
+ var threshold = 0.000001;
31620
+ var x0 = tailLocalX - px;
31621
+ var y0 = tailLocalY - py;
31622
+ var x1 = headLocalX - px;
31623
+ var y1 = headLocalY - py;
31624
+ // Body
31625
+ if (0 < bodyValuesLength) {
31626
+ var cx_1 = (x1 + x0) * 0.5;
31627
+ var cy_1 = (y1 + y0) * 0.5;
31628
+ var dx = x1 - x0;
31629
+ var dy = y1 - y0;
31630
+ var a = Math.atan2(dy, dx);
31631
+ var c = Math.cos(a);
31632
+ var s = Math.sin(a);
31633
+ var l = Math.sqrt(dx * dx + dy * dy);
31634
+ for (var i = 0; i < bodyValuesLength; i += 2) {
31635
+ var x = bodyValues[i + 0];
31636
+ var y = bodyValues[i + 1];
31637
+ values[i + 2] = cx_1 + (c * x - s * y) * l;
31638
+ values[i + 3] = cy_1 + (c * y + s * x) * l;
31639
+ }
31640
+ }
31641
+ // Tail
31642
+ values[0] = x0;
31643
+ values[1] = y0;
31644
+ if (tailMargin !== 0) {
31645
+ var dx = values[2] - x0;
31646
+ var dy = values[3] - y0;
31647
+ var d = dx * dx + dy * dy;
31648
+ if (threshold < d) {
31649
+ var f = tailMargin / Math.sqrt(dx * dx + dy * dy);
31650
+ values[0] = x0 + dx * f;
31651
+ values[1] = y0 + dy * f;
31652
+ }
31653
+ }
31654
+ // Head
31655
+ values[2 + bodyValuesLength] = x1;
31656
+ values[3 + bodyValuesLength] = y1;
31657
+ if (headMargin !== 0) {
31658
+ var dx = values[0 + bodyValuesLength] - x1;
31659
+ var dy = values[1 + bodyValuesLength] - y1;
31660
+ var d = dx * dx + dy * dy;
31661
+ if (threshold < d) {
31662
+ var f = headMargin / Math.sqrt(dx * dx + dy * dy);
31663
+ values[2 + bodyValuesLength] = x1 + dx * f;
31664
+ values[3 + bodyValuesLength] = y1 + dy * f;
31665
+ }
31666
+ }
31446
31667
  // Center & size
31447
31668
  var boundary = ((_a = EShapeConnectorLine.WORK_BOUNDARY) !== null && _a !== void 0 ? _a : (EShapeConnectorLine.WORK_BOUNDARY = [0, 0, 0, 0]));
31448
31669
  toPointsBoundary(values, boundary);
@@ -31466,82 +31687,12 @@
31466
31687
  this.allowUploadedUpdate();
31467
31688
  }
31468
31689
  };
31469
- EShapeConnectorLine.prototype.toValues = function (x0, y0, x1, y1, margin0, margin1, result) {
31470
- var threshold = 0.000001;
31471
- var resultLength = result.length;
31472
- if (resultLength <= 4) {
31473
- if (margin0 !== 0 || margin1 !== 0) {
31474
- var dx = x1 - x0;
31475
- var dy = y1 - y0;
31476
- var d = dx * dx + dy * dy;
31477
- if (threshold < d) {
31478
- var f = 1 / Math.sqrt(dx * dx + dy * dy);
31479
- var nx = dx * f;
31480
- var ny = dy * f;
31481
- result[0] = x0 + margin0 * nx;
31482
- result[1] = y0 + margin0 * ny;
31483
- result[2] = x1 - margin1 * nx;
31484
- result[3] = y1 - margin1 * ny;
31485
- }
31486
- else {
31487
- result[0] = x0;
31488
- result[1] = y0;
31489
- result[2] = x1;
31490
- result[3] = y1;
31491
- }
31492
- }
31493
- else {
31494
- result[0] = x0;
31495
- result[1] = y0;
31496
- result[2] = x1;
31497
- result[3] = y1;
31498
- }
31499
- }
31500
- else {
31501
- if (margin0 !== 0) {
31502
- var dx = result[2] - x0;
31503
- var dy = result[3] - y0;
31504
- var d = dx * dx + dy * dy;
31505
- if (threshold < d) {
31506
- var f = 1 / Math.sqrt(dx * dx + dy * dy);
31507
- result[0] = x0 + margin0 * dx * f;
31508
- result[1] = y0 + margin0 * dy * f;
31509
- }
31510
- else {
31511
- result[0] = x0;
31512
- result[1] = y0;
31513
- }
31514
- }
31515
- else {
31516
- result[0] = x0;
31517
- result[1] = y0;
31518
- }
31519
- if (margin1 !== 0) {
31520
- var dx = result[resultLength - 4] - x1;
31521
- var dy = result[resultLength - 3] - y1;
31522
- var d = dx * dx + dy * dy;
31523
- if (threshold < d) {
31524
- var f = 1 / Math.sqrt(dx * dx + dy * dy);
31525
- result[resultLength - 2] = x1 + margin1 * dx * f;
31526
- result[resultLength - 1] = y1 + margin1 * dy * f;
31527
- }
31528
- else {
31529
- result[resultLength - 2] = x1;
31530
- result[resultLength - 1] = y1;
31531
- }
31532
- }
31533
- else {
31534
- result[resultLength - 2] = x1;
31535
- result[resultLength - 1] = y1;
31536
- }
31537
- }
31538
- return result;
31539
- };
31540
31690
  EShapeConnectorLine.prototype.copy = function (source, part) {
31541
31691
  if (part === void 0) { part = EShapeCopyPart.ALL; }
31542
31692
  _super.prototype.copy.call(this, source, part);
31543
31693
  if (source instanceof EShapeConnectorLine) {
31544
31694
  this._edge.copy(source.edge);
31695
+ this._body.copy(source.body);
31545
31696
  }
31546
31697
  return this;
31547
31698
  };
@@ -31550,7 +31701,10 @@
31550
31701
  };
31551
31702
  EShapeConnectorLine.prototype.serialize = function (manager) {
31552
31703
  var result = _super.prototype.serialize.call(this, manager);
31553
- result[15] = manager.addResource("[" + this._edge.serialize(manager) + "," + this._points.serialize(manager) + "]");
31704
+ var edgeId = this._edge.serialize(manager);
31705
+ var bodyId = this._body.serialize(manager);
31706
+ var pointsId = this._points.serialize(manager);
31707
+ result[15] = manager.addResource("[" + edgeId + "," + pointsId + "," + bodyId + "]");
31554
31708
  return result;
31555
31709
  };
31556
31710
  return EShapeConnectorLine;
@@ -31573,8 +31727,25 @@
31573
31727
  parsed = JSON.parse(resources[resourceId]);
31574
31728
  manager.setExtension(resourceId, parsed);
31575
31729
  }
31576
- shape.points.deserialize(parsed[1], manager);
31730
+ // Lock
31731
+ shape.lock();
31732
+ // Points
31733
+ var points = shape.points;
31734
+ points.deserialize(parsed[1], manager);
31735
+ // Edge
31577
31736
  shape.edge.deserialize(parsed[0], mapping, manager);
31737
+ // Body
31738
+ var body = shape.body;
31739
+ var bodyId = parsed[2];
31740
+ if (bodyId != null) {
31741
+ body.deserialize(bodyId, mapping, manager);
31742
+ }
31743
+ else {
31744
+ // The following is for backward compatibility.
31745
+ body.set(EShapeConnectorBodies.from(points.values));
31746
+ }
31747
+ // Unlock
31748
+ shape.unlock();
31578
31749
  }
31579
31750
  }
31580
31751
  };
@@ -41890,6 +42061,9 @@
41890
42061
  }
41891
42062
  return false;
41892
42063
  };
42064
+ UtilSvgAtlasBuilder.prototype.has = function (name) {
42065
+ return name in this._frames;
42066
+ };
41893
42067
  Object.defineProperty(UtilSvgAtlasBuilder.prototype, "mappings", {
41894
42068
  get: function () {
41895
42069
  return this.build();
@@ -49182,46 +49356,61 @@
49182
49356
  * Copyright (C) 2019 Toshiba Corporation
49183
49357
  * SPDX-License-Identifier: Apache-2.0
49184
49358
  */
49185
- var DNoteError = /** @class */ (function (_super) {
49186
- __extends(DNoteError, _super);
49187
- function DNoteError() {
49359
+ var DNoteSmall = /** @class */ (function (_super) {
49360
+ __extends(DNoteSmall, _super);
49361
+ function DNoteSmall() {
49188
49362
  return _super !== null && _super.apply(this, arguments) || this;
49189
49363
  }
49190
- DNoteError.prototype.getType = function () {
49191
- return "DNoteError";
49364
+ DNoteSmall.prototype.getType = function () {
49365
+ return "DNoteSmall";
49192
49366
  };
49193
- return DNoteError;
49367
+ return DNoteSmall;
49194
49368
  }(DNote));
49195
49369
 
49196
49370
  /*
49197
49371
  * Copyright (C) 2019 Toshiba Corporation
49198
49372
  * SPDX-License-Identifier: Apache-2.0
49199
49373
  */
49200
- var DNoteNoItemsFound = /** @class */ (function (_super) {
49201
- __extends(DNoteNoItemsFound, _super);
49202
- function DNoteNoItemsFound() {
49374
+ var DNoteSmallError = /** @class */ (function (_super) {
49375
+ __extends(DNoteSmallError, _super);
49376
+ function DNoteSmallError() {
49203
49377
  return _super !== null && _super.apply(this, arguments) || this;
49204
49378
  }
49205
- DNoteNoItemsFound.prototype.getType = function () {
49206
- return "DNoteNoItemsFound";
49379
+ DNoteSmallError.prototype.getType = function () {
49380
+ return "DNoteSmallError";
49207
49381
  };
49208
- return DNoteNoItemsFound;
49209
- }(DNote));
49382
+ return DNoteSmallError;
49383
+ }(DNoteSmall));
49210
49384
 
49211
49385
  /*
49212
49386
  * Copyright (C) 2019 Toshiba Corporation
49213
49387
  * SPDX-License-Identifier: Apache-2.0
49214
49388
  */
49215
- var DNoteSearching = /** @class */ (function (_super) {
49216
- __extends(DNoteSearching, _super);
49217
- function DNoteSearching() {
49389
+ var DNoteSmallNoItemsFound = /** @class */ (function (_super) {
49390
+ __extends(DNoteSmallNoItemsFound, _super);
49391
+ function DNoteSmallNoItemsFound() {
49218
49392
  return _super !== null && _super.apply(this, arguments) || this;
49219
49393
  }
49220
- DNoteSearching.prototype.getType = function () {
49221
- return "DNoteSearching";
49394
+ DNoteSmallNoItemsFound.prototype.getType = function () {
49395
+ return "DNoteSmallNoItemsFound";
49222
49396
  };
49223
- return DNoteSearching;
49224
- }(DNote));
49397
+ return DNoteSmallNoItemsFound;
49398
+ }(DNoteSmall));
49399
+
49400
+ /*
49401
+ * Copyright (C) 2019 Toshiba Corporation
49402
+ * SPDX-License-Identifier: Apache-2.0
49403
+ */
49404
+ var DNoteSmallSearching = /** @class */ (function (_super) {
49405
+ __extends(DNoteSmallSearching, _super);
49406
+ function DNoteSmallSearching() {
49407
+ return _super !== null && _super.apply(this, arguments) || this;
49408
+ }
49409
+ DNoteSmallSearching.prototype.getType = function () {
49410
+ return "DNoteSmallSearching";
49411
+ };
49412
+ return DNoteSmallSearching;
49413
+ }(DNoteSmall));
49225
49414
 
49226
49415
  /*
49227
49416
  * Copyright (C) 2019 Toshiba Corporation
@@ -49381,14 +49570,14 @@
49381
49570
  DDialogSelect.prototype.newNoteError = function (list, options) {
49382
49571
  var error = options === null || options === void 0 ? void 0 : options.error;
49383
49572
  if (error !== null) {
49384
- return new DNoteError(this.toNoteOptions(list, error));
49573
+ return new DNoteSmallError(this.toNoteOptions(list, error));
49385
49574
  }
49386
49575
  return null;
49387
49576
  };
49388
49577
  DDialogSelect.prototype.newNoteNoItemsFound = function (list, options) {
49389
49578
  var noItemsFound = options === null || options === void 0 ? void 0 : options.noItemsFound;
49390
49579
  if (noItemsFound !== null) {
49391
- return new DNoteNoItemsFound(this.toNoteOptions(list, noItemsFound));
49580
+ return new DNoteSmallNoItemsFound(this.toNoteOptions(list, noItemsFound));
49392
49581
  }
49393
49582
  return null;
49394
49583
  };
@@ -49398,7 +49587,7 @@
49398
49587
  // if options.searching is missing, i.e., if its value is undefined,
49399
49588
  // this method returns null. This is why `!=` is used here instead of `!==`.
49400
49589
  if (searching != null) {
49401
- return new DNoteSearching(this.toNoteOptions(list, searching));
49590
+ return new DNoteSmallSearching(this.toNoteOptions(list, searching));
49402
49591
  }
49403
49592
  return null;
49404
49593
  };
@@ -58555,6 +58744,51 @@
58555
58744
  return DMenuSided;
58556
58745
  }(DPane));
58557
58746
 
58747
+ /*
58748
+ * Copyright (C) 2019 Toshiba Corporation
58749
+ * SPDX-License-Identifier: Apache-2.0
58750
+ */
58751
+ var DNoteError = /** @class */ (function (_super) {
58752
+ __extends(DNoteError, _super);
58753
+ function DNoteError() {
58754
+ return _super !== null && _super.apply(this, arguments) || this;
58755
+ }
58756
+ DNoteError.prototype.getType = function () {
58757
+ return "DNoteError";
58758
+ };
58759
+ return DNoteError;
58760
+ }(DNote));
58761
+
58762
+ /*
58763
+ * Copyright (C) 2019 Toshiba Corporation
58764
+ * SPDX-License-Identifier: Apache-2.0
58765
+ */
58766
+ var DNoteNoItemsFound = /** @class */ (function (_super) {
58767
+ __extends(DNoteNoItemsFound, _super);
58768
+ function DNoteNoItemsFound() {
58769
+ return _super !== null && _super.apply(this, arguments) || this;
58770
+ }
58771
+ DNoteNoItemsFound.prototype.getType = function () {
58772
+ return "DNoteNoItemsFound";
58773
+ };
58774
+ return DNoteNoItemsFound;
58775
+ }(DNote));
58776
+
58777
+ /*
58778
+ * Copyright (C) 2019 Toshiba Corporation
58779
+ * SPDX-License-Identifier: Apache-2.0
58780
+ */
58781
+ var DNoteSearching = /** @class */ (function (_super) {
58782
+ __extends(DNoteSearching, _super);
58783
+ function DNoteSearching() {
58784
+ return _super !== null && _super.apply(this, arguments) || this;
58785
+ }
58786
+ DNoteSearching.prototype.getType = function () {
58787
+ return "DNoteSearching";
58788
+ };
58789
+ return DNoteSearching;
58790
+ }(DNote));
58791
+
58558
58792
  /*
58559
58793
  * Copyright (C) 2019 Toshiba Corporation
58560
58794
  * SPDX-License-Identifier: Apache-2.0
@@ -67404,6 +67638,8 @@
67404
67638
  EShapeBuffer: EShapeBuffer,
67405
67639
  EShapeCapabilities: EShapeCapabilities,
67406
67640
  EShapeCapability: EShapeCapability,
67641
+ EShapeConnectorBodies: EShapeConnectorBodies,
67642
+ EShapeConnectorBodyImpl: EShapeConnectorBodyImpl,
67407
67643
  EShapeConnectorContainerImpl: EShapeConnectorContainerImpl,
67408
67644
  EShapeConnectorEdgeAcceptorImpl: EShapeConnectorEdgeAcceptorImpl,
67409
67645
  EShapeConnectorEdgeContainerImpl: EShapeConnectorEdgeContainerImpl,
@@ -67845,6 +68081,10 @@
67845
68081
  DNoteError: DNoteError,
67846
68082
  DNoteNoItemsFound: DNoteNoItemsFound,
67847
68083
  DNoteSearching: DNoteSearching,
68084
+ DNoteSmallError: DNoteSmallError,
68085
+ DNoteSmallNoItemsFound: DNoteSmallNoItemsFound,
68086
+ DNoteSmallSearching: DNoteSmallSearching,
68087
+ DNoteSmall: DNoteSmall,
67848
68088
  DNote: DNote,
67849
68089
  DNotification: DNotification,
67850
68090
  DPaginationDotsButton: DPaginationDotsButton,