@antv/g2 - v4.0.4

阅读时间约 37 分钟

Index

Enumerations

Classes

Interfaces

Type aliases

Variables

Functions

Object literals

Type aliases

ActionCallback

Ƭ ActionCallback: function

Defined in src/interface.ts:1912

Type declaration:

▸ (context: IInteractionContext): void

Parameters:

Name Type
context IInteractionContext

AdjustType

Ƭ AdjustType: "stack" | "jitter" | "dodge" | "symmetric"

Defined in src/interface.ts:297

G2 提供的 adjust 类型


AnimateDelayCallback

Ƭ AnimateDelayCallback: function

Defined in src/interface.ts:1921

delay 的回调函数, 入参 data 为对应的原始数据记录

Type declaration:

▸ (data: Datum): number

Parameters:

Name Type
data Datum

AnimateDurationCallback

Ƭ AnimateDurationCallback: function

Defined in src/interface.ts:1923

duration 的回调函数, 入参 data 为对应的原始数据记录

Type declaration:

▸ (data: Datum): number

Parameters:

Name Type
data Datum

AnimateEasingCallback

Ƭ AnimateEasingCallback: function

Defined in src/interface.ts:1919

easing 的回调函数, 入参 data 为对应的原始数据记录

Type declaration:

▸ (data: Datum): string

Parameters:

Name Type
data Datum

AnnotationPosition

Ƭ AnnotationPosition: [number | string, number | string] | Record‹string, number | string› | AnnotationPositionCallback

Defined in src/interface.ts:406

Annotation 位置相关属性的类型定义


AnnotationPositionCallback

Ƭ AnnotationPositionCallback: function

Defined in src/interface.ts:401

Annotation position 回调函数

Type declaration:

▸ (xScales: Scale[] | Record‹string, Scale›, yScales: Scale[] | Record‹string, Scale›): [number, number]

Parameters:

Name Type
xScales Scale[] | Record‹string, Scale›
yScales Scale[] | Record‹string, Scale›

ArcOption

Ƭ ArcOption: RegionPositionBaseOption

Defined in src/interface.ts:464

使用 Arc Annotation 组件的配置定义


AttributeType

Ƭ AttributeType: "position" | "size" | "color" | "shape"

Defined in src/interface.ts:1916


AxisOption

Ƭ AxisOption: AxisCfg | boolean

Defined in src/interface.ts:1139

chart.axis() 参数类型


ColorAttrCallback

Ƭ ColorAttrCallback: function

Defined in src/interface.ts:299

geometry.color() 图形属性回调函数定义

Type declaration:

▸ (...args: any[]): string

Parameters:

Name Type
...args any[]

ControllerCtor

Ƭ ControllerCtor: object

Defined in src/chart/controller/base.ts:6

Component controller class type define

Type declaration:


CoordinateActions

Ƭ CoordinateActions: CoordinateRotate | CoordinateReflect | CoordinateScale | CoordinateTranspose

Defined in src/interface.ts:1160

坐标系支持的 action 配置


CoordinateReflect

Ƭ CoordinateReflect: ["reflect", "x" | "y"]

Defined in src/interface.ts:1156


CoordinateRotate

Ƭ CoordinateRotate: ["rotate", number]

Defined in src/interface.ts:1155


CoordinateScale

Ƭ CoordinateScale: ["scale", number, number]

Defined in src/interface.ts:1157


CoordinateTranspose

Ƭ CoordinateTranspose: ["transpose"]

Defined in src/interface.ts:1158


Data

Ƭ Data: Datum[]

Defined in src/interface.ts:1911


Datum

Ƭ Datum: Record‹string, any›

Defined in src/interface.ts:1910

数据的定义


FacetCtor

Ƭ FacetCtor: object

Defined in src/interface.ts:1164

Type declaration:


FacetDataFilter

Ƭ FacetDataFilter: function

Defined in src/interface.ts:1172

Type declaration:

▸ (data: Datum[]): boolean

Parameters:

Name Type
data Datum[]

FilterCondition

Ƭ FilterCondition: function

Defined in src/interface.ts:1137

Type declaration:

▸ (value: any, datum: Datum, idx?: number): boolean

Parameters:

Name Type
value any
datum Datum
idx? number

GeometryLabelConstructor

Ƭ GeometryLabelConstructor: object

Defined in src/geometry/label/base.ts:15

Type declaration:


GeometryLabelContentCallback

Ƭ GeometryLabelContentCallback: function

Defined in src/interface.ts:311

geometry label 中 content 属性的回调函数类型定义

Type declaration:

▸ (data: Datum, mappingData: MappingDatum, index: number): string | IShape | IGroup

Parameters:

Name Type
data Datum
mappingData MappingDatum
index number

IG

Ƭ IG: any

Defined in src/dependents.ts:8


InteractonConstructor

Ƭ InteractonConstructor: object

Defined in src/interaction/interaction.ts:4

Type declaration:


IntervalGeometryLabelPosition

Ƭ IntervalGeometryLabelPosition: "top" | "bottom" | "middle" | "left" | "right"

Defined in src/interface.ts:295

interval label 的位置


LabelCallback

Ƭ LabelCallback: function

Defined in src/interface.ts:309

geometry.label() 接口回调函数定义

Type declaration:

▸ (...args: any[]): GeometryLabelCfg | null | undefined

Parameters:

Name Type
...args any[]

Layout

Ƭ Layout: function

Defined in src/chart/layout/index.ts:7

Type declaration:

▸ (view: View): void

Parameters:

Name Type
view View

LegendOption

Ƭ LegendOption: LegendCfg | boolean

Defined in src/interface.ts:1141

chart.legend() 参数类型


Marker

Ƭ Marker: "circle" | "square" | "diamond" | "triangle" | "triangleDown" | "hexagon" | "bowtie" | "cross" | "tick" | "plus" | "hyphen" | "line"

Defined in src/interface.ts:1119

支持的 Marker 类型


MarkerCallback

Ƭ MarkerCallback: function

Defined in src/interface.ts:1133

自定义 Marker 的回调函数定义

Type declaration:

▸ (x: number, y: number, r: number): PathCommand

Parameters:

Name Type
x number
y number
r number

Padding

Ƭ Padding: number[]

Defined in src/interface.ts:1913


Position

Ƭ Position: [number, number]

Defined in src/interface.ts:1915


RegionOption

Ƭ RegionOption: RegionPositionBaseOption

Defined in src/interface.ts:466

使用 Region Annotation 组件的配置定义


Renderer

Ƭ Renderer: "svg" | "canvas"

Defined in src/interface.ts:1908

G 的渲染类型


ScaleType

Ƭ ScaleType: "linear" | "cat" | "category" | "identity" | "log" | "pow" | "time" | "timeCat" | "quantize" | "quantile"

Defined in src/interface.ts:1143

G2 支持的度量类型


ShapeAttrCallback

Ƭ ShapeAttrCallback: function

Defined in src/interface.ts:301

geometry.shape() 图形属性回调函数定义

Type declaration:

▸ (...args: any[]): string | any[]

Parameters:

Name Type
...args any[]

ShapeMarkerSymbol

Ƭ ShapeMarkerSymbol: function

Defined in src/interface.ts:396

自定义 Shape marker 的函数

Type declaration:

▸ (x: number, y: number, r: number): PathCommand[]

Parameters:

Name Type
x number
y number
r number

ShapeVertices

Ƭ ShapeVertices: RangePoint[] | Point[] | Point[][]

Defined in src/interface.ts:1917


SizeAttrCallback

Ƭ SizeAttrCallback: function

Defined in src/interface.ts:303

geometry.size() 图形属性回调函数定义

Type declaration:

▸ (...args: any[]): number

Parameters:

Name Type
...args any[]

StateStyleCallback

Ƭ StateStyleCallback: function

Defined in src/interface.ts:313

state 下 style 回调函数定义

Type declaration:

▸ (element: Element): LooseObject

Parameters:

Name Type
element Element

StyleCallback

Ƭ StyleCallback: function

Defined in src/interface.ts:307

geometry.style() 接口回调函数定义

Type declaration:

▸ (...args: any[]): LooseObject

Parameters:

Name Type
...args any[]

TextAlign

Ƭ TextAlign: "start" | "center" | "end" | "left" | "right"

Defined in src/geometry/label/interface.ts:3


TooltipCallback

Ƭ TooltipCallback: function

Defined in src/interface.ts:305

geometry.tooltip() 接口回调函数定义

Type declaration:

▸ (...args: any[]): LooseObject

Parameters:

Name Type
...args any[]

TooltipCrosshairsTextCallback

Ƭ TooltipCrosshairsTextCallback: function

Defined in src/interface.ts:918

辅助线文本回调函数

param 对应当前 crosshairs 的类型,值为 'x' 或者 'x'

param 对应当前 crosshairs 默认的文本内容

param 对应当前 tooltip 内容框中的数据

param 对应当前坐标点

returns 返回当前 crosshairs 对应的辅助线文本配置

Type declaration:

▸ (type: string, defaultContent: any, items: any[], currentPoint: Point): TooltipCrosshairsText

Parameters:

Name Type
type string
defaultContent any
items any[]
currentPoint Point

TooltipOption

Ƭ TooltipOption: TooltipCfg | boolean

Defined in src/interface.ts:1135

chart.tooltip() 参数类型


ViewPadding

Ƭ ViewPadding: number | number[] | "auto"

Defined in src/interface.ts:1914

Variables

Const COMPONENTMAXVIEW_PERCENTAGE

COMPONENTMAXVIEW_PERCENTAGE: 0.25 = 0.25

Defined in src/constant.ts:113

辅助组件占图表的尺寸的最大比例:如图表上方的图例最多占图表高度的25%


Const FIELD_ORIGIN

FIELD_ORIGIN: "_origin" = "_origin"

Defined in src/constant.ts:107

存储原始数据的字段名


Const GROUP_ATTRS

GROUP_ATTRS: string[] = ['color', 'shape', 'size']

Defined in src/constant.ts:105

参与分组的图形属性名


Const HOLLOW_SHAPES

HOLLOW_SHAPES: string[] = ['cross', 'tick', 'plus', 'hyphen', 'line']

Defined in src/geometry/shape/point/util.ts:7


Const MINCHARTHEIGHT

MINCHARTHEIGHT: 1 = 1

Defined in src/constant.ts:111

最小的图表高度


Const MINCHARTWIDTH

MINCHARTWIDTH: 1 = 1

Defined in src/constant.ts:109

最小的图表宽度


Const SHAPES

SHAPES: string[] = ['circle', 'square', 'bowtie', 'diamond', 'hexagon', 'triangle', 'triangle-down']

Defined in src/geometry/shape/point/util.ts:6


Const VERSION

VERSION: "4.0.4" = "4.0.4"

Defined in src/core.ts:3

Functions

createAction

createAction(actionName: string, context: IInteractionContext): Action

Defined in src/interaction/action/register.ts:24

根据名称获取 Action 实例

Parameters:

Name Type Description
actionName string action 的名称
context IInteractionContext 上下文

Returns: Action

Action 实例


createCallbackAction

createCallbackAction(callback: ActionCallback, context: IInteractionContext): CallbackAction

Defined in src/interaction/action/register.ts:71

根据回调函数获取 Action 实例

Parameters:

Name Type Description
callback ActionCallback action 的回调函数
context IInteractionContext 上下文

Returns: CallbackAction

Action 实例


createInteraction

createInteraction(name: string, view: View, cfg?: LooseObject): Interaction‹›

Defined in src/interaction/index.ts:33

创建交互实例

Parameters:

Name Type Description
name string 交互名
view View 交互应用的 View 实例
cfg? LooseObject 交互行为配置

Returns: Interaction‹›


createThemeByStylesheet

createThemeByStylesheet(styleSheet: StyleSheet): LooseObject

Defined in src/util/theme.ts:12

根据主题样式表生成主题结构

Parameters:

Name Type Description
styleSheet StyleSheet 主题样式表

Returns: LooseObject


distribute

distribute(items: LabelItem[], labels: IGroup[], shapes: IShape[] | IGroup[], region: BBox): void

Defined in src/geometry/label/layout/distribute.ts:110

Parameters:

Name Type
items LabelItem[]
labels IGroup[]
shapes IShape[] | IGroup[]
region BBox

Returns: void


doScaleAnimate

doScaleAnimate(element: IGroup | IShape, animateCfg: GAnimateCfg, coordinate: Coordinate, yMinPoint: Point, type: string): void

Defined in src/animate/animation/util.ts:68

对图形元素进行剪切动画

Parameters:

Name Type Description
element IGroup | IShape 进行动画的图形元素
animateCfg GAnimateCfg 动画配置
coordinate Coordinate 当前坐标系
yMinPoint Point y 轴的最小值对应的图形坐标点
type string 剪切动画的类型

Returns: void


getActionClass

getActionClass(actionName: string): any

Defined in src/interaction/action/register.ts:40

根据 action 的 name 获取定义的类

Parameters:

Name Type Description
actionName string action 的 name

Returns: any


getAnimation

getAnimation(type: string): function

Defined in src/animate/animation/index.ts:18

根据名称获取对应的动画执行函数

Parameters:

Name Type Description
type string 动画函数名称

Returns: function

▸ (element: IGroup | IShape, animateCfg: GAnimateCfg, cfg: AnimateExtraCfg): void

Parameters:

Name Type
element IGroup | IShape
animateCfg GAnimateCfg
cfg AnimateExtraCfg

getAxisTitleText

getAxisTitleText(scale: Scale, axisOption: AxisCfg): string

Defined in src/util/axis.ts:222

获取 axis 的 title 文本

Parameters:

Name Type Description
scale Scale -
axisOption AxisCfg

Returns: string


getComponentController

getComponentController(name: string): ControllerCtor

Defined in src/chart/controller/index.ts:37

根据组件名获取组件类。

Parameters:

Name Type Description
name string 组件名

Returns: ControllerCtor

返回组件类


getComponentControllerNames

getComponentControllerNames(): string[]

Defined in src/chart/controller/index.ts:28

获取以注册的组件名。

Returns: string[]

string[] 返回已注册的组件名称


getEngine

getEngine(name: string): IG

Defined in src/engine/index.ts:10

通过名字获取渲染 engine

Parameters:

Name Type Description
name string 渲染引擎名字

Returns: IG

G engine


Const getFacet

getFacet(type: string): FacetCtor

Defined in src/facet/index.ts:14

根据 type 获取 facet 类

Parameters:

Name Type Description
type string 分面类型

Returns: FacetCtor


getGeometryLabel

getGeometryLabel(type: string): GeometryLabelConstructor

Defined in src/geometry/label/index.ts:24

获取 type 对应的 GeometryLabel

Parameters:

Name Type
type string

Returns: GeometryLabelConstructor


getGeometryLabelLayout

getGeometryLabelLayout(type: string): GeometryLabelsLayoutFn

Defined in src/geometry/label/index.ts:42

获取 type 对应的 [[GeometryLabelsLayoutFn]] label 布局函数

Parameters:

Name Type Description
type string 布局函数名称

Returns: GeometryLabelsLayoutFn


getIdentityMatrix

getIdentityMatrix(): number[]

Defined in src/util/transform.ts:36

获取元矩阵。

Returns: number[]

identity matrix


getInteraction

getInteraction(name: string): InteractionSteps | InteractonConstructor

Defined in src/interaction/index.ts:14

根据交互行为名字获取对应的交互类

Parameters:

Name Type Description
name string 交互名字

Returns: InteractionSteps | InteractonConstructor

交互类


Const getRegionBBox

getRegionBBox(bbox: BBox, region: Region): BBox

Defined in src/util/bbox.ts:211

从一个 bbox 的 region 获取 bbox

Parameters:

Name Type Description
bbox BBox -
region Region

Returns: BBox


getScaleByField

getScaleByField(view: View, field: string): Scale‹›

Defined in src/interaction/action/util.ts:376

Parameters:

Name Type
view View
field string

Returns: Scale‹›


getShapeFactory

getShapeFactory(factoryName: string): ShapeFactory

Defined in src/geometry/shape/base.ts:181

获取 factoryName 对应的 shapeFactory

Parameters:

Name Type
factoryName string

Returns: ShapeFactory

shape factory


getTheme

getTheme(theme?: string): LooseObject

Defined in src/theme/index.ts:18

获取主题配置信息。

Parameters:

Name Type Description
theme? string 主题名

Returns: LooseObject


isElementChange

isElementChange(context: IInteractionContext): boolean

Defined in src/interaction/action/util.ts:63

Parameters:

Name Type
context IInteractionContext

Returns: boolean


registerAction

registerAction(actionName: string, ActionClass: ActionConstructor, cfg?: LooseObject): void

Defined in src/interaction/action/register.ts:50

注册 Action

Parameters:

Name Type Description
actionName string action 的名称
ActionClass ActionConstructor 继承自 action 的类
cfg? LooseObject -

Returns: void


registerAnimation

registerAnimation(type: string, animation: Animation): void

Defined in src/animate/animation/index.ts:27

注册动画执行函数

Parameters:

Name Type Description
type string 动画执行函数名称
animation Animation 动画执行函数

Returns: void


registerComponentController

registerComponentController(name: string, plugin: ControllerCtor): void

Defined in src/chart/controller/index.ts:11

全局注册组件。

Parameters:

Name Type Description
name string 组件名称
plugin ControllerCtor 注册的组件类

Returns: void

void


registerEngine

registerEngine(name: string, engine: IG): void

Defined in src/engine/index.ts:25

注册渲染引擎

Parameters:

Name Type Description
name string -
engine IG

Returns: void


Const registerFacet

registerFacet(type: string, ctor: FacetCtor): void

Defined in src/facet/index.ts:23

注册一个 Facet 类

Parameters:

Name Type Description
type string 分面类型
ctor FacetCtor 分面类

Returns: void


registerGeometry

registerGeometry(name: string, Ctor: any): void

Defined in src/chart/view.ts:1792

注册 geometry 组件

Parameters:

Name Type
name string
Ctor any

Returns: void

Geometry


registerGeometryLabel

registerGeometryLabel(type: string, ctor: GeometryLabelConstructor): void

Defined in src/geometry/label/index.ts:33

注册定义的 GeometryLabel 类

Parameters:

Name Type Description
type string GeometryLabel 类型名称
ctor GeometryLabelConstructor GeometryLabel 类

Returns: void


registerGeometryLabelLayout

registerGeometryLabelLayout(type: string, layoutFn: GeometryLabelsLayoutFn): void

Defined in src/geometry/label/index.ts:51

注册定义的 label 布局函数

Parameters:

Name Type Description
type string label 布局函数名称
layoutFn GeometryLabelsLayoutFn label 布局函数

Returns: void


registerInteraction

registerInteraction(name: string, interaction: InteractionSteps | InteractonConstructor): void

Defined in src/interaction/index.ts:23

注册交互行为

Parameters:

Name Type Description
name string 交互行为名字
interaction InteractionSteps | InteractonConstructor 交互类

Returns: void


registerShape

registerShape(factoryName: string, shapeType: string, cfg: RegisterShape): Shape

Defined in src/geometry/shape/base.ts:165

注册 Shape。

Parameters:

Name Type Description
factoryName string 对应的 ShapeFactory 名称。
shapeType string 注册的 shape 名称。
cfg RegisterShape 注册 Shape 需要覆写定义的属性。

Returns: Shape

shape 返回注册的 shape 对象。


registerShapeFactory

registerShapeFactory(factoryName: string, cfg: RegisterShapeFactory): ShapeFactory

Defined in src/geometry/shape/base.ts:147

注册 ShapeFactory。

Parameters:

Name Type Description
factoryName string ShapeFactory 名称,对应 Geometry 几何标记名称。
cfg RegisterShapeFactory 注册 ShapeFactory 需要覆写定义的属性。

Returns: ShapeFactory

返回 ShapeFactory 对象。


registerTheme

registerTheme(theme: string, value: LooseObject): void

Defined in src/theme/index.ts:27

注册新的主题配置信息。

Parameters:

Name Type Description
theme string 主题名。
value LooseObject 具体的主题配置。

Returns: void


rotate

rotate(element: IGroup | IShape, rotateRadian: number): void

Defined in src/util/transform.ts:22

对元素进行旋转操作。

Parameters:

Name Type Description
element IGroup | IShape 进行变换的元素
rotateRadian number 旋转弧度

Returns: void


toPoints

toPoints(bbox: Partial‹BBox›): any[]

Defined in src/util/bbox.ts:226

将 bbox 转换成 points

Parameters:

Name Type Description
bbox Partial‹BBox

Returns: any[]


translate

translate(element: IGroup | IShape, x: number, y: number): void

Defined in src/util/transform.ts:12

对元素进行平移操作。

Parameters:

Name Type Description
element IGroup | IShape 进行变换的元素
x number x 方向位移
y number y 方向位移

Returns: void


unregisterAction

unregisterAction(actionName: string): void

Defined in src/interaction/action/register.ts:61

取消注册 Action

Parameters:

Name Type Description
actionName string action 名称

Returns: void


unregisterComponentController

unregisterComponentController(name: string): void

Defined in src/chart/controller/index.ts:20

删除全局组件。

Parameters:

Name Type Description
name string 组件名

Returns: void

void


zoom

zoom(element: IGroup | IShape, ratio: number): void

Defined in src/util/transform.ts:45

围绕图形中心点进行缩放

Parameters:

Name Type Description
element IGroup | IShape 进行缩放的图形元素
ratio number 缩放比例

Returns: void

Object literals

Const DEFAULTANIMATECFG

DEFAULTANIMATECFG: object

Defined in src/animate/index.ts:10

appear: object

Defined in src/animate/index.ts:11

  • duration: number = 450
  • easing: string = "easeQuadOut"

enter: object

Defined in src/animate/index.ts:19

  • duration: number = 400
  • easing: string = "easeQuadInOut"

leave: object

Defined in src/animate/index.ts:23

  • duration: number = 350
  • easing: string = "easeQuadIn"

update: object

Defined in src/animate/index.ts:15

  • duration: number = 400
  • easing: string = "easeQuadInOut"

Const GROUPZINDEX

GROUPZINDEX: object

Defined in src/constant.ts:54

三层 group 的 z index

BG

BG: number = 1

Defined in src/constant.ts:57

FORE

FORE: number = 3

Defined in src/constant.ts:55

MID

MID: number = 2

Defined in src/constant.ts:56


Const Util

Util: object

Defined in src/index.ts:621

getAngle

getAngle: getAngle

Defined in src/index.ts:626

polarToCartesian

polarToCartesian: polarToCartesian

Defined in src/index.ts:627

rotate

rotate: rotate

Defined in src/index.ts:623

transform

transform: function

Defined in src/index.ts:625

Type declaration:

▸ (m: any, ts: any): any

Parameters:

Name Type
m any
ts any

translate

translate: translate

Defined in src/index.ts:622

zoom

zoom: zoom

Defined in src/index.ts:624


Const antvDark

antvDark: object

Defined in src/theme/style-sheet/dark.ts:60

annotationArcBorder

annotationArcBorder: number = 0.5

Defined in src/theme/style-sheet/dark.ts:190

arc 图形标注粗细

annotationArcBorderColor

annotationArcBorderColor: string = BLACK_COLORS[15]

Defined in src/theme/style-sheet/dark.ts:188

arc 图形标注描边颜色

annotationDataMarkerLineLength

annotationDataMarkerLineLength: number = 16

Defined in src/theme/style-sheet/dark.ts:222

dataMarker 图形标注线的长度

annotationLineBorder

annotationLineBorder: number = 0.5

Defined in src/theme/style-sheet/dark.ts:195

line 图形标注粗细

annotationLineBorderColor

annotationLineBorderColor: string = BLACK_COLORS[25]

Defined in src/theme/style-sheet/dark.ts:193

line 图形标注颜色

annotationLineDash

annotationLineDash: null = null

Defined in src/theme/style-sheet/dark.ts:197

lube 图形标注的虚线间隔

annotationRegionBorder

annotationRegionBorder: number = 0

Defined in src/theme/style-sheet/dark.ts:217

region 图形标注描边粗细

annotationRegionBorderColor

annotationRegionBorderColor: null = null

Defined in src/theme/style-sheet/dark.ts:219

region 图形标注描边颜色

annotationRegionFillColor

annotationRegionFillColor: string = BLACK_COLORS[100]

Defined in src/theme/style-sheet/dark.ts:213

region 图形标注填充颜色

annotationRegionFillOpacity

annotationRegionFillOpacity: number = 0.06

Defined in src/theme/style-sheet/dark.ts:215

region 图形标注填充颜色透明色

annotationTextBorder

annotationTextBorder: number = 1.5

Defined in src/theme/style-sheet/dark.ts:210

text 图形标注文本边框粗细

annotationTextBorderColor

annotationTextBorderColor: string = WHITE_COLORS[95]

Defined in src/theme/style-sheet/dark.ts:208

text 图形标注文本边框颜色

annotationTextFillColor

annotationTextFillColor: string = BLACK_COLORS[65]

Defined in src/theme/style-sheet/dark.ts:200

text 图形标注文本颜色

annotationTextFontSize

annotationTextFontSize: number = 12

Defined in src/theme/style-sheet/dark.ts:202

text 图形标注文本字体大小

annotationTextFontWeight

annotationTextFontWeight: string = "normal"

Defined in src/theme/style-sheet/dark.ts:206

text 图形标注文本字体粗细

annotationTextLineHeight

annotationTextLineHeight: number = 12

Defined in src/theme/style-sheet/dark.ts:204

text 图形标注文本行高

areaActiveFillColor

areaActiveFillColor: string = QUALITATIVE_10[0]

Defined in src/theme/style-sheet/dark.ts:358

area 在 active 状态下的填充透明度

areaActiveFillOpacity

areaActiveFillOpacity: number = 0.5

Defined in src/theme/style-sheet/dark.ts:359

areaFillColor

areaFillColor: string = QUALITATIVE_10[0]

Defined in src/theme/style-sheet/dark.ts:353

area 填充颜色

areaFillOpacity

areaFillOpacity: number = 0.25

Defined in src/theme/style-sheet/dark.ts:355

area 填充透明度

areaInactiveFillOpacity

areaInactiveFillOpacity: number = 0.3

Defined in src/theme/style-sheet/dark.ts:366

area inactive 状态下填充透明度

areaSelectedFillColor

areaSelectedFillColor: string = QUALITATIVE_10[0]

Defined in src/theme/style-sheet/dark.ts:362

area 在 selected 状态下的填充透明度

areaSelectedFillOpacity

areaSelectedFillOpacity: number = 0.5

Defined in src/theme/style-sheet/dark.ts:363

axisGridBorder

axisGridBorder: number = 0.5

Defined in src/theme/style-sheet/dark.ts:121

坐标轴网格线粗细

axisGridBorderColor

axisGridBorderColor: string = BLACK_COLORS[15]

Defined in src/theme/style-sheet/dark.ts:119

坐标轴网格线颜色

axisGridLineDash

axisGridLineDash: null = null

Defined in src/theme/style-sheet/dark.ts:123

坐标轴网格线虚线设置

axisLabelFillColor

axisLabelFillColor: string = BLACK_COLORS[45]

Defined in src/theme/style-sheet/dark.ts:110

坐标轴刻度文本颜色

axisLabelFontSize

axisLabelFontSize: number = 12

Defined in src/theme/style-sheet/dark.ts:112

坐标轴刻度文本字体大小

axisLabelFontWeight

axisLabelFontWeight: string = "normal"

Defined in src/theme/style-sheet/dark.ts:116

坐标轴刻度文本字体粗细

axisLabelLineHeight

axisLabelLineHeight: number = 12

Defined in src/theme/style-sheet/dark.ts:114

坐标轴刻度文本行高

axisLineBorder

axisLineBorder: number = 0.5

Defined in src/theme/style-sheet/dark.ts:82

坐标轴线粗细

axisLineBorderColor

axisLineBorderColor: string = BLACK_COLORS[25]

Defined in src/theme/style-sheet/dark.ts:80

坐标轴线颜色

axisLineDash

axisLineDash: null = null

Defined in src/theme/style-sheet/dark.ts:84

坐标轴线 lineDash 设置

axisSubTickLineBorder

axisSubTickLineBorder: number = 0.5

Defined in src/theme/style-sheet/dark.ts:107

坐标轴次刻度线粗细

axisSubTickLineBorderColor

axisSubTickLineBorderColor: string = BLACK_COLORS[15]

Defined in src/theme/style-sheet/dark.ts:103

坐标轴次刻度线颜色

axisSubTickLineLength

axisSubTickLineLength: number = 2

Defined in src/theme/style-sheet/dark.ts:105

坐标轴次刻度线长度

axisTickLineBorder

axisTickLineBorder: number = 0.5

Defined in src/theme/style-sheet/dark.ts:100

坐标轴刻度线粗细

axisTickLineBorderColor

axisTickLineBorderColor: string = BLACK_COLORS[25]

Defined in src/theme/style-sheet/dark.ts:96

坐标轴刻度线颜色

axisTickLineLength

axisTickLineLength: number = 4

Defined in src/theme/style-sheet/dark.ts:98

坐标轴刻度线长度

axisTitleTextFillColor

axisTitleTextFillColor: string = BLACK_COLORS[65]

Defined in src/theme/style-sheet/dark.ts:87

坐标轴标题颜色

axisTitleTextFontSize

axisTitleTextFontSize: number = 12

Defined in src/theme/style-sheet/dark.ts:89

坐标轴标题文本字体大小

axisTitleTextFontWeight

axisTitleTextFontWeight: string = "normal"

Defined in src/theme/style-sheet/dark.ts:93

坐标轴标题文本字体粗细

axisTitleTextLineHeight

axisTitleTextLineHeight: number = 12

Defined in src/theme/style-sheet/dark.ts:91

坐标轴标题文本行高

brandColor

brandColor: string = QUALITATIVE_10[0]

Defined in src/theme/style-sheet/dark.ts:62

主题色

fontFamily

fontFamily: string = "-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"

Defined in src/theme/style-sheet/dark.ts:74

字体

hollowAreaActiveBorder

hollowAreaActiveBorder: number = 3

Defined in src/theme/style-sheet/dark.ts:376

hollowArea active 状态下的边框粗细

hollowAreaActiveBorderColor

hollowAreaActiveBorderColor: string = BLACK_COLORS[100]

Defined in src/theme/style-sheet/dark.ts:377

hollowAreaBorder

hollowAreaBorder: number = 2

Defined in src/theme/style-sheet/dark.ts:371

hollowArea 边框粗细

hollowAreaBorderColor

hollowAreaBorderColor: string = QUALITATIVE_10[0]

Defined in src/theme/style-sheet/dark.ts:369

hollowArea 颜色

hollowAreaBorderOpacity

hollowAreaBorderOpacity: number = 1

Defined in src/theme/style-sheet/dark.ts:373

hollowArea 边框透明度

hollowAreaInactiveBorderOpacity

hollowAreaInactiveBorderOpacity: number = 0.3

Defined in src/theme/style-sheet/dark.ts:384

hollowArea inactive 状态下的边框透明度

hollowAreaSelectedBorder

hollowAreaSelectedBorder: number = 3

Defined in src/theme/style-sheet/dark.ts:380

hollowArea selected 状态下的边框粗细

hollowAreaSelectedBorderColor

hollowAreaSelectedBorderColor: string = BLACK_COLORS[100]

Defined in src/theme/style-sheet/dark.ts:381

hollowIntervalActiveBorder

hollowIntervalActiveBorder: number = 2

Defined in src/theme/style-sheet/dark.ts:418

hollowInterval active 状态下边框粗细

hollowIntervalActiveBorderColor

hollowIntervalActiveBorderColor: string = BLACK_COLORS[100]

Defined in src/theme/style-sheet/dark.ts:420

hollowInterval active 状态下边框颜色

hollowIntervalBorder

hollowIntervalBorder: number = 2

Defined in src/theme/style-sheet/dark.ts:410

interval 边框粗细

hollowIntervalBorderColor

hollowIntervalBorderColor: string = QUALITATIVE_10[0]

Defined in src/theme/style-sheet/dark.ts:412

hollowInterval 边框颜色

hollowIntervalBorderOpacity

hollowIntervalBorderOpacity: number = 1

Defined in src/theme/style-sheet/dark.ts:414

hollowInterval 边框透明度

hollowIntervalFillColor

hollowIntervalFillColor: string = WHITE_COLORS[100]

Defined in src/theme/style-sheet/dark.ts:415

hollowIntervalInactiveBorderOpacity

hollowIntervalInactiveBorderOpacity: number = 0.3

Defined in src/theme/style-sheet/dark.ts:430

hollowInterval inactive 状态下边框透明度

hollowIntervalSelectedBorder

hollowIntervalSelectedBorder: number = 3

Defined in src/theme/style-sheet/dark.ts:423

hollowInterval selected 状态下边框粗细

hollowIntervalSelectedBorderColor

hollowIntervalSelectedBorderColor: string = BLACK_COLORS[100]

Defined in src/theme/style-sheet/dark.ts:425

hollowInterval selected 状态下边框颜色

hollowIntervalSelectedBorderOpacity

hollowIntervalSelectedBorderOpacity: number = 1

Defined in src/theme/style-sheet/dark.ts:427

hollowInterval selected 状态下边框透明度

hollowPointActiveBorder

hollowPointActiveBorder: number = 1

Defined in src/theme/style-sheet/dark.ts:320

空心点图 active 状态下描边粗细

hollowPointActiveBorderColor

hollowPointActiveBorderColor: string = BLACK_COLORS[100]

Defined in src/theme/style-sheet/dark.ts:322

空心点图 active 状态下描边颜色

hollowPointActiveBorderOpacity

hollowPointActiveBorderOpacity: number = 1

Defined in src/theme/style-sheet/dark.ts:324

空心点图 active 状态下描边透明度

hollowPointBorder

hollowPointBorder: number = 1

Defined in src/theme/style-sheet/dark.ts:312

空心点图描边粗细

hollowPointBorderColor

hollowPointBorderColor: string = QUALITATIVE_10[0]

Defined in src/theme/style-sheet/dark.ts:314

空心点图描边颜色

hollowPointBorderOpacity

hollowPointBorderOpacity: number = 0.95

Defined in src/theme/style-sheet/dark.ts:316

空心点图描边透明度

hollowPointFillColor

hollowPointFillColor: string = WHITE_COLORS[100]

Defined in src/theme/style-sheet/dark.ts:317

hollowPointInactiveBorderOpacity

hollowPointInactiveBorderOpacity: number = 0.3

Defined in src/theme/style-sheet/dark.ts:334

空心点图 inactive 状态下描边透明度

hollowPointSelectedBorder

hollowPointSelectedBorder: number = 2

Defined in src/theme/style-sheet/dark.ts:327

空心点图 selected 状态下描边粗细

hollowPointSelectedBorderColor

hollowPointSelectedBorderColor: string = BLACK_COLORS[100]

Defined in src/theme/style-sheet/dark.ts:329

空心点图 selected 状态下描边颜色

hollowPointSelectedBorderOpacity

hollowPointSelectedBorderOpacity: number = 1

Defined in src/theme/style-sheet/dark.ts:331

空心点图 selected 状态下描边透明度

hollowPointSize

hollowPointSize: number = 4

Defined in src/theme/style-sheet/dark.ts:310

空心点图大小

innerLabelBorder

innerLabelBorder: number = 0

Defined in src/theme/style-sheet/dark.ts:275

Geometry innerLabel 文本描边粗细

innerLabelBorderColor

innerLabelBorderColor: null = null

Defined in src/theme/style-sheet/dark.ts:273

Geometry innerLabel 文本描边颜色

innerLabelFillColor

innerLabelFillColor: string = WHITE_COLORS[100]

Defined in src/theme/style-sheet/dark.ts:265

Geometry innerLabel 文本颜色

innerLabelFontSize

innerLabelFontSize: number = 12

Defined in src/theme/style-sheet/dark.ts:267

Geometry innerLabel 文本字体大小

innerLabelFontWeight

innerLabelFontWeight: string = "normal"

Defined in src/theme/style-sheet/dark.ts:271

Geometry innerLabel 文本字体粗细

innerLabelLineHeight

innerLabelLineHeight: number = 12

Defined in src/theme/style-sheet/dark.ts:269

Geometry innerLabel 文本行高

intervalActiveBorder

intervalActiveBorder: number = 1

Defined in src/theme/style-sheet/dark.ts:392

interval active 状态下边框粗细

intervalActiveBorderColor

intervalActiveBorderColor: string = BLACK_COLORS[100]

Defined in src/theme/style-sheet/dark.ts:394

interval active 状态下边框颜色

intervalActiveBorderOpacity

intervalActiveBorderOpacity: number = 1

Defined in src/theme/style-sheet/dark.ts:395

intervalFillColor

intervalFillColor: string = QUALITATIVE_10[0]

Defined in src/theme/style-sheet/dark.ts:387

interval 填充颜色

intervalFillOpacity

intervalFillOpacity: number = 0.95

Defined in src/theme/style-sheet/dark.ts:389

interval 填充透明度

intervalInactiveBorderOpacity

intervalInactiveBorderOpacity: number = 0.3

Defined in src/theme/style-sheet/dark.ts:405

interval inactive 状态下边框透明度

intervalInactiveFillOpacity

intervalInactiveFillOpacity: number = 0.3

Defined in src/theme/style-sheet/dark.ts:407

interval inactive 状态下填充透明度

intervalSelectedBorder

intervalSelectedBorder: number = 2

Defined in src/theme/style-sheet/dark.ts:398

interval selected 状态下边框粗细

intervalSelectedBorderColor

intervalSelectedBorderColor: string = BLACK_COLORS[100]

Defined in src/theme/style-sheet/dark.ts:400

interval selected 状态下边框颜色

intervalSelectedBorderOpacity

intervalSelectedBorderOpacity: number = 1

Defined in src/theme/style-sheet/dark.ts:402

interval selected 状态下边框透明度

labelBorder

labelBorder: number = 0

Defined in src/theme/style-sheet/dark.ts:262

Geometry label 文本描边粗细

labelBorderColor

labelBorderColor: null = null

Defined in src/theme/style-sheet/dark.ts:260

Geometry label 文本描边颜色

labelFillColor

labelFillColor: string = BLACK_COLORS[65]

Defined in src/theme/style-sheet/dark.ts:252

Geometry label 文本颜色

labelFontSize

labelFontSize: number = 12

Defined in src/theme/style-sheet/dark.ts:254

Geometry label 文本字体大小

labelFontWeight

labelFontWeight: string = "normal"

Defined in src/theme/style-sheet/dark.ts:258

Geometry label 文本字体粗细

labelLineBorder

labelLineBorder: number = 0.5

Defined in src/theme/style-sheet/dark.ts:278

Geometry label 文本连接线粗细

labelLineBorderColor

labelLineBorderColor: string = BLACK_COLORS[25]

Defined in src/theme/style-sheet/dark.ts:280

Geometry label 文本连接线颜色

labelLineHeight

labelLineHeight: number = 12

Defined in src/theme/style-sheet/dark.ts:256

Geometry label 文本行高

legendCircleMarkerSize

legendCircleMarkerSize: number = 4

Defined in src/theme/style-sheet/dark.ts:140

图例 'circle' marker 半径

legendItemNameFillColor

legendItemNameFillColor: string = BLACK_COLORS[65]

Defined in src/theme/style-sheet/dark.ts:147

图例项文本颜色

legendItemNameFontSize

legendItemNameFontSize: number = 12

Defined in src/theme/style-sheet/dark.ts:149

图例项文本字体大小

legendItemNameFontWeight

legendItemNameFontWeight: string = "normal"

Defined in src/theme/style-sheet/dark.ts:153

图例项粗细

legendItemNameLineHeight

legendItemNameLineHeight: number = 12

Defined in src/theme/style-sheet/dark.ts:151

图例项文本行高

legendLineMarkerSize

legendLineMarkerSize: number = 5

Defined in src/theme/style-sheet/dark.ts:144

图例 'line' marker 半径

legendMarkerColor

legendMarkerColor: string = QUALITATIVE_10[0]

Defined in src/theme/style-sheet/dark.ts:136

图例 marker 颜色

legendMarkerSize

legendMarkerSize: number = 4

Defined in src/theme/style-sheet/dark.ts:138

图例 marker 默认半径大小

legendSquareMarkerSize

legendSquareMarkerSize: number = 4

Defined in src/theme/style-sheet/dark.ts:142

图例 'square' marker 半径

legendTitleTextFillColor

legendTitleTextFillColor: string = BLACK_COLORS[45]

Defined in src/theme/style-sheet/dark.ts:127

图例标题颜色

legendTitleTextFontSize

legendTitleTextFontSize: number = 12

Defined in src/theme/style-sheet/dark.ts:129

图例标题文本字体大小

legendTitleTextFontWeight

legendTitleTextFontWeight: string = "normal"

Defined in src/theme/style-sheet/dark.ts:133

图例标题文本字体粗细

legendTitleTextLineHeight

legendTitleTextLineHeight: number = 21

Defined in src/theme/style-sheet/dark.ts:131

图例标题文本行高

lineActiveBorder

lineActiveBorder: number = 3

Defined in src/theme/style-sheet/dark.ts:344

线图 Active 状态下粗细

lineBorder

lineBorder: number = 2

Defined in src/theme/style-sheet/dark.ts:337

线图粗细

lineBorderColor

lineBorderColor: string = QUALITATIVE_10[0]

Defined in src/theme/style-sheet/dark.ts:339

线图颜色

lineBorderOpacity

lineBorderOpacity: number = 1

Defined in src/theme/style-sheet/dark.ts:341

线图透明度

lineInactiveBorderOpacity

lineInactiveBorderOpacity: number = 0.3

Defined in src/theme/style-sheet/dark.ts:350

线图 inactive 状态下透明度

lineSelectedBorder

lineSelectedBorder: number = 3

Defined in src/theme/style-sheet/dark.ts:347

线图 selected 状态下粗细

paletteQualitative10

paletteQualitative10: string[] = QUALITATIVE_10

Defined in src/theme/style-sheet/dark.ts:64

分类色板 1,在数据量小于等于 10 时使用

paletteQualitative20

paletteQualitative20: string[] = QUALITATIVE_20

Defined in src/theme/style-sheet/dark.ts:66

分类色板 2,在数据量大于 10 时使用

paletteSemanticGreen

paletteSemanticGreen: string = "#30BF78"

Defined in src/theme/style-sheet/dark.ts:70

语义色

paletteSemanticRed

paletteSemanticRed: string = "#F4664A"

Defined in src/theme/style-sheet/dark.ts:68

语义色

paletteSemanticYellow

paletteSemanticYellow: string = "#FAAD14"

Defined in src/theme/style-sheet/dark.ts:72

语义色

pointActiveBorderColor

pointActiveBorderColor: string = BLACK_COLORS[100]

Defined in src/theme/style-sheet/dark.ts:297

点图 active 状态下描边颜色

pointBorder

pointBorder: number = 1

Defined in src/theme/style-sheet/dark.ts:290

点图描边粗细

pointBorderColor

pointBorderColor: string = WHITE_COLORS[100]

Defined in src/theme/style-sheet/dark.ts:292

点图描边颜色

pointBorderOpacity

pointBorderOpacity: number = 1

Defined in src/theme/style-sheet/dark.ts:294

点图描边透明度

pointFillColor

pointFillColor: string = QUALITATIVE_10[0]

Defined in src/theme/style-sheet/dark.ts:284

点图填充颜色

pointFillOpacity

pointFillOpacity: number = 0.95

Defined in src/theme/style-sheet/dark.ts:286

点图填充颜色透明度

pointInactiveBorderOpacity

pointInactiveBorderOpacity: number = 0.3

Defined in src/theme/style-sheet/dark.ts:307

点图 inactive 状态下描边透明度

pointInactiveFillOpacity

pointInactiveFillOpacity: number = 0.3

Defined in src/theme/style-sheet/dark.ts:305

点图 inactive 状态下填充颜色透明度

pointSelectedBorder

pointSelectedBorder: number = 2

Defined in src/theme/style-sheet/dark.ts:300

点图 selected 状态下描边粗细

pointSelectedBorderColor

pointSelectedBorderColor: string = BLACK_COLORS[100]

Defined in src/theme/style-sheet/dark.ts:302

点图 selected 状态下描边颜色

pointSize

pointSize: number = 4

Defined in src/theme/style-sheet/dark.ts:288

点图大小

sliderHandlerBorder

sliderHandlerBorder: number = 1

Defined in src/theme/style-sheet/dark.ts:182

连续图例滑块边框粗细

sliderHandlerBorderColor

sliderHandlerBorderColor: string = WHITE_COLORS[25]

Defined in src/theme/style-sheet/dark.ts:184

连续图例滑块边框颜色

sliderHandlerFillColor

sliderHandlerFillColor: string = WHITE_COLORS[6]

Defined in src/theme/style-sheet/dark.ts:176

连续图例滑块颜色

sliderHandlerHeight

sliderHandlerHeight: number = 14

Defined in src/theme/style-sheet/dark.ts:180

连续图例滑块高度

sliderHandlerWidth

sliderHandlerWidth: number = 10

Defined in src/theme/style-sheet/dark.ts:178

连续图例滑块宽度

sliderLabelTextFillColor

sliderLabelTextFillColor: string = BLACK_COLORS[45]

Defined in src/theme/style-sheet/dark.ts:167

连续图例文本颜色

sliderLabelTextFontSize

sliderLabelTextFontSize: number = 12

Defined in src/theme/style-sheet/dark.ts:169

连续图例文本字体大小

sliderLabelTextFontWeight

sliderLabelTextFontWeight: string = "normal"

Defined in src/theme/style-sheet/dark.ts:173

连续图例文本字体粗细

sliderLabelTextLineHeight

sliderLabelTextLineHeight: number = 12

Defined in src/theme/style-sheet/dark.ts:171

连续图例文本行高

sliderRailBorder

sliderRailBorder: number = 0

Defined in src/theme/style-sheet/dark.ts:158

连续图例滑块边框粗细

sliderRailBorderColor

sliderRailBorderColor: null = null

Defined in src/theme/style-sheet/dark.ts:160

连续图例滑块边框颜色

sliderRailFillColor

sliderRailFillColor: string = BLACK_COLORS[15]

Defined in src/theme/style-sheet/dark.ts:156

连续图例滑块填充色

sliderRailHeight

sliderRailHeight: number = 12

Defined in src/theme/style-sheet/dark.ts:164

连续图例滑块高度

sliderRailWidth

sliderRailWidth: number = 100

Defined in src/theme/style-sheet/dark.ts:162

连续图例滑块宽度

tooltipContainerBorderRadius

tooltipContainerBorderRadius: number = 3

Defined in src/theme/style-sheet/dark.ts:238

tooltip 内容框圆角

tooltipContainerFillColor

tooltipContainerFillColor: string = "#1f1f1f"

Defined in src/theme/style-sheet/dark.ts:233

tooltip 内容框背景色

tooltipContainerFillOpacity

tooltipContainerFillOpacity: number = 0.95

Defined in src/theme/style-sheet/dark.ts:234

tooltipContainerShadow

tooltipContainerShadow: string = "0px 2px 4px rgba(0,0,0,.5)"

Defined in src/theme/style-sheet/dark.ts:236

tooltip 内容框阴影

tooltipCrosshairsBorder

tooltipCrosshairsBorder: number = 0.5

Defined in src/theme/style-sheet/dark.ts:228

tooltip crosshairs 辅助线粗细

tooltipCrosshairsBorderColor

tooltipCrosshairsBorderColor: string = BLACK_COLORS[25]

Defined in src/theme/style-sheet/dark.ts:226

tooltip crosshairs 辅助线颜色

tooltipCrosshairsLineDash

tooltipCrosshairsLineDash: null = null

Defined in src/theme/style-sheet/dark.ts:230

tooltip crosshairs 辅助线虚线间隔

tooltipTextFillColor

tooltipTextFillColor: string = BLACK_COLORS[65]

Defined in src/theme/style-sheet/dark.ts:241

tooltip 文本颜色

tooltipTextFontSize

tooltipTextFontSize: number = 12

Defined in src/theme/style-sheet/dark.ts:243

tooltip 文本字体大小

tooltipTextFontWeight

tooltipTextFontWeight: string = "bold"

Defined in src/theme/style-sheet/dark.ts:247

tooltip 文本字体粗细

tooltipTextLineHeight

tooltipTextLineHeight: number = 12

Defined in src/theme/style-sheet/dark.ts:245

tooltip 文本行高


Const antvLight

antvLight: object

Defined in src/theme/style-sheet/light.ts:60

annotationArcBorder

annotationArcBorder: number = 0.5

Defined in src/theme/style-sheet/light.ts:190

arc 图形标注粗细

annotationArcBorderColor

annotationArcBorderColor: string = BLACK_COLORS[15]

Defined in src/theme/style-sheet/light.ts:188

arc 图形标注描边颜色

annotationDataMarkerLineLength

annotationDataMarkerLineLength: number = 16

Defined in src/theme/style-sheet/light.ts:222

dataMarker 图形标注线的长度

annotationLineBorder

annotationLineBorder: number = 0.5

Defined in src/theme/style-sheet/light.ts:195

line 图形标注粗细

annotationLineBorderColor

annotationLineBorderColor: string = BLACK_COLORS[25]

Defined in src/theme/style-sheet/light.ts:193

line 图形标注颜色

annotationLineDash

annotationLineDash: null = null

Defined in src/theme/style-sheet/light.ts:197

lube 图形标注的虚线间隔

annotationRegionBorder

annotationRegionBorder: number = 0

Defined in src/theme/style-sheet/light.ts:217

region 图形标注描边粗细

annotationRegionBorderColor

annotationRegionBorderColor: null = null

Defined in src/theme/style-sheet/light.ts:219

region 图形标注描边颜色

annotationRegionFillColor

annotationRegionFillColor: string = BLACK_COLORS[100]

Defined in src/theme/style-sheet/light.ts:213

region 图形标注填充颜色

annotationRegionFillOpacity

annotationRegionFillOpacity: number = 0.06

Defined in src/theme/style-sheet/light.ts:215

region 图形标注填充颜色透明色

annotationTextBorder

annotationTextBorder: number = 1.5

Defined in src/theme/style-sheet/light.ts:210

text 图形标注文本边框粗细

annotationTextBorderColor

annotationTextBorderColor: string = WHITE_COLORS[95]

Defined in src/theme/style-sheet/light.ts:208

text 图形标注文本边框颜色

annotationTextFillColor

annotationTextFillColor: string = BLACK_COLORS[65]

Defined in src/theme/style-sheet/light.ts:200

text 图形标注文本颜色

annotationTextFontSize

annotationTextFontSize: number = 12

Defined in src/theme/style-sheet/light.ts:202

text 图形标注文本字体大小

annotationTextFontWeight

annotationTextFontWeight: string = "normal"

Defined in src/theme/style-sheet/light.ts:206

text 图形标注文本字体粗细

annotationTextLineHeight

annotationTextLineHeight: number = 12

Defined in src/theme/style-sheet/light.ts:204

text 图形标注文本行高

areaActiveFillColor

areaActiveFillColor: string = QUALITATIVE_10[0]

Defined in src/theme/style-sheet/light.ts:358

area 在 active 状态下的填充透明度

areaActiveFillOpacity

areaActiveFillOpacity: number = 0.5

Defined in src/theme/style-sheet/light.ts:359

areaFillColor

areaFillColor: string = QUALITATIVE_10[0]

Defined in src/theme/style-sheet/light.ts:353

area 填充颜色

areaFillOpacity

areaFillOpacity: number = 0.25

Defined in src/theme/style-sheet/light.ts:355

area 填充透明度

areaInactiveFillOpacity

areaInactiveFillOpacity: number = 0.3

Defined in src/theme/style-sheet/light.ts:366

area inactive 状态下填充透明度

areaSelectedFillColor

areaSelectedFillColor: string = QUALITATIVE_10[0]

Defined in src/theme/style-sheet/light.ts:362

area 在 selected 状态下的填充透明度

areaSelectedFillOpacity

areaSelectedFillOpacity: number = 0.5

Defined in src/theme/style-sheet/light.ts:363

axisGridBorder

axisGridBorder: number = 0.5

Defined in src/theme/style-sheet/light.ts:121

坐标轴网格线粗细

axisGridBorderColor

axisGridBorderColor: string = BLACK_COLORS[15]

Defined in src/theme/style-sheet/light.ts:119

坐标轴网格线颜色

axisGridLineDash

axisGridLineDash: null = null

Defined in src/theme/style-sheet/light.ts:123

坐标轴网格线虚线设置

axisLabelFillColor

axisLabelFillColor: string = BLACK_COLORS[45]

Defined in src/theme/style-sheet/light.ts:110

坐标轴刻度文本颜色

axisLabelFontSize

axisLabelFontSize: number = 12

Defined in src/theme/style-sheet/light.ts:112

坐标轴刻度文本字体大小

axisLabelFontWeight

axisLabelFontWeight: string = "normal"

Defined in src/theme/style-sheet/light.ts:116

坐标轴刻度文本字体粗细

axisLabelLineHeight

axisLabelLineHeight: number = 12

Defined in src/theme/style-sheet/light.ts:114

坐标轴刻度文本行高

axisLineBorder

axisLineBorder: number = 0.5

Defined in src/theme/style-sheet/light.ts:82

坐标轴线粗细

axisLineBorderColor

axisLineBorderColor: string = BLACK_COLORS[25]

Defined in src/theme/style-sheet/light.ts:80

坐标轴线颜色

axisLineDash

axisLineDash: null = null

Defined in src/theme/style-sheet/light.ts:84

坐标轴线 lineDash 设置

axisSubTickLineBorder

axisSubTickLineBorder: number = 0.5

Defined in src/theme/style-sheet/light.ts:107

坐标轴次刻度线粗细

axisSubTickLineBorderColor

axisSubTickLineBorderColor: string = BLACK_COLORS[15]

Defined in src/theme/style-sheet/light.ts:103

坐标轴次刻度线颜色

axisSubTickLineLength

axisSubTickLineLength: number = 2

Defined in src/theme/style-sheet/light.ts:105

坐标轴次刻度线长度

axisTickLineBorder

axisTickLineBorder: number = 0.5

Defined in src/theme/style-sheet/light.ts:100

坐标轴刻度线粗细

axisTickLineBorderColor

axisTickLineBorderColor: string = BLACK_COLORS[25]

Defined in src/theme/style-sheet/light.ts:96

坐标轴刻度线颜色

axisTickLineLength

axisTickLineLength: number = 4

Defined in src/theme/style-sheet/light.ts:98

坐标轴刻度线长度

axisTitleTextFillColor

axisTitleTextFillColor: string = BLACK_COLORS[65]

Defined in src/theme/style-sheet/light.ts:87

坐标轴标题颜色

axisTitleTextFontSize

axisTitleTextFontSize: number = 12

Defined in src/theme/style-sheet/light.ts:89

坐标轴标题文本字体大小

axisTitleTextFontWeight

axisTitleTextFontWeight: string = "normal"

Defined in src/theme/style-sheet/light.ts:93

坐标轴标题文本字体粗细

axisTitleTextLineHeight

axisTitleTextLineHeight: number = 12

Defined in src/theme/style-sheet/light.ts:91

坐标轴标题文本行高

brandColor

brandColor: string = QUALITATIVE_10[0]

Defined in src/theme/style-sheet/light.ts:62

主题色

fontFamily

fontFamily: string = "-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"

Defined in src/theme/style-sheet/light.ts:74

字体

hollowAreaActiveBorder

hollowAreaActiveBorder: number = 3

Defined in src/theme/style-sheet/light.ts:376

hollowArea active 状态下的边框粗细

hollowAreaActiveBorderColor

hollowAreaActiveBorderColor: string = BLACK_COLORS[100]

Defined in src/theme/style-sheet/light.ts:377

hollowAreaBorder

hollowAreaBorder: number = 2

Defined in src/theme/style-sheet/light.ts:371

hollowArea 边框粗细

hollowAreaBorderColor

hollowAreaBorderColor: string = QUALITATIVE_10[0]

Defined in src/theme/style-sheet/light.ts:369

hollowArea 颜色

hollowAreaBorderOpacity

hollowAreaBorderOpacity: number = 1

Defined in src/theme/style-sheet/light.ts:373

hollowArea 边框透明度

hollowAreaInactiveBorderOpacity

hollowAreaInactiveBorderOpacity: number = 0.3

Defined in src/theme/style-sheet/light.ts:384

hollowArea inactive 状态下的边框透明度

hollowAreaSelectedBorder

hollowAreaSelectedBorder: number = 3

Defined in src/theme/style-sheet/light.ts:380

hollowArea selected 状态下的边框粗细

hollowAreaSelectedBorderColor

hollowAreaSelectedBorderColor: string = BLACK_COLORS[100]

Defined in src/theme/style-sheet/light.ts:381

hollowIntervalActiveBorder

hollowIntervalActiveBorder: number = 2

Defined in src/theme/style-sheet/light.ts:418

hollowInterval active 状态下边框粗细

hollowIntervalActiveBorderColor

hollowIntervalActiveBorderColor: string = BLACK_COLORS[100]

Defined in src/theme/style-sheet/light.ts:420

hollowInterval active 状态下边框颜色

hollowIntervalBorder

hollowIntervalBorder: number = 2

Defined in src/theme/style-sheet/light.ts:410

interval 边框粗细

hollowIntervalBorderColor

hollowIntervalBorderColor: string = QUALITATIVE_10[0]

Defined in src/theme/style-sheet/light.ts:412

hollowInterval 边框颜色

hollowIntervalBorderOpacity

hollowIntervalBorderOpacity: number = 1

Defined in src/theme/style-sheet/light.ts:414

hollowInterval 边框透明度

hollowIntervalFillColor

hollowIntervalFillColor: string = WHITE_COLORS[100]

Defined in src/theme/style-sheet/light.ts:415

hollowIntervalInactiveBorderOpacity

hollowIntervalInactiveBorderOpacity: number = 0.3

Defined in src/theme/style-sheet/light.ts:430

hollowInterval inactive 状态下边框透明度

hollowIntervalSelectedBorder

hollowIntervalSelectedBorder: number = 3

Defined in src/theme/style-sheet/light.ts:423

hollowInterval selected 状态下边框粗细

hollowIntervalSelectedBorderColor

hollowIntervalSelectedBorderColor: string = BLACK_COLORS[100]

Defined in src/theme/style-sheet/light.ts:425

hollowInterval selected 状态下边框颜色

hollowIntervalSelectedBorderOpacity

hollowIntervalSelectedBorderOpacity: number = 1

Defined in src/theme/style-sheet/light.ts:427

hollowInterval selected 状态下边框透明度

hollowPointActiveBorder

hollowPointActiveBorder: number = 1

Defined in src/theme/style-sheet/light.ts:320

空心点图 active 状态下描边粗细

hollowPointActiveBorderColor

hollowPointActiveBorderColor: string = BLACK_COLORS[100]

Defined in src/theme/style-sheet/light.ts:322

空心点图 active 状态下描边颜色

hollowPointActiveBorderOpacity

hollowPointActiveBorderOpacity: number = 1

Defined in src/theme/style-sheet/light.ts:324

空心点图 active 状态下描边透明度

hollowPointBorder

hollowPointBorder: number = 1

Defined in src/theme/style-sheet/light.ts:312

空心点图描边粗细

hollowPointBorderColor

hollowPointBorderColor: string = QUALITATIVE_10[0]

Defined in src/theme/style-sheet/light.ts:314

空心点图描边颜色

hollowPointBorderOpacity

hollowPointBorderOpacity: number = 0.95

Defined in src/theme/style-sheet/light.ts:316

空心点图描边透明度

hollowPointFillColor

hollowPointFillColor: string = WHITE_COLORS[100]

Defined in src/theme/style-sheet/light.ts:317

hollowPointInactiveBorderOpacity

hollowPointInactiveBorderOpacity: number = 0.3

Defined in src/theme/style-sheet/light.ts:334

空心点图 inactive 状态下描边透明度

hollowPointSelectedBorder

hollowPointSelectedBorder: number = 2

Defined in src/theme/style-sheet/light.ts:327

空心点图 selected 状态下描边粗细

hollowPointSelectedBorderColor

hollowPointSelectedBorderColor: string = BLACK_COLORS[100]

Defined in src/theme/style-sheet/light.ts:329

空心点图 selected 状态下描边颜色

hollowPointSelectedBorderOpacity

hollowPointSelectedBorderOpacity: number = 1

Defined in src/theme/style-sheet/light.ts:331

空心点图 selected 状态下描边透明度

hollowPointSize

hollowPointSize: number = 4

Defined in src/theme/style-sheet/light.ts:310

空心点图大小

innerLabelBorder

innerLabelBorder: number = 0

Defined in src/theme/style-sheet/light.ts:275

Geometry innerLabel 文本描边粗细

innerLabelBorderColor

innerLabelBorderColor: null = null

Defined in src/theme/style-sheet/light.ts:273

Geometry innerLabel 文本描边颜色

innerLabelFillColor

innerLabelFillColor: string = WHITE_COLORS[100]

Defined in src/theme/style-sheet/light.ts:265

Geometry innerLabel 文本颜色

innerLabelFontSize

innerLabelFontSize: number = 12

Defined in src/theme/style-sheet/light.ts:267

Geometry innerLabel 文本字体大小

innerLabelFontWeight

innerLabelFontWeight: string = "normal"

Defined in src/theme/style-sheet/light.ts:271

Geometry innerLabel 文本字体粗细

innerLabelLineHeight

innerLabelLineHeight: number = 12

Defined in src/theme/style-sheet/light.ts:269

Geometry innerLabel 文本行高

intervalActiveBorder

intervalActiveBorder: number = 1

Defined in src/theme/style-sheet/light.ts:392

interval active 状态下边框粗细

intervalActiveBorderColor

intervalActiveBorderColor: string = BLACK_COLORS[100]

Defined in src/theme/style-sheet/light.ts:394

interval active 状态下边框颜色

intervalActiveBorderOpacity

intervalActiveBorderOpacity: number = 1

Defined in src/theme/style-sheet/light.ts:395

intervalFillColor

intervalFillColor: string = QUALITATIVE_10[0]

Defined in src/theme/style-sheet/light.ts:387

interval 填充颜色

intervalFillOpacity

intervalFillOpacity: number = 0.95

Defined in src/theme/style-sheet/light.ts:389

interval 填充透明度

intervalInactiveBorderOpacity

intervalInactiveBorderOpacity: number = 0.3

Defined in src/theme/style-sheet/light.ts:405

interval inactive 状态下边框透明度

intervalInactiveFillOpacity

intervalInactiveFillOpacity: number = 0.3

Defined in src/theme/style-sheet/light.ts:407

interval inactive 状态下填充透明度

intervalSelectedBorder

intervalSelectedBorder: number = 2

Defined in src/theme/style-sheet/light.ts:398

interval selected 状态下边框粗细

intervalSelectedBorderColor

intervalSelectedBorderColor: string = BLACK_COLORS[100]

Defined in src/theme/style-sheet/light.ts:400

interval selected 状态下边框颜色

intervalSelectedBorderOpacity

intervalSelectedBorderOpacity: number = 1

Defined in src/theme/style-sheet/light.ts:402

interval selected 状态下边框透明度

labelBorder

labelBorder: number = 0

Defined in src/theme/style-sheet/light.ts:262

Geometry label 文本描边粗细

labelBorderColor

labelBorderColor: null = null

Defined in src/theme/style-sheet/light.ts:260

Geometry label 文本描边颜色

labelFillColor

labelFillColor: string = BLACK_COLORS[65]

Defined in src/theme/style-sheet/light.ts:252

Geometry label 文本颜色

labelFontSize

labelFontSize: number = 12

Defined in src/theme/style-sheet/light.ts:254

Geometry label 文本字体大小

labelFontWeight

labelFontWeight: string = "normal"

Defined in src/theme/style-sheet/light.ts:258

Geometry label 文本字体粗细

labelLineBorder

labelLineBorder: number = 0.5

Defined in src/theme/style-sheet/light.ts:278

Geometry label 文本连接线粗细

labelLineBorderColor

labelLineBorderColor: string = BLACK_COLORS[25]

Defined in src/theme/style-sheet/light.ts:280

Geometry label 文本连接线颜色

labelLineHeight

labelLineHeight: number = 12

Defined in src/theme/style-sheet/light.ts:256

Geometry label 文本行高

legendCircleMarkerSize

legendCircleMarkerSize: number = 4

Defined in src/theme/style-sheet/light.ts:140

图例 'circle' marker 半径

legendItemNameFillColor

legendItemNameFillColor: string = BLACK_COLORS[65]

Defined in src/theme/style-sheet/light.ts:147

图例项文本颜色

legendItemNameFontSize

legendItemNameFontSize: number = 12

Defined in src/theme/style-sheet/light.ts:149

图例项文本字体大小

legendItemNameFontWeight

legendItemNameFontWeight: string = "normal"

Defined in src/theme/style-sheet/light.ts:153

图例项粗细

legendItemNameLineHeight

legendItemNameLineHeight: number = 12

Defined in src/theme/style-sheet/light.ts:151

图例项文本行高

legendLineMarkerSize

legendLineMarkerSize: number = 5

Defined in src/theme/style-sheet/light.ts:144

图例 'line' marker 半径

legendMarkerColor

legendMarkerColor: string = QUALITATIVE_10[0]

Defined in src/theme/style-sheet/light.ts:136

图例 marker 颜色

legendMarkerSize

legendMarkerSize: number = 4

Defined in src/theme/style-sheet/light.ts:138

图例 marker 默认半径大小

legendSquareMarkerSize

legendSquareMarkerSize: number = 4

Defined in src/theme/style-sheet/light.ts:142

图例 'square' marker 半径

legendTitleTextFillColor

legendTitleTextFillColor: string = BLACK_COLORS[45]

Defined in src/theme/style-sheet/light.ts:127

图例标题颜色

legendTitleTextFontSize

legendTitleTextFontSize: number = 12

Defined in src/theme/style-sheet/light.ts:129

图例标题文本字体大小

legendTitleTextFontWeight

legendTitleTextFontWeight: string = "normal"

Defined in src/theme/style-sheet/light.ts:133

图例标题文本字体粗细

legendTitleTextLineHeight

legendTitleTextLineHeight: number = 21

Defined in src/theme/style-sheet/light.ts:131

图例标题文本行高

lineActiveBorder

lineActiveBorder: number = 3

Defined in src/theme/style-sheet/light.ts:344

线图 Active 状态下粗细

lineBorder

lineBorder: number = 2

Defined in src/theme/style-sheet/light.ts:337

线图粗细

lineBorderColor

lineBorderColor: string = QUALITATIVE_10[0]

Defined in src/theme/style-sheet/light.ts:339

线图颜色

lineBorderOpacity

lineBorderOpacity: number = 1

Defined in src/theme/style-sheet/light.ts:341

线图透明度

lineInactiveBorderOpacity

lineInactiveBorderOpacity: number = 0.3

Defined in src/theme/style-sheet/light.ts:350

线图 inactive 状态下透明度

lineSelectedBorder

lineSelectedBorder: number = 3

Defined in src/theme/style-sheet/light.ts:347

线图 selected 状态下粗细

paletteQualitative10

paletteQualitative10: string[] = QUALITATIVE_10

Defined in src/theme/style-sheet/light.ts:64

分类色板 1,在数据量小于等于 10 时使用

paletteQualitative20

paletteQualitative20: string[] = QUALITATIVE_20

Defined in src/theme/style-sheet/light.ts:66

分类色板 2,在数据量大于 10 时使用

paletteSemanticGreen

paletteSemanticGreen: string = "#30BF78"

Defined in src/theme/style-sheet/light.ts:70

语义色

paletteSemanticRed

paletteSemanticRed: string = "#F4664A"

Defined in src/theme/style-sheet/light.ts:68

语义色

paletteSemanticYellow

paletteSemanticYellow: string = "#FAAD14"

Defined in src/theme/style-sheet/light.ts:72

语义色

pointActiveBorderColor

pointActiveBorderColor: string = BLACK_COLORS[100]

Defined in src/theme/style-sheet/light.ts:297

点图 active 状态下描边颜色

pointBorder

pointBorder: number = 1

Defined in src/theme/style-sheet/light.ts:290

点图描边粗细

pointBorderColor

pointBorderColor: string = WHITE_COLORS[100]

Defined in src/theme/style-sheet/light.ts:292

点图描边颜色

pointBorderOpacity

pointBorderOpacity: number = 1

Defined in src/theme/style-sheet/light.ts:294

点图描边透明度

pointFillColor

pointFillColor: string = QUALITATIVE_10[0]

Defined in src/theme/style-sheet/light.ts:284

点图填充颜色

pointFillOpacity

pointFillOpacity: number = 0.95

Defined in src/theme/style-sheet/light.ts:286

点图填充颜色透明度

pointInactiveBorderOpacity

pointInactiveBorderOpacity: number = 0.3

Defined in src/theme/style-sheet/light.ts:307

点图 inactive 状态下描边透明度

pointInactiveFillOpacity

pointInactiveFillOpacity: number = 0.3

Defined in src/theme/style-sheet/light.ts:305

点图 inactive 状态下填充颜色透明度

pointSelectedBorder

pointSelectedBorder: number = 2

Defined in src/theme/style-sheet/light.ts:300

点图 selected 状态下描边粗细

pointSelectedBorderColor

pointSelectedBorderColor: string = BLACK_COLORS[100]

Defined in src/theme/style-sheet/light.ts:302

点图 selected 状态下描边颜色

pointSize

pointSize: number = 4

Defined in src/theme/style-sheet/light.ts:288

点图大小

sliderHandlerBorder

sliderHandlerBorder: number = 1

Defined in src/theme/style-sheet/light.ts:182

连续图例滑块边框粗细

sliderHandlerBorderColor

sliderHandlerBorderColor: string = BLACK_COLORS[25]

Defined in src/theme/style-sheet/light.ts:184

连续图例滑块边框颜色

sliderHandlerFillColor

sliderHandlerFillColor: string = BLACK_COLORS[6]

Defined in src/theme/style-sheet/light.ts:176

连续图例滑块颜色

sliderHandlerHeight

sliderHandlerHeight: number = 14

Defined in src/theme/style-sheet/light.ts:180

连续图例滑块高度

sliderHandlerWidth

sliderHandlerWidth: number = 10

Defined in src/theme/style-sheet/light.ts:178

连续图例滑块宽度

sliderLabelTextFillColor

sliderLabelTextFillColor: string = BLACK_COLORS[45]

Defined in src/theme/style-sheet/light.ts:167

连续图例文本颜色

sliderLabelTextFontSize

sliderLabelTextFontSize: number = 12

Defined in src/theme/style-sheet/light.ts:169

连续图例文本字体大小

sliderLabelTextFontWeight

sliderLabelTextFontWeight: string = "normal"

Defined in src/theme/style-sheet/light.ts:173

连续图例文本字体粗细

sliderLabelTextLineHeight

sliderLabelTextLineHeight: number = 12

Defined in src/theme/style-sheet/light.ts:171

连续图例文本行高

sliderRailBorder

sliderRailBorder: number = 0

Defined in src/theme/style-sheet/light.ts:158

连续图例滑块边框粗细

sliderRailBorderColor

sliderRailBorderColor: null = null

Defined in src/theme/style-sheet/light.ts:160

连续图例滑块边框颜色

sliderRailFillColor

sliderRailFillColor: string = BLACK_COLORS[15]

Defined in src/theme/style-sheet/light.ts:156

连续图例滑块填充色

sliderRailHeight

sliderRailHeight: number = 12

Defined in src/theme/style-sheet/light.ts:164

连续图例滑块高度

sliderRailWidth

sliderRailWidth: number = 100

Defined in src/theme/style-sheet/light.ts:162

连续图例滑块宽度

tooltipContainerBorderRadius

tooltipContainerBorderRadius: number = 3

Defined in src/theme/style-sheet/light.ts:238

tooltip 内容框圆角

tooltipContainerFillColor

tooltipContainerFillColor: string = "rgb(255, 255, 255)"

Defined in src/theme/style-sheet/light.ts:233

tooltip 内容框背景色

tooltipContainerFillOpacity

tooltipContainerFillOpacity: number = 0.95

Defined in src/theme/style-sheet/light.ts:234

tooltipContainerShadow

tooltipContainerShadow: string = "0px 0px 10px #aeaeae"

Defined in src/theme/style-sheet/light.ts:236

tooltip 内容框阴影

tooltipCrosshairsBorder

tooltipCrosshairsBorder: number = 0.5

Defined in src/theme/style-sheet/light.ts:228

tooltip crosshairs 辅助线粗细

tooltipCrosshairsBorderColor

tooltipCrosshairsBorderColor: string = BLACK_COLORS[25]

Defined in src/theme/style-sheet/light.ts:226

tooltip crosshairs 辅助线颜色

tooltipCrosshairsLineDash

tooltipCrosshairsLineDash: null = null

Defined in src/theme/style-sheet/light.ts:230

tooltip crosshairs 辅助线虚线间隔

tooltipTextFillColor

tooltipTextFillColor: string = BLACK_COLORS[65]

Defined in src/theme/style-sheet/light.ts:241

tooltip 文本颜色

tooltipTextFontSize

tooltipTextFontSize: number = 12

Defined in src/theme/style-sheet/light.ts:243

tooltip 文本字体大小

tooltipTextFontWeight

tooltipTextFontWeight: string = "bold"

Defined in src/theme/style-sheet/light.ts:247

tooltip 文本字体粗细

tooltipTextLineHeight

tooltipTextLineHeight: number = 12

Defined in src/theme/style-sheet/light.ts:245

tooltip 文本行高