States » Editing states

Editing states

You can remove previously defined states if needed.

# Delete a state
delete redSquare.states.rotated

You ‘edit’ an existing state simply by adding a new one with the same name. This will override the earlier created state.

redSquare.states.rotated =
    rotation: -45

(But remember that using layer.states = will override all the states.)