Home Reference Source

Tool Properties

Tool Properties are generic typed value containers. They store things like:

Tool properties also store various UX related data:

Tool properties are used by the ToolOp API (the basic operators that implement the undo stack) as well as the datapath controller API (where they internally provide type information for the application model)

API

The basic interface for tool properties is:


class ToolProperty {
    getValue() {
    }

    setValue(v) {
    }

    //add event callback, type should be 'change'
    on(type, cb) {
    }
}