obsidian-typings 2.20.2 → 2.21.1

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.
@@ -6,7 +6,7 @@ import { EditorView, ViewUpdate } from '@codemirror/view';
6
6
  import { BrowserWindow } from 'electron';
7
7
  import moment$1 from 'moment';
8
8
  import { App, BlockCache, CachedMetadata, CloseableComponent, ColorComponent, Command, Component, Constructor, DataAdapter, Debouncer, EditableFileView, Editor, EditorPosition, EditorRange, EditorSuggest, EmbedCache, EventRef, Events, FileStats, FileView, FrontmatterLinkCache, HoverLinkSource, HoverPopover, IconName, ItemView, KeymapInfo, LinkCache, Loc, 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';
9
- import { Application, Container, Graphics, Renderer, Text as Text$1 } from 'pixi.js';
9
+ import { Application, Container, Graphics, Text as Text$1 } from 'pixi.js';
10
10
 
11
11
  /** @public */
12
12
  export class GraphColorGroup {
@@ -2806,7 +2806,7 @@ export interface GraphEngine {
2806
2806
  /** @internal */
2807
2807
  progressionSpeed: number;
2808
2808
  /** @internal */
2809
- renderer: Renderer;
2809
+ renderer: GraphRenderer;
2810
2810
  /** @internal */
2811
2811
  searchQueries: GraphColorGroup[];
2812
2812
  /** @internal */
@@ -2839,11 +2839,11 @@ export interface GraphForceOptions extends GraphOptions {
2839
2839
  /** @public */
2840
2840
  export interface GraphLink {
2841
2841
  /** @internal */
2842
- arrow: Graphics;
2842
+ arrow: Graphics | null;
2843
2843
  /** @internal */
2844
- line: Graphics;
2844
+ line: Graphics | null;
2845
2845
  /** @internal */
2846
- px: Container;
2846
+ px: Container | null;
2847
2847
  /** @internal */
2848
2848
  rendered: boolean;
2849
2849
  /** @internal */
@@ -2866,12 +2866,18 @@ export interface GraphLink {
2866
2866
  /** @public */
2867
2867
  export interface GraphNode {
2868
2868
  /** @internal */
2869
- circle: Graphics;
2869
+ circle: Graphics | null;
2870
2870
  /** @internal */
2871
2871
  color: GraphColorAttributes;
2872
2872
  /** @internal */
2873
2873
  forward: Record<string, GraphNode>;
2874
2874
  /** @internal */
2875
+ fx: number | null;
2876
+ /** @internal */
2877
+ fy: number | null;
2878
+ /** @internal */
2879
+ highlight: Graphics | null;
2880
+ /** @internal */
2875
2881
  id: string;
2876
2882
  /** @internal */
2877
2883
  rendered: boolean;
@@ -2880,7 +2886,7 @@ export interface GraphNode {
2880
2886
  /** @internal */
2881
2887
  reverse: Record<string, GraphNode>;
2882
2888
  /** @internal */
2883
- text: Text$1;
2889
+ text: Text$1 | null;
2884
2890
  /** @internal */
2885
2891
  type: string;
2886
2892
  /** @internal */
@@ -2979,8 +2985,16 @@ export interface GraphRenderer {
2979
2985
  /** @internal */
2980
2986
  colors: Record<GraphColor, GraphColorAttributes>;
2981
2987
  /** @internal */
2988
+ dragNode: GraphNode | null;
2989
+ /** @internal */
2990
+ fLineSizeMult: number;
2991
+ /** @internal */
2982
2992
  fNodeSizeMult: number;
2983
2993
  /** @internal */
2994
+ hanger: Container;
2995
+ /** @internal */
2996
+ height: number;
2997
+ /** @internal */
2984
2998
  idleFrames: number;
2985
2999
  /** @internal */
2986
3000
  interactiveEl: HTMLCanvasElement;
@@ -3001,11 +3015,32 @@ export interface GraphRenderer {
3001
3015
  /** @internal */
3002
3016
  targetScale: number;
3003
3017
  /** @internal */
3018
+ viewport: {
3019
+ bottom: number;
3020
+ left: number;
3021
+ right: number;
3022
+ top: number;
3023
+ };
3024
+ /** @internal */
3025
+ width: number;
3026
+ /** @internal */
3004
3027
  worker: Worker;
3028
+ /** @internal */
3029
+ zoomCenterX: number;
3030
+ /** @internal */
3031
+ zoomCenterY: number;
3005
3032
  /**
3006
3033
  * Specify that the renderer has changed and needs to be rendered again
3007
3034
  */
3008
3035
  changed(): unknown;
3036
+ /** @internal */
3037
+ getHighlightNode(): GraphNode;
3038
+ /** @internal */
3039
+ renderCallback(): void;
3040
+ /** @internal */
3041
+ setPan(panX: number, panY: number): void;
3042
+ /** @internal */
3043
+ setScale(scale: number): void;
3009
3044
  }
3010
3045
  /** @todo Documentation incomplete */
3011
3046
  /** @public */
@@ -6,7 +6,7 @@ import { EditorView, ViewUpdate } from '@codemirror/view';
6
6
  import { BrowserWindow } from 'electron';
7
7
  import moment$1 from 'moment';
8
8
  import { App, BlockCache, CachedMetadata, CloseableComponent, ColorComponent, Command, Component, Constructor, DataAdapter, Debouncer, EditableFileView, Editor, EditorPosition, EditorRange, EditorSuggest, EmbedCache, EventRef, Events, FileStats, FileView, FrontmatterLinkCache, HoverLinkSource, HoverPopover, IconName, ItemView, KeymapInfo, LinkCache, Loc, 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';
9
- import { Application, Container, Graphics, Renderer, Text as Text$1 } from 'pixi.js';
9
+ import { Application, Container, Graphics, Text as Text$1 } from 'pixi.js';
10
10
 
11
11
  /** @public */
12
12
  export class GraphColorGroup {
@@ -2806,7 +2806,7 @@ export interface GraphEngine {
2806
2806
  /** @internal */
2807
2807
  progressionSpeed: number;
2808
2808
  /** @internal */
2809
- renderer: Renderer;
2809
+ renderer: GraphRenderer;
2810
2810
  /** @internal */
2811
2811
  searchQueries: GraphColorGroup[];
2812
2812
  /** @internal */
@@ -2839,11 +2839,11 @@ export interface GraphForceOptions extends GraphOptions {
2839
2839
  /** @public */
2840
2840
  export interface GraphLink {
2841
2841
  /** @internal */
2842
- arrow: Graphics;
2842
+ arrow: Graphics | null;
2843
2843
  /** @internal */
2844
- line: Graphics;
2844
+ line: Graphics | null;
2845
2845
  /** @internal */
2846
- px: Container;
2846
+ px: Container | null;
2847
2847
  /** @internal */
2848
2848
  rendered: boolean;
2849
2849
  /** @internal */
@@ -2866,12 +2866,18 @@ export interface GraphLink {
2866
2866
  /** @public */
2867
2867
  export interface GraphNode {
2868
2868
  /** @internal */
2869
- circle: Graphics;
2869
+ circle: Graphics | null;
2870
2870
  /** @internal */
2871
2871
  color: GraphColorAttributes;
2872
2872
  /** @internal */
2873
2873
  forward: Record<string, GraphNode>;
2874
2874
  /** @internal */
2875
+ fx: number | null;
2876
+ /** @internal */
2877
+ fy: number | null;
2878
+ /** @internal */
2879
+ highlight: Graphics | null;
2880
+ /** @internal */
2875
2881
  id: string;
2876
2882
  /** @internal */
2877
2883
  rendered: boolean;
@@ -2880,7 +2886,7 @@ export interface GraphNode {
2880
2886
  /** @internal */
2881
2887
  reverse: Record<string, GraphNode>;
2882
2888
  /** @internal */
2883
- text: Text$1;
2889
+ text: Text$1 | null;
2884
2890
  /** @internal */
2885
2891
  type: string;
2886
2892
  /** @internal */
@@ -2979,8 +2985,16 @@ export interface GraphRenderer {
2979
2985
  /** @internal */
2980
2986
  colors: Record<GraphColor, GraphColorAttributes>;
2981
2987
  /** @internal */
2988
+ dragNode: GraphNode | null;
2989
+ /** @internal */
2990
+ fLineSizeMult: number;
2991
+ /** @internal */
2982
2992
  fNodeSizeMult: number;
2983
2993
  /** @internal */
2994
+ hanger: Container;
2995
+ /** @internal */
2996
+ height: number;
2997
+ /** @internal */
2984
2998
  idleFrames: number;
2985
2999
  /** @internal */
2986
3000
  interactiveEl: HTMLCanvasElement;
@@ -3001,11 +3015,32 @@ export interface GraphRenderer {
3001
3015
  /** @internal */
3002
3016
  targetScale: number;
3003
3017
  /** @internal */
3018
+ viewport: {
3019
+ bottom: number;
3020
+ left: number;
3021
+ right: number;
3022
+ top: number;
3023
+ };
3024
+ /** @internal */
3025
+ width: number;
3026
+ /** @internal */
3004
3027
  worker: Worker;
3028
+ /** @internal */
3029
+ zoomCenterX: number;
3030
+ /** @internal */
3031
+ zoomCenterY: number;
3005
3032
  /**
3006
3033
  * Specify that the renderer has changed and needs to be rendered again
3007
3034
  */
3008
3035
  changed(): unknown;
3036
+ /** @internal */
3037
+ getHighlightNode(): GraphNode;
3038
+ /** @internal */
3039
+ renderCallback(): void;
3040
+ /** @internal */
3041
+ setPan(panX: number, panY: number): void;
3042
+ /** @internal */
3043
+ setScale(scale: number): void;
3009
3044
  }
3010
3045
  /** @todo Documentation incomplete */
3011
3046
  /** @public */
package/dist/types.d.cts CHANGED
@@ -11,7 +11,7 @@ import * as fs from 'node:fs';
11
11
  import * as fsPromises from 'node:fs/promises';
12
12
  import * as path from 'node:path';
13
13
  import { App, BlockCache, CachedMetadata, CloseableComponent, ColorComponent, Command, Component, Constructor, DataAdapter, Debouncer, EditableFileView, Editor, EditorPosition, EditorRange, EditorSuggest, EmbedCache, EventRef, Events, FileStats, FileView, FrontmatterLinkCache, HoverLinkSource, HoverPopover, IconName, ItemView, KeymapInfo, LinkCache, Loc, 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';
14
- import { Application, Container, Graphics, PixiTouch, Renderer, Text as Text$1 } from 'pixi.js';
14
+ import { Application, Container, Graphics, PixiTouch, Text as Text$1 } from 'pixi.js';
15
15
  import _TurndownService from 'turndown';
16
16
 
17
17
  declare global {
@@ -6089,7 +6089,7 @@ export interface GraphEngine {
6089
6089
  /** @internal */
6090
6090
  progressionSpeed: number;
6091
6091
  /** @internal */
6092
- renderer: Renderer;
6092
+ renderer: GraphRenderer;
6093
6093
  /** @internal */
6094
6094
  searchQueries: GraphColorGroup[];
6095
6095
  /** @internal */
@@ -6122,11 +6122,11 @@ export interface GraphForceOptions extends GraphOptions {
6122
6122
  /** @public */
6123
6123
  export interface GraphLink {
6124
6124
  /** @internal */
6125
- arrow: Graphics;
6125
+ arrow: Graphics | null;
6126
6126
  /** @internal */
6127
- line: Graphics;
6127
+ line: Graphics | null;
6128
6128
  /** @internal */
6129
- px: Container;
6129
+ px: Container | null;
6130
6130
  /** @internal */
6131
6131
  rendered: boolean;
6132
6132
  /** @internal */
@@ -6149,12 +6149,18 @@ export interface GraphLink {
6149
6149
  /** @public */
6150
6150
  export interface GraphNode {
6151
6151
  /** @internal */
6152
- circle: Graphics;
6152
+ circle: Graphics | null;
6153
6153
  /** @internal */
6154
6154
  color: GraphColorAttributes;
6155
6155
  /** @internal */
6156
6156
  forward: Record<string, GraphNode>;
6157
6157
  /** @internal */
6158
+ fx: number | null;
6159
+ /** @internal */
6160
+ fy: number | null;
6161
+ /** @internal */
6162
+ highlight: Graphics | null;
6163
+ /** @internal */
6158
6164
  id: string;
6159
6165
  /** @internal */
6160
6166
  rendered: boolean;
@@ -6163,7 +6169,7 @@ export interface GraphNode {
6163
6169
  /** @internal */
6164
6170
  reverse: Record<string, GraphNode>;
6165
6171
  /** @internal */
6166
- text: Text$1;
6172
+ text: Text$1 | null;
6167
6173
  /** @internal */
6168
6174
  type: string;
6169
6175
  /** @internal */
@@ -6262,8 +6268,16 @@ export interface GraphRenderer {
6262
6268
  /** @internal */
6263
6269
  colors: Record<GraphColor, GraphColorAttributes>;
6264
6270
  /** @internal */
6271
+ dragNode: GraphNode | null;
6272
+ /** @internal */
6273
+ fLineSizeMult: number;
6274
+ /** @internal */
6265
6275
  fNodeSizeMult: number;
6266
6276
  /** @internal */
6277
+ hanger: Container;
6278
+ /** @internal */
6279
+ height: number;
6280
+ /** @internal */
6267
6281
  idleFrames: number;
6268
6282
  /** @internal */
6269
6283
  interactiveEl: HTMLCanvasElement;
@@ -6284,11 +6298,32 @@ export interface GraphRenderer {
6284
6298
  /** @internal */
6285
6299
  targetScale: number;
6286
6300
  /** @internal */
6301
+ viewport: {
6302
+ bottom: number;
6303
+ left: number;
6304
+ right: number;
6305
+ top: number;
6306
+ };
6307
+ /** @internal */
6308
+ width: number;
6309
+ /** @internal */
6287
6310
  worker: Worker;
6311
+ /** @internal */
6312
+ zoomCenterX: number;
6313
+ /** @internal */
6314
+ zoomCenterY: number;
6288
6315
  /**
6289
6316
  * Specify that the renderer has changed and needs to be rendered again
6290
6317
  */
6291
6318
  changed(): unknown;
6319
+ /** @internal */
6320
+ getHighlightNode(): GraphNode;
6321
+ /** @internal */
6322
+ renderCallback(): void;
6323
+ /** @internal */
6324
+ setPan(panX: number, panY: number): void;
6325
+ /** @internal */
6326
+ setScale(scale: number): void;
6292
6327
  }
6293
6328
  /** @todo Documentation incomplete */
6294
6329
  /** @public */
package/dist/types.d.mts CHANGED
@@ -11,7 +11,7 @@ import * as fs from 'node:fs';
11
11
  import * as fsPromises from 'node:fs/promises';
12
12
  import * as path from 'node:path';
13
13
  import { App, BlockCache, CachedMetadata, CloseableComponent, ColorComponent, Command, Component, Constructor, DataAdapter, Debouncer, EditableFileView, Editor, EditorPosition, EditorRange, EditorSuggest, EmbedCache, EventRef, Events, FileStats, FileView, FrontmatterLinkCache, HoverLinkSource, HoverPopover, IconName, ItemView, KeymapInfo, LinkCache, Loc, 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';
14
- import { Application, Container, Graphics, PixiTouch, Renderer, Text as Text$1 } from 'pixi.js';
14
+ import { Application, Container, Graphics, PixiTouch, Text as Text$1 } from 'pixi.js';
15
15
  import _TurndownService from 'turndown';
16
16
 
17
17
  declare global {
@@ -6089,7 +6089,7 @@ export interface GraphEngine {
6089
6089
  /** @internal */
6090
6090
  progressionSpeed: number;
6091
6091
  /** @internal */
6092
- renderer: Renderer;
6092
+ renderer: GraphRenderer;
6093
6093
  /** @internal */
6094
6094
  searchQueries: GraphColorGroup[];
6095
6095
  /** @internal */
@@ -6122,11 +6122,11 @@ export interface GraphForceOptions extends GraphOptions {
6122
6122
  /** @public */
6123
6123
  export interface GraphLink {
6124
6124
  /** @internal */
6125
- arrow: Graphics;
6125
+ arrow: Graphics | null;
6126
6126
  /** @internal */
6127
- line: Graphics;
6127
+ line: Graphics | null;
6128
6128
  /** @internal */
6129
- px: Container;
6129
+ px: Container | null;
6130
6130
  /** @internal */
6131
6131
  rendered: boolean;
6132
6132
  /** @internal */
@@ -6149,12 +6149,18 @@ export interface GraphLink {
6149
6149
  /** @public */
6150
6150
  export interface GraphNode {
6151
6151
  /** @internal */
6152
- circle: Graphics;
6152
+ circle: Graphics | null;
6153
6153
  /** @internal */
6154
6154
  color: GraphColorAttributes;
6155
6155
  /** @internal */
6156
6156
  forward: Record<string, GraphNode>;
6157
6157
  /** @internal */
6158
+ fx: number | null;
6159
+ /** @internal */
6160
+ fy: number | null;
6161
+ /** @internal */
6162
+ highlight: Graphics | null;
6163
+ /** @internal */
6158
6164
  id: string;
6159
6165
  /** @internal */
6160
6166
  rendered: boolean;
@@ -6163,7 +6169,7 @@ export interface GraphNode {
6163
6169
  /** @internal */
6164
6170
  reverse: Record<string, GraphNode>;
6165
6171
  /** @internal */
6166
- text: Text$1;
6172
+ text: Text$1 | null;
6167
6173
  /** @internal */
6168
6174
  type: string;
6169
6175
  /** @internal */
@@ -6262,8 +6268,16 @@ export interface GraphRenderer {
6262
6268
  /** @internal */
6263
6269
  colors: Record<GraphColor, GraphColorAttributes>;
6264
6270
  /** @internal */
6271
+ dragNode: GraphNode | null;
6272
+ /** @internal */
6273
+ fLineSizeMult: number;
6274
+ /** @internal */
6265
6275
  fNodeSizeMult: number;
6266
6276
  /** @internal */
6277
+ hanger: Container;
6278
+ /** @internal */
6279
+ height: number;
6280
+ /** @internal */
6267
6281
  idleFrames: number;
6268
6282
  /** @internal */
6269
6283
  interactiveEl: HTMLCanvasElement;
@@ -6284,11 +6298,32 @@ export interface GraphRenderer {
6284
6298
  /** @internal */
6285
6299
  targetScale: number;
6286
6300
  /** @internal */
6301
+ viewport: {
6302
+ bottom: number;
6303
+ left: number;
6304
+ right: number;
6305
+ top: number;
6306
+ };
6307
+ /** @internal */
6308
+ width: number;
6309
+ /** @internal */
6287
6310
  worker: Worker;
6311
+ /** @internal */
6312
+ zoomCenterX: number;
6313
+ /** @internal */
6314
+ zoomCenterY: number;
6288
6315
  /**
6289
6316
  * Specify that the renderer has changed and needs to be rendered again
6290
6317
  */
6291
6318
  changed(): unknown;
6319
+ /** @internal */
6320
+ getHighlightNode(): GraphNode;
6321
+ /** @internal */
6322
+ renderCallback(): void;
6323
+ /** @internal */
6324
+ setPan(panX: number, panY: number): void;
6325
+ /** @internal */
6326
+ setScale(scale: number): void;
6292
6327
  }
6293
6328
  /** @todo Documentation incomplete */
6294
6329
  /** @public */
package/package.json CHANGED
@@ -1,24 +1,30 @@
1
1
  {
2
2
  "name": "obsidian-typings",
3
- "version": "2.20.2",
3
+ "version": "2.21.1",
4
4
  "description": "Extended type definitions for the Obsidian API (https://obsidian.md)",
5
5
  "main": "",
6
6
  "module": "",
7
7
  "types": "./dist/types.d.cts",
8
8
  "exports": {
9
9
  ".": {
10
- "types": {
11
- "require": "./dist/types.d.cts",
12
- "import": "./dist/types.d.mts"
10
+ "require": {
11
+ "types": "./dist/types.d.cts",
12
+ "default": "./dist/index.cjs"
13
+ },
14
+ "import": {
15
+ "types": "./dist/types.d.mts",
16
+ "default": "./dist/index.mjs"
13
17
  }
14
18
  },
15
19
  "./implementations": {
16
- "types": {
17
- "require": "./dist/implementations.d.cts",
18
- "import": "./dist/implementations.d.mts"
20
+ "require": {
21
+ "types": "./dist/implementations.d.cts",
22
+ "default": "./dist/implementations.cjs"
19
23
  },
20
- "require": "./dist/implementations.cjs",
21
- "import": "./dist/implementations.mjs"
24
+ "import": {
25
+ "types": "./dist/implementations.d.mts",
26
+ "default": "./dist/implementations.mjs"
27
+ }
22
28
  }
23
29
  },
24
30
  "type": "module",