Module

Sketch.Dom

Package
purescript-sketch
Repository
iarthstar/purescript-sketch

#getDocuments Source

getDocuments :: Effect (Either (NonEmptyList ForeignError) (Array Document))

Access all the open Documents.

#getSelectedDocument Source

getSelectedDocument :: Effect (Either (NonEmptyList ForeignError) Document)

Access the selected Document.

#selectedLayers Source

#getLayerWithID Source

getLayerWithID :: String -> Effect (Either (NonEmptyList ForeignError) Layer)

A method to help find the first layer in this document which has the given id.

#setPropsForLayerID Source

setPropsForLayerID :: forall a. Encode a => String -> Array String -> a -> Effect Unit

A method to set value for the path in layer in this document which has the given id.