@contrail/documents
Advanced tools
Comparing version 1.0.12 to 1.0.13
@@ -0,0 +0,0 @@ import { Document } from '../types/document'; |
@@ -0,0 +0,0 @@ "use strict"; |
export * from './components'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Action } from '@contrail/actions'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -6,4 +6,5 @@ import { DocumentElement } from './types/document-element'; | ||
static createShapeElement(type: string, options?: DocumentElement): DocumentElement; | ||
static createElement(type: string, options?: DocumentElement): DocumentElement; | ||
static createImageElement(options: DocumentElement): DocumentElement; | ||
static createComponent(componentType: string, model: any, modelBindings: any, options?: DocumentElement): DocumentElement; | ||
} |
@@ -31,2 +31,7 @@ "use strict"; | ||
} | ||
static createElement(type, options = {}) { | ||
let element = this.initNewElement(type); | ||
element = Object.assign(element, options); | ||
return element; | ||
} | ||
static createImageElement(options) { | ||
@@ -33,0 +38,0 @@ let element = this.initNewElement('image'); |
@@ -0,0 +0,0 @@ import { DocumentElement } from './types/document-element'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export * from './types'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export interface TextStyleDefinition { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ export interface DataObject { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ import { DocumentElement } from './document-element'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { PositionDefinition, SizeDefinition } from "./common"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ import { DocumentElement } from './document-element'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ import { PositionDefinition } from './common'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ import { SizeDefinition, StyleDefinition } from "./common"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ export interface ScaleTransformation { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ export * from './common'; |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "@contrail/documents", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "Documents library for contrail platform", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17219
434
1