@contrail/documents 1.0.65 → 1.0.66

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.
Files changed (33) hide show
  1. package/lib/components/components.d.ts +269 -269
  2. package/lib/components/components.js +86 -86
  3. package/lib/components/index.d.ts +1 -1
  4. package/lib/components/index.js +17 -17
  5. package/lib/document-action.d.ts +7 -7
  6. package/lib/document-action.js +10 -10
  7. package/lib/document-element-component-size-handler.d.ts +4 -4
  8. package/lib/document-element-component-size-handler.js +55 -55
  9. package/lib/document-element-factory.d.ts +12 -12
  10. package/lib/document-element-factory.js +76 -76
  11. package/lib/document-element-property-binding-handler.d.ts +5 -5
  12. package/lib/document-element-property-binding-handler.js +57 -57
  13. package/lib/index.d.ts +6 -6
  14. package/lib/index.js +22 -22
  15. package/lib/types/common.d.ts +68 -68
  16. package/lib/types/common.js +8 -8
  17. package/lib/types/data-object.d.ts +6 -6
  18. package/lib/types/data-object.js +2 -2
  19. package/lib/types/document-change.d.ts +13 -13
  20. package/lib/types/document-change.js +10 -10
  21. package/lib/types/document-element-event.d.ts +16 -16
  22. package/lib/types/document-element-event.js +2 -2
  23. package/lib/types/document-element-holder.d.ts +8 -8
  24. package/lib/types/document-element-holder.js +2 -2
  25. package/lib/types/document-element.d.ts +27 -26
  26. package/lib/types/document-element.js +2 -2
  27. package/lib/types/document.d.ts +22 -22
  28. package/lib/types/document.js +2 -2
  29. package/lib/types/element-transformation.d.ts +18 -18
  30. package/lib/types/element-transformation.js +2 -2
  31. package/lib/types/index.d.ts +8 -8
  32. package/lib/types/index.js +24 -24
  33. package/package.json +45 -45
@@ -1,57 +1,57 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DocumentElementPropertyBindingHandler = void 0;
4
- const util_1 = require("@contrail/util");
5
- class DocumentElementPropertyBindingHandler {
6
- static bindPropertiesToElements(elements, model) {
7
- elements.map(el => {
8
- this.bindPropertiesToElement(el, model);
9
- });
10
- }
11
- static bindPropertiesToElement(element, model) {
12
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
13
- const localModel = Object.assign({}, model);
14
- if (!element.propertyBindings) {
15
- return;
16
- }
17
- if (element.modelBindings) {
18
- }
19
- for (const propertyKey of Object.keys(element.propertyBindings)) {
20
- const modelIndex = element.propertyBindings[propertyKey];
21
- const propertyValue = util_1.ObjectUtil.getByPath(localModel, modelIndex) || '';
22
- util_1.ObjectUtil.setByPath(element, propertyKey, propertyValue);
23
- }
24
- if (((_b = (_a = element.propertyBindings) === null || _a === void 0 ? void 0 : _a.url) === null || _b === void 0 ? void 0 : _b.indexOf("viewable")) !== -1) {
25
- element.alternateUrls = {};
26
- let highResUrl = ((_c = model === null || model === void 0 ? void 0 : model.viewable) === null || _c === void 0 ? void 0 : _c.largeViewableDownloadUrl) || ((_d = model === null || model === void 0 ? void 0 : model.viewable) === null || _d === void 0 ? void 0 : _d.largeViewableUrl);
27
- let originalFile = (_e = model === null || model === void 0 ? void 0 : model.viewable) === null || _e === void 0 ? void 0 : _e.primaryFileUrl;
28
- const content = (_f = model === null || model === void 0 ? void 0 : model.viewable) === null || _f === void 0 ? void 0 : _f.content;
29
- if ((content === null || content === void 0 ? void 0 : content.length) > 0) {
30
- const primaryContent = content.find((c) => { var _a; return (c === null || c === void 0 ? void 0 : c.id) === ((_a = model === null || model === void 0 ? void 0 : model.viewable) === null || _a === void 0 ? void 0 : _a.primaryViewableId); });
31
- if ((primaryContent === null || primaryContent === void 0 ? void 0 : primaryContent.contentType) === 'image/svg+xml') {
32
- highResUrl = primaryContent.primaryFileUrl;
33
- }
34
- if (primaryContent === null || primaryContent === void 0 ? void 0 : primaryContent.primaryFileUrl) {
35
- originalFile = primaryContent === null || primaryContent === void 0 ? void 0 : primaryContent.primaryFileUrl;
36
- }
37
- }
38
- else if (((_g = model === null || model === void 0 ? void 0 : model.viewable) === null || _g === void 0 ? void 0 : _g.contentType) === 'image/svg+xml') {
39
- highResUrl = (_h = model === null || model === void 0 ? void 0 : model.viewable) === null || _h === void 0 ? void 0 : _h.primaryFileUrl;
40
- }
41
- if (highResUrl) {
42
- element.alternateUrls.highResolution = highResUrl;
43
- }
44
- if (originalFile) {
45
- element.alternateUrls.originalFile = originalFile;
46
- }
47
- let lowResUrl = ((_j = model === null || model === void 0 ? void 0 : model.viewable) === null || _j === void 0 ? void 0 : _j.smallViewableDownloadUrl) || ((_k = model === null || model === void 0 ? void 0 : model.viewable) === null || _k === void 0 ? void 0 : _k.smallViewableUrl);
48
- if (lowResUrl) {
49
- element.alternateUrls.lowResolution = lowResUrl;
50
- }
51
- }
52
- if (element.elements) {
53
- this.bindPropertiesToElements(element.elements, localModel);
54
- }
55
- }
56
- }
57
- exports.DocumentElementPropertyBindingHandler = DocumentElementPropertyBindingHandler;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DocumentElementPropertyBindingHandler = void 0;
4
+ const util_1 = require("@contrail/util");
5
+ class DocumentElementPropertyBindingHandler {
6
+ static bindPropertiesToElements(elements, model) {
7
+ elements.map(el => {
8
+ this.bindPropertiesToElement(el, model);
9
+ });
10
+ }
11
+ static bindPropertiesToElement(element, model) {
12
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
13
+ const localModel = Object.assign({}, model);
14
+ if (!element.propertyBindings) {
15
+ return;
16
+ }
17
+ if (element.modelBindings) {
18
+ }
19
+ for (const propertyKey of Object.keys(element.propertyBindings)) {
20
+ const modelIndex = element.propertyBindings[propertyKey];
21
+ const propertyValue = util_1.ObjectUtil.getByPath(localModel, modelIndex) || '';
22
+ util_1.ObjectUtil.setByPath(element, propertyKey, propertyValue);
23
+ }
24
+ if (((_b = (_a = element.propertyBindings) === null || _a === void 0 ? void 0 : _a.url) === null || _b === void 0 ? void 0 : _b.indexOf("viewable")) !== -1) {
25
+ element.alternateUrls = {};
26
+ let highResUrl = ((_c = model === null || model === void 0 ? void 0 : model.viewable) === null || _c === void 0 ? void 0 : _c.largeViewableDownloadUrl) || ((_d = model === null || model === void 0 ? void 0 : model.viewable) === null || _d === void 0 ? void 0 : _d.largeViewableUrl);
27
+ let originalFile = (_e = model === null || model === void 0 ? void 0 : model.viewable) === null || _e === void 0 ? void 0 : _e.primaryFileUrl;
28
+ const content = (_f = model === null || model === void 0 ? void 0 : model.viewable) === null || _f === void 0 ? void 0 : _f.content;
29
+ if ((content === null || content === void 0 ? void 0 : content.length) > 0) {
30
+ const primaryContent = content.find((c) => { var _a; return (c === null || c === void 0 ? void 0 : c.id) === ((_a = model === null || model === void 0 ? void 0 : model.viewable) === null || _a === void 0 ? void 0 : _a.primaryViewableId); });
31
+ if ((primaryContent === null || primaryContent === void 0 ? void 0 : primaryContent.contentType) === 'image/svg+xml') {
32
+ highResUrl = primaryContent.primaryFileUrl;
33
+ }
34
+ if (primaryContent === null || primaryContent === void 0 ? void 0 : primaryContent.primaryFileUrl) {
35
+ originalFile = primaryContent === null || primaryContent === void 0 ? void 0 : primaryContent.primaryFileUrl;
36
+ }
37
+ }
38
+ else if (((_g = model === null || model === void 0 ? void 0 : model.viewable) === null || _g === void 0 ? void 0 : _g.contentType) === 'image/svg+xml') {
39
+ highResUrl = (_h = model === null || model === void 0 ? void 0 : model.viewable) === null || _h === void 0 ? void 0 : _h.primaryFileUrl;
40
+ }
41
+ if (highResUrl) {
42
+ element.alternateUrls.highResolution = highResUrl;
43
+ }
44
+ if (originalFile) {
45
+ element.alternateUrls.originalFile = originalFile;
46
+ }
47
+ let lowResUrl = ((_j = model === null || model === void 0 ? void 0 : model.viewable) === null || _j === void 0 ? void 0 : _j.smallViewableDownloadUrl) || ((_k = model === null || model === void 0 ? void 0 : model.viewable) === null || _k === void 0 ? void 0 : _k.smallViewableUrl);
48
+ if (lowResUrl) {
49
+ element.alternateUrls.lowResolution = lowResUrl;
50
+ }
51
+ }
52
+ if (element.elements) {
53
+ this.bindPropertiesToElements(element.elements, localModel);
54
+ }
55
+ }
56
+ }
57
+ exports.DocumentElementPropertyBindingHandler = DocumentElementPropertyBindingHandler;
package/lib/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export * from './types';
2
- export * from './components';
3
- export * from './document-element-factory';
4
- export * from './document-element-property-binding-handler';
5
- export * from './document-element-component-size-handler';
6
- export * from './document-action';
1
+ export * from './types';
2
+ export * from './components';
3
+ export * from './document-element-factory';
4
+ export * from './document-element-property-binding-handler';
5
+ export * from './document-element-component-size-handler';
6
+ export * from './document-action';
package/lib/index.js CHANGED
@@ -1,22 +1,22 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./types"), exports);
18
- __exportStar(require("./components"), exports);
19
- __exportStar(require("./document-element-factory"), exports);
20
- __exportStar(require("./document-element-property-binding-handler"), exports);
21
- __exportStar(require("./document-element-component-size-handler"), exports);
22
- __exportStar(require("./document-action"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
18
+ __exportStar(require("./components"), exports);
19
+ __exportStar(require("./document-element-factory"), exports);
20
+ __exportStar(require("./document-element-property-binding-handler"), exports);
21
+ __exportStar(require("./document-element-component-size-handler"), exports);
22
+ __exportStar(require("./document-action"), exports);
@@ -1,68 +1,68 @@
1
- export interface TextStyleDefinition {
2
- valign?: string;
3
- align?: string;
4
- decoration?: string;
5
- }
6
- export interface FontStyleDefinition {
7
- family?: string;
8
- size?: number;
9
- weight?: string;
10
- style?: string;
11
- }
12
- export interface BorderStyleDefinition {
13
- style?: string;
14
- color?: string;
15
- width?: number;
16
- radius?: number;
17
- }
18
- export interface BackgroundStyleDefinition {
19
- color?: string;
20
- size?: BackgroundSizeType;
21
- }
22
- export declare enum BackgroundSizeType {
23
- CONTAIN = "CONTAIN",
24
- COVER = "COVER"
25
- }
26
- export interface StyleDefinition {
27
- background?: BackgroundStyleDefinition;
28
- text?: TextStyleDefinition;
29
- font?: FontStyleDefinition;
30
- border?: BorderStyleDefinition;
31
- color?: string;
32
- backgroundColor?: string;
33
- opacity?: number;
34
- }
35
- export interface SizeDefinition {
36
- width?: number;
37
- height?: number;
38
- }
39
- export interface ViewBox {
40
- width?: number;
41
- height?: number;
42
- x?: number;
43
- y?: number;
44
- }
45
- export interface PositionDefinition {
46
- x?: number;
47
- y?: number;
48
- z?: number;
49
- }
50
- export interface RotationDefinition {
51
- angle?: number;
52
- }
53
- export interface LineDefinition {
54
- x1?: number;
55
- x2?: number;
56
- y1?: number;
57
- y2?: number;
58
- markerStart?: string;
59
- markerEnd?: string;
60
- }
61
- export interface CropDefinition {
62
- x1?: number;
63
- x2?: number;
64
- y1?: number;
65
- y2?: number;
66
- width?: number;
67
- height?: number;
68
- }
1
+ export interface TextStyleDefinition {
2
+ valign?: string;
3
+ align?: string;
4
+ decoration?: string;
5
+ }
6
+ export interface FontStyleDefinition {
7
+ family?: string;
8
+ size?: number;
9
+ weight?: string;
10
+ style?: string;
11
+ }
12
+ export interface BorderStyleDefinition {
13
+ style?: string;
14
+ color?: string;
15
+ width?: number;
16
+ radius?: number;
17
+ }
18
+ export interface BackgroundStyleDefinition {
19
+ color?: string;
20
+ size?: BackgroundSizeType;
21
+ }
22
+ export declare enum BackgroundSizeType {
23
+ CONTAIN = "CONTAIN",
24
+ COVER = "COVER"
25
+ }
26
+ export interface StyleDefinition {
27
+ background?: BackgroundStyleDefinition;
28
+ text?: TextStyleDefinition;
29
+ font?: FontStyleDefinition;
30
+ border?: BorderStyleDefinition;
31
+ color?: string;
32
+ backgroundColor?: string;
33
+ opacity?: number;
34
+ }
35
+ export interface SizeDefinition {
36
+ width?: number;
37
+ height?: number;
38
+ }
39
+ export interface ViewBox {
40
+ width?: number;
41
+ height?: number;
42
+ x?: number;
43
+ y?: number;
44
+ }
45
+ export interface PositionDefinition {
46
+ x?: number;
47
+ y?: number;
48
+ z?: number;
49
+ }
50
+ export interface RotationDefinition {
51
+ angle?: number;
52
+ }
53
+ export interface LineDefinition {
54
+ x1?: number;
55
+ x2?: number;
56
+ y1?: number;
57
+ y2?: number;
58
+ markerStart?: string;
59
+ markerEnd?: string;
60
+ }
61
+ export interface CropDefinition {
62
+ x1?: number;
63
+ x2?: number;
64
+ y1?: number;
65
+ y2?: number;
66
+ width?: number;
67
+ height?: number;
68
+ }
@@ -1,8 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BackgroundSizeType = void 0;
4
- var BackgroundSizeType;
5
- (function (BackgroundSizeType) {
6
- BackgroundSizeType["CONTAIN"] = "CONTAIN";
7
- BackgroundSizeType["COVER"] = "COVER";
8
- })(BackgroundSizeType = exports.BackgroundSizeType || (exports.BackgroundSizeType = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BackgroundSizeType = void 0;
4
+ var BackgroundSizeType;
5
+ (function (BackgroundSizeType) {
6
+ BackgroundSizeType["CONTAIN"] = "CONTAIN";
7
+ BackgroundSizeType["COVER"] = "COVER";
8
+ })(BackgroundSizeType = exports.BackgroundSizeType || (exports.BackgroundSizeType = {}));
@@ -1,6 +1,6 @@
1
- export interface DataObject {
2
- entityRef?: string;
3
- entity?: any;
4
- viewDefinitionRef?: string;
5
- viewDefinition?: any;
6
- }
1
+ export interface DataObject {
2
+ entityRef?: string;
3
+ entity?: any;
4
+ viewDefinitionRef?: string;
5
+ viewDefinition?: any;
6
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +1,13 @@
1
- import { DocumentElement } from './document-element';
2
- export declare enum DocumentChangeType {
3
- ADD_ELEMENT = "ADD_ELEMENT",
4
- DELETE_ELEMENT = "DELETE_ELEMENT",
5
- MODIFY_ELEMENT = "MODIFY_ELEMENT",
6
- REORDER_ELEMENT = "REORDER_ELEMENT"
7
- }
8
- export interface DocumentChange {
9
- changeType: DocumentChangeType;
10
- documentId?: string;
11
- elementData?: DocumentElement;
12
- elementId?: string;
13
- }
1
+ import { DocumentElement } from './document-element';
2
+ export declare enum DocumentChangeType {
3
+ ADD_ELEMENT = "ADD_ELEMENT",
4
+ DELETE_ELEMENT = "DELETE_ELEMENT",
5
+ MODIFY_ELEMENT = "MODIFY_ELEMENT",
6
+ REORDER_ELEMENT = "REORDER_ELEMENT"
7
+ }
8
+ export interface DocumentChange {
9
+ changeType: DocumentChangeType;
10
+ documentId?: string;
11
+ elementData?: DocumentElement;
12
+ elementId?: string;
13
+ }
@@ -1,10 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DocumentChangeType = void 0;
4
- var DocumentChangeType;
5
- (function (DocumentChangeType) {
6
- DocumentChangeType["ADD_ELEMENT"] = "ADD_ELEMENT";
7
- DocumentChangeType["DELETE_ELEMENT"] = "DELETE_ELEMENT";
8
- DocumentChangeType["MODIFY_ELEMENT"] = "MODIFY_ELEMENT";
9
- DocumentChangeType["REORDER_ELEMENT"] = "REORDER_ELEMENT";
10
- })(DocumentChangeType = exports.DocumentChangeType || (exports.DocumentChangeType = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DocumentChangeType = void 0;
4
+ var DocumentChangeType;
5
+ (function (DocumentChangeType) {
6
+ DocumentChangeType["ADD_ELEMENT"] = "ADD_ELEMENT";
7
+ DocumentChangeType["DELETE_ELEMENT"] = "DELETE_ELEMENT";
8
+ DocumentChangeType["MODIFY_ELEMENT"] = "MODIFY_ELEMENT";
9
+ DocumentChangeType["REORDER_ELEMENT"] = "REORDER_ELEMENT";
10
+ })(DocumentChangeType = exports.DocumentChangeType || (exports.DocumentChangeType = {}));
@@ -1,16 +1,16 @@
1
- import { PositionDefinition, SizeDefinition } from "./common";
2
- import { DocumentElement } from "./document-element";
3
- export interface DocumentElementEvent {
4
- element: DocumentElement;
5
- selectedElements?: Array<DocumentElement>;
6
- renderedElementPosition?: PositionDefinition;
7
- renderedElementSize?: SizeDefinition;
8
- eventType?: string;
9
- sourceMouseEvent?: MouseEvent;
10
- relativeMousePosition?: PositionDefinition;
11
- data?: any;
12
- }
13
- export interface DocumentTextElementEvent {
14
- element: DocumentElement;
15
- textFormat: any;
16
- }
1
+ import { PositionDefinition, SizeDefinition } from "./common";
2
+ import { DocumentElement } from "./document-element";
3
+ export interface DocumentElementEvent {
4
+ element: DocumentElement;
5
+ selectedElements?: Array<DocumentElement>;
6
+ renderedElementPosition?: PositionDefinition;
7
+ renderedElementSize?: SizeDefinition;
8
+ eventType?: string;
9
+ sourceMouseEvent?: MouseEvent;
10
+ relativeMousePosition?: PositionDefinition;
11
+ data?: any;
12
+ }
13
+ export interface DocumentTextElementEvent {
14
+ element: DocumentElement;
15
+ textFormat: any;
16
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,8 @@
1
- import { DocumentElement } from './document-element';
2
- interface AddElement {
3
- (elements: Array<DocumentElement>): Promise<any>;
4
- }
5
- export interface DocumentElementHolder {
6
- addElements: AddElement;
7
- }
8
- export {};
1
+ import { DocumentElement } from './document-element';
2
+ interface AddElement {
3
+ (elements: Array<DocumentElement>): Promise<any>;
4
+ }
5
+ export interface DocumentElementHolder {
6
+ addElements: AddElement;
7
+ }
8
+ export {};
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,26 +1,27 @@
1
- import { CropDefinition, LineDefinition, PositionDefinition, RotationDefinition } from './common';
2
- import { Document } from './document';
3
- import { ScaleTransformation } from './element-transformation';
4
- export interface AlternateUrls {
5
- highResolution?: string;
6
- lowResolution?: string;
7
- originalFile?: string;
8
- }
9
- export interface DocumentElement extends Document {
10
- id?: string;
11
- type?: string;
12
- position?: PositionDefinition;
13
- rotate?: RotationDefinition;
14
- scale?: ScaleTransformation;
15
- text?: string;
16
- url?: string;
17
- alternateUrls?: AlternateUrls;
18
- propertyBindings?: any;
19
- lineDefinition?: LineDefinition;
20
- label?: string;
21
- annotations?: any;
22
- isLocked?: boolean;
23
- cropDefinition?: CropDefinition;
24
- embedInfo?: any;
25
- isHidden?: boolean;
26
- }
1
+ import { CropDefinition, LineDefinition, PositionDefinition, RotationDefinition } from './common';
2
+ import { Document } from './document';
3
+ import { ScaleTransformation } from './element-transformation';
4
+ export interface AlternateUrls {
5
+ highResolution?: string;
6
+ lowResolution?: string;
7
+ originalFile?: string;
8
+ }
9
+ export interface DocumentElement extends Document {
10
+ id?: string;
11
+ type?: string;
12
+ position?: PositionDefinition;
13
+ rotate?: RotationDefinition;
14
+ scale?: ScaleTransformation;
15
+ text?: string;
16
+ url?: string;
17
+ alternateUrls?: AlternateUrls;
18
+ propertyBindings?: any;
19
+ lineDefinition?: LineDefinition;
20
+ label?: string;
21
+ annotations?: any;
22
+ isLocked?: boolean;
23
+ cropDefinition?: CropDefinition;
24
+ embedInfo?: any;
25
+ isHidden?: boolean;
26
+ elementIds?: Array<string>;
27
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,22 +1,22 @@
1
- import { PositionDefinition, SizeDefinition, StyleDefinition, ViewBox } from "./common";
2
- import { DocumentElement } from "./document-element";
3
- export interface ImportReferenceDetail {
4
- importedSlideReference?: string;
5
- importedFileReference?: string;
6
- }
7
- export interface Document {
8
- id?: string;
9
- name?: string;
10
- elements?: Array<DocumentElement>;
11
- size?: SizeDefinition;
12
- style?: StyleDefinition;
13
- model?: any;
14
- modelBindings?: any;
15
- background?: Array<DocumentElement>;
16
- importedFrom?: ImportReferenceDetail;
17
- startingViewBox?: ViewBox;
18
- startingLocation?: {
19
- position: PositionDefinition;
20
- zoom: number;
21
- };
22
- }
1
+ import { PositionDefinition, SizeDefinition, StyleDefinition, ViewBox } from "./common";
2
+ import { DocumentElement } from "./document-element";
3
+ export interface ImportReferenceDetail {
4
+ importedSlideReference?: string;
5
+ importedFileReference?: string;
6
+ }
7
+ export interface Document {
8
+ id?: string;
9
+ name?: string;
10
+ elements?: Array<DocumentElement>;
11
+ size?: SizeDefinition;
12
+ style?: StyleDefinition;
13
+ model?: any;
14
+ modelBindings?: any;
15
+ background?: Array<DocumentElement>;
16
+ importedFrom?: ImportReferenceDetail;
17
+ startingViewBox?: ViewBox;
18
+ startingLocation?: {
19
+ position: PositionDefinition;
20
+ zoom: number;
21
+ };
22
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,18 +1,18 @@
1
- export interface ScaleTransformation {
2
- x?: number;
3
- y?: number;
4
- }
5
- export interface TranslateTransformation {
6
- x?: number;
7
- y?: number;
8
- }
9
- export interface RotationTransformation {
10
- angle?: number;
11
- cx?: number;
12
- cy?: number;
13
- }
14
- export interface ElementTransformation {
15
- translate?: TranslateTransformation;
16
- scale?: ScaleTransformation;
17
- rotate?: RotationTransformation;
18
- }
1
+ export interface ScaleTransformation {
2
+ x?: number;
3
+ y?: number;
4
+ }
5
+ export interface TranslateTransformation {
6
+ x?: number;
7
+ y?: number;
8
+ }
9
+ export interface RotationTransformation {
10
+ angle?: number;
11
+ cx?: number;
12
+ cy?: number;
13
+ }
14
+ export interface ElementTransformation {
15
+ translate?: TranslateTransformation;
16
+ scale?: ScaleTransformation;
17
+ rotate?: RotationTransformation;
18
+ }
@@ -1,2 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,8 @@
1
- export * from './common';
2
- export * from './data-object';
3
- export * from './document-change';
4
- export * from './document-element-event';
5
- export * from './document-element-holder';
6
- export * from './document-element';
7
- export * from './document';
8
- export * from './element-transformation';
1
+ export * from './common';
2
+ export * from './data-object';
3
+ export * from './document-change';
4
+ export * from './document-element-event';
5
+ export * from './document-element-holder';
6
+ export * from './document-element';
7
+ export * from './document';
8
+ export * from './element-transformation';