Home Reference Source
import {Overdraw} from './scripts/util/ScreenOverdraw.js'
public class | source

Overdraw

Extends:

scripts/core/ui_base.js~ui_base.UIBase → Overdraw

Static Method Summary

Static Public Methods
public static

define(): {"tagname": string, "style": string}

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

ctx: *

public

font: *

public
public

screen: *

public

shapes: *[]

public

svg: *

public
public

Method Summary

Public Methods
public

circle(p: *, r: *, stroke: string, fill: string): *

public

clear()

public

drawTextBubbles(texts: *, cos: *, colors: *): *

public

end()

public

line(v1: *, v2: *, color: string): *

public

rect(p: *, size: *, color: string): *

public

start(screen: *)

public

startNode(node: *, screen: *)

public

text(text: *, x: *, y: *, args: {}): *

Static Public Methods

public static define(): {"tagname": string, "style": string} source

Return:

{"tagname": string, "style": string}

Public Constructors

public constructor() source

Public Members

public ctx: * source

public font: * source

public otherChildren: *[] source

public screen: * source

public shapes: *[] source

public svg: * source

public visibleToPick: boolean source

public zindex_base: number source

Public Methods

public circle(p: *, r: *, stroke: string, fill: string): * source

Params:

NameTypeAttributeDescription
p *
r *
stroke string
  • optional
  • default: black
fill string
  • optional
  • default: none

Return:

*

public clear() source

public drawTextBubbles(texts: *, cos: *, colors: *): * source

Params:

NameTypeAttributeDescription
texts *
cos *
colors *

Return:

*

public end() source

public line(v1: *, v2: *, color: string): * source

Params:

NameTypeAttributeDescription
v1 *
v2 *
color string
  • optional
  • default: black

Return:

*

public rect(p: *, size: *, color: string): * source

Params:

NameTypeAttributeDescription
p *
size *
color string
  • optional
  • default: black

Return:

*

public start(screen: *) source

Params:

NameTypeAttributeDescription
screen *

public startNode(node: *, screen: *) source

Params:

NameTypeAttributeDescription
node *
screen *

public text(text: *, x: *, y: *, args: {}): * source

Params:

NameTypeAttributeDescription
text *
x *
y *
args {}
  • optional
  • default: {}

Return:

*