MaterialAssignment class

Material assignments are returned when applying material resources to a Design.

Signature:

declare class MaterialAssignment extends AbstractAssignment<MaterialResource, MaterialAssignmentOptions> 

Extends: AbstractAssignment<MaterialResource, MaterialAssignmentOptions>

Methods

Method

Modifiers

Description

getCenter()

Convenience getter for the center_x and center_y options.

getMatrix(size)

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

getOffset()

Convenience getter for the offset_x and offset_y options.

getRotation()

Convenience getter for the rotation option.

getScale()

Convenience getter for the scale option.

getUvCenter()

getUvOffset()

getUvRotation()

getUvScale()

resetCenter()

Convenience resetter for the center_x and center_y options.

resetOffset()

Convenience resetter for the offset_x and offset_y options.

resetRotation()

Convenience resetter for the rotation option.

resetScale()

Convenience resetter for the scale option.

resetUvCenter()

resetUvOffset()

resetUvRotation()

resetUvScale()

setCenter(center)

Convenience setter for the center_x and center_y options.

setOffset(offset)

Convenience setter for the offset_x and offset_y options.

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.

setUvCenter(center)

setUvOffset(offset)

setUvRotation(rotation)

setUvScale(scale)

Get in touch

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

PressPrivacyTermsSupportCopyright © 2024 Core3D, Inc. All Rights Reserved.