@wcardinal/wcardinal-ui 0.151.0 → 0.152.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/variant/e-shape-line-of-circles.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/variant/e-shape-line-of-rectangle-roundeds.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/variant/e-shape-line-of-rectangles.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/variant/e-shape-line-of-triangle-roundeds.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/variant/e-shape-line-of-triangles.d.ts +2 -1
- package/dist/types/wcardinal/ui/shape/variant/to-resized.d.ts +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-bar.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-bar.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-button.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-button.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-circle.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-circle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-connector-line.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-connector-line.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-image-sdf.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-image-sdf.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-image.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-image.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-label.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-label.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-circles.js +4 -3
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-circles.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-rectangle-roundeds.js +4 -3
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-rectangle-roundeds.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-rectangles.js +4 -3
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-rectangles.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-triangle-roundeds.js +4 -3
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-triangle-roundeds.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-triangles.js +4 -3
- package/dist/wcardinal/ui/shape/variant/e-shape-line-of-triangles.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-line.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-null.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-null.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-rounded.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-rectangle-rounded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-rectangle.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-rectangle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-triangle-rounded.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-triangle-rounded.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-triangle.js +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-triangle.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/to-resized.js +1 -1
- package/dist/wcardinal/ui/shape/variant/to-resized.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +1 -1
- package/dist/wcardinal-ui-theme-dark.min.js +1 -1
- package/dist/wcardinal-ui-theme-white.js +1 -1
- package/dist/wcardinal-ui-theme-white.min.js +1 -1
- package/dist/wcardinal-ui.cjs.js +36 -31
- package/dist/wcardinal-ui.js +36 -31
- 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.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.152.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -6626,7 +6626,7 @@
|
|
|
6626
6626
|
configurable: true
|
|
6627
6627
|
});
|
|
6628
6628
|
EShapeBar.prototype.clone = function () {
|
|
6629
|
-
return new EShapeBar().copy(this);
|
|
6629
|
+
return new EShapeBar(this.type).copy(this);
|
|
6630
6630
|
};
|
|
6631
6631
|
EShapeBar.prototype.containsAbsBBox = function (x, y, ax, ay) {
|
|
6632
6632
|
var size = Math.max(0, this._points.size);
|
|
@@ -27088,7 +27088,7 @@
|
|
|
27088
27088
|
return _super.call(this, type) || this;
|
|
27089
27089
|
}
|
|
27090
27090
|
EShapeRectangleRounded.prototype.clone = function () {
|
|
27091
|
-
return new EShapeRectangleRounded().copy(this);
|
|
27091
|
+
return new EShapeRectangleRounded(this.type).copy(this);
|
|
27092
27092
|
};
|
|
27093
27093
|
EShapeRectangleRounded.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
27094
27094
|
if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
|
|
@@ -27136,7 +27136,7 @@
|
|
|
27136
27136
|
configurable: true
|
|
27137
27137
|
});
|
|
27138
27138
|
EShapeButton.prototype.clone = function () {
|
|
27139
|
-
return new EShapeButton().copy(this);
|
|
27139
|
+
return new EShapeButton(this.type).copy(this);
|
|
27140
27140
|
};
|
|
27141
27141
|
EShapeButton.prototype.serialize = function (manager) {
|
|
27142
27142
|
var result = _super.prototype.serialize.call(this, manager);
|
|
@@ -27894,7 +27894,7 @@
|
|
|
27894
27894
|
return _super.call(this, type) || this;
|
|
27895
27895
|
}
|
|
27896
27896
|
EShapeCircle.prototype.clone = function () {
|
|
27897
|
-
return new EShapeCircle().copy(this);
|
|
27897
|
+
return new EShapeCircle(this.type).copy(this);
|
|
27898
27898
|
};
|
|
27899
27899
|
EShapeCircle.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
27900
27900
|
if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
|
|
@@ -31549,7 +31549,7 @@
|
|
|
31549
31549
|
return this;
|
|
31550
31550
|
};
|
|
31551
31551
|
EShapeConnectorLine.prototype.clone = function () {
|
|
31552
|
-
return new EShapeConnectorLine().copy(this);
|
|
31552
|
+
return new EShapeConnectorLine(this.type).copy(this);
|
|
31553
31553
|
};
|
|
31554
31554
|
EShapeConnectorLine.prototype.serialize = function (manager) {
|
|
31555
31555
|
var result = _super.prototype.serialize.call(this, manager);
|
|
@@ -34558,7 +34558,7 @@
|
|
|
34558
34558
|
return _super.call(this, type) || this;
|
|
34559
34559
|
}
|
|
34560
34560
|
EShapeRectangle.prototype.clone = function () {
|
|
34561
|
-
return new EShapeRectangle().copy(this);
|
|
34561
|
+
return new EShapeRectangle(this.type).copy(this);
|
|
34562
34562
|
};
|
|
34563
34563
|
EShapeRectangle.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
34564
34564
|
if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
|
|
@@ -34586,7 +34586,7 @@
|
|
|
34586
34586
|
return _this;
|
|
34587
34587
|
}
|
|
34588
34588
|
EShapeImage.prototype.clone = function () {
|
|
34589
|
-
return new EShapeImage(this.image).copy(this);
|
|
34589
|
+
return new EShapeImage(this.image, this.type).copy(this);
|
|
34590
34590
|
};
|
|
34591
34591
|
return EShapeImage;
|
|
34592
34592
|
}(EShapeRectangle));
|
|
@@ -34895,7 +34895,7 @@
|
|
|
34895
34895
|
return _super.call(this, image, type) || this;
|
|
34896
34896
|
}
|
|
34897
34897
|
EShapeImageSdf.prototype.clone = function () {
|
|
34898
|
-
return new EShapeImageSdf(this.image).copy(this);
|
|
34898
|
+
return new EShapeImageSdf(this.image, this.type).copy(this);
|
|
34899
34899
|
};
|
|
34900
34900
|
return EShapeImageSdf;
|
|
34901
34901
|
}(EShapeImage));
|
|
@@ -34980,7 +34980,7 @@
|
|
|
34980
34980
|
return _super.call(this, type) || this;
|
|
34981
34981
|
}
|
|
34982
34982
|
EShapeLabel.prototype.clone = function () {
|
|
34983
|
-
return new EShapeLabel().copy(this);
|
|
34983
|
+
return new EShapeLabel(this.type).copy(this);
|
|
34984
34984
|
};
|
|
34985
34985
|
return EShapeLabel;
|
|
34986
34986
|
}(EShapePrimitive));
|
|
@@ -35022,7 +35022,7 @@
|
|
|
35022
35022
|
configurable: true
|
|
35023
35023
|
});
|
|
35024
35024
|
EShapeLine.prototype.clone = function () {
|
|
35025
|
-
return new EShapeLine().copy(this);
|
|
35025
|
+
return new EShapeLine(this.type).copy(this);
|
|
35026
35026
|
};
|
|
35027
35027
|
EShapeLine.prototype.serialize = function (manager) {
|
|
35028
35028
|
var result = _super.prototype.serialize.call(this, manager);
|
|
@@ -36039,8 +36039,9 @@
|
|
|
36039
36039
|
*/
|
|
36040
36040
|
var EShapeLineOfCircles = /** @class */ (function (_super) {
|
|
36041
36041
|
__extends(EShapeLineOfCircles, _super);
|
|
36042
|
-
function EShapeLineOfCircles() {
|
|
36043
|
-
|
|
36042
|
+
function EShapeLineOfCircles(type) {
|
|
36043
|
+
if (type === void 0) { type = EShapeType.LINE_OF_CIRCLES; }
|
|
36044
|
+
var _this = _super.call(this, type) || this;
|
|
36044
36045
|
_this._points = new EShapeLineOfAnyPointsImpl(_this);
|
|
36045
36046
|
_this._tester = function (x, y, ax, ay, ox, oy, px, py, sw, ss, sa) {
|
|
36046
36047
|
return _this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);
|
|
@@ -36055,7 +36056,7 @@
|
|
|
36055
36056
|
configurable: true
|
|
36056
36057
|
});
|
|
36057
36058
|
EShapeLineOfCircles.prototype.clone = function () {
|
|
36058
|
-
return new EShapeLineOfCircles().copy(this);
|
|
36059
|
+
return new EShapeLineOfCircles(this.type).copy(this);
|
|
36059
36060
|
};
|
|
36060
36061
|
EShapeLineOfCircles.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
36061
36062
|
var threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());
|
|
@@ -36266,8 +36267,9 @@
|
|
|
36266
36267
|
*/
|
|
36267
36268
|
var EShapeLineOfRectangleRoundeds = /** @class */ (function (_super) {
|
|
36268
36269
|
__extends(EShapeLineOfRectangleRoundeds, _super);
|
|
36269
|
-
function EShapeLineOfRectangleRoundeds() {
|
|
36270
|
-
|
|
36270
|
+
function EShapeLineOfRectangleRoundeds(type) {
|
|
36271
|
+
if (type === void 0) { type = EShapeType.LINE_OF_RECTANGLE_ROUNDEDS; }
|
|
36272
|
+
var _this = _super.call(this, type) || this;
|
|
36271
36273
|
_this._points = new EShapeLineOfAnyPointsImpl(_this);
|
|
36272
36274
|
_this._tester = function (x, y, ax, ay, ox, oy, px, py, sw, ss, sa) {
|
|
36273
36275
|
return _this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);
|
|
@@ -36282,7 +36284,7 @@
|
|
|
36282
36284
|
configurable: true
|
|
36283
36285
|
});
|
|
36284
36286
|
EShapeLineOfRectangleRoundeds.prototype.clone = function () {
|
|
36285
|
-
return new EShapeLineOfRectangleRoundeds().copy(this);
|
|
36287
|
+
return new EShapeLineOfRectangleRoundeds(this.type).copy(this);
|
|
36286
36288
|
};
|
|
36287
36289
|
EShapeLineOfRectangleRoundeds.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
36288
36290
|
var threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());
|
|
@@ -36484,8 +36486,9 @@
|
|
|
36484
36486
|
*/
|
|
36485
36487
|
var EShapeLineOfRectangles = /** @class */ (function (_super) {
|
|
36486
36488
|
__extends(EShapeLineOfRectangles, _super);
|
|
36487
|
-
function EShapeLineOfRectangles() {
|
|
36488
|
-
|
|
36489
|
+
function EShapeLineOfRectangles(type) {
|
|
36490
|
+
if (type === void 0) { type = EShapeType.LINE_OF_RECTANGLES; }
|
|
36491
|
+
var _this = _super.call(this, type) || this;
|
|
36489
36492
|
_this._points = new EShapeLineOfAnyPointsImpl(_this);
|
|
36490
36493
|
_this._tester = function (x, y, ax, ay, ox, oy, px, py, sw, ss, sa) {
|
|
36491
36494
|
return _this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);
|
|
@@ -36500,7 +36503,7 @@
|
|
|
36500
36503
|
configurable: true
|
|
36501
36504
|
});
|
|
36502
36505
|
EShapeLineOfRectangles.prototype.clone = function () {
|
|
36503
|
-
return new EShapeLineOfRectangles().copy(this);
|
|
36506
|
+
return new EShapeLineOfRectangles(this.type).copy(this);
|
|
36504
36507
|
};
|
|
36505
36508
|
EShapeLineOfRectangles.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
36506
36509
|
var threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());
|
|
@@ -37244,7 +37247,7 @@
|
|
|
37244
37247
|
return _super.call(this, type) || this;
|
|
37245
37248
|
}
|
|
37246
37249
|
EShapeTriangleRounded.prototype.clone = function () {
|
|
37247
|
-
return new EShapeTriangleRounded().copy(this);
|
|
37250
|
+
return new EShapeTriangleRounded(this.type).copy(this);
|
|
37248
37251
|
};
|
|
37249
37252
|
EShapeTriangleRounded.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
37250
37253
|
if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
|
|
@@ -37261,8 +37264,9 @@
|
|
|
37261
37264
|
*/
|
|
37262
37265
|
var EShapeLineOfTriangleRoundeds = /** @class */ (function (_super) {
|
|
37263
37266
|
__extends(EShapeLineOfTriangleRoundeds, _super);
|
|
37264
|
-
function EShapeLineOfTriangleRoundeds() {
|
|
37265
|
-
|
|
37267
|
+
function EShapeLineOfTriangleRoundeds(type) {
|
|
37268
|
+
if (type === void 0) { type = EShapeType.LINE_OF_TRIANGLE_ROUNDEDS; }
|
|
37269
|
+
var _this = _super.call(this, type) || this;
|
|
37266
37270
|
_this._points = new EShapeLineOfAnyPointsImpl(_this);
|
|
37267
37271
|
_this._tester = function (x, y, ax, ay, ox, oy, px, py, sw, ss, sa) {
|
|
37268
37272
|
return _this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);
|
|
@@ -37277,7 +37281,7 @@
|
|
|
37277
37281
|
configurable: true
|
|
37278
37282
|
});
|
|
37279
37283
|
EShapeLineOfTriangleRoundeds.prototype.clone = function () {
|
|
37280
|
-
return new EShapeLineOfTriangleRoundeds().copy(this);
|
|
37284
|
+
return new EShapeLineOfTriangleRoundeds(this.type).copy(this);
|
|
37281
37285
|
};
|
|
37282
37286
|
EShapeLineOfTriangleRoundeds.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
37283
37287
|
var threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());
|
|
@@ -37466,7 +37470,7 @@
|
|
|
37466
37470
|
return _super.call(this, type) || this;
|
|
37467
37471
|
}
|
|
37468
37472
|
EShapeTriangle.prototype.clone = function () {
|
|
37469
|
-
return new EShapeTriangle().copy(this);
|
|
37473
|
+
return new EShapeTriangle(this.type).copy(this);
|
|
37470
37474
|
};
|
|
37471
37475
|
EShapeTriangle.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
37472
37476
|
if (_super.prototype.containsAbsBBox.call(this, x, y, ax, ay)) {
|
|
@@ -37483,8 +37487,9 @@
|
|
|
37483
37487
|
*/
|
|
37484
37488
|
var EShapeLineOfTriangles = /** @class */ (function (_super) {
|
|
37485
37489
|
__extends(EShapeLineOfTriangles, _super);
|
|
37486
|
-
function EShapeLineOfTriangles() {
|
|
37487
|
-
|
|
37490
|
+
function EShapeLineOfTriangles(type) {
|
|
37491
|
+
if (type === void 0) { type = EShapeType.LINE_OF_TRIANGLES; }
|
|
37492
|
+
var _this = _super.call(this, type) || this;
|
|
37488
37493
|
_this._points = new EShapeLineOfAnyPointsImpl(_this);
|
|
37489
37494
|
_this._tester = function (x, y, ax, ay, ox, oy, px, py, sw, ss, sa) {
|
|
37490
37495
|
return _this.containsPointAbs(x, y, ax, ay, ox, oy, px, py, sw, ss, sa);
|
|
@@ -37499,7 +37504,7 @@
|
|
|
37499
37504
|
configurable: true
|
|
37500
37505
|
});
|
|
37501
37506
|
EShapeLineOfTriangles.prototype.clone = function () {
|
|
37502
|
-
return new EShapeLineOfTriangles().copy(this);
|
|
37507
|
+
return new EShapeLineOfTriangles(this.type).copy(this);
|
|
37503
37508
|
};
|
|
37504
37509
|
EShapeLineOfTriangles.prototype.containsAbs = function (x, y, ax, ay, sw, ss, sa) {
|
|
37505
37510
|
var threshold = toThresholdDefault(sw, ss, this._points.size.getLimit());
|
|
@@ -37560,7 +37565,7 @@
|
|
|
37560
37565
|
return _super.call(this, type) || this;
|
|
37561
37566
|
}
|
|
37562
37567
|
EShapeNull.prototype.clone = function () {
|
|
37563
|
-
return new EShapeNull().copy(this);
|
|
37568
|
+
return new EShapeNull(this.type).copy(this);
|
|
37564
37569
|
};
|
|
37565
37570
|
return EShapeNull;
|
|
37566
37571
|
}(EShapePrimitive));
|
|
@@ -38521,7 +38526,7 @@
|
|
|
38521
38526
|
* Copyright (C) 2019 Toshiba Corporation
|
|
38522
38527
|
* SPDX-License-Identifier: Apache-2.0
|
|
38523
38528
|
*/
|
|
38524
|
-
var
|
|
38529
|
+
var toResized = function (shape, from, to, centerMode, isPerfect) {
|
|
38525
38530
|
shape.disallowUploadedUpdate();
|
|
38526
38531
|
var position = shape.transform.position;
|
|
38527
38532
|
if (centerMode) {
|
|
@@ -67668,7 +67673,7 @@
|
|
|
67668
67673
|
toGradientSerialized: toGradientSerialized,
|
|
67669
67674
|
toImageElement: toImageElement,
|
|
67670
67675
|
toLength: toLength,
|
|
67671
|
-
|
|
67676
|
+
toResized: toResized,
|
|
67672
67677
|
toScaleInvariant: toScaleInvariant,
|
|
67673
67678
|
toSizeNormalized: toSizeNormalized,
|
|
67674
67679
|
toSizeRounded: toSizeRounded,
|