Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

Hierarchy

Index

Constructors

constructor

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

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

height

width

ws

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

Methods

commentOut

  • commentOut(): void

draw

equals

Abstract eval

  • eval(context: Scope): T

getArg

Abstract getEffect

getHeight

  • getHeight(context: Scope): number

getOptionalArgMap

getPositionalArgMap

getWidth

  • getWidth(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

setHeight

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

setWidth

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

toString

  • toString(): string

updateArgValue

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

Generated using TypeDoc