@wcardinal/wcardinal-ui 0.348.0 → 0.350.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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.348.0
2
+ Winter Cardinal UI v0.350.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -38307,32 +38307,38 @@ var EShapeConnectorElbowPointsFiller = /** @class */ (function () {
38307
38307
  }
38308
38308
  var d = null;
38309
38309
  var result = 0;
38310
- var d0 = nx * dx + ny * dy;
38311
- var d1 = -ny * dx + nx * dy;
38312
- var d2 = -d0;
38313
- var d3 = -d1;
38314
- if (side & EShapeAcceptorEdgeSide.TOP) {
38315
- if (d == null || d < d0) {
38316
- d = d0;
38317
- result = this.toSide(nx, ny);
38310
+ var dd = dx * dx + dy * dy;
38311
+ if (this._threshold < dd) {
38312
+ var f = 1 / Math.sqrt(dd);
38313
+ var fx = dx * f;
38314
+ var fy = dy * f;
38315
+ var d0 = +nx * fx + ny * fy;
38316
+ var d1 = -ny * fx + nx * fy;
38317
+ var d2 = -d0;
38318
+ var d3 = -d1;
38319
+ if (side & EShapeAcceptorEdgeSide.TOP) {
38320
+ if (d == null || d < d0) {
38321
+ d = d0;
38322
+ result = this.toSide(nx, ny);
38323
+ }
38318
38324
  }
38319
- }
38320
- if (side & EShapeAcceptorEdgeSide.RIGHT) {
38321
- if (d == null || d < d1) {
38322
- d = d1;
38323
- result = this.toSide(-ny, nx);
38325
+ if (side & EShapeAcceptorEdgeSide.RIGHT) {
38326
+ if (d == null || d < d1) {
38327
+ d = d1;
38328
+ result = this.toSide(-ny, nx);
38329
+ }
38324
38330
  }
38325
- }
38326
- if (side & EShapeAcceptorEdgeSide.BOTTOM) {
38327
- if (d == null || d < d2) {
38328
- d = d2;
38329
- result = this.toSide(-nx, -ny);
38331
+ if (side & EShapeAcceptorEdgeSide.BOTTOM) {
38332
+ if (d == null || d < d2) {
38333
+ d = d2;
38334
+ result = this.toSide(-nx, -ny);
38335
+ }
38330
38336
  }
38331
- }
38332
- if (side & EShapeAcceptorEdgeSide.LEFT) {
38333
- if (d == null || d < d3) {
38334
- d = d3;
38335
- result = this.toSide(ny, -nx);
38337
+ if (side & EShapeAcceptorEdgeSide.LEFT) {
38338
+ if (d == null || d < d3) {
38339
+ d = d3;
38340
+ result = this.toSide(ny, -nx);
38341
+ }
38336
38342
  }
38337
38343
  }
38338
38344
  return result;
@@ -51424,6 +51430,15 @@ var EThemeWhiteShapeActionValue = /** @class */ (function () {
51424
51430
  return "Layer";
51425
51431
  }
51426
51432
  };
51433
+ EThemeWhiteShapeActionValue.prototype.toGestureOperationTypeLabel = function (type) {
51434
+ switch (type) {
51435
+ case EShapeActionValueGestureOperationType.DRAG:
51436
+ return "Drag";
51437
+ case EShapeActionValueGestureOperationType.PINCH:
51438
+ return "Pinch";
51439
+ }
51440
+ return "Unknown";
51441
+ };
51427
51442
  EThemeWhiteShapeActionValue.prototype.toMiscTypeLabel = function (type) {
51428
51443
  switch (type) {
51429
51444
  case EShapeActionValueMiscType.INPUT_TEXT:
@@ -60699,6 +60714,15 @@ var EThemeDarkShapeActionValue = /** @class */ (function () {
60699
60714
  return "Layer";
60700
60715
  }
60701
60716
  };
60717
+ EThemeDarkShapeActionValue.prototype.toGestureOperationTypeLabel = function (type) {
60718
+ switch (type) {
60719
+ case EShapeActionValueGestureOperationType.DRAG:
60720
+ return "Drag";
60721
+ case EShapeActionValueGestureOperationType.PINCH:
60722
+ return "Pinch";
60723
+ }
60724
+ return "Unknown";
60725
+ };
60702
60726
  EThemeDarkShapeActionValue.prototype.toMiscTypeLabel = function (type) {
60703
60727
  switch (type) {
60704
60728
  case EShapeActionValueMiscType.INPUT_TEXT:
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.348.0
2
+ Winter Cardinal UI v0.350.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -38304,32 +38304,38 @@
38304
38304
  }
38305
38305
  var d = null;
38306
38306
  var result = 0;
38307
- var d0 = nx * dx + ny * dy;
38308
- var d1 = -ny * dx + nx * dy;
38309
- var d2 = -d0;
38310
- var d3 = -d1;
38311
- if (side & EShapeAcceptorEdgeSide.TOP) {
38312
- if (d == null || d < d0) {
38313
- d = d0;
38314
- result = this.toSide(nx, ny);
38315
- }
38316
- }
38317
- if (side & EShapeAcceptorEdgeSide.RIGHT) {
38318
- if (d == null || d < d1) {
38319
- d = d1;
38320
- result = this.toSide(-ny, nx);
38321
- }
38322
- }
38323
- if (side & EShapeAcceptorEdgeSide.BOTTOM) {
38324
- if (d == null || d < d2) {
38325
- d = d2;
38326
- result = this.toSide(-nx, -ny);
38327
- }
38328
- }
38329
- if (side & EShapeAcceptorEdgeSide.LEFT) {
38330
- if (d == null || d < d3) {
38331
- d = d3;
38332
- result = this.toSide(ny, -nx);
38307
+ var dd = dx * dx + dy * dy;
38308
+ if (this._threshold < dd) {
38309
+ var f = 1 / Math.sqrt(dd);
38310
+ var fx = dx * f;
38311
+ var fy = dy * f;
38312
+ var d0 = +nx * fx + ny * fy;
38313
+ var d1 = -ny * fx + nx * fy;
38314
+ var d2 = -d0;
38315
+ var d3 = -d1;
38316
+ if (side & EShapeAcceptorEdgeSide.TOP) {
38317
+ if (d == null || d < d0) {
38318
+ d = d0;
38319
+ result = this.toSide(nx, ny);
38320
+ }
38321
+ }
38322
+ if (side & EShapeAcceptorEdgeSide.RIGHT) {
38323
+ if (d == null || d < d1) {
38324
+ d = d1;
38325
+ result = this.toSide(-ny, nx);
38326
+ }
38327
+ }
38328
+ if (side & EShapeAcceptorEdgeSide.BOTTOM) {
38329
+ if (d == null || d < d2) {
38330
+ d = d2;
38331
+ result = this.toSide(-nx, -ny);
38332
+ }
38333
+ }
38334
+ if (side & EShapeAcceptorEdgeSide.LEFT) {
38335
+ if (d == null || d < d3) {
38336
+ d = d3;
38337
+ result = this.toSide(ny, -nx);
38338
+ }
38333
38339
  }
38334
38340
  }
38335
38341
  return result;