@contrail/documents 1.0.122 → 1.0.123

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,7 +4,7 @@ export declare class DocumentElementComponentSizeHandler {
4
4
  static updateSizeAndPositionForPropertyElements(propertyElements: any[], componentElement: DocumentElement, annotatedElements?: any[]): any;
5
5
  private static getYMargin;
6
6
  private static calculateAnnotationHeight;
7
- static getColorRectangle(element: DocumentElement): DocumentElement;
8
- static getColorContainer(element: DocumentElement): DocumentElement;
7
+ static getColorRectangle(elements: DocumentElement[]): DocumentElement;
8
+ static getColorContainer(elements: DocumentElement[]): DocumentElement;
9
9
  static updateSizeAndPositionForColorElements(elements: any, size?: SizeDefinition): any;
10
10
  }
@@ -98,13 +98,11 @@ class DocumentElementComponentSizeHandler {
98
98
  }
99
99
  return height;
100
100
  }
101
- static getColorRectangle(element) {
102
- var _a;
103
- return (_a = element.elements) === null || _a === void 0 ? void 0 : _a.find((e) => ['rectangle', 'image'].indexOf(e.type) !== -1 && e.propertyBindings);
101
+ static getColorRectangle(elements) {
102
+ return elements === null || elements === void 0 ? void 0 : elements.find((e) => ['rectangle', 'image'].indexOf(e.type) !== -1 && e.propertyBindings);
104
103
  }
105
- static getColorContainer(element) {
106
- var _a;
107
- return (_a = element.elements) === null || _a === void 0 ? void 0 : _a.find((e) => ['rectangle'].indexOf(e.type) !== -1 && !e.propertyBindings);
104
+ static getColorContainer(elements) {
105
+ return elements === null || elements === void 0 ? void 0 : elements.find((e) => ['rectangle'].indexOf(e.type) !== -1 && !e.propertyBindings);
108
106
  }
109
107
  static updateSizeAndPositionForColorElements(elements, size) {
110
108
  var _a, _b, _c, _d;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrail/documents",
3
- "version": "1.0.122",
3
+ "version": "1.0.123",
4
4
  "description": "Documents library for contrail platform",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",