Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

Hierarchy

Index

Constructors

constructor

  • new AbstractLineNode(args: Array<[string, string, string, Expression<any>, string]>, preWS?: string, postWS?: string, emptyArgWS?: string): AbstractLineNode

Properties

Protected _commentOut

_commentOut: boolean = false

Protected argMap

argMap: Map<string, Argument<any>>

Argument map for functions. Begins with positional args first, then follows with optional named args. Positionals don't have default value and must be supplied, while optional named args MUST have default values. Note: Map traversal is in order of insertion.

Protected Abstract name

name: string

Accessors

ws

  • get ws(): string
  • set ws(ws: string): void

x1

x2

y1

y2

Methods

commentOut

  • commentOut(): void

draw

equals

Abstract eval

  • eval(context: Scope): T

getArg

Abstract getEffect

getOptionalArgMap

getPositionalArgMap

getX1

  • getX1(context: Scope): number

getX2

  • getX2(context: Scope): number

getY1

  • getY1(context: Scope): number

getY2

  • getY2(context: Scope): number

Protected initArg

  • initArg(posArgMap: Map<string, Argument<any>>, optArgMap: Map<string, Argument<any>>): void

setArg

  • setArg(argName: string, value: Expression<any>): void

setX1

  • setX1(context: Scope, val: number): void

setX2

  • setX2(context: Scope, val: number): void

setY1

  • setY1(context: Scope, val: number): void

setY2

  • setY2(context: Scope, val: number): void

toString

  • toString(): string

updateArgValue

  • updateArgValue(argName: string, scope: Scope, value: any): void

Generated using TypeDoc