跳转到内容

pivotick v3.0.0


拓展 / GraphUI / LegendSection

接口: LegendSection ​

定义于:interfaces/GraphUI.ts:584

图例的一部分:数据一维的键。这些是LegendOptions减去position——一个部分永远不会占据画布的一角,它所在的卡片会占据(参见LegendGroupOptions)。

派生类型 ​

属性 ​

collapsed? ​

optional collapsed: boolean

定义于:interfaces/GraphUI.ts:626

开始崩溃了。

默认值 ​

ts
false

collapsible? ​

optional collapsible: boolean

定义于:interfaces/GraphUI.ts:624

默认值 ​

ts
true

enabled? ​

optional enabled: boolean

定义于:interfaces/GraphUI.ts:586

默认值 ​

ts
true when the block is present

entries? ​

optional entries: LegendEntry[] | (graph) => LegendEntry[]

定义于:interfaces/GraphUI.ts:622

声明的条目,或每次图例重建时根据实时图表重新解析的函数(以便列表可以跟随数据)。


filterable? ​

optional filterable: boolean

定义于:interfaces/GraphUI.ts:630

单击条目可过滤图表。 false 呈现纯键。

默认值 ​

ts
true

highlightOnHover? ​

optional highlightOnHover: boolean

定义于:interfaces/GraphUI.ts:637

将条目悬停在画布上可以读取其类别:它所代表的元素保持其外观,其他所有内容都会变暗,直到指针离开。也适用于 filterable: false 键——指向一个类别不需要任何图表。

默认值 ​

ts
true

id? ​

optional id: string

定义于:interfaces/GraphUI.ts:605

稳定身份:该部分自己的过滤键(__legend:<id>)和legendToggle事件的section字段。

默认值 ​

key,否则section-<index>


key? ​

optional key: string

定义于:interfaces/GraphUI.ts:617

派生模式:数据键,其不同值成为条目,每个样本都是从渲染器解析的样式中采样的。当scope为'edge'时,读取节点或边缘。当 entries 声明时没有谓词时,还提供默认谓词。


maxVisibleEntries? ​

optional maxVisibleEntries: number

定义于:interfaces/GraphUI.ts:639

列表滚动之前显示的条目。

默认值 ​

ts
12

scope? ​

optional scope: LegendScope

定义于:interfaces/GraphUI.ts:599

本节重点关注哪个集合。 'edge' 使用 line 样本列出图形的关系类型 - 渲染器解析它们时的描边颜色、破折号和标记 - 以及它的切换隐藏边缘 layers:节点保持不变,布局、选择和相机也保持不变。

edge 部分会过滤 UI.filter.edgeFacets 是否声明其键:给定一个它驱动该方面,因此面板和图例是一个过滤器的两个视图;如果没有一个,它就会保留自己的一个方面。

默认值 ​

ts
'node'

showCounts? ​

optional showCounts: boolean

定义于:interfaces/GraphUI.ts:628

显示每个条目的元素计数。

默认值 ​

ts
true

title? ​

optional title: string

定义于:interfaces/GraphUI.ts:610

标题文本,逐字使用(因此可以翻译)。

默认值 ​

美化的key,否则'Legend'