SystemConfig

Members

(static, constant) CHART_WIDTH_MAP

Source:

(static, constant) COLOR_BLACK

Source:

(static, constant) COLOR_WHITE

Source:

(inner, constant) _systemInfo

Source:

The following several variables must be established when the system is established, which is a common configuration for everyone.

Methods

(static) _getOtherTxtWidth(context, txt, font, pixel) → {Number}

Source:

Used to help those platforms that don't support measureText, degraded calculation font span

Parameters:
Name Type Description
context Object

canvas context

txt String

text

font String

font family

pixel Number

font size

Returns:

text width

Type
Number

(static) changeCursorStyle(style)

Source:

Change mouse style

Parameters:
Name Type Description
style String

(static) checkLayout(layout)

Source:

checkout layout

Parameters:
Name Type Description
layout Object

(static) getLineColor(index) → {String}

Source:

Get system line color

Parameters:
Name Type Description
index Number
Returns:
Type
String

(static) initCommonInfo(chart, father)

Source:

Bind some basic properties when some chart objects are initialized

Parameters:
Name Type Description
chart Object
father Object

(static) initSystem(cfg) → {Object}

Source:

init system

Parameters:
Name Type Description
cfg Object

system config

Returns:

all system config

Type
Object

(static) setColor(syscolor)

Source:

set system color

Parameters:
Name Type Description
syscolor String

drawing theme

Returns:

system color

(static) setScale(canvas, scale) → {Object}

Source:

set system scale

Parameters:
Name Type Description
canvas Object
scale Number
Returns:
Type
Object

(static) setStandard(standard)

Source:

set paint standard

Parameters:
Name Type Description
standard any