This method will exit cropping mode while saving the applied crop.
This method will create a new frame of 'type' to the template positioned on the requested coordinates.
the newly created frame's id
the type of frame to create
X coordinate of the new frame within the template
Y coordinate of the new frame within the template
Width of the new frame within the template
Height of the new frame within the template
Experimental
This method will create a new barcode frame of 'type' type to the layout positioned on the requested coordinates. Any coordinate that is not specified will default to 'center'.
the type of barcode to create
Optional
position: { x?: number; y?: number }optional position object where you can specify the x, y of the barcode frame
Optional
x?: numberOptional
y?: numberThis method will create a new frame of 'type' type to the template positioned on the requested coordinates.
the newly created shape frame's id
the type of frame to create
X coordinate of the new frame within the template
Y coordinate of the new frame within the template
Width of the new frame within the template
Height of the new frame within the template
This method will duplicate a list of frames
An array of all ids you want to duplicate
This method will make the specified image frame go into cropping mode.
the id of a specific image frame
This method will exit cropping mode without saving the applied crop.
This method returns the list of frames
list of all frames
This method returns the list of frames by id
list of all frames by id
the id of a specific page
This method returns a list of frame properties for a given layout
list of frame layout properties
the id of a specific layout
This method returns a frame by its id
frame properties
the id of a specific frame
This method returns a frame by its name
frame properties
the name of a specific frame
This method returns frame layout properties for a given frame and layout
frame layout properties
the id of a specific frame
Optional
layoutId: stringthe id of a specific layout
This method returns all frame properties on current layout
all frame properties on current layout
This method returns the list of selected frames
list of all selected frames
This method will remove a specific frame using the Id.
the id of the frame that needs to be deleted
This method will remove frames with the given ids.
an array of ids of the frames to be removed.
This method removes the image source from the ImageFrame
the id of the imageFrame where an image needs to be removed from
This method will update the name of a specific frame
the id of a specific frame
the new name that the frame should receive
This method changes the order of frames in the z-index list.
the index in the list to move to
An array of all IDs you want to move to the given index
This method will reset properties of a specific frame to their original values
the id of the frame that needs to get reset
This method will reset the currently applied crop mode and apply the last selected fit mode again.
the id of a specific image frame
This method will reset the frame enableCopyfitting to the frame's original value
the id of a specific frame
This method will reset the height of a specific frame to its original value
the id of the frame that needs to get reset
This method will reset the fitMode property of a specific frame to its original value
the id of the frame that needs to get reset
This method will reset the frame maxCopyfitting to the frame's original value
the id of a specific frame
This method will reset the frame minCopyfitting to the frame's original value
the id of a specific frame
This method will reset the rotation value of a specific frame to its original value
the id of the frame that needs to get reset
This method will reset the frame size (width and height) to the frame's original value
the id of a specific frame
This method will reset the width of a specific frame to its original value
the id of the frame that needs to get reset
This method will reset the x value of a specific frame to its original value
the id of the frame that needs to get reset
This method will reset the y value of a specific frame to its original value
the id of the frame that needs to get reset
This method will select a specific frame
the id of a specific frame
This method will select multipleFrames
An array of all ids you want to select
This method will set the blend mode of a specified frame
the id of a specific frame
the blend mode
This method will enable copyFitting on a specified frame.
the id of the frame that needs to get updated
the new value to be set to the frame.
This method will set the constrainProportions property of a specified frame. If constrainProportionsReadOnly is true, the frame's constrainProportions property cannot be changed and this method will return an error.
the id of the frame that needs to get updated.
The new constraint that you want to set to the frame.
This method will set the height of a specific frame
the id of a specific frame
the string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
This method will set the fitMode property of a specified image frame.
the id of the imageFrame that needs to get updated.
the new fitMode that you want to set to the imageFrame.
This method will assign an image from a mediaConnector to the correct ImageFrame
the id of the imageFrame where an image needs to be assigned to
Unique id of the asset that you want to assign to the imageFrame
This method will assign an image from url to the correct ImageFrame Make sure the url can be accessed by the editor.
the id of the imageFrame where an image needs to be assigned to
A valid image uri
This method will set the isVisible property of a specified frame. If set to false the frame will be invisible and vice versa.
the id of the frame that needs to get updated
True means the frame gets visible, false means the frame gets invisible
This method will set the max copyFitting property of a specified frame.
the id of the frame that needs to get updated
the new max copyFitting value to be set to the frame.
This method will set the min copyFitting property of a specified frame.
the id of the frame that needs to get updated
the new min copyFitting value to be set to the frame.
This method will set the rotation angle of a specific frame
the id of a specific frame
the string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
This method will set the visibility of the shape fill.
the id of the shapeFrame that needs to get updated.
Whether the shape fill is visible.
This method will set the visibility of the shape stroke.
the id of the shapeFrame that needs to get updated.
Whether the shape stroke is visible.
This method will set the shape fill color of a specified shape frame.
the id of the shapeFrame that needs to get updated.
the new shape fill color that you want to set to the shapeFrame.
This method will set the shape stroke color of a specified shape frame.
the id of the shapeFrame that needs to get updated.
the new shape stroke color that you want to set to the shapeFrame.
This method will set the shape stroke weight of a specified shape frame.
the id of the shapeFrame that needs to get updated.
the new shape stroke weight that you want to set to the shapeFrame.
This method will set the vertical alignment property of a specified frame.
the id of the frame that needs to get updated
the new vertical alignment to be set to the frame.
Use setIsVisible
instead.
This method will set the visibility property of a specified frame. If set to false the frame will be invisible and vice versa.
the id of the frame that needs to get updated
True means the frame gets visible, false means the frame gets invisible
This method will set the width of a specific frame
the id of a specific frame
the string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
This method will set the x value of a specific frame
the id of a specific frame
the string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
This method will set the y value of a specific frame
the id of a specific frame
the string value that will be calculated (f.e. 1+1 will result in 2) The notation is in pixels
This method will update the z-index of a frame.
the id of the frame you want to change the z-index of
the z-index update method to perform
Generated using TypeDoc
The FrameController is responsible for all communication regarding Frames. Methods inside this controller can be called by
window.SDK.frame.{method-name}