Class: CanvasSettings

CanvasSettings


new CanvasSettings()

All settings for canvas save here
Properties:
Name Type Description
useDesignerPrice Boolean show price calculator
_disableBackground Boolean block background color change input for SVG path group
editorLoading String show/hide preloader for canvas
wrapper String #canvas-frame it's id where will be init fabric main canvas
rulerWrapper String wrapper to init ruller canvas
id String Id canvas when will be attach fabric
screenshooterId String Screenshooter it is hidden canvas when create preview to layer, zoom and thumbnails
rulerId String Containers for ruler
gridId String Containers for grid
canvasContainer String Containers for main canvas
wrapperHidder String Containers for screenshooter
width Number default width canvas
height Number default height canvas
canvasNewWidth Number default container width canvas (recalculate on initialize app)
canvasNewHeight Number default container height canvas (recalculate on initialize app)
apiKey String default apiKey user
user Number default user ID
projectIdEdit String project id will be set
templateId String template id will be set
projectName String Project or template
zoomLayer String base64 dummy (white rectangle)
zoomHolderWidth Number zoom holder is a DOM element where will be zoom preview, it is set width
zoomHolderHeight Number zoom holder is a DOM element where will be zoom preview, it is set height
layerHolderWidth Number layer holder is a DOM element where will be layer preview, it is set width
layerHolderHeight Number layer holder is a DOM element where will be layer preview, it is set height
bgTransparency Boolean default transparency background
mode String 'face' / 'end_user' / 'admin' mode of editor
textDummy String Create text dummy
fontSize Number default font size
fontFamily String default font family
fontColor String default font color
backgroundColor String default background color
objectColor String default shapes color
freeDrawWidth String default free draw width (in units)
smoothing Boolean Smoothing freeDraw Line
selectionMode Boolean change Select mode or Draw mode
units String current zoom step is 1 (second element of array zoom steps)
zoomStep String current zoom step is 1 (second element of array zoom steps)
zoomFactor Number Zoom factor is 1
dpi Number DPI ignored
inchToFeet Number
autoSaveInterval Number Not working yet
smoothingDraw Boolean Not working yet
zoomSteps Array Steps zoom changes
zoomStepsLength Number Length of zoomSteps array
ruler Object All settings for ruler. Color, units
zoomBtns Boolean Show or Hide zoom buttons. If current template is more than 36 inch zoom buttons will be hidden
grid Object All settings for grid
gridHex String Grid color
fotoliaImageCost String Cost for image on Fotolia
fotoliaImageCostArtworktool String Cost for image on Fotolia from Artworktool
Source:
models/canvas/settings.js