General Parameters
FSI Layers has a few parameters which are directly set in the <fsi-layers>
tag.
For properties which are added to the <fsi-layer>
or <fsi-layer-group>
tag, please see Properties.
<fsi-layers id="myLayers" debug="true" showInfo="true">
<fsi-layer name="background" width="100%" height="100%"
src="images/configurator/background.png">
</fsi-layer>
</fsi-layers>
debug
boolean
falseDefault
Displays debug & status information in the javascript console.
showInfo
boolean
falseDefault
Shows the info (name, dimensions, clipping state) and direction arrows of all layers and groups.
useDevicePixelRatio
boolean
trueDefault
Use the device's pixel ratio to automatically display even sharper images.
effects
string
The effects
parameter can be used to pass image manipulation parameters to the imaging server.
Typical manipulation parameters include the image saturation (saturation
) and image sharpening (sharpen
).
If no effect is specified, the default settings of the server (profile) apply.
Please refer to your FSI Server documentation for a list of available effect parameters.
renderer
string
The renderer parameter to use for image requests (e.g. jpeg)
autoInit
boolean
trueDefault
Prevents automatic initialisation when the instance has been attached to the DOM. Helpful e.g. when working with React.
observeInlineTemplateChanges
boolean
falseDefault
If set to true, a mutation observer live observes all changes which are made to the underlying groups and layers.