@wcardinal/wcardinal-ui 0.209.2 → 0.210.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.
@@ -4,6 +4,6 @@ import { EShapeType } from "./e-shape-type";
4
4
  export declare class EShapeCapabilities {
5
5
  static mappings: Record<number, EShapeCapability | undefined>;
6
6
  static get(type: EShapeType): EShapeCapability;
7
- static contains(shape: EShape | null | undefined, target: EShapeCapability): shape is EShape;
7
+ static contains(shape: EShape | null | undefined, target: EShapeCapability): boolean;
8
8
  static set(type: EShapeType, capability: EShapeCapability): void;
9
9
  }
@@ -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;IAiCA,CAAC;IA9BO,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,IAAM,UAAU,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;YACxC,IAAI,UAAU,GAAG,MAAM,EAAE;gBACxB,OAAO,IAAI,CAAC;aACZ;YAED,IAAI,UAAU,GAAG,gBAAgB,CAAC,QAAQ,EAAE;gBAC3C,IAAM,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;gBAChC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,EAAE;oBACtD,IAAI,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE;wBACvC,OAAO,IAAI,CAAC;qBACZ;iBACD;aACD;SACD;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;IA/BM,2BAAQ,GAAiD,EAAE,CAAC;IAgCpE,yBAAC;CAAA,AAjCD,IAiCC;SAjCY,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): shape is EShape {\n\t\tif (shape != null) {\n\t\t\tconst capability = this.get(shape.type);\n\t\t\tif (capability & target) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tif (capability & EShapeCapability.CHILDREN) {\n\t\t\t\tconst children = shape.children;\n\t\t\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\t\t\tif (this.contains(children[i], target)) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\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"]}
1
+ {"version":3,"file":"e-shape-capabilities.js","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* 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\tconst capability = this.get(shape.type);\n\t\t\tif (capability & target) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tif (capability & EShapeCapability.CHILDREN) {\n\t\t\t\tconst children = shape.children;\n\t\t\t\tfor (let i = 0, imax = children.length; i < imax; ++i) {\n\t\t\t\t\tif (this.contains(children[i], target)) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\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"]}
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.209.2
2
+ Winter Cardinal UI v0.210.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.209.2
2
+ Winter Cardinal UI v0.210.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.209.2
2
+ Winter Cardinal UI v0.210.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.209.2
2
+ Winter Cardinal UI v0.210.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.209.2
2
+ Winter Cardinal UI v0.210.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.209.2
2
+ Winter Cardinal UI v0.210.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.209.2
2
+ Winter Cardinal UI v0.210.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5