@wcardinal/wcardinal-ui 0.399.0 → 0.401.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/theme/white/d-theme-white-indicator-processing.d.ts +1 -1
- package/dist/types/wcardinal/ui/util/util-svg-atlas-builder.d.ts +13 -2
- package/dist/wcardinal/ui/d-image-piece-layouter-part-center.js +2 -2
- package/dist/wcardinal/ui/d-image-piece-layouter-part-center.js.map +1 -1
- package/dist/wcardinal/ui/d-image-piece-layouter-part.js +1 -0
- package/dist/wcardinal/ui/d-image-piece-layouter-part.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-atlas.js +6 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-atlas.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-indicator-processing.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-atlas.js +6 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-atlas.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-indicator-processing.js.map +1 -1
- package/dist/wcardinal/ui/util/util-svg-atlas-builder.js +14 -9
- package/dist/wcardinal/ui/util/util-svg-atlas-builder.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark-en-us.js +8 -4
- package/dist/wcardinal-ui-theme-dark-en-us.min.js +2 -2
- package/dist/wcardinal-ui-theme-dark-en-us.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark-ja-jp.js +8 -4
- package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +2 -2
- package/dist/wcardinal-ui-theme-dark-ja-jp.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +8 -4
- package/dist/wcardinal-ui-theme-dark.min.js +2 -2
- package/dist/wcardinal-ui-theme-white-en-us.js +8 -4
- package/dist/wcardinal-ui-theme-white-en-us.min.js +2 -2
- package/dist/wcardinal-ui-theme-white-en-us.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-white-ja-jp.js +8 -4
- package/dist/wcardinal-ui-theme-white-ja-jp.min.js +2 -2
- package/dist/wcardinal-ui-theme-white-ja-jp.min.js.map +1 -1
- package/dist/wcardinal-ui-theme-white.js +8 -4
- package/dist/wcardinal-ui-theme-white.min.js +2 -2
- package/dist/wcardinal-ui.cjs.js +27 -13
- package/dist/wcardinal-ui.js +17 -11
- 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.401.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -27699,6 +27699,7 @@ var DImagePieceLayouterPart = /** @class */ (function () {
|
|
|
27699
27699
|
}
|
|
27700
27700
|
DImagePieceLayouterPart.prototype.clear = function () {
|
|
27701
27701
|
this._pieces.length = 0;
|
|
27702
|
+
this._bounds.length = 0;
|
|
27702
27703
|
this._size = 0;
|
|
27703
27704
|
this._margin = 0;
|
|
27704
27705
|
this._text = undefined;
|
|
@@ -27761,8 +27762,8 @@ var DImagePieceLayouterPartCenter = /** @class */ (function (_super) {
|
|
|
27761
27762
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
27762
27763
|
}
|
|
27763
27764
|
DImagePieceLayouterPartCenter.prototype.add = function (image, bound, margin) {
|
|
27764
|
-
|
|
27765
|
-
|
|
27765
|
+
this._pieces.push(image);
|
|
27766
|
+
this._bounds.push(bound);
|
|
27766
27767
|
this._size = Math.max(this.size, bound.width);
|
|
27767
27768
|
};
|
|
27768
27769
|
DImagePieceLayouterPartCenter.prototype.execute = function (pleft, pright, width) {
|
|
@@ -47176,10 +47177,14 @@ var ESnapper = /** @class */ (function (_super) {
|
|
|
47176
47177
|
* SPDX-License-Identifier: Apache-2.0
|
|
47177
47178
|
*/
|
|
47178
47179
|
var UtilSvgAtlasBuilder = /** @class */ (function () {
|
|
47179
|
-
function UtilSvgAtlasBuilder(
|
|
47180
|
-
|
|
47181
|
-
this.
|
|
47182
|
-
this.
|
|
47180
|
+
function UtilSvgAtlasBuilder(options) {
|
|
47181
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
47182
|
+
this._width = (_a = options.width) !== null && _a !== void 0 ? _a : 256;
|
|
47183
|
+
this._ratio = (_b = options.ratio) !== null && _b !== void 0 ? _b : 1;
|
|
47184
|
+
this._margin = (_c = options.margin) !== null && _c !== void 0 ? _c : 3;
|
|
47185
|
+
this._resolution = (_e = (_d = options.resolution) !== null && _d !== void 0 ? _d : window.devicePixelRatio) !== null && _e !== void 0 ? _e : 1;
|
|
47186
|
+
this._scaling = (_f = options.scaling) !== null && _f !== void 0 ? _f : pixi_js.settings.SCALE_MODE;
|
|
47187
|
+
this._mipmap = (_g = options.mipmap) !== null && _g !== void 0 ? _g : pixi_js.settings.MIPMAP_TEXTURES;
|
|
47183
47188
|
this._frames = {};
|
|
47184
47189
|
this._svg = "";
|
|
47185
47190
|
this._nextX = 0;
|
|
@@ -47244,10 +47249,10 @@ var UtilSvgAtlasBuilder = /** @class */ (function () {
|
|
|
47244
47249
|
configurable: true
|
|
47245
47250
|
});
|
|
47246
47251
|
UtilSvgAtlasBuilder.prototype.build = function (options) {
|
|
47247
|
-
var _a, _b
|
|
47252
|
+
var _a, _b;
|
|
47248
47253
|
var built = this._built;
|
|
47249
47254
|
if (built == null || (options === null || options === void 0 ? void 0 : options.force)) {
|
|
47250
|
-
var resolution = (
|
|
47255
|
+
var resolution = (_a = options === null || options === void 0 ? void 0 : options.resolution) !== null && _a !== void 0 ? _a : this._resolution;
|
|
47251
47256
|
var width = this._width;
|
|
47252
47257
|
var height = Math.pow(2, Math.ceil(Math.log(this._nextY + this._height) / Math.LN2));
|
|
47253
47258
|
var realWidth = width * resolution;
|
|
@@ -47258,10 +47263,11 @@ var UtilSvgAtlasBuilder = /** @class */ (function () {
|
|
|
47258
47263
|
var attrViewBox = "viewBox=\"0 0 ".concat(width * ratio, " ").concat(height * ratio, "\"");
|
|
47259
47264
|
var attrXmlns = "xmlns=\"http://www.w3.org/2000/svg\"";
|
|
47260
47265
|
var url = toSvgUrl("<svg ".concat(attrWidth, " ").concat(attrHeight, " ").concat(attrViewBox, " ").concat(attrXmlns, ">").concat(this._svg, "</svg>"));
|
|
47261
|
-
var scaleMode = (
|
|
47266
|
+
var scaleMode = (_b = options === null || options === void 0 ? void 0 : options.scaling) !== null && _b !== void 0 ? _b : this._scaling;
|
|
47262
47267
|
var baseTexture = pixi_js.BaseTexture.from(url, {
|
|
47263
47268
|
resolution: resolution,
|
|
47264
|
-
scaleMode: scaleMode
|
|
47269
|
+
scaleMode: scaleMode,
|
|
47270
|
+
mipmap: this._mipmap
|
|
47265
47271
|
});
|
|
47266
47272
|
var frames_1 = this._frames;
|
|
47267
47273
|
built = this._built = {};
|
|
@@ -47278,7 +47284,11 @@ var UtilSvgAtlasBuilder = /** @class */ (function () {
|
|
|
47278
47284
|
* Copyright (C) 2019 Toshiba Corporation
|
|
47279
47285
|
* SPDX-License-Identifier: Apache-2.0
|
|
47280
47286
|
*/
|
|
47281
|
-
var DThemeWhiteAtlas = new UtilSvgAtlasBuilder(
|
|
47287
|
+
var DThemeWhiteAtlas = new UtilSvgAtlasBuilder({
|
|
47288
|
+
width: 1024,
|
|
47289
|
+
scaling: pixi_js.SCALE_MODES.LINEAR,
|
|
47290
|
+
mipmap: pixi_js.MIPMAP_MODES.OFF
|
|
47291
|
+
});
|
|
47282
47292
|
|
|
47283
47293
|
/*
|
|
47284
47294
|
* Copyright (C) 2019 Toshiba Corporation
|
|
@@ -58432,7 +58442,11 @@ var DThemeWhiteDialogConfirmDelete = /** @class */ (function (_super) {
|
|
|
58432
58442
|
* Copyright (C) 2019 Toshiba Corporation
|
|
58433
58443
|
* SPDX-License-Identifier: Apache-2.0
|
|
58434
58444
|
*/
|
|
58435
|
-
var DThemeDarkAtlas = new UtilSvgAtlasBuilder(
|
|
58445
|
+
var DThemeDarkAtlas = new UtilSvgAtlasBuilder({
|
|
58446
|
+
width: 1024,
|
|
58447
|
+
scaling: pixi_js.SCALE_MODES.LINEAR,
|
|
58448
|
+
mipmap: pixi_js.MIPMAP_MODES.OFF
|
|
58449
|
+
});
|
|
58436
58450
|
|
|
58437
58451
|
/*
|
|
58438
58452
|
* Copyright (C) 2019 Toshiba Corporation
|
package/dist/wcardinal-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.401.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -27696,6 +27696,7 @@
|
|
|
27696
27696
|
}
|
|
27697
27697
|
DImagePieceLayouterPart.prototype.clear = function () {
|
|
27698
27698
|
this._pieces.length = 0;
|
|
27699
|
+
this._bounds.length = 0;
|
|
27699
27700
|
this._size = 0;
|
|
27700
27701
|
this._margin = 0;
|
|
27701
27702
|
this._text = undefined;
|
|
@@ -27758,8 +27759,8 @@
|
|
|
27758
27759
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
27759
27760
|
}
|
|
27760
27761
|
DImagePieceLayouterPartCenter.prototype.add = function (image, bound, margin) {
|
|
27761
|
-
|
|
27762
|
-
|
|
27762
|
+
this._pieces.push(image);
|
|
27763
|
+
this._bounds.push(bound);
|
|
27763
27764
|
this._size = Math.max(this.size, bound.width);
|
|
27764
27765
|
};
|
|
27765
27766
|
DImagePieceLayouterPartCenter.prototype.execute = function (pleft, pright, width) {
|
|
@@ -47781,10 +47782,14 @@
|
|
|
47781
47782
|
* SPDX-License-Identifier: Apache-2.0
|
|
47782
47783
|
*/
|
|
47783
47784
|
var UtilSvgAtlasBuilder = /** @class */ (function () {
|
|
47784
|
-
function UtilSvgAtlasBuilder(
|
|
47785
|
-
|
|
47786
|
-
this.
|
|
47787
|
-
this.
|
|
47785
|
+
function UtilSvgAtlasBuilder(options) {
|
|
47786
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
47787
|
+
this._width = (_a = options.width) !== null && _a !== void 0 ? _a : 256;
|
|
47788
|
+
this._ratio = (_b = options.ratio) !== null && _b !== void 0 ? _b : 1;
|
|
47789
|
+
this._margin = (_c = options.margin) !== null && _c !== void 0 ? _c : 3;
|
|
47790
|
+
this._resolution = (_e = (_d = options.resolution) !== null && _d !== void 0 ? _d : window.devicePixelRatio) !== null && _e !== void 0 ? _e : 1;
|
|
47791
|
+
this._scaling = (_f = options.scaling) !== null && _f !== void 0 ? _f : pixi_js.settings.SCALE_MODE;
|
|
47792
|
+
this._mipmap = (_g = options.mipmap) !== null && _g !== void 0 ? _g : pixi_js.settings.MIPMAP_TEXTURES;
|
|
47788
47793
|
this._frames = {};
|
|
47789
47794
|
this._svg = "";
|
|
47790
47795
|
this._nextX = 0;
|
|
@@ -47849,10 +47854,10 @@
|
|
|
47849
47854
|
configurable: true
|
|
47850
47855
|
});
|
|
47851
47856
|
UtilSvgAtlasBuilder.prototype.build = function (options) {
|
|
47852
|
-
var _a, _b
|
|
47857
|
+
var _a, _b;
|
|
47853
47858
|
var built = this._built;
|
|
47854
47859
|
if (built == null || (options === null || options === void 0 ? void 0 : options.force)) {
|
|
47855
|
-
var resolution = (
|
|
47860
|
+
var resolution = (_a = options === null || options === void 0 ? void 0 : options.resolution) !== null && _a !== void 0 ? _a : this._resolution;
|
|
47856
47861
|
var width = this._width;
|
|
47857
47862
|
var height = Math.pow(2, Math.ceil(Math.log(this._nextY + this._height) / Math.LN2));
|
|
47858
47863
|
var realWidth = width * resolution;
|
|
@@ -47863,10 +47868,11 @@
|
|
|
47863
47868
|
var attrViewBox = "viewBox=\"0 0 ".concat(width * ratio, " ").concat(height * ratio, "\"");
|
|
47864
47869
|
var attrXmlns = "xmlns=\"http://www.w3.org/2000/svg\"";
|
|
47865
47870
|
var url = toSvgUrl("<svg ".concat(attrWidth, " ").concat(attrHeight, " ").concat(attrViewBox, " ").concat(attrXmlns, ">").concat(this._svg, "</svg>"));
|
|
47866
|
-
var scaleMode = (
|
|
47871
|
+
var scaleMode = (_b = options === null || options === void 0 ? void 0 : options.scaling) !== null && _b !== void 0 ? _b : this._scaling;
|
|
47867
47872
|
var baseTexture = pixi_js.BaseTexture.from(url, {
|
|
47868
47873
|
resolution: resolution,
|
|
47869
|
-
scaleMode: scaleMode
|
|
47874
|
+
scaleMode: scaleMode,
|
|
47875
|
+
mipmap: this._mipmap
|
|
47870
47876
|
});
|
|
47871
47877
|
var frames_1 = this._frames;
|
|
47872
47878
|
built = this._built = {};
|