@wcardinal/wcardinal-ui 0.394.0 → 0.395.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/dark/d-theme-dark-input-boolean-button-off.d.ts +0 -2
- package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-input-boolean-button-on.d.ts +0 -2
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-input-boolean-button-off.d.ts +0 -2
- package/dist/types/wcardinal/ui/theme/white/d-theme-white-input-boolean-button-on.d.ts +0 -2
- package/dist/wcardinal/ui/d-base-background-mesh-geometry.js +5 -5
- package/dist/wcardinal/ui/d-base-background-mesh-geometry.js.map +1 -1
- package/dist/wcardinal/ui/d-base-border-mesh-geometry.js +60 -37
- package/dist/wcardinal/ui/d-base-border-mesh-geometry.js.map +1 -1
- package/dist/wcardinal/ui/d-base-outline-snippet.js +1 -1
- package/dist/wcardinal/ui/d-base-outline-snippet.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-button-base.js +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-button-base.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-input-boolean-button-off.js +0 -4
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-input-boolean-button-off.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-input-boolean-button-on.js +0 -4
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-input-boolean-button-on.js.map +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-input.js +1 -1
- package/dist/wcardinal/ui/theme/dark/d-theme-dark-input.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-button-base.js +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-button-base.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-input-boolean-button-off.js +0 -4
- package/dist/wcardinal/ui/theme/white/d-theme-white-input-boolean-button-off.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-input-boolean-button-on.js +0 -4
- package/dist/wcardinal/ui/theme/white/d-theme-white-input-boolean-button-on.js.map +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-input.js +1 -1
- package/dist/wcardinal/ui/theme/white/d-theme-white-input.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark-en-us.js +3 -9
- 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 +3 -9
- 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 +3 -9
- package/dist/wcardinal-ui-theme-dark.min.js +2 -2
- package/dist/wcardinal-ui-theme-white-en-us.js +3 -9
- 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 +3 -9
- 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 +3 -9
- package/dist/wcardinal-ui-theme-white.min.js +2 -2
- package/dist/wcardinal-ui.cjs.js +71 -60
- package/dist/wcardinal-ui.js +67 -44
- 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.395.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -11901,7 +11901,7 @@ var DBaseBackgroundMeshGeometry = /** @class */ (function (_super) {
|
|
|
11901
11901
|
var w = this._width;
|
|
11902
11902
|
var h = this._height;
|
|
11903
11903
|
var r = Math.min(0.5 * w, 0.5 * h, this._cornerRadius);
|
|
11904
|
-
var a =
|
|
11904
|
+
var a = 0.5 / resolution;
|
|
11905
11905
|
var x0 = 0;
|
|
11906
11906
|
var x1 = r;
|
|
11907
11907
|
var x2 = w - r;
|
|
@@ -11934,7 +11934,7 @@ var DBaseBackgroundMeshGeometry = /** @class */ (function (_super) {
|
|
|
11934
11934
|
this.fillVertices(vertices, uvs, iv, iuv, n, x1, y1, r, a, tlt);
|
|
11935
11935
|
}
|
|
11936
11936
|
else {
|
|
11937
|
-
this.fillVertices(vertices, uvs, iv, iuv, n, x0, y0, 0,
|
|
11937
|
+
this.fillVertices(vertices, uvs, iv, iuv, n, x0, y0, 0, a, tlt);
|
|
11938
11938
|
}
|
|
11939
11939
|
this.fillIndices(indices, ia, ii, n);
|
|
11940
11940
|
iv += n4;
|
|
@@ -11946,7 +11946,7 @@ var DBaseBackgroundMeshGeometry = /** @class */ (function (_super) {
|
|
|
11946
11946
|
this.fillVertices(vertices, uvs, iv, iuv, n, x2, y1, r, a, ttr);
|
|
11947
11947
|
}
|
|
11948
11948
|
else {
|
|
11949
|
-
this.fillVertices(vertices, uvs, iv, iuv, n, x3, y0, 0,
|
|
11949
|
+
this.fillVertices(vertices, uvs, iv, iuv, n, x3, y0, 0, a, ttr);
|
|
11950
11950
|
}
|
|
11951
11951
|
this.fillIndices(indices, ia, ii, n);
|
|
11952
11952
|
iv += n4;
|
|
@@ -11958,7 +11958,7 @@ var DBaseBackgroundMeshGeometry = /** @class */ (function (_super) {
|
|
|
11958
11958
|
this.fillVertices(vertices, uvs, iv, iuv, n, x2, y2, r, a, trb);
|
|
11959
11959
|
}
|
|
11960
11960
|
else {
|
|
11961
|
-
this.fillVertices(vertices, uvs, iv, iuv, n, x3, y3, 0,
|
|
11961
|
+
this.fillVertices(vertices, uvs, iv, iuv, n, x3, y3, 0, a, trb);
|
|
11962
11962
|
}
|
|
11963
11963
|
this.fillIndices(indices, ia, ii, n);
|
|
11964
11964
|
iv += n4;
|
|
@@ -11970,7 +11970,7 @@ var DBaseBackgroundMeshGeometry = /** @class */ (function (_super) {
|
|
|
11970
11970
|
this.fillVertices(vertices, uvs, iv, iuv, n, x1, y2, r, a, tbl);
|
|
11971
11971
|
}
|
|
11972
11972
|
else {
|
|
11973
|
-
this.fillVertices(vertices, uvs, iv, iuv, n, x0, y3, 0,
|
|
11973
|
+
this.fillVertices(vertices, uvs, iv, iuv, n, x0, y3, 0, a, tbl);
|
|
11974
11974
|
}
|
|
11975
11975
|
this.fillIndicesEnd(indices, ia, ii, n);
|
|
11976
11976
|
iv += n4;
|
|
@@ -12156,30 +12156,53 @@ var DBaseBorderMeshGeometry = /** @class */ (function (_super) {
|
|
|
12156
12156
|
var r3 = r2 + dr;
|
|
12157
12157
|
var cos = table.cos;
|
|
12158
12158
|
var sin = table.sin;
|
|
12159
|
-
if (r0
|
|
12160
|
-
var
|
|
12161
|
-
var
|
|
12162
|
-
|
|
12163
|
-
|
|
12164
|
-
|
|
12165
|
-
|
|
12166
|
-
|
|
12167
|
-
|
|
12168
|
-
|
|
12169
|
-
|
|
12170
|
-
|
|
12171
|
-
|
|
12172
|
-
|
|
12173
|
-
|
|
12174
|
-
|
|
12175
|
-
|
|
12176
|
-
|
|
12177
|
-
|
|
12178
|
-
|
|
12179
|
-
|
|
12180
|
-
|
|
12181
|
-
|
|
12182
|
-
|
|
12159
|
+
if (r0 <= 0) {
|
|
12160
|
+
var c0 = cos[0] + cos[n - 1];
|
|
12161
|
+
var s0 = sin[0] + sin[n - 1];
|
|
12162
|
+
if (r1 <= 0) {
|
|
12163
|
+
if (r <= 0) {
|
|
12164
|
+
for (var i = 0; i < n; ++i) {
|
|
12165
|
+
var c = cos[i];
|
|
12166
|
+
var s = sin[i];
|
|
12167
|
+
vertices[++iv] = x + c0 * r0;
|
|
12168
|
+
vertices[++iv] = y + s0 * r0;
|
|
12169
|
+
vertices[++iv] = x + c0 * r1;
|
|
12170
|
+
vertices[++iv] = y + s0 * r1;
|
|
12171
|
+
vertices[++iv] = x + c0 * r2;
|
|
12172
|
+
vertices[++iv] = y + s0 * r2;
|
|
12173
|
+
vertices[++iv] = x + c0 * r3;
|
|
12174
|
+
vertices[++iv] = y + s0 * r3;
|
|
12175
|
+
uvs[++iuv] = 0.5 * (1 + c);
|
|
12176
|
+
uvs[++iuv] = 0.5 * (1 + s);
|
|
12177
|
+
uvs[++iuv] = 0.5;
|
|
12178
|
+
uvs[++iuv] = 0.5;
|
|
12179
|
+
uvs[++iuv] = 0.5;
|
|
12180
|
+
uvs[++iuv] = 0.5;
|
|
12181
|
+
uvs[++iuv] = 0.5 * (1 + c);
|
|
12182
|
+
uvs[++iuv] = 0.5 * (1 + s);
|
|
12183
|
+
}
|
|
12184
|
+
}
|
|
12185
|
+
else {
|
|
12186
|
+
for (var i = 0; i < n; ++i) {
|
|
12187
|
+
var c = cos[i];
|
|
12188
|
+
var s = sin[i];
|
|
12189
|
+
vertices[++iv] = x + c0 * r0;
|
|
12190
|
+
vertices[++iv] = y + s0 * r0;
|
|
12191
|
+
vertices[++iv] = x + c0 * r1;
|
|
12192
|
+
vertices[++iv] = y + s0 * r1;
|
|
12193
|
+
vertices[++iv] = x + c * r2;
|
|
12194
|
+
vertices[++iv] = y + s * r2;
|
|
12195
|
+
vertices[++iv] = x + c * r3;
|
|
12196
|
+
vertices[++iv] = y + s * r3;
|
|
12197
|
+
uvs[++iuv] = 0.5 * (1 + c);
|
|
12198
|
+
uvs[++iuv] = 0.5 * (1 + s);
|
|
12199
|
+
uvs[++iuv] = 0.5;
|
|
12200
|
+
uvs[++iuv] = 0.5;
|
|
12201
|
+
uvs[++iuv] = 0.5;
|
|
12202
|
+
uvs[++iuv] = 0.5;
|
|
12203
|
+
uvs[++iuv] = 0.5 * (1 + c);
|
|
12204
|
+
uvs[++iuv] = 0.5 * (1 + s);
|
|
12205
|
+
}
|
|
12183
12206
|
}
|
|
12184
12207
|
}
|
|
12185
12208
|
else {
|
|
@@ -12336,7 +12359,7 @@ var DBaseBorderMeshGeometry = /** @class */ (function (_super) {
|
|
|
12336
12359
|
var h = this._height;
|
|
12337
12360
|
var bw = this._borderWidth;
|
|
12338
12361
|
var r = Math.min(0.5 * w, 0.5 * h, this._cornerRadius);
|
|
12339
|
-
var a =
|
|
12362
|
+
var a = 0.5 / resolution;
|
|
12340
12363
|
var x0 = 0;
|
|
12341
12364
|
var x1 = r;
|
|
12342
12365
|
var x2 = w - r;
|
|
@@ -12375,15 +12398,15 @@ var DBaseBorderMeshGeometry = /** @class */ (function (_super) {
|
|
|
12375
12398
|
this.fillVertices(vrtcs, uvs, iv, iuv, n, x1, y1, r, a, bw, tlt);
|
|
12376
12399
|
}
|
|
12377
12400
|
else {
|
|
12378
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x1, y1, r,
|
|
12401
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x1, y1, r, a, 0, tlt);
|
|
12379
12402
|
}
|
|
12380
12403
|
}
|
|
12381
12404
|
else {
|
|
12382
12405
|
if (bl || bt) {
|
|
12383
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x0, y0, 0,
|
|
12406
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x0, y0, 0, a, bw, tlt);
|
|
12384
12407
|
}
|
|
12385
12408
|
else {
|
|
12386
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x0, y0, 0,
|
|
12409
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x0, y0, 0, a, 0, tlt);
|
|
12387
12410
|
}
|
|
12388
12411
|
}
|
|
12389
12412
|
this.fillIndices(indices, ia, ii, n, bt, false);
|
|
@@ -12397,15 +12420,15 @@ var DBaseBorderMeshGeometry = /** @class */ (function (_super) {
|
|
|
12397
12420
|
this.fillVertices(vrtcs, uvs, iv, iuv, n, x2, y1, r, a, bw, ttr);
|
|
12398
12421
|
}
|
|
12399
12422
|
else {
|
|
12400
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x2, y1, r,
|
|
12423
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x2, y1, r, a, 0, ttr);
|
|
12401
12424
|
}
|
|
12402
12425
|
}
|
|
12403
12426
|
else {
|
|
12404
12427
|
if (bt || br) {
|
|
12405
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x3, y0, 0,
|
|
12428
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x3, y0, 0, a, bw, ttr);
|
|
12406
12429
|
}
|
|
12407
12430
|
else {
|
|
12408
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x3, y0, 0,
|
|
12431
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x3, y0, 0, a, 0, ttr);
|
|
12409
12432
|
}
|
|
12410
12433
|
}
|
|
12411
12434
|
this.fillIndices(indices, ia, ii, n, br, false);
|
|
@@ -12419,15 +12442,15 @@ var DBaseBorderMeshGeometry = /** @class */ (function (_super) {
|
|
|
12419
12442
|
this.fillVertices(vrtcs, uvs, iv, iuv, n, x2, y2, r, a, bw, trb);
|
|
12420
12443
|
}
|
|
12421
12444
|
else {
|
|
12422
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x2, y2, r,
|
|
12445
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x2, y2, r, a, 0, trb);
|
|
12423
12446
|
}
|
|
12424
12447
|
}
|
|
12425
12448
|
else {
|
|
12426
12449
|
if (br || bb) {
|
|
12427
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x3, y3, 0,
|
|
12450
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x3, y3, 0, a, bw, trb);
|
|
12428
12451
|
}
|
|
12429
12452
|
else {
|
|
12430
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x3, y3, 0,
|
|
12453
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x3, y3, 0, a, 0, trb);
|
|
12431
12454
|
}
|
|
12432
12455
|
}
|
|
12433
12456
|
this.fillIndices(indices, ia, ii, n, bb, false);
|
|
@@ -12441,15 +12464,15 @@ var DBaseBorderMeshGeometry = /** @class */ (function (_super) {
|
|
|
12441
12464
|
this.fillVertices(vrtcs, uvs, iv, iuv, n, x1, y2, r, a, bw, tbl);
|
|
12442
12465
|
}
|
|
12443
12466
|
else {
|
|
12444
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x1, y2, r,
|
|
12467
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x1, y2, r, a, 0, tbl);
|
|
12445
12468
|
}
|
|
12446
12469
|
}
|
|
12447
12470
|
else {
|
|
12448
12471
|
if (bb || bl) {
|
|
12449
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x0, y3, 0,
|
|
12472
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x0, y3, 0, a, bw, tbl);
|
|
12450
12473
|
}
|
|
12451
12474
|
else {
|
|
12452
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x0, y3, 0,
|
|
12475
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x0, y3, 0, a, 0, tbl);
|
|
12453
12476
|
}
|
|
12454
12477
|
}
|
|
12455
12478
|
this.fillIndices(indices, ia, ii, n, bl, true);
|
|
@@ -12648,7 +12671,7 @@ var DBaseOutlineSnippet = /** @class */ (function () {
|
|
|
12648
12671
|
outlineMesh.y = -outlineOffset;
|
|
12649
12672
|
outlineMesh.width = width + outlineOffset * 2;
|
|
12650
12673
|
outlineMesh.height = height + outlineOffset * 2;
|
|
12651
|
-
outlineMesh.cornerRadius = cornerRadius;
|
|
12674
|
+
outlineMesh.cornerRadius = Math.max(0, cornerRadius + outlineOffset);
|
|
12652
12675
|
outlineMesh.cornerMask = cornerMask;
|
|
12653
12676
|
outlineMesh.borderWidth = outlineWidth;
|
|
12654
12677
|
outlineMesh.borderMask = outlineMask;
|
|
@@ -47386,7 +47409,7 @@ var DThemeWhiteButtonBase = /** @class */ (function (_super) {
|
|
|
47386
47409
|
return this.getOutlineOffsetNonActive(state);
|
|
47387
47410
|
};
|
|
47388
47411
|
DThemeWhiteButtonBase.prototype.getOutlineOffsetActive = function (state) {
|
|
47389
|
-
return -1
|
|
47412
|
+
return -1;
|
|
47390
47413
|
};
|
|
47391
47414
|
DThemeWhiteButtonBase.prototype.getOutlineOffsetNonActive = function (state) {
|
|
47392
47415
|
return _super.prototype.getOutlineOffset.call(this, state);
|
|
@@ -49700,7 +49723,7 @@ var DThemeWhiteInput = /** @class */ (function (_super) {
|
|
|
49700
49723
|
return true;
|
|
49701
49724
|
};
|
|
49702
49725
|
DThemeWhiteInput.prototype.getElementStyleBorder = function (state) {
|
|
49703
|
-
return "border:
|
|
49726
|
+
return "border: 1.5px solid transparent; box-sizing: border-box;";
|
|
49704
49727
|
};
|
|
49705
49728
|
return DThemeWhiteInput;
|
|
49706
49729
|
}(DThemeWhiteHtmlElement));
|
|
@@ -55188,9 +55211,6 @@ var DThemeWhiteInputBooleanButtonOff = /** @class */ (function (_super) {
|
|
|
55188
55211
|
function DThemeWhiteInputBooleanButtonOff() {
|
|
55189
55212
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
55190
55213
|
}
|
|
55191
|
-
DThemeWhiteInputBooleanButtonOff.prototype.getBorderMask = function () {
|
|
55192
|
-
return DBorderMask.RIGHT;
|
|
55193
|
-
};
|
|
55194
55214
|
DThemeWhiteInputBooleanButtonOff.prototype.isToggle = function () {
|
|
55195
55215
|
return true;
|
|
55196
55216
|
};
|
|
@@ -55221,9 +55241,6 @@ var DThemeWhiteInputBooleanButtonOn = /** @class */ (function (_super) {
|
|
|
55221
55241
|
function DThemeWhiteInputBooleanButtonOn() {
|
|
55222
55242
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
55223
55243
|
}
|
|
55224
|
-
DThemeWhiteInputBooleanButtonOn.prototype.getBorderMask = function () {
|
|
55225
|
-
return DBorderMask.LEFT;
|
|
55226
|
-
};
|
|
55227
55244
|
DThemeWhiteInputBooleanButtonOn.prototype.isToggle = function () {
|
|
55228
55245
|
return true;
|
|
55229
55246
|
};
|
|
@@ -58377,7 +58394,7 @@ var DThemeDarkButtonBase = /** @class */ (function (_super) {
|
|
|
58377
58394
|
return this.getOutlineOffsetNonActive(state);
|
|
58378
58395
|
};
|
|
58379
58396
|
DThemeDarkButtonBase.prototype.getOutlineOffsetActive = function (state) {
|
|
58380
|
-
return -1
|
|
58397
|
+
return -1;
|
|
58381
58398
|
};
|
|
58382
58399
|
DThemeDarkButtonBase.prototype.getOutlineOffsetNonActive = function (state) {
|
|
58383
58400
|
return _super.prototype.getOutlineOffset.call(this, state);
|
|
@@ -60554,7 +60571,7 @@ var DThemeDarkInput = /** @class */ (function (_super) {
|
|
|
60554
60571
|
return true;
|
|
60555
60572
|
};
|
|
60556
60573
|
DThemeDarkInput.prototype.getElementStyleBorder = function (state) {
|
|
60557
|
-
return "border:
|
|
60574
|
+
return "border: 1.5px solid transparent; box-sizing: border-box;";
|
|
60558
60575
|
};
|
|
60559
60576
|
return DThemeDarkInput;
|
|
60560
60577
|
}(DThemeDarkHtmlElement));
|
|
@@ -65574,9 +65591,6 @@ var DThemeDarkInputBooleanButtonOff = /** @class */ (function (_super) {
|
|
|
65574
65591
|
function DThemeDarkInputBooleanButtonOff() {
|
|
65575
65592
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
65576
65593
|
}
|
|
65577
|
-
DThemeDarkInputBooleanButtonOff.prototype.getBorderMask = function () {
|
|
65578
|
-
return DBorderMask.RIGHT;
|
|
65579
|
-
};
|
|
65580
65594
|
DThemeDarkInputBooleanButtonOff.prototype.isToggle = function () {
|
|
65581
65595
|
return true;
|
|
65582
65596
|
};
|
|
@@ -65607,9 +65621,6 @@ var DThemeDarkInputBooleanButtonOn = /** @class */ (function (_super) {
|
|
|
65607
65621
|
function DThemeDarkInputBooleanButtonOn() {
|
|
65608
65622
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
65609
65623
|
}
|
|
65610
|
-
DThemeDarkInputBooleanButtonOn.prototype.getBorderMask = function () {
|
|
65611
|
-
return DBorderMask.LEFT;
|
|
65612
|
-
};
|
|
65613
65624
|
DThemeDarkInputBooleanButtonOn.prototype.isToggle = function () {
|
|
65614
65625
|
return true;
|
|
65615
65626
|
};
|
package/dist/wcardinal-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.395.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -11898,7 +11898,7 @@
|
|
|
11898
11898
|
var w = this._width;
|
|
11899
11899
|
var h = this._height;
|
|
11900
11900
|
var r = Math.min(0.5 * w, 0.5 * h, this._cornerRadius);
|
|
11901
|
-
var a =
|
|
11901
|
+
var a = 0.5 / resolution;
|
|
11902
11902
|
var x0 = 0;
|
|
11903
11903
|
var x1 = r;
|
|
11904
11904
|
var x2 = w - r;
|
|
@@ -11931,7 +11931,7 @@
|
|
|
11931
11931
|
this.fillVertices(vertices, uvs, iv, iuv, n, x1, y1, r, a, tlt);
|
|
11932
11932
|
}
|
|
11933
11933
|
else {
|
|
11934
|
-
this.fillVertices(vertices, uvs, iv, iuv, n, x0, y0, 0,
|
|
11934
|
+
this.fillVertices(vertices, uvs, iv, iuv, n, x0, y0, 0, a, tlt);
|
|
11935
11935
|
}
|
|
11936
11936
|
this.fillIndices(indices, ia, ii, n);
|
|
11937
11937
|
iv += n4;
|
|
@@ -11943,7 +11943,7 @@
|
|
|
11943
11943
|
this.fillVertices(vertices, uvs, iv, iuv, n, x2, y1, r, a, ttr);
|
|
11944
11944
|
}
|
|
11945
11945
|
else {
|
|
11946
|
-
this.fillVertices(vertices, uvs, iv, iuv, n, x3, y0, 0,
|
|
11946
|
+
this.fillVertices(vertices, uvs, iv, iuv, n, x3, y0, 0, a, ttr);
|
|
11947
11947
|
}
|
|
11948
11948
|
this.fillIndices(indices, ia, ii, n);
|
|
11949
11949
|
iv += n4;
|
|
@@ -11955,7 +11955,7 @@
|
|
|
11955
11955
|
this.fillVertices(vertices, uvs, iv, iuv, n, x2, y2, r, a, trb);
|
|
11956
11956
|
}
|
|
11957
11957
|
else {
|
|
11958
|
-
this.fillVertices(vertices, uvs, iv, iuv, n, x3, y3, 0,
|
|
11958
|
+
this.fillVertices(vertices, uvs, iv, iuv, n, x3, y3, 0, a, trb);
|
|
11959
11959
|
}
|
|
11960
11960
|
this.fillIndices(indices, ia, ii, n);
|
|
11961
11961
|
iv += n4;
|
|
@@ -11967,7 +11967,7 @@
|
|
|
11967
11967
|
this.fillVertices(vertices, uvs, iv, iuv, n, x1, y2, r, a, tbl);
|
|
11968
11968
|
}
|
|
11969
11969
|
else {
|
|
11970
|
-
this.fillVertices(vertices, uvs, iv, iuv, n, x0, y3, 0,
|
|
11970
|
+
this.fillVertices(vertices, uvs, iv, iuv, n, x0, y3, 0, a, tbl);
|
|
11971
11971
|
}
|
|
11972
11972
|
this.fillIndicesEnd(indices, ia, ii, n);
|
|
11973
11973
|
iv += n4;
|
|
@@ -12153,30 +12153,53 @@
|
|
|
12153
12153
|
var r3 = r2 + dr;
|
|
12154
12154
|
var cos = table.cos;
|
|
12155
12155
|
var sin = table.sin;
|
|
12156
|
-
if (r0
|
|
12157
|
-
var
|
|
12158
|
-
var
|
|
12159
|
-
|
|
12160
|
-
|
|
12161
|
-
|
|
12162
|
-
|
|
12163
|
-
|
|
12164
|
-
|
|
12165
|
-
|
|
12166
|
-
|
|
12167
|
-
|
|
12168
|
-
|
|
12169
|
-
|
|
12170
|
-
|
|
12171
|
-
|
|
12172
|
-
|
|
12173
|
-
|
|
12174
|
-
|
|
12175
|
-
|
|
12176
|
-
|
|
12177
|
-
|
|
12178
|
-
|
|
12179
|
-
|
|
12156
|
+
if (r0 <= 0) {
|
|
12157
|
+
var c0 = cos[0] + cos[n - 1];
|
|
12158
|
+
var s0 = sin[0] + sin[n - 1];
|
|
12159
|
+
if (r1 <= 0) {
|
|
12160
|
+
if (r <= 0) {
|
|
12161
|
+
for (var i = 0; i < n; ++i) {
|
|
12162
|
+
var c = cos[i];
|
|
12163
|
+
var s = sin[i];
|
|
12164
|
+
vertices[++iv] = x + c0 * r0;
|
|
12165
|
+
vertices[++iv] = y + s0 * r0;
|
|
12166
|
+
vertices[++iv] = x + c0 * r1;
|
|
12167
|
+
vertices[++iv] = y + s0 * r1;
|
|
12168
|
+
vertices[++iv] = x + c0 * r2;
|
|
12169
|
+
vertices[++iv] = y + s0 * r2;
|
|
12170
|
+
vertices[++iv] = x + c0 * r3;
|
|
12171
|
+
vertices[++iv] = y + s0 * r3;
|
|
12172
|
+
uvs[++iuv] = 0.5 * (1 + c);
|
|
12173
|
+
uvs[++iuv] = 0.5 * (1 + s);
|
|
12174
|
+
uvs[++iuv] = 0.5;
|
|
12175
|
+
uvs[++iuv] = 0.5;
|
|
12176
|
+
uvs[++iuv] = 0.5;
|
|
12177
|
+
uvs[++iuv] = 0.5;
|
|
12178
|
+
uvs[++iuv] = 0.5 * (1 + c);
|
|
12179
|
+
uvs[++iuv] = 0.5 * (1 + s);
|
|
12180
|
+
}
|
|
12181
|
+
}
|
|
12182
|
+
else {
|
|
12183
|
+
for (var i = 0; i < n; ++i) {
|
|
12184
|
+
var c = cos[i];
|
|
12185
|
+
var s = sin[i];
|
|
12186
|
+
vertices[++iv] = x + c0 * r0;
|
|
12187
|
+
vertices[++iv] = y + s0 * r0;
|
|
12188
|
+
vertices[++iv] = x + c0 * r1;
|
|
12189
|
+
vertices[++iv] = y + s0 * r1;
|
|
12190
|
+
vertices[++iv] = x + c * r2;
|
|
12191
|
+
vertices[++iv] = y + s * r2;
|
|
12192
|
+
vertices[++iv] = x + c * r3;
|
|
12193
|
+
vertices[++iv] = y + s * r3;
|
|
12194
|
+
uvs[++iuv] = 0.5 * (1 + c);
|
|
12195
|
+
uvs[++iuv] = 0.5 * (1 + s);
|
|
12196
|
+
uvs[++iuv] = 0.5;
|
|
12197
|
+
uvs[++iuv] = 0.5;
|
|
12198
|
+
uvs[++iuv] = 0.5;
|
|
12199
|
+
uvs[++iuv] = 0.5;
|
|
12200
|
+
uvs[++iuv] = 0.5 * (1 + c);
|
|
12201
|
+
uvs[++iuv] = 0.5 * (1 + s);
|
|
12202
|
+
}
|
|
12180
12203
|
}
|
|
12181
12204
|
}
|
|
12182
12205
|
else {
|
|
@@ -12333,7 +12356,7 @@
|
|
|
12333
12356
|
var h = this._height;
|
|
12334
12357
|
var bw = this._borderWidth;
|
|
12335
12358
|
var r = Math.min(0.5 * w, 0.5 * h, this._cornerRadius);
|
|
12336
|
-
var a =
|
|
12359
|
+
var a = 0.5 / resolution;
|
|
12337
12360
|
var x0 = 0;
|
|
12338
12361
|
var x1 = r;
|
|
12339
12362
|
var x2 = w - r;
|
|
@@ -12372,15 +12395,15 @@
|
|
|
12372
12395
|
this.fillVertices(vrtcs, uvs, iv, iuv, n, x1, y1, r, a, bw, tlt);
|
|
12373
12396
|
}
|
|
12374
12397
|
else {
|
|
12375
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x1, y1, r,
|
|
12398
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x1, y1, r, a, 0, tlt);
|
|
12376
12399
|
}
|
|
12377
12400
|
}
|
|
12378
12401
|
else {
|
|
12379
12402
|
if (bl || bt) {
|
|
12380
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x0, y0, 0,
|
|
12403
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x0, y0, 0, a, bw, tlt);
|
|
12381
12404
|
}
|
|
12382
12405
|
else {
|
|
12383
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x0, y0, 0,
|
|
12406
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x0, y0, 0, a, 0, tlt);
|
|
12384
12407
|
}
|
|
12385
12408
|
}
|
|
12386
12409
|
this.fillIndices(indices, ia, ii, n, bt, false);
|
|
@@ -12394,15 +12417,15 @@
|
|
|
12394
12417
|
this.fillVertices(vrtcs, uvs, iv, iuv, n, x2, y1, r, a, bw, ttr);
|
|
12395
12418
|
}
|
|
12396
12419
|
else {
|
|
12397
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x2, y1, r,
|
|
12420
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x2, y1, r, a, 0, ttr);
|
|
12398
12421
|
}
|
|
12399
12422
|
}
|
|
12400
12423
|
else {
|
|
12401
12424
|
if (bt || br) {
|
|
12402
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x3, y0, 0,
|
|
12425
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x3, y0, 0, a, bw, ttr);
|
|
12403
12426
|
}
|
|
12404
12427
|
else {
|
|
12405
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x3, y0, 0,
|
|
12428
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x3, y0, 0, a, 0, ttr);
|
|
12406
12429
|
}
|
|
12407
12430
|
}
|
|
12408
12431
|
this.fillIndices(indices, ia, ii, n, br, false);
|
|
@@ -12416,15 +12439,15 @@
|
|
|
12416
12439
|
this.fillVertices(vrtcs, uvs, iv, iuv, n, x2, y2, r, a, bw, trb);
|
|
12417
12440
|
}
|
|
12418
12441
|
else {
|
|
12419
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x2, y2, r,
|
|
12442
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x2, y2, r, a, 0, trb);
|
|
12420
12443
|
}
|
|
12421
12444
|
}
|
|
12422
12445
|
else {
|
|
12423
12446
|
if (br || bb) {
|
|
12424
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x3, y3, 0,
|
|
12447
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x3, y3, 0, a, bw, trb);
|
|
12425
12448
|
}
|
|
12426
12449
|
else {
|
|
12427
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x3, y3, 0,
|
|
12450
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x3, y3, 0, a, 0, trb);
|
|
12428
12451
|
}
|
|
12429
12452
|
}
|
|
12430
12453
|
this.fillIndices(indices, ia, ii, n, bb, false);
|
|
@@ -12438,15 +12461,15 @@
|
|
|
12438
12461
|
this.fillVertices(vrtcs, uvs, iv, iuv, n, x1, y2, r, a, bw, tbl);
|
|
12439
12462
|
}
|
|
12440
12463
|
else {
|
|
12441
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x1, y2, r,
|
|
12464
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x1, y2, r, a, 0, tbl);
|
|
12442
12465
|
}
|
|
12443
12466
|
}
|
|
12444
12467
|
else {
|
|
12445
12468
|
if (bb || bl) {
|
|
12446
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x0, y3, 0,
|
|
12469
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x0, y3, 0, a, bw, tbl);
|
|
12447
12470
|
}
|
|
12448
12471
|
else {
|
|
12449
|
-
this.fillVertices(vrtcs, uvs, iv, iuv, n, x0, y3, 0,
|
|
12472
|
+
this.fillVertices(vrtcs, uvs, iv, iuv, n, x0, y3, 0, a, 0, tbl);
|
|
12450
12473
|
}
|
|
12451
12474
|
}
|
|
12452
12475
|
this.fillIndices(indices, ia, ii, n, bl, true);
|
|
@@ -12645,7 +12668,7 @@
|
|
|
12645
12668
|
outlineMesh.y = -outlineOffset;
|
|
12646
12669
|
outlineMesh.width = width + outlineOffset * 2;
|
|
12647
12670
|
outlineMesh.height = height + outlineOffset * 2;
|
|
12648
|
-
outlineMesh.cornerRadius = cornerRadius;
|
|
12671
|
+
outlineMesh.cornerRadius = Math.max(0, cornerRadius + outlineOffset);
|
|
12649
12672
|
outlineMesh.cornerMask = cornerMask;
|
|
12650
12673
|
outlineMesh.borderWidth = outlineWidth;
|
|
12651
12674
|
outlineMesh.borderMask = outlineMask;
|