Class Surface
Constructors
(constructor)(width, height, mockup, printAreas, id, name, initDefaultContainers)
Constructs a new instance of the Surface class
Declaration
constructor(width?: number, height?: number, mockup?: SurfaceMockup, printAreas?: PrintArea[], id?: string, name?: string, initDefaultContainers?: boolean);
Parameters
| Type |
Name |
Description |
| number |
width |
|
| number |
height |
|
| SurfaceMockup |
mockup |
|
| PrintArea[] |
printAreas |
|
| string |
id |
|
| string |
name |
|
| boolean |
initDefaultContainers |
|
Properties
containers
Declaration
get containers(): Collection<SurfaceContainer>;
set containers(value: Collection<SurfaceContainer>);
Property Value
height
Declaration
get height(): number;
set height(value: number);
Property Value
interactiveZones
Declaration
get interactiveZones(): Collection<InteractiveZone>;
set interactiveZones(value: Collection<InteractiveZone>);
Property Value
mockup
Declaration
get mockup(): SurfaceMockup;
set mockup(value: SurfaceMockup);
Property Value
nonChannelContainerItems
Declaration
get nonChannelContainerItems(): Item[];
Property Value
parentProduct
Declaration
Property Value
previewMockups
Declaration
get previewMockups(): Collection<SurfaceMockup>;
set previewMockups(value: Collection<SurfaceMockup>);
Property Value
printAreas
Declaration
get printAreas(): Collection<PrintArea>;
set printAreas(value: Collection<PrintArea>);
Property Value
rotateAngle
Declaration
get rotateAngle(): number;
set rotateAngle(value: number);
Property Value
watermark
Declaration
Property Value
width
Declaration
get width(): number;
set width(value: number);
Property Value
Methods
_copy(source, destination, generateNewIds)
Declaration
protected _copy(source: Surface, destination: Surface, generateNewIds: boolean): void;
Parameters
| Type |
Name |
Description |
| Surface |
source |
|
| Surface |
destination |
|
| boolean |
generateNewIds |
|
Returns
add_printAreaAdded(h)
Declaration
add_printAreaAdded(h: any): void;
Parameters
| Type |
Name |
Description |
| any |
h |
|
Returns
add_printAreaRemoved(h)
Declaration
add_printAreaRemoved(h: any): void;
Parameters
| Type |
Name |
Description |
| any |
h |
|
Returns
clone(generateNewIds)
Declaration
clone(generateNewIds?: boolean): Surface;
Parameters
| Type |
Name |
Description |
| boolean |
generateNewIds |
|
Returns
generateNewIds()
Declaration
Returns
getAllItems(options)
Declaration
getAllItems(options?: IGetAllItemsOptions): Enumerable.IEnumerable<Item>;
Parameters
Returns
| Type |
Description |
| Enumerable.IEnumerable<Item> |
|
getAllItems(surfaces, options)
Declaration
static getAllItems(surfaces: Enumerable.IEnumerable<Surface> | Surface[], options?: IGetAllItemsOptions): Enumerable.IEnumerable<Item>;
Parameters
Returns
| Type |
Description |
| Enumerable.IEnumerable<Item> |
|
getBackgroundItem()
Declaration
getBackgroundItem(): Item;
Returns
getItems(surfaces, options)
Declaration
static getItems(surfaces: Enumerable.IEnumerable<Surface> | Surface[], options: IGetAllItemsOptions): Item[];
Parameters
Returns
getSimplifiedObject()
Declaration
getSimplifiedObject(): {};
Returns
remove_printAreaAdded(h)
Declaration
remove_printAreaAdded(h: any): void;
Parameters
| Type |
Name |
Description |
| any |
h |
|
Returns
remove_printAreaRemoved(h)
Declaration
remove_printAreaRemoved(h: any): void;
Parameters
| Type |
Name |
Description |
| any |
h |
|
Returns