Developer Wiki

In-depth guide for developers to create stencils and templates

Special Property Names

There is no actual limitation on the way shape properties can be named. Stencil developers can choose the names that best describe the purposes. There are however a list of special names that Pencil will provide special supports. The following list summarizes those special names together with how they are handled in Pencil.

Property Name Type Pencil Supports
box Dimension Shape with this special property is supposed to be resizable. Pencil will support resizing the shape by showing scaling handles when it is focused on the drawing canvas. Moving those handles will change the box property value. The way the shape is scaled upon changes of this property is defined by the stencil developer via the behavior definition.
textFont Font Value of this property can be changed using the Font toolbar
textColor Color Value of this property can be changed using the Text color toolbar button
fillColor Color Value of this property can be changed using the Background color toolbar button
strokeColor Color Value of this property can be changed using the Line color toolbar button
strokeStyle StrokeStyle Value of this property can be changed using the Line style toolbar