跳转到内容

pivotick v3.0.0


拓展 / GraphUI / GraphUI

接口: GraphUI ​

定义于:interfaces/GraphUI.ts:114

属性 ​

asyncContent? ​

optional asyncContent: AsyncContentOptions

定义于:interfaces/GraphUI.ts:253

/**

  • 当内容挂钩的承诺正在实施时要显示什么,以及如果
  • 拒绝。只有异步钩子才能到达它 - 请参阅AsyncContentOptions。

busyIndicator? ​

optional busyIndicator: boolean | BusyIndicatorOptions

定义于:interfaces/GraphUI.ts:247

画布在等待异步挂钩之一(onBeforeEdgeCreate、onBeforeDelete、onBeforeNodeCreate、编辑提交挂钩、onBeforeIngest)时显示的内容:一个进度光标和一个小微调器,而当挂钩通过其上下文打开的提示出现在屏幕上时,不会显示该内容。对于自己绘制的消费者来说,false什么也没显示。参见BusyIndicatorOptions。

默认值 ​

ts
true

contextMenu ​

contextMenu: ContextMenu

定义于:interfaces/GraphUI.ts:129


dock? ​

optional dock: DockOptions

定义于:interfaces/GraphUI.ts:270

底部停靠区本身 - 表和任何注册的 DockTab 共享的区域,而不是其中的内容。

UI.table 具有相同的三个设置;这些都受到尊重,这里设置的任何内容都会获胜。当表格关闭时在此处声明它们,因为这是到达插件选项卡带来的扩展坞的唯一方法。


editors ​

editors: Editors

定义于:interfaces/GraphUI.ts:131


emptyState? ​

optional emptyState: boolean | EmptyStateOptions

定义于:interfaces/GraphUI.ts:238

当图表没有节点和注释时,画布上的内容是:一张卡片位于画布的中心,随着数据的进出而显示和隐藏,因此摄取会将其带走,撤消摄取会将其带回来。

省略,或true,它显示“画布上还没有任何内容”。 false什么也没显示。声明 render 说出你自己的话。参见EmptyStateOptions。

默认值 ​

ts
true

extraPanels ​

extraPanels: ExtraPanel[]

定义于:interfaces/GraphUI.ts:127


filter? ​

optional filter: FilterOptions

定义于:interfaces/GraphUI.ts:207

过滤器面板的面。省略通过扫描节点数据来导出它们(零配置默认值);声明 facets 来从您自己的声明生成表单。参见FilterOptions。


history? ​

optional history: FeatureToggle

定义于:interfaces/GraphUI.ts:168

撤消/重做拆分按钮、其历史记录下拉列表和 Mod+Z / Mod+Shift+Z。

只有控制:graph.history继续以任何方式进行记录,因此用户从自己的镀铬物上进行撤消操作会关闭此功能并保持引擎运行。

默认值 ​

ts
{ enabled: true }

inspector? ​

optional inspector: FeatureToggle

定义于:interfaces/GraphUI.ts:174

检查属性模式 - 节点菜单的 Inspect Properties 条目和 I 快捷方式。

默认值 ​

ts
{ enabled: true }

keybindings? ​

optional keybindings: Keybinding[]

定义于:interfaces/GraphUI.ts:284


legend? ​

optional legend: boolean | LegendOptions | LegendGroupOptions

定义于:interfaces/GraphUI.ts:218

画布图例:图形颜色的键,兼作过滤器。

排除在外,当图形的颜色由声明的 render.nodeTypeAccessor 解释时,图例本身会出现**** — 请参阅LegendOptions。 false抑制它,true在不检查的情况下请求它,并且一个对象配置它。一次对多个事物进行编码的图会传递 LegendGroupOptions:一张对接卡,每个编码一个部分。


mainHeader ​

mainHeader: MainHeader

定义于:interfaces/GraphUI.ts:124


minimap? ​

optional minimap: boolean | MinimapOptions

定义于:interfaces/GraphUI.ts:228

画布小地图:整个图表的概述,其中一个矩形显示屏幕上的内容。单击它可以重新显示视图,拖动它可以平移。

full 模式会为您安装一个,以 collapsed: 'auto' 打开,因此它会自动折叠在画布上,没有多余的角落。 false 抑制它; true 或对象在任何模式下请求它 - 请参阅MinimapOptions。在 plugins 中传递你自己的 minimap() 插件也能解决这个问题。


mode ​

mode: GraphUIMode

定义于:interfaces/GraphUI.ts:115


navigation: Navigation

定义于:interfaces/GraphUI.ts:130


neighborsPanel ​

neighborsPanel: NeighborsPanel

定义于:interfaces/GraphUI.ts:126


notes? ​

optional notes: FeatureToggle

定义于:interfaces/GraphUI.ts:154

画布上自由浮动的注释:条带的 Notes 按钮及其面板、创建 ▸ 添加注释工具、画布菜单的 添加注释 以及 N / Shift+N 快捷键。

enabled: false将它们中的每一个都拿走,和关上它们身后的门:graph.noteManager.addNote拒绝,所以没有任何东西(不是插件,不是初始数据)在画布上添加注释,无法提供读取或删除注释的方式。

默认值 ​

ts
{ enabled: true }

notifications? ​

optional notifications: FeatureToggle

定义于:interfaces/GraphUI.ts:181

吐司通知。 enabled: false 使角落安静下来:每个 graph.notifier.* 调用都变成无操作返回 undefined,这已经是没有通知槽的模式返回的结果。

默认值 ​

ts
{ enabled: true }

physicsFlyout? ​

optional physicsFlyout: FeatureToggle

定义于:interfaces/GraphUI.ts:194

Physics 轨道模式 - 包含模拟滑块和预设的弹出按钮。 enabled: false 将其导轨按钮及其面板拿走;模拟是否运行是simulation.enabled的事。

默认值 ​

ts
{ enabled: true }

pivotMode? ​

optional pivotMode: boolean | "auto"

定义于:interfaces/GraphUI.ts:283

拓展轨道模式——分析师选择一个起点,读取每个注册拓展广告的内容,缩小范围并运行它。

'auto'(默认值)将轨道按钮与注册表联系起来:当第一个拓展注册时它会出现,当最后一个拓展离开时它会消失,因此没有拓展的消费者看不到该功能的痕迹。对于异步到达的拓展,true无论如何都将其保留在那里; false从不表现出来。切勿以 viewer 或 static 模式安装。

默认值 ​

ts
'auto'

propertiesPanel ​

propertiesPanel: PropertiesPanel

定义于:interfaces/GraphUI.ts:125


optional search: FeatureToggle

定义于:interfaces/GraphUI.ts:160

节点搜索:标题的 Search 按钮、其选择器模式和 Shift+J。 graph.selectElement 和打开的选择器其他功能保持不变。

默认值 ​

ts
{ enabled: true }

sidebar: SidebarOptions

定义于:interfaces/GraphUI.ts:123


simplify? ​

optional simplify: SimplifyOptions

定义于:interfaces/GraphUI.ts:201

将扮演相同角色的节点折叠为一组节点,以及切换规则的Simplify导轨模式。忽略,full模式提供关闭邻居规则;除非声明规则,否则其他模式不会显示和运行任何内容。 enabled: false 删除该功能。


table? ​

optional table: boolean | TableOptions

定义于:interfaces/GraphUI.ts:261

数据停靠区:图形的节点和边作为可排序、可选择的网格从画布底部分开。

full模式默认提供1个; false 完全抑制它,由一个对象配置它。其他模式永远不会安装它。参见TableOptions。


theme? ​

optional theme: string

定义于:interfaces/GraphUI.ts:122

主题的类名,强制 UI 忽略用户喜欢的配色方案。默认可用:light 和 dark。保留undefined以使用用户喜欢的配色方案。

默认值 ​

ts
undefined

tooltip ​

tooltip: Tooltip

定义于:interfaces/GraphUI.ts:128


topBar? ​

optional topBar: TopBar

定义于:interfaces/GraphUI.ts:143

画布顶部的条带:搜索/过滤/注释药丸、主持人自己的 TopBar.actions 和撤消重做组。 enabled: false 删除条带、它保留的 48px 以及它的控件拥有的快捷方式。

不要与 GraphUI.mainHeader 混淆,这就是元素在任何位置显示的命名的方式。每颗药丸都有自己的开关(GraphUI.search、UI.filter.enabled、GraphUI.notes、GraphUI.history),用于拿走一个而不是全部。

默认值 ​

ts
{ enabled: true }

viewFlyout? ​

optional viewFlyout: FeatureToggle

定义于:interfaces/GraphUI.ts:187

View 轨道模式 - 弹出控件包含布局、网格和可见性开关。 enabled: false 将其导轨按钮及其面板拿走。

默认值 ​

ts
{ enabled: true }