@wcardinal/wcardinal-ui 0.263.0 → 0.264.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/wcardinal/ui/shape/e-shape-capabilities.js +3 -1
- package/dist/wcardinal/ui/shape/e-shape-capabilities.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 +4 -2
- package/dist/wcardinal-ui.js +4 -2
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -18,7 +18,9 @@ var EShapeCapabilities = /** @class */ (function () {
|
|
|
18
18
|
var capability = this.get(shape.type);
|
|
19
19
|
var shapeCapability = shape.getCapability();
|
|
20
20
|
if (shapeCapability != null) {
|
|
21
|
-
capability
|
|
21
|
+
capability &= ~shapeCapability.removed;
|
|
22
|
+
capability |= shapeCapability.added;
|
|
23
|
+
capability &= ~shapeCapability.locked;
|
|
22
24
|
}
|
|
23
25
|
return (capability & target) === target;
|
|
24
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"e-shape-capabilities.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-capabilities.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD;IAAA;
|
|
1
|
+
{"version":3,"file":"e-shape-capabilities.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/shape/e-shape-capabilities.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAGxD;IAAA;IA4BA,CAAC;IAzBO,sBAAG,GAAV,UAAW,IAAgB;QAC1B,IAAM,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,UAAU,IAAI,IAAI,EAAE;YACvB,OAAO,UAAU,CAAC;SAClB;QACD,OAAO,gBAAgB,CAAC,SAAS,CAAC;IACnC,CAAC;IAEM,2BAAQ,GAAf,UAAgB,KAAgC,EAAE,MAAwB;QACzE,IAAI,KAAK,IAAI,IAAI,EAAE;YAClB,IAAI,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACtC,IAAM,eAAe,GAAG,KAAK,CAAC,aAAa,EAAE,CAAC;YAC9C,IAAI,eAAe,IAAI,IAAI,EAAE;gBAC5B,UAAU,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC;gBACvC,UAAU,IAAI,eAAe,CAAC,KAAK,CAAC;gBACpC,UAAU,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC;aACtC;YACD,OAAO,CAAC,UAAU,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;SACxC;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IAEM,sBAAG,GAAV,UAAW,IAAgB,EAAE,UAA4B;QACxD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC;IAClC,CAAC;IA1BM,2BAAQ,GAAiD,EAAE,CAAC;IA2BpE,yBAAC;CAAA,AA5BD,IA4BC;SA5BY,kBAAkB","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { EShape } from \"./e-shape\";\nimport { EShapeCapability } from \"./e-shape-capability\";\nimport { EShapeType } from \"./e-shape-type\";\n\nexport class EShapeCapabilities {\n\tstatic mappings: Record<number, EShapeCapability | undefined> = {};\n\n\tstatic get(type: EShapeType): EShapeCapability {\n\t\tconst capability = this.mappings[type];\n\t\tif (capability != null) {\n\t\t\treturn capability;\n\t\t}\n\t\treturn EShapeCapability.PRIMITIVE;\n\t}\n\n\tstatic contains(shape: EShape | null | undefined, target: EShapeCapability): boolean {\n\t\tif (shape != null) {\n\t\t\tlet capability = this.get(shape.type);\n\t\t\tconst shapeCapability = shape.getCapability();\n\t\t\tif (shapeCapability != null) {\n\t\t\t\tcapability &= ~shapeCapability.removed;\n\t\t\t\tcapability |= shapeCapability.added;\n\t\t\t\tcapability &= ~shapeCapability.locked;\n\t\t\t}\n\t\t\treturn (capability & target) === target;\n\t\t}\n\t\treturn false;\n\t}\n\n\tstatic set(type: EShapeType, capability: EShapeCapability): void {\n\t\tthis.mappings[type] = capability;\n\t}\n}\n"]}
|
package/dist/wcardinal-ui.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.264.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -16033,7 +16033,9 @@ var EShapeCapabilities = /** @class */ (function () {
|
|
|
16033
16033
|
var capability = this.get(shape.type);
|
|
16034
16034
|
var shapeCapability = shape.getCapability();
|
|
16035
16035
|
if (shapeCapability != null) {
|
|
16036
|
-
capability
|
|
16036
|
+
capability &= ~shapeCapability.removed;
|
|
16037
|
+
capability |= shapeCapability.added;
|
|
16038
|
+
capability &= ~shapeCapability.locked;
|
|
16037
16039
|
}
|
|
16038
16040
|
return (capability & target) === target;
|
|
16039
16041
|
}
|
package/dist/wcardinal-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.264.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -16030,7 +16030,9 @@
|
|
|
16030
16030
|
var capability = this.get(shape.type);
|
|
16031
16031
|
var shapeCapability = shape.getCapability();
|
|
16032
16032
|
if (shapeCapability != null) {
|
|
16033
|
-
capability
|
|
16033
|
+
capability &= ~shapeCapability.removed;
|
|
16034
|
+
capability |= shapeCapability.added;
|
|
16035
|
+
capability &= ~shapeCapability.locked;
|
|
16034
16036
|
}
|
|
16035
16037
|
return (capability & target) === target;
|
|
16036
16038
|
}
|