Skip to main content

Interface: ImageParameters

Defined in: types/src/element.ts:220

Additional parameters for image elements. Merges on top of ElementParameters.

Extends

Indexable

[key: string]: unknown

Properties

PropertyTypeDefault valueDescriptionInherited fromDefined in
title?stringundefined-ElementParameters.titletypes/src/element.ts:44
source?stringundefined-ElementParameters.sourcetypes/src/element.ts:45
id?stringundefined-ElementParameters.idtypes/src/element.ts:46
left?numberundefined-ElementParameters.lefttypes/src/element.ts:49
top?numberundefined-ElementParameters.toptypes/src/element.ts:50
originX?OriginXundefined-ElementParameters.originXtypes/src/element.ts:51
originY?OriginYundefined-ElementParameters.originYtypes/src/element.ts:52
angle?numberundefined-ElementParameters.angletypes/src/element.ts:53
scaleX?numberundefined-ElementParameters.scaleXtypes/src/element.ts:54
scaleY?numberundefined-ElementParameters.scaleYtypes/src/element.ts:55
opacity?numberundefined-ElementParameters.opacitytypes/src/element.ts:56
flipX?booleanundefined-ElementParameters.flipXtypes/src/element.ts:57
flipY?booleanundefined-ElementParameters.flipYtypes/src/element.ts:58
draggable?booleanundefinedAllow user to drag the elementElementParameters.draggabletypes/src/element.ts:62
rotatable?booleanundefinedAllow user to rotate the elementElementParameters.rotatabletypes/src/element.ts:64
resizable?booleanundefinedAllow user to resize the elementElementParameters.resizabletypes/src/element.ts:66
removable?booleanundefinedAllow user to remove the elementElementParameters.removabletypes/src/element.ts:68
copyable?booleanundefinedAllow user to duplicate the elementElementParameters.copyabletypes/src/element.ts:70
editable?booleanundefinedAllow user to edit the element contentElementParameters.editabletypes/src/element.ts:72
locked?booleanundefinedLock the element (must be unlocked via Manage Layers)ElementParameters.lockedtypes/src/element.ts:74
lockUniScaling?booleanundefinedLock uniform (proportional) scalingElementParameters.lockUniScalingtypes/src/element.ts:78
uniScalingUnlockable?booleanundefinedAllow user to unlock proportional scaling in toolbarElementParameters.uniScalingUnlockabletypes/src/element.ts:80
minScaleLimit?numberundefinedMinimum scale factorElementParameters.minScaleLimittypes/src/element.ts:82
boundingBox?BoundingBoxValueundefinedBounding box constraint for the elementElementParameters.boundingBoxtypes/src/element.ts:86
z?numberundefinedZ-index position (-1 means add on top of stack)ElementParameters.ztypes/src/element.ts:90
zChangeable?booleanundefinedAllow user to change z-positionElementParameters.zChangeabletypes/src/element.ts:92
topped?booleanundefinedAlways keep element on topElementParameters.toppedtypes/src/element.ts:94
fill?string | falseundefinedFill color (false = no fill / use original)ElementParameters.filltypes/src/element.ts:98
colors?string | number | false | string[]undefinedAvailable colors for colorization. - false: no colorization - string: single hex enables color picker - string[]: array of hex colors shows color swatches - number: number of colors (legacy)ElementParameters.colorstypes/src/element.ts:106
colorLinkGroup?string | falseundefinedLink color changes across elements with same group nameElementParameters.colorLinkGrouptypes/src/element.ts:108
colorPrices?Record<string, number>undefinedPer-color pricing: { "hexcode": price }ElementParameters.colorPricestypes/src/element.ts:110
colorLink3DLayer?string | falseundefinedLink color to a 3D model layer nameElementParameters.colorLink3DLayertypes/src/element.ts:112
price?numberundefinedPrice for this elementElementParameters.pricetypes/src/element.ts:116
sku?stringundefinedUnique SKU identifierElementParameters.skutypes/src/element.ts:118
excludeFromExport?booleanundefinedExclude from SVG/image exportElementParameters.excludeFromExporttypes/src/element.ts:120
autoCenter?booleanundefinedAuto-center in canvas or bounding box when addedElementParameters.autoCentertypes/src/element.ts:122
autoSelect?booleanundefinedAuto-select element when addedElementParameters.autoSelecttypes/src/element.ts:124
replace?stringundefinedReplace elements with matching replace valueElementParameters.replacetypes/src/element.ts:126
replaceInAllViews?booleanundefinedReplace in all views (not just current)ElementParameters.replaceInAllViewstypes/src/element.ts:128
relatedViewImages?RelatedViewImage[]undefinedRelated images to place on other views as a coordinated design setElementParameters.relatedViewImagestypes/src/element.ts:130
fixed?booleanundefinedElement stays when product changesElementParameters.fixedtypes/src/element.ts:132
showInColorSelection?booleanundefinedShow element colors in color selection panelElementParameters.showInColorSelectiontypes/src/element.ts:134
patterns?string[]undefinedArray of pattern image URLsElementParameters.patternstypes/src/element.ts:136
shadowColor?stringundefined-ElementParameters.shadowColortypes/src/element.ts:139
shadowBlur?numberundefined-ElementParameters.shadowBlurtypes/src/element.ts:140
shadowOffsetX?numberundefined-ElementParameters.shadowOffsetXtypes/src/element.ts:141
shadowOffsetY?numberundefined-ElementParameters.shadowOffsetYtypes/src/element.ts:142
printAreaId?string | nullundefinedAssign element to a specific print areaElementParameters.printAreaIdtypes/src/element.ts:146
filter?string | false | nullundefinedImage filter name (e.g. 'grayscale', 'sepia')-types/src/element.ts:222
colorMode?ColorBlendModeundefinedColorization blend mode-types/src/element.ts:224
scaleMode?ScaleModeundefinedScale mode when fitting into container-types/src/element.ts:226
resizeToW?string | numberundefinedResize image to this width (0 = no resize)-types/src/element.ts:228
resizeToH?string | numberundefinedResize image to this height (0 = no resize)-types/src/element.ts:230
uploadZone?booleanundefinedUse image as upload zone (clickable area for adding media)-types/src/element.ts:233
uploadZoneMovable?booleanundefinedAllow user to move the upload zone-types/src/element.ts:235
uploadZoneRemovable?booleanundefinedAllow user to remove the upload zone-types/src/element.ts:237
svgFill?string | false | string[]undefinedSVG fill color(s) for coloring SVG paths-types/src/element.ts:240
imageProxy?booleantrueAllow proxy loading for this element. Set false to always render the full-resolution original regardless of imageProxyMaxDimension.-types/src/element.ts:249
proxySource?stringundefinedURL of a server-hosted downscaled variant (hybrid proxy loading). When set together with originalWidth/originalHeight, the canvas loads only this variant — the full-resolution source is never downloaded client-side; print export always uses source. Set by the uploads module from the upload response. If the variant fails to load, the original loads with client-side proxying as fallback.-types/src/element.ts:258
originalWidth?numberundefinedNatural pixel width of the full-resolution original image-types/src/element.ts:260
originalHeight?numberundefinedNatural pixel height of the full-resolution original image-types/src/element.ts:262
originalFileSize?numberundefinedFile size in bytes of the original image (when known)-types/src/element.ts:264