@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.
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-value.d.ts +4 -0
- package/dist/types/wcardinal/ui/theme/dark/e-theme-dark-shape-action-value.d.ts +2 -0
- package/dist/types/wcardinal/ui/theme/white/e-theme-white-shape-action-value.d.ts +2 -0
- package/dist/wcardinal/ui/shape/action/e-shape-action-value.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-connector-elbow-points-filler.js +29 -23
- package/dist/wcardinal/ui/shape/variant/e-shape-connector-elbow-points-filler.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/e-theme-dark-shape-action-value.js +10 -0
- package/dist/wcardinal/ui/theme/dark/e-theme-dark-shape-action-value.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/e-theme-white-shape-action-value.js +10 -0
- package/dist/wcardinal/ui/theme/white/e-theme-white-shape-action-value.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +12 -1
- package/dist/wcardinal-ui-theme-dark.min.js +2 -2
- package/dist/wcardinal-ui-theme-dark.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-white.js +12 -1
- package/dist/wcardinal-ui-theme-white.min.js +2 -2
- package/dist/wcardinal-ui-theme-white.min.js.map +1 -1
- package/dist/wcardinal-ui.cjs.js +48 -24
- package/dist/wcardinal-ui.js +33 -27
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
package/dist/wcardinal-ui.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
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
|
|
38311
|
-
|
|
38312
|
-
|
|
38313
|
-
|
|
38314
|
-
|
|
38315
|
-
|
|
38316
|
-
|
|
38317
|
-
|
|
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
|
-
|
|
38321
|
-
|
|
38322
|
-
|
|
38323
|
-
|
|
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
|
-
|
|
38327
|
-
|
|
38328
|
-
|
|
38329
|
-
|
|
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
|
-
|
|
38333
|
-
|
|
38334
|
-
|
|
38335
|
-
|
|
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:
|
package/dist/wcardinal-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
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
|
|
38308
|
-
|
|
38309
|
-
|
|
38310
|
-
|
|
38311
|
-
|
|
38312
|
-
|
|
38313
|
-
|
|
38314
|
-
|
|
38315
|
-
|
|
38316
|
-
|
|
38317
|
-
|
|
38318
|
-
|
|
38319
|
-
|
|
38320
|
-
|
|
38321
|
-
}
|
|
38322
|
-
|
|
38323
|
-
|
|
38324
|
-
|
|
38325
|
-
|
|
38326
|
-
|
|
38327
|
-
}
|
|
38328
|
-
|
|
38329
|
-
|
|
38330
|
-
|
|
38331
|
-
|
|
38332
|
-
|
|
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;
|