Skip to content

API reference / @zaes/tactical-graphics / WireStyle

Interface: WireStyle ​

Defined in: tacticalgraphics/graphics/WireObstacle.ts:44

What a wire graphic repeats along its line.

Properties ​

gap ​

ts
gap: number;

Defined in: tacticalgraphics/graphics/WireObstacle.ts:54

Spaces between groups, one space = one mark width.


height ​

ts
height: number;

Defined in: tacticalgraphics/graphics/WireObstacle.ts:58

Mark height, as a multiple of the mark width.


innerGap? ​

ts
optional innerGap?: number;

Defined in: tacticalgraphics/graphics/WireObstacle.ts:56

Spaces between the marks inside a group. 0 means they touch.


mark ​

ts
mark: "cross" | "oval";

Defined in: tacticalgraphics/graphics/WireObstacle.ts:46

cross = the barbed-wire X; oval = the concertina O.


perGroup ​

ts
perGroup: number;

Defined in: tacticalgraphics/graphics/WireObstacle.ts:52

Marks per group, drawn touching unless innerGap says otherwise.


rail ​

ts
rail: boolean;

Defined in: tacticalgraphics/graphics/WireObstacle.ts:48

Is the wire itself drawn? Unspecified is the one that is not.


railsAt? ​

ts
optional railsAt?: WireRail[];

Defined in: tacticalgraphics/graphics/WireObstacle.ts:50

Which wires are drawn, and where. Defaults to a single one through the middle.

Released under the MIT License.