obsidian-typings 2.41.3 → 2.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/bun.lockb +0 -0
- package/dist/cjs/implementations.d.cts +116 -3
- package/dist/cjs/types.d.cts +122 -7
- package/dist/obsidian-typings.api.json +2424 -184
- package/package.json +8 -8
- package/tsconfig.tsbuildinfo +1 -1
package/README.md
CHANGED
|
@@ -88,7 +88,7 @@ Be aware that the typings currently only cover a subset of the full API: while m
|
|
|
88
88
|
To access types from the `obsidian` module, the import syntax does not change:
|
|
89
89
|
|
|
90
90
|
```ts
|
|
91
|
-
import { App } from 'obsidian';
|
|
91
|
+
import type { App } from 'obsidian';
|
|
92
92
|
|
|
93
93
|
function printInternalPlugins(app: App): void {
|
|
94
94
|
console.log(app.internalPlugins);
|
|
@@ -100,7 +100,7 @@ function printInternalPlugins(app: App): void {
|
|
|
100
100
|
Additional interfaces added by this package (which do not exist in the official API), can be imported using:
|
|
101
101
|
|
|
102
102
|
```ts
|
|
103
|
-
import { InternalPlugins } from 'obsidian-typings';
|
|
103
|
+
import type { InternalPlugins } from 'obsidian-typings';
|
|
104
104
|
|
|
105
105
|
const internalPlugins: InternalPlugins = this.app.internalPlugins;
|
|
106
106
|
```
|
package/bun.lockb
CHANGED
|
Binary file
|
|
@@ -7,7 +7,7 @@ import { App as App$1, BrowserWindow } from 'electron';
|
|
|
7
7
|
import moment$1 from 'moment';
|
|
8
8
|
import { FSWatcher } from 'node:fs';
|
|
9
9
|
import { App, BlockCache, CacheItem, CachedMetadata, CloseableComponent, ColorComponent, Command, Component, DataAdapter, Debouncer, EditableFileView, Editor, EditorPosition, EditorRange, EditorRangeOrCaret, EditorSuggest, EmbedCache, EventRef, Events, FileStats, FileView, FrontmatterLinkCache, FuzzySuggestModal, HoverLinkSource, HoverPopover, IconName, ItemView, KeymapInfo, LinkCache, MarkdownEditView, MarkdownFileInfo, MarkdownPostProcessorContext, MarkdownPreviewView, MarkdownView, Menu, Modal, PaneType, Platform, Plugin as Plugin$1, PluginManifest, PluginSettingTab, Reference, ReferenceCache, Scope, SearchComponent, SearchResult, Setting, SettingTab, SplitDirection, TAbstractFile, TFile, TFolder, TextComponent, TextFileView, Vault, View, ViewCreator, ViewState, Workspace, WorkspaceLeaf, WorkspaceTabs } from 'obsidian';
|
|
10
|
-
import { Application, Container, Graphics, Text as Text$1 } from 'pixi.js';
|
|
10
|
+
import { Application, Container, Graphics, ICanvas, Text as Text$1, TextStyle } from 'pixi.js';
|
|
11
11
|
|
|
12
12
|
/** @public */
|
|
13
13
|
export class GraphColorGroup {
|
|
@@ -3333,6 +3333,15 @@ export interface GraphColorGroupOptionsGroup {
|
|
|
3333
3333
|
el: HTMLDivElement;
|
|
3334
3334
|
query: TextComponent;
|
|
3335
3335
|
}
|
|
3336
|
+
/**
|
|
3337
|
+
* Graph data.
|
|
3338
|
+
*
|
|
3339
|
+
* @public
|
|
3340
|
+
*/
|
|
3341
|
+
export interface GraphData {
|
|
3342
|
+
nodes: Record<string, GraphNode>;
|
|
3343
|
+
weights: Record<string, number>;
|
|
3344
|
+
}
|
|
3336
3345
|
/** @public */
|
|
3337
3346
|
export interface GraphDisplayOptions extends GraphOptions {
|
|
3338
3347
|
}
|
|
@@ -3405,6 +3414,17 @@ export interface GraphFilterOptions extends GraphOptions {
|
|
|
3405
3414
|
/** @public */
|
|
3406
3415
|
export interface GraphForceOptions extends GraphOptions {
|
|
3407
3416
|
}
|
|
3417
|
+
/**
|
|
3418
|
+
* Graph forces.
|
|
3419
|
+
*
|
|
3420
|
+
* @public
|
|
3421
|
+
*/
|
|
3422
|
+
export interface GraphForces {
|
|
3423
|
+
centerStrength?: number;
|
|
3424
|
+
linkDistance?: number;
|
|
3425
|
+
linkStrength?: number;
|
|
3426
|
+
repelStrength?: number;
|
|
3427
|
+
}
|
|
3408
3428
|
/** @public */
|
|
3409
3429
|
export interface GraphLink {
|
|
3410
3430
|
/** @internal */
|
|
@@ -3489,11 +3509,21 @@ export interface GraphNode {
|
|
|
3489
3509
|
* @returns The size of the node
|
|
3490
3510
|
*/
|
|
3491
3511
|
getSize(): number;
|
|
3512
|
+
/**
|
|
3513
|
+
* Get the text style of the node.
|
|
3514
|
+
*
|
|
3515
|
+
* @returns The text style of the node.
|
|
3516
|
+
*/
|
|
3517
|
+
getTextStyle(): TextStyle;
|
|
3492
3518
|
/**
|
|
3493
3519
|
* Initialize the node, text, listeners, and add them to the scene
|
|
3494
3520
|
* @internal
|
|
3495
3521
|
*/
|
|
3496
3522
|
initGraphics(): void;
|
|
3523
|
+
/**
|
|
3524
|
+
* Render the node.
|
|
3525
|
+
*/
|
|
3526
|
+
render(): void;
|
|
3497
3527
|
}
|
|
3498
3528
|
/** @public */
|
|
3499
3529
|
export interface GraphOptions extends TreeItem<unknown> {
|
|
@@ -3553,42 +3583,60 @@ export interface GraphPluginInstanceOptions {
|
|
|
3553
3583
|
export interface GraphRenderer {
|
|
3554
3584
|
/** @internal */
|
|
3555
3585
|
colors: Record<GraphColor, GraphColorAttributes>;
|
|
3586
|
+
containerEl: HTMLDivElement;
|
|
3556
3587
|
/** @internal */
|
|
3557
3588
|
dragNode: GraphNode | null;
|
|
3558
3589
|
/** @internal */
|
|
3559
3590
|
fLineSizeMult: number;
|
|
3560
3591
|
/** @internal */
|
|
3561
3592
|
fNodeSizeMult: number;
|
|
3593
|
+
fShowArrow: boolean;
|
|
3594
|
+
fTextShowMult: number;
|
|
3562
3595
|
/** @internal */
|
|
3563
3596
|
hanger: Container;
|
|
3564
3597
|
/** @internal */
|
|
3565
3598
|
height: number;
|
|
3599
|
+
hidePowerTag: boolean;
|
|
3600
|
+
highlightNode: GraphNode | null;
|
|
3566
3601
|
/** @internal */
|
|
3567
3602
|
idleFrames: number;
|
|
3568
3603
|
/** @internal */
|
|
3604
|
+
iframeEl: HTMLIFrameElement;
|
|
3605
|
+
/** @internal */
|
|
3569
3606
|
interactiveEl: HTMLCanvasElement;
|
|
3607
|
+
keyboardActions: KeyboardActions;
|
|
3570
3608
|
/** @internal */
|
|
3571
3609
|
links: GraphLink[];
|
|
3610
|
+
mouseX: null;
|
|
3611
|
+
mouseY: null;
|
|
3612
|
+
nodeLookup: Record<string, GraphNode>;
|
|
3572
3613
|
/** @internal */
|
|
3573
3614
|
nodes: GraphNode[];
|
|
3574
3615
|
/** @internal */
|
|
3575
3616
|
nodeScale: number;
|
|
3617
|
+
panning: boolean;
|
|
3618
|
+
panvX: number;
|
|
3619
|
+
panvY: number;
|
|
3576
3620
|
/** @internal */
|
|
3577
3621
|
panX: number;
|
|
3578
3622
|
/** @internal */
|
|
3579
3623
|
panY: number;
|
|
3624
|
+
powerTag: PowerTag;
|
|
3580
3625
|
/** @internal */
|
|
3581
3626
|
px: Application;
|
|
3627
|
+
renderTimer: null | number;
|
|
3582
3628
|
/** @internal */
|
|
3583
3629
|
scale: number;
|
|
3584
3630
|
/** @internal */
|
|
3585
3631
|
targetScale: number;
|
|
3632
|
+
textAlpha: number;
|
|
3586
3633
|
/** @internal */
|
|
3587
3634
|
viewport: Coords;
|
|
3588
3635
|
/** @internal */
|
|
3589
3636
|
width: number;
|
|
3590
3637
|
/** @internal */
|
|
3591
3638
|
worker: Worker;
|
|
3639
|
+
workerResults: WorkerResults;
|
|
3592
3640
|
/** @internal */
|
|
3593
3641
|
zoomCenterX: number;
|
|
3594
3642
|
/** @internal */
|
|
@@ -3596,15 +3644,42 @@ export interface GraphRenderer {
|
|
|
3596
3644
|
/**
|
|
3597
3645
|
* Specify that the renderer has changed and needs to be rendered again
|
|
3598
3646
|
*/
|
|
3599
|
-
changed():
|
|
3647
|
+
changed(): void;
|
|
3648
|
+
destroy(): void;
|
|
3649
|
+
/** @internal */
|
|
3650
|
+
destroyGraphics(): void;
|
|
3651
|
+
getBackgroundScreenshot(): HTMLCanvasElement;
|
|
3600
3652
|
/** @internal */
|
|
3601
|
-
getHighlightNode(): GraphNode;
|
|
3653
|
+
getHighlightNode(): GraphNode | null;
|
|
3654
|
+
getTransparentScreenshot(): ICanvas;
|
|
3655
|
+
/** @internal */
|
|
3656
|
+
initGraphics(): void;
|
|
3657
|
+
onIframeLoad(): void;
|
|
3658
|
+
onIframeUnload(): void;
|
|
3659
|
+
onMouseMove(evt: MouseEvent): void;
|
|
3660
|
+
onNodeClick(evt: MouseEvent, id: string, type: string): void;
|
|
3661
|
+
onNodeHover(evt: MouseEvent, id: string, type: string): void;
|
|
3662
|
+
onNodeRightClick(evt: MouseEvent, id: string, type: string): void;
|
|
3663
|
+
onNodeUnhover(): void;
|
|
3664
|
+
onPointerDown(renderer: GraphRenderer, evt: PointerEvent): void;
|
|
3665
|
+
onPointerOut(): void;
|
|
3666
|
+
onPointerOver(renderer: GraphRenderer, evt: PointerEvent): void;
|
|
3667
|
+
onResize(): void;
|
|
3668
|
+
onWheel(evt: WheelEvent): void;
|
|
3669
|
+
queueRender(): void;
|
|
3602
3670
|
/** @internal */
|
|
3603
3671
|
renderCallback(): void;
|
|
3672
|
+
resetPan(): void;
|
|
3673
|
+
setData(data: GraphData): void;
|
|
3674
|
+
setForces(forces: GraphForces): void;
|
|
3604
3675
|
/** @internal */
|
|
3605
3676
|
setPan(panX: number, panY: number): void;
|
|
3677
|
+
setRenderOptions(options: GraphPluginInstanceOptions): void;
|
|
3606
3678
|
/** @internal */
|
|
3607
3679
|
setScale(scale: number): void;
|
|
3680
|
+
testCSS(): void;
|
|
3681
|
+
updateZoom(): void;
|
|
3682
|
+
zoomTo(scale: number, pointer: Pointer): void;
|
|
3608
3683
|
}
|
|
3609
3684
|
/** @todo Documentation incomplete */
|
|
3610
3685
|
/** @public */
|
|
@@ -4019,6 +4094,20 @@ export interface KeyScope {
|
|
|
4019
4094
|
*/
|
|
4020
4095
|
func(): void;
|
|
4021
4096
|
}
|
|
4097
|
+
/**
|
|
4098
|
+
* Keyboard actions.
|
|
4099
|
+
*
|
|
4100
|
+
* @public
|
|
4101
|
+
*/
|
|
4102
|
+
export interface KeyboardActions {
|
|
4103
|
+
down?: boolean;
|
|
4104
|
+
left?: boolean;
|
|
4105
|
+
right?: boolean;
|
|
4106
|
+
shift?: boolean;
|
|
4107
|
+
up?: boolean;
|
|
4108
|
+
zoomin?: boolean;
|
|
4109
|
+
zoomout?: boolean;
|
|
4110
|
+
}
|
|
4022
4111
|
/** @todo Documentation incomplete */
|
|
4023
4112
|
/** @public */
|
|
4024
4113
|
export interface LeafEntry {
|
|
@@ -5209,6 +5298,20 @@ export interface Pointer {
|
|
|
5209
5298
|
/** @public */
|
|
5210
5299
|
export interface PositionedReference extends Reference, CacheItem {
|
|
5211
5300
|
}
|
|
5301
|
+
/**
|
|
5302
|
+
* Power tag.
|
|
5303
|
+
*
|
|
5304
|
+
* @public
|
|
5305
|
+
*/
|
|
5306
|
+
export interface PowerTag {
|
|
5307
|
+
rendered: boolean;
|
|
5308
|
+
renderer: GraphRenderer;
|
|
5309
|
+
text: Text$1;
|
|
5310
|
+
clearGraphics(): void;
|
|
5311
|
+
getTextStyle(): TextStyle;
|
|
5312
|
+
initGraphics(): void;
|
|
5313
|
+
render(): void;
|
|
5314
|
+
}
|
|
5212
5315
|
/** @public */
|
|
5213
5316
|
export interface PromisedQueue {
|
|
5214
5317
|
promise: Promise<unknown>;
|
|
@@ -6583,6 +6686,16 @@ export interface WordCountPluginInstance extends InternalPluginInstance<WordCoun
|
|
|
6583
6686
|
defaultOn: true;
|
|
6584
6687
|
plugin: WordCountPlugin;
|
|
6585
6688
|
}
|
|
6689
|
+
/**
|
|
6690
|
+
* Worker results.
|
|
6691
|
+
*
|
|
6692
|
+
* @public
|
|
6693
|
+
*/
|
|
6694
|
+
export interface WorkerResults {
|
|
6695
|
+
buffer: SharedArrayBuffer;
|
|
6696
|
+
id: number[];
|
|
6697
|
+
v?: number;
|
|
6698
|
+
}
|
|
6586
6699
|
/** @public */
|
|
6587
6700
|
export interface WorkspaceHoverLinkSourcesRecord extends Record<string, HoverLinkSource> {
|
|
6588
6701
|
}
|
package/dist/cjs/types.d.cts
CHANGED
|
@@ -12,7 +12,7 @@ import { FSWatcher, Stats } from 'node:fs';
|
|
|
12
12
|
import * as fsPromises from 'node:fs/promises';
|
|
13
13
|
import * as path from 'node:path';
|
|
14
14
|
import { App, BlockCache, CacheItem, CachedMetadata, CloseableComponent, ColorComponent, Command, Component, Constructor, DataAdapter, Debouncer, EditableFileView, Editor, EditorPosition, EditorRange, EditorRangeOrCaret, EditorSuggest, EmbedCache, EventRef, Events, FileStats, FileView, FrontmatterLinkCache, FuzzySuggestModal, HoverLinkSource, HoverPopover, IconName, ItemView, KeymapInfo, LinkCache, MarkdownEditView, MarkdownFileInfo, MarkdownPostProcessorContext, MarkdownPreviewView, MarkdownView, Menu, Modal, Notice as _Notice, ObsidianProtocolData, PaneType, Platform, Plugin as Plugin, PluginManifest, PluginSettingTab, Reference, ReferenceCache, Scope, SearchComponent, SearchResult, Setting, SettingTab, SplitDirection, TAbstractFile, TFile, TFolder, TextComponent, TextFileView, Vault, View, ViewCreator, ViewState, Workspace, WorkspaceLeaf, WorkspaceTabs, request as _request, requestUrl as _requestUrl } from 'obsidian';
|
|
15
|
-
import { Application, Container, Graphics, Text as Text$1 } from 'pixi.js';
|
|
15
|
+
import { Application, Container, Graphics, ICanvas, Text as Text$1, TextStyle } from 'pixi.js';
|
|
16
16
|
import _TurndownService from 'turndown';
|
|
17
17
|
|
|
18
18
|
declare global {
|
|
@@ -370,7 +370,6 @@ declare module "obsidian" {
|
|
|
370
370
|
* @param normalizedNewPath New path to file
|
|
371
371
|
* @param shouldSkipDeletionTimeout Whether the deletion timeout should be skipped (default: `true`)
|
|
372
372
|
* @returns A promise that resolves when the file is reconciled
|
|
373
|
-
*
|
|
374
373
|
* @internal
|
|
375
374
|
*/
|
|
376
375
|
reconcileDeletion(normalizedPath: string, normalizedNewPath: string, shouldSkipDeletionTimeout?: boolean): Promise<void>;
|
|
@@ -381,7 +380,6 @@ declare module "obsidian" {
|
|
|
381
380
|
* @param normalizedNewPath New path to file
|
|
382
381
|
* @param shouldSkipDeletionTimeout Whether the deletion timeout should be skipped - applies only to {@link reconcileDeletion}
|
|
383
382
|
* @returns A promise that resolves when the file is reconciled
|
|
384
|
-
*
|
|
385
383
|
* @internal
|
|
386
384
|
*/
|
|
387
385
|
reconcileFile(normalizedPath: string, normalizedNewPath: string, shouldSkipDeletionTimeout?: boolean): Promise<void>;
|
|
@@ -1191,9 +1189,13 @@ declare module "obsidian" {
|
|
|
1191
1189
|
*/
|
|
1192
1190
|
insertBlock(start: string, end: string): void;
|
|
1193
1191
|
/**
|
|
1194
|
-
* Get the closest character position to the specified coordinates
|
|
1192
|
+
* Get the closest character position to the specified coordinates.
|
|
1193
|
+
*
|
|
1194
|
+
* @param x - The `x` coordinate.
|
|
1195
|
+
* @param y - The `y` coordinate.
|
|
1196
|
+
* @returns The closest character position to the specified coordinates.
|
|
1195
1197
|
*/
|
|
1196
|
-
posAtCoords(
|
|
1198
|
+
posAtCoords(x: number, y: number): EditorPosition;
|
|
1197
1199
|
/**
|
|
1198
1200
|
* Removes all highlights of specified class
|
|
1199
1201
|
*/
|
|
@@ -6613,6 +6615,15 @@ export interface GraphColorGroupOptionsGroup {
|
|
|
6613
6615
|
el: HTMLDivElement;
|
|
6614
6616
|
query: TextComponent;
|
|
6615
6617
|
}
|
|
6618
|
+
/**
|
|
6619
|
+
* Graph data.
|
|
6620
|
+
*
|
|
6621
|
+
* @public
|
|
6622
|
+
*/
|
|
6623
|
+
export interface GraphData {
|
|
6624
|
+
nodes: Record<string, GraphNode>;
|
|
6625
|
+
weights: Record<string, number>;
|
|
6626
|
+
}
|
|
6616
6627
|
/** @public */
|
|
6617
6628
|
export interface GraphDisplayOptions extends GraphOptions {
|
|
6618
6629
|
}
|
|
@@ -6685,6 +6696,17 @@ export interface GraphFilterOptions extends GraphOptions {
|
|
|
6685
6696
|
/** @public */
|
|
6686
6697
|
export interface GraphForceOptions extends GraphOptions {
|
|
6687
6698
|
}
|
|
6699
|
+
/**
|
|
6700
|
+
* Graph forces.
|
|
6701
|
+
*
|
|
6702
|
+
* @public
|
|
6703
|
+
*/
|
|
6704
|
+
export interface GraphForces {
|
|
6705
|
+
centerStrength?: number;
|
|
6706
|
+
linkDistance?: number;
|
|
6707
|
+
linkStrength?: number;
|
|
6708
|
+
repelStrength?: number;
|
|
6709
|
+
}
|
|
6688
6710
|
/** @public */
|
|
6689
6711
|
export interface GraphLink {
|
|
6690
6712
|
/** @internal */
|
|
@@ -6769,11 +6791,21 @@ export interface GraphNode {
|
|
|
6769
6791
|
* @returns The size of the node
|
|
6770
6792
|
*/
|
|
6771
6793
|
getSize(): number;
|
|
6794
|
+
/**
|
|
6795
|
+
* Get the text style of the node.
|
|
6796
|
+
*
|
|
6797
|
+
* @returns The text style of the node.
|
|
6798
|
+
*/
|
|
6799
|
+
getTextStyle(): TextStyle;
|
|
6772
6800
|
/**
|
|
6773
6801
|
* Initialize the node, text, listeners, and add them to the scene
|
|
6774
6802
|
* @internal
|
|
6775
6803
|
*/
|
|
6776
6804
|
initGraphics(): void;
|
|
6805
|
+
/**
|
|
6806
|
+
* Render the node.
|
|
6807
|
+
*/
|
|
6808
|
+
render(): void;
|
|
6777
6809
|
}
|
|
6778
6810
|
/** @public */
|
|
6779
6811
|
export interface GraphOptions extends TreeItem<unknown> {
|
|
@@ -6833,42 +6865,60 @@ export interface GraphPluginInstanceOptions {
|
|
|
6833
6865
|
export interface GraphRenderer {
|
|
6834
6866
|
/** @internal */
|
|
6835
6867
|
colors: Record<GraphColor, GraphColorAttributes>;
|
|
6868
|
+
containerEl: HTMLDivElement;
|
|
6836
6869
|
/** @internal */
|
|
6837
6870
|
dragNode: GraphNode | null;
|
|
6838
6871
|
/** @internal */
|
|
6839
6872
|
fLineSizeMult: number;
|
|
6840
6873
|
/** @internal */
|
|
6841
6874
|
fNodeSizeMult: number;
|
|
6875
|
+
fShowArrow: boolean;
|
|
6876
|
+
fTextShowMult: number;
|
|
6842
6877
|
/** @internal */
|
|
6843
6878
|
hanger: Container;
|
|
6844
6879
|
/** @internal */
|
|
6845
6880
|
height: number;
|
|
6881
|
+
hidePowerTag: boolean;
|
|
6882
|
+
highlightNode: GraphNode | null;
|
|
6846
6883
|
/** @internal */
|
|
6847
6884
|
idleFrames: number;
|
|
6848
6885
|
/** @internal */
|
|
6886
|
+
iframeEl: HTMLIFrameElement;
|
|
6887
|
+
/** @internal */
|
|
6849
6888
|
interactiveEl: HTMLCanvasElement;
|
|
6889
|
+
keyboardActions: KeyboardActions;
|
|
6850
6890
|
/** @internal */
|
|
6851
6891
|
links: GraphLink[];
|
|
6892
|
+
mouseX: null;
|
|
6893
|
+
mouseY: null;
|
|
6894
|
+
nodeLookup: Record<string, GraphNode>;
|
|
6852
6895
|
/** @internal */
|
|
6853
6896
|
nodes: GraphNode[];
|
|
6854
6897
|
/** @internal */
|
|
6855
6898
|
nodeScale: number;
|
|
6899
|
+
panning: boolean;
|
|
6900
|
+
panvX: number;
|
|
6901
|
+
panvY: number;
|
|
6856
6902
|
/** @internal */
|
|
6857
6903
|
panX: number;
|
|
6858
6904
|
/** @internal */
|
|
6859
6905
|
panY: number;
|
|
6906
|
+
powerTag: PowerTag;
|
|
6860
6907
|
/** @internal */
|
|
6861
6908
|
px: Application;
|
|
6909
|
+
renderTimer: null | number;
|
|
6862
6910
|
/** @internal */
|
|
6863
6911
|
scale: number;
|
|
6864
6912
|
/** @internal */
|
|
6865
6913
|
targetScale: number;
|
|
6914
|
+
textAlpha: number;
|
|
6866
6915
|
/** @internal */
|
|
6867
6916
|
viewport: Coords;
|
|
6868
6917
|
/** @internal */
|
|
6869
6918
|
width: number;
|
|
6870
6919
|
/** @internal */
|
|
6871
6920
|
worker: Worker;
|
|
6921
|
+
workerResults: WorkerResults;
|
|
6872
6922
|
/** @internal */
|
|
6873
6923
|
zoomCenterX: number;
|
|
6874
6924
|
/** @internal */
|
|
@@ -6876,15 +6926,42 @@ export interface GraphRenderer {
|
|
|
6876
6926
|
/**
|
|
6877
6927
|
* Specify that the renderer has changed and needs to be rendered again
|
|
6878
6928
|
*/
|
|
6879
|
-
changed():
|
|
6929
|
+
changed(): void;
|
|
6930
|
+
destroy(): void;
|
|
6880
6931
|
/** @internal */
|
|
6881
|
-
|
|
6932
|
+
destroyGraphics(): void;
|
|
6933
|
+
getBackgroundScreenshot(): HTMLCanvasElement;
|
|
6934
|
+
/** @internal */
|
|
6935
|
+
getHighlightNode(): GraphNode | null;
|
|
6936
|
+
getTransparentScreenshot(): ICanvas;
|
|
6937
|
+
/** @internal */
|
|
6938
|
+
initGraphics(): void;
|
|
6939
|
+
onIframeLoad(): void;
|
|
6940
|
+
onIframeUnload(): void;
|
|
6941
|
+
onMouseMove(evt: MouseEvent): void;
|
|
6942
|
+
onNodeClick(evt: MouseEvent, id: string, type: string): void;
|
|
6943
|
+
onNodeHover(evt: MouseEvent, id: string, type: string): void;
|
|
6944
|
+
onNodeRightClick(evt: MouseEvent, id: string, type: string): void;
|
|
6945
|
+
onNodeUnhover(): void;
|
|
6946
|
+
onPointerDown(renderer: GraphRenderer, evt: PointerEvent): void;
|
|
6947
|
+
onPointerOut(): void;
|
|
6948
|
+
onPointerOver(renderer: GraphRenderer, evt: PointerEvent): void;
|
|
6949
|
+
onResize(): void;
|
|
6950
|
+
onWheel(evt: WheelEvent): void;
|
|
6951
|
+
queueRender(): void;
|
|
6882
6952
|
/** @internal */
|
|
6883
6953
|
renderCallback(): void;
|
|
6954
|
+
resetPan(): void;
|
|
6955
|
+
setData(data: GraphData): void;
|
|
6956
|
+
setForces(forces: GraphForces): void;
|
|
6884
6957
|
/** @internal */
|
|
6885
6958
|
setPan(panX: number, panY: number): void;
|
|
6959
|
+
setRenderOptions(options: GraphPluginInstanceOptions): void;
|
|
6886
6960
|
/** @internal */
|
|
6887
6961
|
setScale(scale: number): void;
|
|
6962
|
+
testCSS(): void;
|
|
6963
|
+
updateZoom(): void;
|
|
6964
|
+
zoomTo(scale: number, pointer: Pointer): void;
|
|
6888
6965
|
}
|
|
6889
6966
|
/** @todo Documentation incomplete */
|
|
6890
6967
|
/** @public */
|
|
@@ -7299,6 +7376,20 @@ export interface KeyScope {
|
|
|
7299
7376
|
*/
|
|
7300
7377
|
func(): void;
|
|
7301
7378
|
}
|
|
7379
|
+
/**
|
|
7380
|
+
* Keyboard actions.
|
|
7381
|
+
*
|
|
7382
|
+
* @public
|
|
7383
|
+
*/
|
|
7384
|
+
export interface KeyboardActions {
|
|
7385
|
+
down?: boolean;
|
|
7386
|
+
left?: boolean;
|
|
7387
|
+
right?: boolean;
|
|
7388
|
+
shift?: boolean;
|
|
7389
|
+
up?: boolean;
|
|
7390
|
+
zoomin?: boolean;
|
|
7391
|
+
zoomout?: boolean;
|
|
7392
|
+
}
|
|
7302
7393
|
/** @todo Documentation incomplete */
|
|
7303
7394
|
/** @public */
|
|
7304
7395
|
export interface LeafEntry {
|
|
@@ -8489,6 +8580,20 @@ export interface Pointer {
|
|
|
8489
8580
|
/** @public */
|
|
8490
8581
|
export interface PositionedReference extends Reference, CacheItem {
|
|
8491
8582
|
}
|
|
8583
|
+
/**
|
|
8584
|
+
* Power tag.
|
|
8585
|
+
*
|
|
8586
|
+
* @public
|
|
8587
|
+
*/
|
|
8588
|
+
export interface PowerTag {
|
|
8589
|
+
rendered: boolean;
|
|
8590
|
+
renderer: GraphRenderer;
|
|
8591
|
+
text: Text$1;
|
|
8592
|
+
clearGraphics(): void;
|
|
8593
|
+
getTextStyle(): TextStyle;
|
|
8594
|
+
initGraphics(): void;
|
|
8595
|
+
render(): void;
|
|
8596
|
+
}
|
|
8492
8597
|
/** @public */
|
|
8493
8598
|
export interface PromisedQueue {
|
|
8494
8599
|
promise: Promise<unknown>;
|
|
@@ -9863,6 +9968,16 @@ export interface WordCountPluginInstance extends InternalPluginInstance<WordCoun
|
|
|
9863
9968
|
defaultOn: true;
|
|
9864
9969
|
plugin: WordCountPlugin;
|
|
9865
9970
|
}
|
|
9971
|
+
/**
|
|
9972
|
+
* Worker results.
|
|
9973
|
+
*
|
|
9974
|
+
* @public
|
|
9975
|
+
*/
|
|
9976
|
+
export interface WorkerResults {
|
|
9977
|
+
buffer: SharedArrayBuffer;
|
|
9978
|
+
id: number[];
|
|
9979
|
+
v?: number;
|
|
9980
|
+
}
|
|
9866
9981
|
/** @public */
|
|
9867
9982
|
export interface WorkspaceHoverLinkSourcesRecord extends Record<string, HoverLinkSource> {
|
|
9868
9983
|
}
|