@contrail/documents
Advanced tools
Comparing version 1.0.91 to 1.0.92
@@ -0,0 +0,0 @@ import { BackgroundSizeType } from '../types'; |
@@ -6,9 +6,11 @@ "use strict"; | ||
exports.ITEM_VIEW_TEMPLATE = { | ||
elements: [{ | ||
type: "image", | ||
elements: [ | ||
{ | ||
type: 'image', | ||
size: { width: 125, height: 125 }, | ||
style: { background: { size: types_1.BackgroundSizeType.CONTAIN } }, | ||
propertyBindings: { url: 'thumbnail.downloadUrl' } | ||
}, { | ||
type: "text", | ||
propertyBindings: { url: 'thumbnail.downloadUrl' }, | ||
}, | ||
{ | ||
type: 'text', | ||
position: { x: 0, y: 126 }, | ||
@@ -19,7 +21,8 @@ size: { height: 25, width: 125 }, | ||
size: 8, | ||
} | ||
}, | ||
}, | ||
propertyBindings: { text: 'item.name' } | ||
}, { | ||
type: "text", | ||
propertyBindings: { text: 'item.name' }, | ||
}, | ||
{ | ||
type: 'text', | ||
position: { x: 0, y: 151 }, | ||
@@ -33,14 +36,16 @@ size: { height: 25, width: 125 }, | ||
}, | ||
propertyBindings: { text: 'item.optionName' } | ||
} | ||
] | ||
propertyBindings: { text: 'item.optionName' }, | ||
}, | ||
], | ||
}; | ||
exports.ITEM_VIEW_TEMPLATE_V2 = { | ||
elements: [{ | ||
type: "image", | ||
elements: [ | ||
{ | ||
type: 'image', | ||
size: { width: 125, height: 125 }, | ||
style: { background: { size: types_1.BackgroundSizeType.CONTAIN } }, | ||
propertyBindings: { url: 'viewable.mediumViewableDownloadUrl' } | ||
}, { | ||
type: "text", | ||
propertyBindings: { url: 'viewable.mediumViewableDownloadUrl' }, | ||
}, | ||
{ | ||
type: 'text', | ||
position: { x: 0, y: 126 }, | ||
@@ -51,7 +56,8 @@ size: { height: 25, width: 125 }, | ||
size: 8, | ||
} | ||
}, | ||
}, | ||
propertyBindings: { text: 'item.name' } | ||
}, { | ||
type: "text", | ||
propertyBindings: { text: 'item.name' }, | ||
}, | ||
{ | ||
type: 'text', | ||
position: { x: 0, y: 151 }, | ||
@@ -65,5 +71,5 @@ size: { height: 25, width: 125 }, | ||
}, | ||
propertyBindings: { text: 'item.optionName' } | ||
} | ||
] | ||
propertyBindings: { text: 'item.optionName' }, | ||
}, | ||
], | ||
}; | ||
@@ -70,0 +76,0 @@ exports.ITEM_VIEW = { |
export * from './components'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Action } from '@contrail/actions'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export declare class DocumentElementComponentSizeHandler { |
@@ -9,3 +9,3 @@ "use strict"; | ||
let width = 200; | ||
const imageElements = propertyElements.filter(element => { | ||
const imageElements = propertyElements.filter((element) => { | ||
return element.type === 'image'; | ||
@@ -23,3 +23,3 @@ }); | ||
x: 0, | ||
y: lastYPosition | ||
y: lastYPosition, | ||
}; | ||
@@ -26,0 +26,0 @@ lastYPosition = lastYPosition + this.getYMargin(element); |
@@ -0,0 +0,0 @@ import { ComponentDefinition } from './components/components'; |
@@ -21,3 +21,3 @@ "use strict"; | ||
element.style = { | ||
color: '#000000' | ||
color: '#000000', | ||
}; | ||
@@ -24,0 +24,0 @@ element = Object.assign(element, options); |
@@ -0,0 +0,0 @@ import { DocumentElement } from './types/document-element'; |
@@ -7,3 +7,3 @@ "use strict"; | ||
static bindPropertiesToElements(elements, model) { | ||
elements.map(el => { | ||
elements.map((el) => { | ||
this.bindPropertiesToElement(el, model); | ||
@@ -29,3 +29,3 @@ }); | ||
const isImage = ['image', 'svg'].includes(element.type); | ||
if (((_b = (_a = element.propertyBindings) === null || _a === void 0 ? void 0 : _a.url) === null || _b === void 0 ? void 0 : _b.indexOf("viewable")) !== -1 && isImage) { | ||
if (((_b = (_a = element.propertyBindings) === null || _a === void 0 ? void 0 : _a.url) === null || _b === void 0 ? void 0 : _b.indexOf('viewable')) !== -1 && isImage) { | ||
element.alternateUrls = {}; | ||
@@ -32,0 +32,0 @@ 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); |
@@ -0,0 +0,0 @@ export * from './types'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export interface TextStyleDefinition { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ export interface DataObject { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -7,3 +7,4 @@ import { DocumentElement } from './document-element'; | ||
REORDER_ELEMENT = "REORDER_ELEMENT", | ||
REGENERATE_LINEBOARD = "REGENERATE_LINEBOARD" | ||
REGENERATE_LINEBOARD = "REGENERATE_LINEBOARD", | ||
REBIND_MODEL = "REBIND_MODEL" | ||
} | ||
@@ -10,0 +11,0 @@ export interface DocumentChange { |
@@ -11,2 +11,3 @@ "use strict"; | ||
DocumentChangeType["REGENERATE_LINEBOARD"] = "REGENERATE_LINEBOARD"; | ||
DocumentChangeType["REBIND_MODEL"] = "REBIND_MODEL"; | ||
})(DocumentChangeType = exports.DocumentChangeType || (exports.DocumentChangeType = {})); |
@@ -1,3 +0,3 @@ | ||
import { PositionDefinition, SizeDefinition } from "./common"; | ||
import { DocumentElement } from "./document-element"; | ||
import { PositionDefinition, SizeDefinition } from './common'; | ||
import { DocumentElement } from './document-element'; | ||
export interface DocumentElementEvent { | ||
@@ -4,0 +4,0 @@ element: DocumentElement; |
"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 { CropDefinition, LineDefinition, PositionDefinition, RotationDefinition } from './common'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -0,0 +0,0 @@ export interface DocumentNavigationEvent { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,3 +0,3 @@ | ||
import { PositionDefinition, SizeDefinition, StyleDefinition, ViewBox } from "./common"; | ||
import { DocumentElement } from "./document-element"; | ||
import { PositionDefinition, SizeDefinition, StyleDefinition, ViewBox } from './common'; | ||
import { DocumentElement } from './document-element'; | ||
export interface ImportReferenceDetail { | ||
@@ -4,0 +4,0 @@ importedSlideReference?: string; |
"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.91", | ||
"version": "1.0.92", | ||
"description": "Documents library for contrail platform", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -1,1 +0,1 @@ | ||
Supplies common data structures and logic for managing document definitions. | ||
Supplies common data structures and logic for managing document definitions. |
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
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
33600
924
2