@spidunno/desmos-types 1.13.55 → 1.13.57
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
CHANGED
|
@@ -6,11 +6,11 @@ the graphing calculator, geometry tool, 3D calculator, and the four-function and
|
|
|
6
6
|
## Install
|
|
7
7
|
|
|
8
8
|
```sh
|
|
9
|
-
npm install --save-dev @spidunno/desmos-types@~1.13.
|
|
9
|
+
npm install --save-dev @spidunno/desmos-types@~1.13.57
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
The package's major and minor version match the Desmos API version it describes; patch releases
|
|
13
|
-
are fixes to the types. Use a tilde range (`~1.13.
|
|
13
|
+
are fixes to the types. Use a tilde range (`~1.13.57`), not npm's default caret (`^`), so you only
|
|
14
14
|
get type fixes for the API version you load.
|
|
15
15
|
|
|
16
16
|
## Usage
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// AUTO-GENERATED by scripts/extract-internals.cjs. Do not edit by hand:
|
|
2
2
|
// put precise types in the hand-written files in internals/ instead.
|
|
3
|
-
// Source: Desmos v1.13-prerelease (commit
|
|
3
|
+
// Source: Desmos v1.13-prerelease (commit ece5222f87957e953f9397883764b58020d3d8d9).
|
|
4
4
|
// Actions accepted by each dispatch domain, from static analysis.
|
|
5
5
|
declare namespace Desmos.Internals.Generated {
|
|
6
6
|
/**
|
|
@@ -142,9 +142,9 @@ declare namespace Desmos.Internals.Generated {
|
|
|
142
142
|
/** Handled by: handleDispatchedAction. */
|
|
143
143
|
| { type: "image-retry-loading"; id: string }
|
|
144
144
|
/** Handled by: handleDispatchedAction. */
|
|
145
|
-
| { type: "image-upload-error"; error: unknown;
|
|
145
|
+
| { type: "image-upload-error"; error: unknown; uploadKey: unknown }
|
|
146
146
|
/** Handled by: handleDispatchedAction. */
|
|
147
|
-
| { type: "image-upload-success"; height: unknown; id: string; name: string;
|
|
147
|
+
| { type: "image-upload-success"; height: unknown; id: string; name: string; pixelHeight: unknown; pixelWidth: unknown; uploadKey: unknown; url: string; width: unknown }
|
|
148
148
|
/** Handled but never dispatched inside the bundle. Handled by: handleDispatchedAction. */
|
|
149
149
|
| { type: "insert-item-at-index"; focus?: unknown; folderId?: string; index?: number; state?: unknown }
|
|
150
150
|
/** Handled by: handleDispatchedAction. */
|
|
@@ -619,6 +619,8 @@ declare namespace Desmos.Internals.Generated {
|
|
|
619
619
|
/** Handled by: handleAction. */
|
|
620
620
|
| { type: "mouse-up" }
|
|
621
621
|
/** Handled by: handleAction. */
|
|
622
|
+
| { type: "paste"; content: unknown }
|
|
623
|
+
/** Handled by: handleAction. */
|
|
622
624
|
| { type: "resize-matrix-at-cursor"; dx: number; dy: number }
|
|
623
625
|
/** Handled by: handleAction. */
|
|
624
626
|
| { type: "resize-matrix-by-arrow"; dx: number; dy: number }
|
|
@@ -659,7 +661,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
659
661
|
/** Handled by: handleAction. */
|
|
660
662
|
| { type: "type-char"; char: unknown }
|
|
661
663
|
/** Handled by: handleAction. */
|
|
662
|
-
| { type: "write-latex";
|
|
664
|
+
| { type: "write-latex"; latex: string };
|
|
663
665
|
|
|
664
666
|
/**
|
|
665
667
|
* Actions handled by a four-function or scientific calculator controller.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// AUTO-GENERATED by scripts/extract-internals.cjs. Do not edit by hand:
|
|
2
2
|
// put precise types in the hand-written files in internals/ instead.
|
|
3
|
-
// Source: Desmos v1.13-prerelease (commit
|
|
3
|
+
// Source: Desmos v1.13-prerelease (commit ece5222f87957e953f9397883764b58020d3d8d9).
|
|
4
4
|
// Runtime shapes of internal objects.
|
|
5
5
|
declare namespace Desmos.Internals.Generated {
|
|
6
6
|
interface Controller {
|
|
@@ -45,6 +45,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
45
45
|
hasTranslation(arg0: unknown): unknown;
|
|
46
46
|
highlightedExpressions: unknown[];
|
|
47
47
|
imageRetryState: { lastAttemptTime: number; attempts: number };
|
|
48
|
+
imageStore: ControllerImageStore;
|
|
48
49
|
inPrintMode: boolean;
|
|
49
50
|
isCurrentlyDoingRestoreState: boolean;
|
|
50
51
|
isCurrentlyDoingSetState: boolean;
|
|
@@ -304,6 +305,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
304
305
|
getHistory(): unknown;
|
|
305
306
|
getHoveredOrFocusedTokenIdentifier(): unknown;
|
|
306
307
|
getImageOpacities(): string[];
|
|
308
|
+
getImageStore(): ControllerImageStore;
|
|
307
309
|
getImageToRetry(): unknown;
|
|
308
310
|
getIncludeFunctionParametersInRandomSeed(): boolean;
|
|
309
311
|
getInferenceObjectData(id: string): unknown;
|
|
@@ -387,8 +389,8 @@ declare namespace Desmos.Internals.Generated {
|
|
|
387
389
|
getToolPreviewJSONState(): Record<string, unknown>;
|
|
388
390
|
getTranslucentSurfaces(): boolean;
|
|
389
391
|
getUIDragModes(): string[];
|
|
390
|
-
getUndoRedoDiffState(): { randomSeed: string; includeFunctionParametersInRandomSeed: boolean; layoutModel: LayoutModel; settingsViewModel: { limitLatex: Record<string, unknown>; errors?: unknown }; graph: Record<string, Record<string, unknown> | boolean | number | number[] | string | unknown[]>; expressions: { list: Array<Record<string, unknown>>; ticker: Record<string, unknown> }; geometryToolbar: { toolbar: string }; wasCompleteSetState: boolean };
|
|
391
|
-
getUndoRedoFullState(): { randomSeed: string; includeFunctionParametersInRandomSeed: boolean; layoutModel: LayoutModel; settingsViewModel: { limitLatex: Record<string, unknown>; errors?: unknown }; graph: Record<string, Record<string, unknown> | boolean | number | number[] | string | unknown[]>; expressions: { list: Array<Record<string, unknown>>; ticker: Record<string, unknown> }; geometryToolbar: { toolbar: string }; wasCompleteSetState: boolean };
|
|
392
|
+
getUndoRedoDiffState(): { randomSeed: string; includeFunctionParametersInRandomSeed: boolean; layoutModel: LayoutModel; settingsViewModel: { limitLatex: Record<string, unknown>; errors?: unknown }; graph: Record<string, Record<string, unknown> | boolean | number | number[] | string | unknown[]>; expressions: { list: Array<Record<string, unknown>>; ticker: Record<string, unknown> }; geometryToolbar: { toolbar: string }; wasCompleteSetState: boolean; rawImages: Map<unknown, unknown> };
|
|
393
|
+
getUndoRedoFullState(): { randomSeed: string; includeFunctionParametersInRandomSeed: boolean; layoutModel: LayoutModel; settingsViewModel: { limitLatex: Record<string, unknown>; errors?: unknown }; graph: Record<string, Record<string, unknown> | boolean | number | number[] | string | unknown[]>; expressions: { list: Array<Record<string, unknown>>; ticker: Record<string, unknown> }; geometryToolbar: { toolbar: string }; wasCompleteSetState: boolean; rawImages: Map<unknown, unknown> };
|
|
392
394
|
getUniqueAssignmentMap(): Map<unknown, unknown>;
|
|
393
395
|
getValidCursorContext(): unknown;
|
|
394
396
|
getViewState(): unknown;
|
|
@@ -412,6 +414,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
412
414
|
inAudioTraceMode(): boolean;
|
|
413
415
|
inferenceInputValueHasError(id: string, arg1: "hypothesis" | "confidenceLevel"): boolean;
|
|
414
416
|
initStateStack(): void;
|
|
417
|
+
insertUploadedImage(arg0: unknown): void;
|
|
415
418
|
insideNotebook(): unknown;
|
|
416
419
|
invertSwatches(): boolean;
|
|
417
420
|
is3dProduct(): boolean;
|
|
@@ -963,7 +966,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
963
966
|
listeners: { evaluatorProgressUpdate: (arg0?: any) => void; changeSetResult: (arg0?: any) => void };
|
|
964
967
|
onEvaluatorProgressUpdate(): void;
|
|
965
968
|
onEvaluatorResults(arg0: unknown): void;
|
|
966
|
-
readEvaluatorConfig(): { product?: unknown; evaluationMode: "geometry" | "graphing_3d" | "graphing"; globalRandomSeed?: unknown; includeFunctionParametersInRandomSeed?: unknown; degreeMode?: unknown; viewState?: unknown; selectedIds?: unknown; restrictedFunctions?: unknown; forceEnableGeometryFunctions?: unknown; distributions?: unknown; tone?: unknown; audio?: unknown; pointsOfInterest?: unknown; plotSingleVariableImplicitEquations?: unknown; plotImplicits?: unknown; plotInequalities?: unknown; sliders?: unknown; actions: boolean; substitutions?: unknown; intervalComprehensions?: unknown; recursion?: unknown; calculus?: unknown; allowStrings?: unknown; matrices?: unknown; arrows?: unknown; recursionDepthLimit?: unknown; dimensions?: unknown; logInternalErrors?: unknown; showIDs?: unknown; complex?: unknown; customRegressions?: unknown; rayCast?: unknown; ignoreCostEstimate?: unknown; maxFragmentUniformComponents?: unknown; gpuBehavior?: unknown; debugCompiler?: unknown };
|
|
969
|
+
readEvaluatorConfig(): { product?: unknown; evaluationMode: "geometry" | "graphing_3d" | "graphing"; globalRandomSeed?: unknown; includeFunctionParametersInRandomSeed?: unknown; degreeMode?: unknown; viewState?: unknown; selectedIds?: unknown; restrictedFunctions?: unknown; forceEnableGeometryFunctions?: unknown; distributions?: unknown; tone?: unknown; audio?: unknown; pointsOfInterest?: unknown; plotSingleVariableImplicitEquations?: unknown; plotImplicits?: unknown; plotInequalities?: unknown; sliders?: unknown; actions: boolean; substitutions?: unknown; intervalComprehensions?: unknown; recursion?: unknown; calculus?: unknown; allowStrings?: unknown; matrices?: unknown; arrows?: unknown; imageExpressions?: unknown; recursionDepthLimit?: unknown; dimensions?: unknown; logInternalErrors?: unknown; showIDs?: unknown; complex?: unknown; customRegressions?: unknown; rayCast?: unknown; ignoreCostEstimate?: unknown; maxFragmentUniformComponents?: unknown; gpuBehavior?: unknown; debugCompiler?: unknown };
|
|
967
970
|
requestedIntentionalRestart: boolean;
|
|
968
971
|
shouldBlockEventUpdates(arg0?: unknown): unknown;
|
|
969
972
|
syncId: number;
|
|
@@ -1101,7 +1104,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
1101
1104
|
setDrawLayers(drawLayers: unknown): void;
|
|
1102
1105
|
setTabOrder(tabOrder: unknown): void;
|
|
1103
1106
|
_setIsVisible(isVisible: unknown): void;
|
|
1104
|
-
getImageData(arg0: unknown, arg1
|
|
1107
|
+
getImageData(arg0: unknown, arg1?: unknown, arg2?: unknown, arg3?: unknown): unknown;
|
|
1105
1108
|
getIsVisible(): boolean;
|
|
1106
1109
|
classLayers(arg0: unknown): unknown;
|
|
1107
1110
|
setLayerClass(arg0: unknown, arg1: unknown): void;
|
|
@@ -1446,7 +1449,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
1446
1449
|
setDrawLayers(drawLayers: unknown): void;
|
|
1447
1450
|
setTabOrder(tabOrder: unknown): void;
|
|
1448
1451
|
_setIsVisible(isVisible: unknown): void;
|
|
1449
|
-
getImageData(arg0: unknown, arg1
|
|
1452
|
+
getImageData(arg0: unknown, arg1?: unknown, arg2?: unknown, arg3?: unknown): unknown;
|
|
1450
1453
|
getIsVisible(): unknown;
|
|
1451
1454
|
classLayers(arg0: unknown): unknown;
|
|
1452
1455
|
setLayerClass(arg0: unknown, arg1: unknown): void;
|
|
@@ -1488,7 +1491,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
1488
1491
|
onAction(action: unknown): void;
|
|
1489
1492
|
rejectPaste(arg0: unknown): void;
|
|
1490
1493
|
runAfterDispatch(callback: () => void): void;
|
|
1491
|
-
|
|
1494
|
+
selectedContentForCopy(): { plain?: unknown; latex: string } | { plain: string; latex: string };
|
|
1492
1495
|
setMostRecentAriaMessage(mostRecentAriaMessage: unknown): void;
|
|
1493
1496
|
subscribeToChanges(arg0: unknown): (...args: any[]) => unknown;
|
|
1494
1497
|
updateViews(): void;
|
|
@@ -1703,6 +1706,20 @@ declare namespace Desmos.Internals.Generated {
|
|
|
1703
1706
|
updateFadeAnimations(): void;
|
|
1704
1707
|
}
|
|
1705
1708
|
|
|
1709
|
+
interface ControllerImageStore {
|
|
1710
|
+
byKey: Map<unknown, unknown>;
|
|
1711
|
+
onImageDataLoaded(): unknown;
|
|
1712
|
+
add(image: unknown, callback?: (...args: any[]) => unknown): unknown;
|
|
1713
|
+
anyLoading(): boolean;
|
|
1714
|
+
entries(): unknown;
|
|
1715
|
+
getImageData(arg0: unknown): unknown;
|
|
1716
|
+
getSnapshot(): unknown;
|
|
1717
|
+
load(image?: unknown): { image?: unknown; data?: unknown; load: { status: "loading" } };
|
|
1718
|
+
restore(byKey?: unknown): void;
|
|
1719
|
+
serialize(callback: (...args: any[]) => unknown): unknown[];
|
|
1720
|
+
updateToState(toState: unknown): void;
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1706
1723
|
interface ControllerMovablePointsController {
|
|
1707
1724
|
calcController: Controller;
|
|
1708
1725
|
destroy(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// AUTO-GENERATED by scripts/extract-internals.cjs. Do not edit by hand:
|
|
2
2
|
// put precise types in the hand-written files in internals/ instead.
|
|
3
|
-
// Source: Desmos v1.13-prerelease (commit
|
|
3
|
+
// Source: Desmos v1.13-prerelease (commit ece5222f87957e953f9397883764b58020d3d8d9).
|
|
4
4
|
// Props and instance members of the views on Private.Fragile.
|
|
5
5
|
declare namespace Desmos.Internals.Generated {
|
|
6
6
|
/**
|
package/module/internals.d.ts
CHANGED
|
@@ -2101,7 +2101,7 @@ declare namespace Desmos {
|
|
|
2101
2101
|
|
|
2102
2102
|
// AUTO-GENERATED by scripts/extract-internals.cjs. Do not edit by hand:
|
|
2103
2103
|
// put precise types in the hand-written files in internals/ instead.
|
|
2104
|
-
// Source: Desmos v1.13-prerelease (commit
|
|
2104
|
+
// Source: Desmos v1.13-prerelease (commit ece5222f87957e953f9397883764b58020d3d8d9).
|
|
2105
2105
|
// Runtime shapes of internal objects.
|
|
2106
2106
|
declare namespace Desmos.Internals.Generated {
|
|
2107
2107
|
interface Controller {
|
|
@@ -2146,6 +2146,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
2146
2146
|
hasTranslation(arg0: unknown): unknown;
|
|
2147
2147
|
highlightedExpressions: unknown[];
|
|
2148
2148
|
imageRetryState: { lastAttemptTime: number; attempts: number };
|
|
2149
|
+
imageStore: ControllerImageStore;
|
|
2149
2150
|
inPrintMode: boolean;
|
|
2150
2151
|
isCurrentlyDoingRestoreState: boolean;
|
|
2151
2152
|
isCurrentlyDoingSetState: boolean;
|
|
@@ -2405,6 +2406,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
2405
2406
|
getHistory(): unknown;
|
|
2406
2407
|
getHoveredOrFocusedTokenIdentifier(): unknown;
|
|
2407
2408
|
getImageOpacities(): string[];
|
|
2409
|
+
getImageStore(): ControllerImageStore;
|
|
2408
2410
|
getImageToRetry(): unknown;
|
|
2409
2411
|
getIncludeFunctionParametersInRandomSeed(): boolean;
|
|
2410
2412
|
getInferenceObjectData(id: string): unknown;
|
|
@@ -2488,8 +2490,8 @@ declare namespace Desmos.Internals.Generated {
|
|
|
2488
2490
|
getToolPreviewJSONState(): Record<string, unknown>;
|
|
2489
2491
|
getTranslucentSurfaces(): boolean;
|
|
2490
2492
|
getUIDragModes(): string[];
|
|
2491
|
-
getUndoRedoDiffState(): { randomSeed: string; includeFunctionParametersInRandomSeed: boolean; layoutModel: LayoutModel; settingsViewModel: { limitLatex: Record<string, unknown>; errors?: unknown }; graph: Record<string, Record<string, unknown> | boolean | number | number[] | string | unknown[]>; expressions: { list: Array<Record<string, unknown>>; ticker: Record<string, unknown> }; geometryToolbar: { toolbar: string }; wasCompleteSetState: boolean };
|
|
2492
|
-
getUndoRedoFullState(): { randomSeed: string; includeFunctionParametersInRandomSeed: boolean; layoutModel: LayoutModel; settingsViewModel: { limitLatex: Record<string, unknown>; errors?: unknown }; graph: Record<string, Record<string, unknown> | boolean | number | number[] | string | unknown[]>; expressions: { list: Array<Record<string, unknown>>; ticker: Record<string, unknown> }; geometryToolbar: { toolbar: string }; wasCompleteSetState: boolean };
|
|
2493
|
+
getUndoRedoDiffState(): { randomSeed: string; includeFunctionParametersInRandomSeed: boolean; layoutModel: LayoutModel; settingsViewModel: { limitLatex: Record<string, unknown>; errors?: unknown }; graph: Record<string, Record<string, unknown> | boolean | number | number[] | string | unknown[]>; expressions: { list: Array<Record<string, unknown>>; ticker: Record<string, unknown> }; geometryToolbar: { toolbar: string }; wasCompleteSetState: boolean; rawImages: Map<unknown, unknown> };
|
|
2494
|
+
getUndoRedoFullState(): { randomSeed: string; includeFunctionParametersInRandomSeed: boolean; layoutModel: LayoutModel; settingsViewModel: { limitLatex: Record<string, unknown>; errors?: unknown }; graph: Record<string, Record<string, unknown> | boolean | number | number[] | string | unknown[]>; expressions: { list: Array<Record<string, unknown>>; ticker: Record<string, unknown> }; geometryToolbar: { toolbar: string }; wasCompleteSetState: boolean; rawImages: Map<unknown, unknown> };
|
|
2493
2495
|
getUniqueAssignmentMap(): Map<unknown, unknown>;
|
|
2494
2496
|
getValidCursorContext(): unknown;
|
|
2495
2497
|
getViewState(): unknown;
|
|
@@ -2513,6 +2515,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
2513
2515
|
inAudioTraceMode(): boolean;
|
|
2514
2516
|
inferenceInputValueHasError(id: string, arg1: "hypothesis" | "confidenceLevel"): boolean;
|
|
2515
2517
|
initStateStack(): void;
|
|
2518
|
+
insertUploadedImage(arg0: unknown): void;
|
|
2516
2519
|
insideNotebook(): unknown;
|
|
2517
2520
|
invertSwatches(): boolean;
|
|
2518
2521
|
is3dProduct(): boolean;
|
|
@@ -3064,7 +3067,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
3064
3067
|
listeners: { evaluatorProgressUpdate: (arg0?: any) => void; changeSetResult: (arg0?: any) => void };
|
|
3065
3068
|
onEvaluatorProgressUpdate(): void;
|
|
3066
3069
|
onEvaluatorResults(arg0: unknown): void;
|
|
3067
|
-
readEvaluatorConfig(): { product?: unknown; evaluationMode: "geometry" | "graphing_3d" | "graphing"; globalRandomSeed?: unknown; includeFunctionParametersInRandomSeed?: unknown; degreeMode?: unknown; viewState?: unknown; selectedIds?: unknown; restrictedFunctions?: unknown; forceEnableGeometryFunctions?: unknown; distributions?: unknown; tone?: unknown; audio?: unknown; pointsOfInterest?: unknown; plotSingleVariableImplicitEquations?: unknown; plotImplicits?: unknown; plotInequalities?: unknown; sliders?: unknown; actions: boolean; substitutions?: unknown; intervalComprehensions?: unknown; recursion?: unknown; calculus?: unknown; allowStrings?: unknown; matrices?: unknown; arrows?: unknown; recursionDepthLimit?: unknown; dimensions?: unknown; logInternalErrors?: unknown; showIDs?: unknown; complex?: unknown; customRegressions?: unknown; rayCast?: unknown; ignoreCostEstimate?: unknown; maxFragmentUniformComponents?: unknown; gpuBehavior?: unknown; debugCompiler?: unknown };
|
|
3070
|
+
readEvaluatorConfig(): { product?: unknown; evaluationMode: "geometry" | "graphing_3d" | "graphing"; globalRandomSeed?: unknown; includeFunctionParametersInRandomSeed?: unknown; degreeMode?: unknown; viewState?: unknown; selectedIds?: unknown; restrictedFunctions?: unknown; forceEnableGeometryFunctions?: unknown; distributions?: unknown; tone?: unknown; audio?: unknown; pointsOfInterest?: unknown; plotSingleVariableImplicitEquations?: unknown; plotImplicits?: unknown; plotInequalities?: unknown; sliders?: unknown; actions: boolean; substitutions?: unknown; intervalComprehensions?: unknown; recursion?: unknown; calculus?: unknown; allowStrings?: unknown; matrices?: unknown; arrows?: unknown; imageExpressions?: unknown; recursionDepthLimit?: unknown; dimensions?: unknown; logInternalErrors?: unknown; showIDs?: unknown; complex?: unknown; customRegressions?: unknown; rayCast?: unknown; ignoreCostEstimate?: unknown; maxFragmentUniformComponents?: unknown; gpuBehavior?: unknown; debugCompiler?: unknown };
|
|
3068
3071
|
requestedIntentionalRestart: boolean;
|
|
3069
3072
|
shouldBlockEventUpdates(arg0?: unknown): unknown;
|
|
3070
3073
|
syncId: number;
|
|
@@ -3202,7 +3205,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
3202
3205
|
setDrawLayers(drawLayers: unknown): void;
|
|
3203
3206
|
setTabOrder(tabOrder: unknown): void;
|
|
3204
3207
|
_setIsVisible(isVisible: unknown): void;
|
|
3205
|
-
getImageData(arg0: unknown, arg1
|
|
3208
|
+
getImageData(arg0: unknown, arg1?: unknown, arg2?: unknown, arg3?: unknown): unknown;
|
|
3206
3209
|
getIsVisible(): boolean;
|
|
3207
3210
|
classLayers(arg0: unknown): unknown;
|
|
3208
3211
|
setLayerClass(arg0: unknown, arg1: unknown): void;
|
|
@@ -3547,7 +3550,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
3547
3550
|
setDrawLayers(drawLayers: unknown): void;
|
|
3548
3551
|
setTabOrder(tabOrder: unknown): void;
|
|
3549
3552
|
_setIsVisible(isVisible: unknown): void;
|
|
3550
|
-
getImageData(arg0: unknown, arg1
|
|
3553
|
+
getImageData(arg0: unknown, arg1?: unknown, arg2?: unknown, arg3?: unknown): unknown;
|
|
3551
3554
|
getIsVisible(): unknown;
|
|
3552
3555
|
classLayers(arg0: unknown): unknown;
|
|
3553
3556
|
setLayerClass(arg0: unknown, arg1: unknown): void;
|
|
@@ -3589,7 +3592,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
3589
3592
|
onAction(action: unknown): void;
|
|
3590
3593
|
rejectPaste(arg0: unknown): void;
|
|
3591
3594
|
runAfterDispatch(callback: () => void): void;
|
|
3592
|
-
|
|
3595
|
+
selectedContentForCopy(): { plain?: unknown; latex: string } | { plain: string; latex: string };
|
|
3593
3596
|
setMostRecentAriaMessage(mostRecentAriaMessage: unknown): void;
|
|
3594
3597
|
subscribeToChanges(arg0: unknown): (...args: any[]) => unknown;
|
|
3595
3598
|
updateViews(): void;
|
|
@@ -3804,6 +3807,20 @@ declare namespace Desmos.Internals.Generated {
|
|
|
3804
3807
|
updateFadeAnimations(): void;
|
|
3805
3808
|
}
|
|
3806
3809
|
|
|
3810
|
+
interface ControllerImageStore {
|
|
3811
|
+
byKey: Map<unknown, unknown>;
|
|
3812
|
+
onImageDataLoaded(): unknown;
|
|
3813
|
+
add(image: unknown, callback?: (...args: any[]) => unknown): unknown;
|
|
3814
|
+
anyLoading(): boolean;
|
|
3815
|
+
entries(): unknown;
|
|
3816
|
+
getImageData(arg0: unknown): unknown;
|
|
3817
|
+
getSnapshot(): unknown;
|
|
3818
|
+
load(image?: unknown): { image?: unknown; data?: unknown; load: { status: "loading" } };
|
|
3819
|
+
restore(byKey?: unknown): void;
|
|
3820
|
+
serialize(callback: (...args: any[]) => unknown): unknown[];
|
|
3821
|
+
updateToState(toState: unknown): void;
|
|
3822
|
+
}
|
|
3823
|
+
|
|
3807
3824
|
interface ControllerMovablePointsController {
|
|
3808
3825
|
calcController: Controller;
|
|
3809
3826
|
destroy(): void;
|
|
@@ -4767,7 +4784,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
4767
4784
|
|
|
4768
4785
|
// AUTO-GENERATED by scripts/extract-internals.cjs. Do not edit by hand:
|
|
4769
4786
|
// put precise types in the hand-written files in internals/ instead.
|
|
4770
|
-
// Source: Desmos v1.13-prerelease (commit
|
|
4787
|
+
// Source: Desmos v1.13-prerelease (commit ece5222f87957e953f9397883764b58020d3d8d9).
|
|
4771
4788
|
// Actions accepted by each dispatch domain, from static analysis.
|
|
4772
4789
|
declare namespace Desmos.Internals.Generated {
|
|
4773
4790
|
/**
|
|
@@ -4909,9 +4926,9 @@ declare namespace Desmos.Internals.Generated {
|
|
|
4909
4926
|
/** Handled by: handleDispatchedAction. */
|
|
4910
4927
|
| { type: "image-retry-loading"; id: string }
|
|
4911
4928
|
/** Handled by: handleDispatchedAction. */
|
|
4912
|
-
| { type: "image-upload-error"; error: unknown;
|
|
4929
|
+
| { type: "image-upload-error"; error: unknown; uploadKey: unknown }
|
|
4913
4930
|
/** Handled by: handleDispatchedAction. */
|
|
4914
|
-
| { type: "image-upload-success"; height: unknown; id: string; name: string;
|
|
4931
|
+
| { type: "image-upload-success"; height: unknown; id: string; name: string; pixelHeight: unknown; pixelWidth: unknown; uploadKey: unknown; url: string; width: unknown }
|
|
4915
4932
|
/** Handled but never dispatched inside the bundle. Handled by: handleDispatchedAction. */
|
|
4916
4933
|
| { type: "insert-item-at-index"; focus?: unknown; folderId?: string; index?: number; state?: unknown }
|
|
4917
4934
|
/** Handled by: handleDispatchedAction. */
|
|
@@ -5386,6 +5403,8 @@ declare namespace Desmos.Internals.Generated {
|
|
|
5386
5403
|
/** Handled by: handleAction. */
|
|
5387
5404
|
| { type: "mouse-up" }
|
|
5388
5405
|
/** Handled by: handleAction. */
|
|
5406
|
+
| { type: "paste"; content: unknown }
|
|
5407
|
+
/** Handled by: handleAction. */
|
|
5389
5408
|
| { type: "resize-matrix-at-cursor"; dx: number; dy: number }
|
|
5390
5409
|
/** Handled by: handleAction. */
|
|
5391
5410
|
| { type: "resize-matrix-by-arrow"; dx: number; dy: number }
|
|
@@ -5426,7 +5445,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
5426
5445
|
/** Handled by: handleAction. */
|
|
5427
5446
|
| { type: "type-char"; char: unknown }
|
|
5428
5447
|
/** Handled by: handleAction. */
|
|
5429
|
-
| { type: "write-latex";
|
|
5448
|
+
| { type: "write-latex"; latex: string };
|
|
5430
5449
|
|
|
5431
5450
|
/**
|
|
5432
5451
|
* Actions handled by a four-function or scientific calculator controller.
|
|
@@ -5525,7 +5544,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
5525
5544
|
|
|
5526
5545
|
// AUTO-GENERATED by scripts/extract-internals.cjs. Do not edit by hand:
|
|
5527
5546
|
// put precise types in the hand-written files in internals/ instead.
|
|
5528
|
-
// Source: Desmos v1.13-prerelease (commit
|
|
5547
|
+
// Source: Desmos v1.13-prerelease (commit ece5222f87957e953f9397883764b58020d3d8d9).
|
|
5529
5548
|
// Props and instance members of the views on Private.Fragile.
|
|
5530
5549
|
declare namespace Desmos.Internals.Generated {
|
|
5531
5550
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spidunno/desmos-types",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.57",
|
|
4
4
|
"description": "TypeScript type definitions for the Desmos API v1.13",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -54,6 +54,6 @@
|
|
|
54
54
|
},
|
|
55
55
|
"desmos": {
|
|
56
56
|
"version": "v1.13-prerelease",
|
|
57
|
-
"commit": "
|
|
57
|
+
"commit": "ece5222f87957e953f9397883764b58020d3d8d9"
|
|
58
58
|
}
|
|
59
59
|
}
|