obsidian-typings 2.43.3 → 2.44.2
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/bun.lockb +0 -0
- package/dist/cjs/implementations.d.cts +78 -13
- package/dist/cjs/types.d.cts +66 -1
- package/dist/obsidian-typings.api.json +1517 -204
- package/package.json +9 -8
- package/patches/obsidian+1.8.7.patch +41 -0
- package/tsconfig.tsbuildinfo +1 -1
package/bun.lockb
CHANGED
|
Binary file
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
// Generated by dts-bundle-generator v9.5.1
|
|
2
2
|
|
|
3
|
-
import { SearchQuery } from '@codemirror/search';
|
|
4
|
-
import { ChangeDesc, Extension } from '@codemirror/state';
|
|
5
|
-
import { EditorView, ViewUpdate } from '@codemirror/view';
|
|
6
|
-
import { App as App$1, BrowserWindow } from 'electron';
|
|
7
|
-
import { default as moment$1 } from 'moment';
|
|
8
|
-
import { FSWatcher } from 'node:fs';
|
|
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
|
|
10
|
-
import {
|
|
11
|
-
import { Application, Container, Graphics, ICanvas, Text as Text$1, TextStyle } from 'pixi.js';
|
|
3
|
+
import type { SearchQuery } from '@codemirror/search';
|
|
4
|
+
import type { ChangeDesc, Extension } from '@codemirror/state';
|
|
5
|
+
import type { EditorView, ViewUpdate } from '@codemirror/view';
|
|
6
|
+
import type { App as App$1, BrowserWindow } from 'electron';
|
|
7
|
+
import type { default as moment$1 } from 'moment';
|
|
8
|
+
import type { FSWatcher } from 'node:fs';
|
|
9
|
+
import type { 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, 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 type { Application, Container, Graphics, ICanvas, Text as Text$1, TextStyle } from 'pixi.js';
|
|
12
11
|
|
|
13
12
|
/** @public */
|
|
14
13
|
export class GraphColorGroup {
|
|
@@ -28,6 +27,72 @@ export declare class CustomArrayDictImpl<T> implements CustomArrayDict<T> {
|
|
|
28
27
|
count(): number;
|
|
29
28
|
}
|
|
30
29
|
/** @public */
|
|
30
|
+
export declare class HighlightOutline extends Outline {
|
|
31
|
+
constructor(outlines: unknown, box: unknown, lastPoint: any);
|
|
32
|
+
lastPoint: unknown;
|
|
33
|
+
get box(): Object | null;
|
|
34
|
+
get classNamesForOutlining(): string[];
|
|
35
|
+
/**
|
|
36
|
+
* Serialize the outlines into the PDF page coordinate system.
|
|
37
|
+
*
|
|
38
|
+
* @param bbox - the bounding box of the annotation.
|
|
39
|
+
* @param rotation - the rotation of the annotation.
|
|
40
|
+
* @returns Serialized outlines.
|
|
41
|
+
*/
|
|
42
|
+
serialize(bbox: [
|
|
43
|
+
blX: string,
|
|
44
|
+
blY: string,
|
|
45
|
+
trX: string,
|
|
46
|
+
trY: string
|
|
47
|
+
], rotation: number): Array<Array<number>>;
|
|
48
|
+
}
|
|
49
|
+
/** @public */
|
|
50
|
+
export declare class HighlightOutliner {
|
|
51
|
+
/**
|
|
52
|
+
* Construct an outliner.
|
|
53
|
+
* @param boxes - An array of axis-aligned rectangles.
|
|
54
|
+
* @param borderWidth - The width of the border of the boxes, it
|
|
55
|
+
* allows to make the boxes bigger (or smaller).
|
|
56
|
+
* @param innerMargin - The margin between the boxes and the
|
|
57
|
+
* outlines. It's important to not have a null innerMargin when we want to
|
|
58
|
+
* draw the outline else the stroked outline could be clipped because of its
|
|
59
|
+
* width.
|
|
60
|
+
* @param isLTR - true if we're in LTR mode. It's used to determine
|
|
61
|
+
* the last point of the boxes.
|
|
62
|
+
*/
|
|
63
|
+
constructor(boxes: Array<Object>, borderWidth?: number, innerMargin?: number, isLTR?: boolean);
|
|
64
|
+
getOutlines(): HighlightOutline;
|
|
65
|
+
}
|
|
66
|
+
/** @public */
|
|
67
|
+
export declare class Outline {
|
|
68
|
+
static PRECISION: number;
|
|
69
|
+
/**
|
|
70
|
+
* The bounding box of the outline.
|
|
71
|
+
*
|
|
72
|
+
* @returns The bounding box of the outline.
|
|
73
|
+
*/
|
|
74
|
+
get box(): Object | null;
|
|
75
|
+
serialize(bbox: [
|
|
76
|
+
blX: string,
|
|
77
|
+
blY: string,
|
|
78
|
+
trX: string,
|
|
79
|
+
trY: string
|
|
80
|
+
], rotation: number): void;
|
|
81
|
+
static _normalizePagePoint(x: unknown, y: unknown, rotation: unknown): unknown[];
|
|
82
|
+
static _normalizePoint(x: unknown, y: unknown, parentWidth: unknown, parentHeight: unknown, rotation: unknown): number[];
|
|
83
|
+
static _rescale(src: unknown, tx: unknown, ty: unknown, sx: unknown, sy: unknown, dest: unknown): unknown;
|
|
84
|
+
static _rescaleAndSwap(src: unknown, tx: unknown, ty: unknown, sx: unknown, sy: unknown, dest: unknown): unknown;
|
|
85
|
+
static _translate(src: unknown, tx: unknown, ty: unknown, dest: unknown): unknown;
|
|
86
|
+
static createBezierPoints(x1: unknown, y1: unknown, x2: unknown, y2: unknown, x3: unknown, y3: unknown): number[];
|
|
87
|
+
static svgRound(x: unknown): number;
|
|
88
|
+
/**
|
|
89
|
+
* Converts the outline to an SVG path.
|
|
90
|
+
*
|
|
91
|
+
* @returns The SVG path of the outline.
|
|
92
|
+
*/
|
|
93
|
+
toSVGPath(): string;
|
|
94
|
+
}
|
|
95
|
+
/** @public */
|
|
31
96
|
export declare const FileExtension: {
|
|
32
97
|
readonly _3gp: "3gp";
|
|
33
98
|
readonly avif: "avif";
|
|
@@ -5185,7 +5250,7 @@ export interface PdfViewConstructor extends TypedViewConstructor<PdfView> {
|
|
|
5185
5250
|
* Due to limitations of TypeScript, we cannot extend the Platform constant directly.
|
|
5186
5251
|
* @example
|
|
5187
5252
|
* ```ts
|
|
5188
|
-
* import { Platform } from 'obsidian';
|
|
5253
|
+
* import type { Platform } from 'obsidian';
|
|
5189
5254
|
* import type { PlatformEx } from 'obsidian-typings';
|
|
5190
5255
|
* const platformEx = Platform as PlatformEx;
|
|
5191
5256
|
* console.log(platformEx.canDisplayRibbon);
|
|
@@ -5271,7 +5336,7 @@ export interface Plugins {
|
|
|
5271
5336
|
/**
|
|
5272
5337
|
* Get a plugin by ID
|
|
5273
5338
|
*/
|
|
5274
|
-
getPlugin(id: string): Plugin
|
|
5339
|
+
getPlugin(id: string): Plugin | null;
|
|
5275
5340
|
/**
|
|
5276
5341
|
* Get the folder where plugins are stored
|
|
5277
5342
|
*/
|
|
@@ -5299,7 +5364,7 @@ export interface Plugins {
|
|
|
5299
5364
|
/**
|
|
5300
5365
|
* Load a plugin by its ID
|
|
5301
5366
|
*/
|
|
5302
|
-
loadPlugin(id: string): Promise<Plugin
|
|
5367
|
+
loadPlugin(id: string): Promise<Plugin>;
|
|
5303
5368
|
/** @internal */
|
|
5304
5369
|
onRaw(e: unknown): void;
|
|
5305
5370
|
/** @internal - Save current plugin configs */
|
|
@@ -5319,7 +5384,7 @@ export interface Plugins {
|
|
|
5319
5384
|
export interface PluginsManifestsRecord extends Record<string, PluginManifest> {
|
|
5320
5385
|
}
|
|
5321
5386
|
/** @public */
|
|
5322
|
-
export interface PluginsPluginsRecord extends Record<string, Plugin
|
|
5387
|
+
export interface PluginsPluginsRecord extends Record<string, Plugin> {
|
|
5323
5388
|
}
|
|
5324
5389
|
/** @public */
|
|
5325
5390
|
export interface Pointer {
|
package/dist/cjs/types.d.cts
CHANGED
|
@@ -17,7 +17,6 @@ import * as fsPromises from 'node:fs/promises';
|
|
|
17
17
|
import * as path from 'node:path';
|
|
18
18
|
import type { 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, ObsidianProtocolHandler, 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';
|
|
19
19
|
import type { default as pdfjsLib } from 'pdfjs-dist';
|
|
20
|
-
import type { HighlightOutliner } from 'pdfjs-dist/types/src/display/editor/drawers/highlight.js';
|
|
21
20
|
import type { Application, Container, Graphics, ICanvas, Text as Text$1, TextStyle, default as PIXI } from 'pixi.js';
|
|
22
21
|
import type { default as Prism$1 } from 'prismjs';
|
|
23
22
|
import type { default as scrypt$1 } from 'scrypt-js';
|
|
@@ -3266,6 +3265,72 @@ export declare class CustomArrayDictImpl<T> implements CustomArrayDict<T> {
|
|
|
3266
3265
|
count(): number;
|
|
3267
3266
|
}
|
|
3268
3267
|
/** @public */
|
|
3268
|
+
export declare class HighlightOutline extends Outline {
|
|
3269
|
+
constructor(outlines: unknown, box: unknown, lastPoint: any);
|
|
3270
|
+
lastPoint: unknown;
|
|
3271
|
+
get box(): Object | null;
|
|
3272
|
+
get classNamesForOutlining(): string[];
|
|
3273
|
+
/**
|
|
3274
|
+
* Serialize the outlines into the PDF page coordinate system.
|
|
3275
|
+
*
|
|
3276
|
+
* @param bbox - the bounding box of the annotation.
|
|
3277
|
+
* @param rotation - the rotation of the annotation.
|
|
3278
|
+
* @returns Serialized outlines.
|
|
3279
|
+
*/
|
|
3280
|
+
serialize(bbox: [
|
|
3281
|
+
blX: string,
|
|
3282
|
+
blY: string,
|
|
3283
|
+
trX: string,
|
|
3284
|
+
trY: string
|
|
3285
|
+
], rotation: number): Array<Array<number>>;
|
|
3286
|
+
}
|
|
3287
|
+
/** @public */
|
|
3288
|
+
export declare class HighlightOutliner {
|
|
3289
|
+
/**
|
|
3290
|
+
* Construct an outliner.
|
|
3291
|
+
* @param boxes - An array of axis-aligned rectangles.
|
|
3292
|
+
* @param borderWidth - The width of the border of the boxes, it
|
|
3293
|
+
* allows to make the boxes bigger (or smaller).
|
|
3294
|
+
* @param innerMargin - The margin between the boxes and the
|
|
3295
|
+
* outlines. It's important to not have a null innerMargin when we want to
|
|
3296
|
+
* draw the outline else the stroked outline could be clipped because of its
|
|
3297
|
+
* width.
|
|
3298
|
+
* @param isLTR - true if we're in LTR mode. It's used to determine
|
|
3299
|
+
* the last point of the boxes.
|
|
3300
|
+
*/
|
|
3301
|
+
constructor(boxes: Array<Object>, borderWidth?: number, innerMargin?: number, isLTR?: boolean);
|
|
3302
|
+
getOutlines(): HighlightOutline;
|
|
3303
|
+
}
|
|
3304
|
+
/** @public */
|
|
3305
|
+
export declare class Outline {
|
|
3306
|
+
static PRECISION: number;
|
|
3307
|
+
/**
|
|
3308
|
+
* The bounding box of the outline.
|
|
3309
|
+
*
|
|
3310
|
+
* @returns The bounding box of the outline.
|
|
3311
|
+
*/
|
|
3312
|
+
get box(): Object | null;
|
|
3313
|
+
serialize(bbox: [
|
|
3314
|
+
blX: string,
|
|
3315
|
+
blY: string,
|
|
3316
|
+
trX: string,
|
|
3317
|
+
trY: string
|
|
3318
|
+
], rotation: number): void;
|
|
3319
|
+
static _normalizePagePoint(x: unknown, y: unknown, rotation: unknown): unknown[];
|
|
3320
|
+
static _normalizePoint(x: unknown, y: unknown, parentWidth: unknown, parentHeight: unknown, rotation: unknown): number[];
|
|
3321
|
+
static _rescale(src: unknown, tx: unknown, ty: unknown, sx: unknown, sy: unknown, dest: unknown): unknown;
|
|
3322
|
+
static _rescaleAndSwap(src: unknown, tx: unknown, ty: unknown, sx: unknown, sy: unknown, dest: unknown): unknown;
|
|
3323
|
+
static _translate(src: unknown, tx: unknown, ty: unknown, dest: unknown): unknown;
|
|
3324
|
+
static createBezierPoints(x1: unknown, y1: unknown, x2: unknown, y2: unknown, x3: unknown, y3: unknown): number[];
|
|
3325
|
+
static svgRound(x: unknown): number;
|
|
3326
|
+
/**
|
|
3327
|
+
* Converts the outline to an SVG path.
|
|
3328
|
+
*
|
|
3329
|
+
* @returns The SVG path of the outline.
|
|
3330
|
+
*/
|
|
3331
|
+
toSVGPath(): string;
|
|
3332
|
+
}
|
|
3333
|
+
/** @public */
|
|
3269
3334
|
export declare const FileExtension: {
|
|
3270
3335
|
readonly _3gp: "3gp";
|
|
3271
3336
|
readonly avif: "avif";
|