Getting started

A shape library is defined in a folder that lives in an extension package. An extension package is a set of code, content, and configuration for Lucid products that is installable. Extension packages can be distributed via Lucid’s Developer Portal, and can have one or more shape libraries. Instructions for creating extension packages can be found in the Extension API documentation.

A shape library contains custom shapes, and they can be created through the Extension API, which will be covered below. A custom shape contains two key pieces:

  • A shape definition, which is a single .shape file.
    Shape definitions are responsible for the majority of shape properties as well as how it is rendered.
  • A shape entry, which is a listing in the library manifest file.
    Each shape entry defines default properties for the shape, as well as which shape definition it refers to. Note that a shape definition can be referenced by multiple shape entries.