Skip to main content

GenericItemBuilder

An abstract Builder for all Items.

Reference

Methods

createdUserId

createdUserId(createdUserId);

Set the items createdUserId uuid.

Parameters

NAMETYPEDESCRIPTION
createdUserIdstringThe created user ID

Returns the current builder.


id

id(id);

Set the items id uuid.

Parameters

NAMETYPEDESCRIPTION
idstringThe ID

Returns the current builder.


name

name(name: string)

Set the items name.

Parameters

NAMETYPEDESCRIPTION
namestringThe name

Returns the current builder.


description

description(description: string)

Set the items description.

Parameters

NAMETYPEDESCRIPTION
descriptionstringThe description

Returns the current builder.


lastModified

lastModified(lastModified);

Set the items lastModified ISO time.

Parameters

NAMETYPEDESCRIPTION
lastModifiedstringThe lat modified time

Returns the current builder.


zIndex

zIndex(zIndex);

Set the items zIndex.

Parameters

NAMETYPEDESCRIPTION
zIndexnumberThe z-index

Returns the current builder.


lastModifiedUserId

lastModifiedUserId(lastModifiedUserId);

Set the items lastModifiedUserId uuid.

Parameters

NAMETYPEDESCRIPTION
lastModifiedUserIdstringThe ID of the last modified user

Returns the current builder.


locked

locked(locked);

Set the items locked boolean.

Parameters

NAMETYPEDESCRIPTION
lockedbooleanThe locked setting

Returns the current builder.


metadata

metadata(metadata);

Set the items metadata.

Parameters

NAMETYPEDESCRIPTION
metadataMetadataThe metadata

Returns the current builder.


position

position(position);

Set the items position.

Parameters

NAMETYPEDESCRIPTION
positionVector2The position

Returns the current builder.


rotation

rotation(rotation);

Set the items rotation in degrees.

Parameters

NAMETYPEDESCRIPTION
rotationnumberThe rotation in degrees

Returns the current builder.


scale

scale(scale);

Set the items scale.

Parameters

NAMETYPEDESCRIPTION
scaleVector2The scale

Returns the current builder.


visible

visible(visible);

Set the items visible boolean.

Parameters

NAMETYPEDESCRIPTION
visiblebooleanThe visible setting

Returns the current builder.


attachedTo

attachedTo(attachedTo);

Set the items attachedTo uuid.

Parameters

NAMETYPEDESCRIPTION
attachedTostringThe attached to ID

Returns the current builder.


layer

layer(layer);

Set the items layer.

Parameters

NAMETYPEDESCRIPTION
layerLayerThe layer

Returns the current builder.


disableHit

disableHit(disable))

Set the items disableHit property.

Parameters

NAMETYPEDESCRIPTION
disableHitbooleanThe disable hit setting

Returns the current builder.


disableAutoZIndex

disableAutoZIndex(disable))

Set the items disableAutoZIndex property.

Parameters

NAMETYPEDESCRIPTION
disableAutoZIndexbooleanThe disable auto z-index setting

Returns the current builder.