@wcardinal/wcardinal-ui 0.349.0 → 0.351.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/d-dialog.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-menu-closeable.d.ts +4 -0
- package/dist/types/wcardinal/ui/d-menu-context.d.ts +9 -13
- package/dist/types/wcardinal/ui/d-menu-item.d.ts +3 -2
- package/dist/types/wcardinal/ui/d-menu-opener.d.ts +4 -0
- package/dist/types/wcardinal/ui/d-menu-sided.d.ts +3 -2
- package/dist/types/wcardinal/ui/d-menu.d.ts +8 -6
- package/dist/types/wcardinal/ui/index.d.ts +2 -0
- package/dist/types/wcardinal/ui/shape/action/e-shape-action-value.d.ts +4 -0
- package/dist/types/wcardinal/ui/shape/e-shape.d.ts +3 -3
- package/dist/types/wcardinal/ui/shape/variant/e-shape-base.d.ts +3 -3
- 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/d-dialog.js.map +1 -1
- package/dist/wcardinal/ui/d-menu-closeable.js +2 -0
- package/dist/wcardinal/ui/d-menu-closeable.js.map +1 -0
- package/dist/wcardinal/ui/d-menu-context.js.map +1 -1
- package/dist/wcardinal/ui/d-menu-item.js.map +1 -1
- package/dist/wcardinal/ui/d-menu-opener.js +2 -0
- package/dist/wcardinal/ui/d-menu-opener.js.map +1 -0
- package/dist/wcardinal/ui/d-menu-sided.js.map +1 -1
- package/dist/wcardinal/ui/d-menu.js +5 -2
- package/dist/wcardinal/ui/d-menu.js.map +1 -1
- package/dist/wcardinal/ui/index.js +2 -0
- package/dist/wcardinal/ui/index.js.map +1 -1
- package/dist/wcardinal/ui/shape/action/e-shape-action-value.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape.js.map +1 -1
- package/dist/wcardinal/ui/shape/variant/e-shape-base.js +3 -0
- package/dist/wcardinal/ui/shape/variant/e-shape-base.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 +26 -3
- package/dist/wcardinal-ui.js +8 -3
- 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.351.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -5168,6 +5168,7 @@ var EShapeBase = /** @class */ (function (_super) {
|
|
|
5168
5168
|
this._boundsTransformId = worldId;
|
|
5169
5169
|
this.getBounds_(this.transform.worldTransform, bounds);
|
|
5170
5170
|
}
|
|
5171
|
+
result !== null && result !== void 0 ? result : (result = new pixi_js.Rectangle());
|
|
5171
5172
|
result.copyFrom(bounds);
|
|
5172
5173
|
return result;
|
|
5173
5174
|
};
|
|
@@ -5182,6 +5183,7 @@ var EShapeBase = /** @class */ (function (_super) {
|
|
|
5182
5183
|
this._boundsInternalTransformId = currentLocalId;
|
|
5183
5184
|
this.getBounds_(this.transform.internalTransform, boundsInternal);
|
|
5184
5185
|
}
|
|
5186
|
+
result !== null && result !== void 0 ? result : (result = new pixi_js.Rectangle());
|
|
5185
5187
|
result.copyFrom(boundsInternal);
|
|
5186
5188
|
return result;
|
|
5187
5189
|
};
|
|
@@ -5196,6 +5198,7 @@ var EShapeBase = /** @class */ (function (_super) {
|
|
|
5196
5198
|
this._boundsLocalTransformId = currentLocalId;
|
|
5197
5199
|
this.getBounds_(this.transform.localTransform, boundsLocal);
|
|
5198
5200
|
}
|
|
5201
|
+
result !== null && result !== void 0 ? result : (result = new pixi_js.Rectangle());
|
|
5199
5202
|
result.copyFrom(boundsLocal);
|
|
5200
5203
|
return result;
|
|
5201
5204
|
};
|
|
@@ -51430,6 +51433,15 @@ var EThemeWhiteShapeActionValue = /** @class */ (function () {
|
|
|
51430
51433
|
return "Layer";
|
|
51431
51434
|
}
|
|
51432
51435
|
};
|
|
51436
|
+
EThemeWhiteShapeActionValue.prototype.toGestureOperationTypeLabel = function (type) {
|
|
51437
|
+
switch (type) {
|
|
51438
|
+
case EShapeActionValueGestureOperationType.DRAG:
|
|
51439
|
+
return "Drag";
|
|
51440
|
+
case EShapeActionValueGestureOperationType.PINCH:
|
|
51441
|
+
return "Pinch";
|
|
51442
|
+
}
|
|
51443
|
+
return "Unknown";
|
|
51444
|
+
};
|
|
51433
51445
|
EThemeWhiteShapeActionValue.prototype.toMiscTypeLabel = function (type) {
|
|
51434
51446
|
switch (type) {
|
|
51435
51447
|
case EShapeActionValueMiscType.INPUT_TEXT:
|
|
@@ -60705,6 +60717,15 @@ var EThemeDarkShapeActionValue = /** @class */ (function () {
|
|
|
60705
60717
|
return "Layer";
|
|
60706
60718
|
}
|
|
60707
60719
|
};
|
|
60720
|
+
EThemeDarkShapeActionValue.prototype.toGestureOperationTypeLabel = function (type) {
|
|
60721
|
+
switch (type) {
|
|
60722
|
+
case EShapeActionValueGestureOperationType.DRAG:
|
|
60723
|
+
return "Drag";
|
|
60724
|
+
case EShapeActionValueGestureOperationType.PINCH:
|
|
60725
|
+
return "Pinch";
|
|
60726
|
+
}
|
|
60727
|
+
return "Unknown";
|
|
60728
|
+
};
|
|
60708
60729
|
EThemeDarkShapeActionValue.prototype.toMiscTypeLabel = function (type) {
|
|
60709
60730
|
switch (type) {
|
|
60710
60731
|
case EShapeActionValueMiscType.INPUT_TEXT:
|
|
@@ -69006,6 +69027,7 @@ var DMenu = /** @class */ (function (_super) {
|
|
|
69006
69027
|
return this;
|
|
69007
69028
|
};
|
|
69008
69029
|
DMenu.prototype.open = function (owner, closeable, context) {
|
|
69030
|
+
var _a;
|
|
69009
69031
|
if (this.isHidden()) {
|
|
69010
69032
|
var layer = this._overlay.pick(this);
|
|
69011
69033
|
this._owner = owner;
|
|
@@ -69027,7 +69049,7 @@ var DMenu = /** @class */ (function (_super) {
|
|
|
69027
69049
|
renderer.once("prerender", onPrerenderBound);
|
|
69028
69050
|
}
|
|
69029
69051
|
if (this._fit) {
|
|
69030
|
-
var bounds = owner.getBounds();
|
|
69052
|
+
var bounds = owner.getBounds(false, ((_a = DMenu.WORK_BOUNDS) !== null && _a !== void 0 ? _a : (DMenu.WORK_BOUNDS = new pixi_js.Rectangle())));
|
|
69031
69053
|
if (bounds != null) {
|
|
69032
69054
|
this.width = bounds.width;
|
|
69033
69055
|
}
|
|
@@ -69053,9 +69075,10 @@ var DMenu = /** @class */ (function (_super) {
|
|
|
69053
69075
|
return this;
|
|
69054
69076
|
};
|
|
69055
69077
|
DMenu.prototype.onPrerender = function () {
|
|
69078
|
+
var _a;
|
|
69056
69079
|
var owner = this._owner;
|
|
69057
69080
|
if (owner) {
|
|
69058
|
-
var bounds = owner.getBounds();
|
|
69081
|
+
var bounds = owner.getBounds(false, ((_a = DMenu.WORK_BOUNDS) !== null && _a !== void 0 ? _a : (DMenu.WORK_BOUNDS = new pixi_js.Rectangle())));
|
|
69059
69082
|
if (bounds) {
|
|
69060
69083
|
if (this._fit) {
|
|
69061
69084
|
this.width = bounds.width;
|
package/dist/wcardinal-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.351.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -5165,6 +5165,7 @@
|
|
|
5165
5165
|
this._boundsTransformId = worldId;
|
|
5166
5166
|
this.getBounds_(this.transform.worldTransform, bounds);
|
|
5167
5167
|
}
|
|
5168
|
+
result !== null && result !== void 0 ? result : (result = new pixi_js.Rectangle());
|
|
5168
5169
|
result.copyFrom(bounds);
|
|
5169
5170
|
return result;
|
|
5170
5171
|
};
|
|
@@ -5179,6 +5180,7 @@
|
|
|
5179
5180
|
this._boundsInternalTransformId = currentLocalId;
|
|
5180
5181
|
this.getBounds_(this.transform.internalTransform, boundsInternal);
|
|
5181
5182
|
}
|
|
5183
|
+
result !== null && result !== void 0 ? result : (result = new pixi_js.Rectangle());
|
|
5182
5184
|
result.copyFrom(boundsInternal);
|
|
5183
5185
|
return result;
|
|
5184
5186
|
};
|
|
@@ -5193,6 +5195,7 @@
|
|
|
5193
5195
|
this._boundsLocalTransformId = currentLocalId;
|
|
5194
5196
|
this.getBounds_(this.transform.localTransform, boundsLocal);
|
|
5195
5197
|
}
|
|
5198
|
+
result !== null && result !== void 0 ? result : (result = new pixi_js.Rectangle());
|
|
5196
5199
|
result.copyFrom(boundsLocal);
|
|
5197
5200
|
return result;
|
|
5198
5201
|
};
|
|
@@ -50378,6 +50381,7 @@
|
|
|
50378
50381
|
return this;
|
|
50379
50382
|
};
|
|
50380
50383
|
DMenu.prototype.open = function (owner, closeable, context) {
|
|
50384
|
+
var _a;
|
|
50381
50385
|
if (this.isHidden()) {
|
|
50382
50386
|
var layer = this._overlay.pick(this);
|
|
50383
50387
|
this._owner = owner;
|
|
@@ -50399,7 +50403,7 @@
|
|
|
50399
50403
|
renderer.once("prerender", onPrerenderBound);
|
|
50400
50404
|
}
|
|
50401
50405
|
if (this._fit) {
|
|
50402
|
-
var bounds = owner.getBounds();
|
|
50406
|
+
var bounds = owner.getBounds(false, ((_a = DMenu.WORK_BOUNDS) !== null && _a !== void 0 ? _a : (DMenu.WORK_BOUNDS = new pixi_js.Rectangle())));
|
|
50403
50407
|
if (bounds != null) {
|
|
50404
50408
|
this.width = bounds.width;
|
|
50405
50409
|
}
|
|
@@ -50425,9 +50429,10 @@
|
|
|
50425
50429
|
return this;
|
|
50426
50430
|
};
|
|
50427
50431
|
DMenu.prototype.onPrerender = function () {
|
|
50432
|
+
var _a;
|
|
50428
50433
|
var owner = this._owner;
|
|
50429
50434
|
if (owner) {
|
|
50430
|
-
var bounds = owner.getBounds();
|
|
50435
|
+
var bounds = owner.getBounds(false, ((_a = DMenu.WORK_BOUNDS) !== null && _a !== void 0 ? _a : (DMenu.WORK_BOUNDS = new pixi_js.Rectangle())));
|
|
50431
50436
|
if (bounds) {
|
|
50432
50437
|
if (this._fit) {
|
|
50433
50438
|
this.width = bounds.width;
|