Skip to main content

Interface: Cell

Defined in: draft/types.ts:45

A Cell represents a location at which a single warp end and weft pick cross. In AdaCAD, each location in the drawdown can have 3 possible settings, captured by the parameters below

Param

a boolean to describe if there is a weft at this location. True means that a weft crosses this warp. False mean that no weft crosses the warp. This is useful when specifying partial wefts, such as inlay regions

Param

a boolean used to describe if the heddle holding the warp at this location is lifted (true) or left lowered (false)

// A 'heddle up' / 'black' draft cell is stored as
const heddle_up:Cell = {is_set: true, is_up:true};

// A 'heddle down' / 'white' draft cell is stored as
const heddle_down:Cell = {is_set: true, is_up:false};

// * An unset cell (a location with no weft) should be represented as:
const unset_correct:Cell = {is_set: false, is_up:false};

// this will also be treated as unset, we try to avoid any cases of this configuration
const unset_incorrect:Cell = {is_set: false, is_up:true};

Properties

is_set

is_set: boolean

Defined in: draft/types.ts:46


is_up

is_up: boolean

Defined in: draft/types.ts:47