@wcardinal/wcardinal-ui 0.400.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/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 +7 -13
- 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 +7 -13
- 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 +15 -18
- 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 +15 -18
- 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 +15 -18
- package/dist/wcardinal-ui-theme-dark.min.js +2 -2
- package/dist/wcardinal-ui-theme-white-en-us.js +15 -18
- 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 +15 -18
- 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 +15 -18
- package/dist/wcardinal-ui-theme-white.min.js +2 -2
- package/dist/wcardinal-ui.cjs.js +48 -45
- package/dist/wcardinal-ui.js +14 -9
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
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
|
|
|
6
6
|
Material Design icons by Google
|
|
7
7
|
Apache license version 2.0.
|
|
8
8
|
*/
|
|
9
|
-
(function () {
|
|
9
|
+
(function (pixi_js) {
|
|
10
10
|
'use strict';
|
|
11
11
|
|
|
12
12
|
const UtilSvgAtlasBuilder = wcardinal.ui.UtilSvgAtlasBuilder;
|
|
@@ -15,7 +15,11 @@
|
|
|
15
15
|
* Copyright (C) 2019 Toshiba Corporation
|
|
16
16
|
* SPDX-License-Identifier: Apache-2.0
|
|
17
17
|
*/
|
|
18
|
-
var DThemeWhiteAtlas = new UtilSvgAtlasBuilder(
|
|
18
|
+
var DThemeWhiteAtlas = new UtilSvgAtlasBuilder({
|
|
19
|
+
width: 1024,
|
|
20
|
+
scaling: pixi_js.SCALE_MODES.LINEAR,
|
|
21
|
+
mipmap: pixi_js.MIPMAP_MODES.OFF
|
|
22
|
+
});
|
|
19
23
|
|
|
20
24
|
/*
|
|
21
25
|
* Copyright (C) 2019 Toshiba Corporation
|
|
@@ -9664,8 +9668,6 @@
|
|
|
9664
9668
|
loadThemeWhiteMenu();
|
|
9665
9669
|
};
|
|
9666
9670
|
|
|
9667
|
-
const toSvgTexture = wcardinal.ui.toSvgTexture;
|
|
9668
|
-
|
|
9669
9671
|
/*
|
|
9670
9672
|
* Copyright (C) 2019 Toshiba Corporation
|
|
9671
9673
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -9673,6 +9675,12 @@
|
|
|
9673
9675
|
// Material Design icons by Google.
|
|
9674
9676
|
// Apache license version 2.0.
|
|
9675
9677
|
/* eslint-disable prettier/prettier */
|
|
9678
|
+
DThemeWhiteAtlas.add("button_process_processing", 24, 24, "<g transform=\"scale(0.025,0.025) translate(0,960)\">" +
|
|
9679
|
+
"<path d=\"M480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-155.5t86-127Q252-817 325-848.5T" +
|
|
9680
|
+
"480-880q17 0 28.5 11.5T520-840q0 17-11.5 28.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160q133" +
|
|
9681
|
+
" 0 226.5-93.5T800-480q0-17 11.5-28.5T840-520q17 0 28.5 11.5T880-480q0 82-31.5 155t-86 127.5q-54.5 54.5-127 8" +
|
|
9682
|
+
"6T480-80Z\" fill=\"#fff\"/>" +
|
|
9683
|
+
"</g>");
|
|
9676
9684
|
DThemeWhiteAtlas.add("button_process_success", 24, 24, "<g transform=\"scale(0.025,0.025) translate(0,960)\">" +
|
|
9677
9685
|
"<path d=\"M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z\" fill=\"#fff\" />" +
|
|
9678
9686
|
"</g>");
|
|
@@ -9680,20 +9688,9 @@
|
|
|
9680
9688
|
"<path d=\"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z\" fill=\"#fff\" />" +
|
|
9681
9689
|
"</g>");
|
|
9682
9690
|
/* eslint-enable prettier/prettier */
|
|
9683
|
-
var newProcessingTexture = function () {
|
|
9684
|
-
var resolution = (window.devicePixelRatio || 1) * 2;
|
|
9685
|
-
var size = 24 * resolution;
|
|
9686
|
-
return toSvgTexture("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"".concat(size, "px\" height=\"").concat(size, "px\" viewBox=\"0 -960 960 960\">") +
|
|
9687
|
-
"<path d=\"M480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-155.5t86-127Q252-817 325-848.5T" +
|
|
9688
|
-
"480-880q17 0 28.5 11.5T520-840q0 17-11.5 28.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160q133" +
|
|
9689
|
-
" 0 226.5-93.5T800-480q0-17 11.5-28.5T840-520q17 0 28.5 11.5T880-480q0 82-31.5 155t-86 127.5q-54.5 54.5-127 8" +
|
|
9690
|
-
"6T480-80Z\" fill=\"#fff\"/>" +
|
|
9691
|
-
"</svg>", resolution);
|
|
9692
|
-
};
|
|
9693
|
-
var processingTexture;
|
|
9694
9691
|
var imageSource = function (state) {
|
|
9695
9692
|
if (state.isProcessing) {
|
|
9696
|
-
return
|
|
9693
|
+
return DThemeWhiteAtlas.mappings.button_process_processing;
|
|
9697
9694
|
}
|
|
9698
9695
|
else if (state.isSucceeded) {
|
|
9699
9696
|
return DThemeWhiteAtlas.mappings.button_process_success;
|
|
@@ -10176,4 +10173,4 @@
|
|
|
10176
10173
|
dest[name_1] = src[name_1];
|
|
10177
10174
|
}
|
|
10178
10175
|
|
|
10179
|
-
})();
|
|
10176
|
+
})(PIXI);
|