GraphicAssignment class

Graphic assignments are returned when applying graphic resources to a Design.

Signature:

declare class GraphicAssignment extends AbstractAssignment<GraphicResource, GraphicAssignmentOptions> 

Extends: AbstractAssignment<GraphicResource, GraphicAssignmentOptions>

Methods

Method

Modifiers

Description

getFlipX()

Convenience getter for the flip_x option.

getMatrix(size)

Get a DOMMatrix representing the 2D transform suitable for use with a CanvasPattern.

getPosition()

Convenience getter for the position_x and position_y options.

getQuality()

Convenience getter for the quality option.

getRotation()

Convenience getter for the rotation option.

getScale()

Convenience getter for the scale option.

resetFlipX()

Convenience resetter for the flip_x option.

resetPosition()

Convenience resetter for the position_x and position_y options.

resetQuality()

Convenience resetter for the quality option.

resetRotation()

Convenience resetter for the rotation option.

resetScale()

Convenience resetter for the scale option.

setFlipX(flipX)

Convenience setter for the flip_x option.

setPlacement(name)

Positions the graphic according to a Zone Placement configuration.

setPosition(position)

Convenience setter for the position_x and position_y options.

setQuality(quality)

Convenience setter for the quality option.

setRotation(rotation)

Convenience setter for the rotation option.

setScale(scale)

Convenience setter for the scale option.

setSize(value, unit)

Set the scale option by unit value.

Get in touch

We'd love to learn more about your vision and how we can help.

PressPrivacyTermsSupportCopyright © 2024 Core3D, Inc. All Rights Reserved.