@spidunno/desmos-types 1.13.48 → 1.13.50
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.50
|
|
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.50`), 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 708cae05bc1791060d18ee355f4fb29e9ae090a9).
|
|
4
4
|
// Actions accepted by each dispatch domain, from static analysis.
|
|
5
5
|
declare namespace Desmos.Internals.Generated {
|
|
6
6
|
/**
|
|
@@ -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 708cae05bc1791060d18ee355f4fb29e9ae090a9).
|
|
4
4
|
// Runtime shapes of internal objects.
|
|
5
5
|
declare namespace Desmos.Internals.Generated {
|
|
6
6
|
interface Controller {
|
|
@@ -247,10 +247,12 @@ declare namespace Desmos.Internals.Generated {
|
|
|
247
247
|
getCanShowKeyboardShortcuts(): boolean;
|
|
248
248
|
getCapExpressionSize(): boolean;
|
|
249
249
|
getColorById(id: string): { type: "single-color"; value: "" } | { type: "shader"; imageData?: unknown } | { type: "unrendered-shader" } | { type: "color-array"; value?: unknown } | { type: "single-color"; value?: unknown };
|
|
250
|
+
getColorMode(): string;
|
|
250
251
|
getColorPickerOptions(arg0?: unknown): unknown[];
|
|
251
252
|
getColors(): Record<string, string>;
|
|
252
253
|
getCompilerDebugData(): unknown;
|
|
253
254
|
getCooperativeGestureHint(): this["cooperativeGestureHint"];
|
|
255
|
+
getCurveDisplayColor(arg0: unknown): unknown;
|
|
254
256
|
getDefaultAxisScaleSettings(): { xAxisScale: string; yAxisScale: string };
|
|
255
257
|
getDegreeMode(): boolean;
|
|
256
258
|
getDraggedIdentifier(): unknown;
|
|
@@ -1057,12 +1059,14 @@ declare namespace Desmos.Internals.Generated {
|
|
|
1057
1059
|
deregisterMovablePointListener(): void;
|
|
1058
1060
|
deselectSketch(arg0: unknown): void;
|
|
1059
1061
|
drawLabelHitMask(arg0: unknown): unknown;
|
|
1062
|
+
drawScreenshotToCanvas(arg0: unknown, arg1?: unknown): void;
|
|
1060
1063
|
getAudioTrace(): Grapher2DAudioGraph;
|
|
1061
1064
|
getCanvasNode(): HTMLCanvasElement;
|
|
1062
1065
|
getDefaultViewport(): unknown;
|
|
1063
1066
|
getGraphImage(arg0: unknown): unknown;
|
|
1064
1067
|
getGraphSketch(arg0: unknown): unknown;
|
|
1065
1068
|
getProjection(): Grapher2DProjection;
|
|
1069
|
+
isColoredByExpression(id: unknown, arg1: unknown): boolean;
|
|
1066
1070
|
makeScreenshotProjection(arg0: unknown): unknown;
|
|
1067
1071
|
privateGetGridLayer(): this["gridLayer"];
|
|
1068
1072
|
registerMovablePointListener(movablePointListener: unknown): void;
|
|
@@ -1070,7 +1074,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
1070
1074
|
removeGraphImage(arg0: unknown): void;
|
|
1071
1075
|
removeGraphSketch(arg0: unknown): void;
|
|
1072
1076
|
screenshot(arg0?: unknown): string;
|
|
1073
|
-
screenshotToCanvas(arg0: unknown, arg1
|
|
1077
|
+
screenshotToCanvas(arg0: unknown, arg1: unknown): void;
|
|
1074
1078
|
selectSketch(arg0: unknown): void;
|
|
1075
1079
|
setActiveToken(arg0: unknown, arg1: string): void;
|
|
1076
1080
|
setBoxSelectRectangle(boxSelectRectangle: unknown): void;
|
|
@@ -1081,7 +1085,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
1081
1085
|
tick(arg0?: unknown): void;
|
|
1082
1086
|
update(): void;
|
|
1083
1087
|
updateIntersections(arg0: unknown, arg1?: unknown): void;
|
|
1084
|
-
updateSketch(
|
|
1088
|
+
updateSketch(id: unknown, arg1: unknown): void;
|
|
1085
1089
|
getState(arg0?: unknown): unknown;
|
|
1086
1090
|
getUndoRedoDiffState(): Record<string, boolean | number | number[] | string | unknown[] | { xmin: string; xmax: string; ymin: string; ymax: string }>;
|
|
1087
1091
|
getUndoRedoFullState(): Record<string, boolean | number | number[] | string | unknown[] | { xmin: string; xmax: string; ymin: string; ymax: string }>;
|
|
@@ -1169,15 +1173,18 @@ declare namespace Desmos.Internals.Generated {
|
|
|
1169
1173
|
cloneConfig(): unknown;
|
|
1170
1174
|
getAccentColor(options?: { invertBlack?: unknown }): string;
|
|
1171
1175
|
getBackgroundColor(options?: { invertWhite?: unknown }): string;
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1176
|
+
getColorMode(): string;
|
|
1177
|
+
getConfiguredThemeColors(): Record<string, string>;
|
|
1178
|
+
getCurveDisplayColor(arg0: string): unknown;
|
|
1175
1179
|
getFillOpacityMultiplier(): number;
|
|
1176
1180
|
getHighlightPropertyMultiplier(arg0: unknown, arg1: unknown): unknown;
|
|
1177
1181
|
getTextColor(options?: { invertBlack?: unknown }): string;
|
|
1182
|
+
getThemeColors(): Record<string, string>;
|
|
1183
|
+
isKeptLightByThemeColors(): boolean;
|
|
1178
1184
|
registerCallbacks(): void;
|
|
1179
1185
|
setController(controller: unknown): void;
|
|
1180
1186
|
validateSettings(arg0: unknown): unknown;
|
|
1187
|
+
whileTakingScreenshot(callback: (...args: any[]) => unknown): unknown;
|
|
1181
1188
|
getProperty(name: string): unknown;
|
|
1182
1189
|
notifyPropertyChange(arg0: unknown): void;
|
|
1183
1190
|
observe(names: string, callback?: unknown): void;
|
|
@@ -2568,7 +2575,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
2568
2575
|
applyLocalizationMap(arg0: unknown, arg1: unknown, arg2: string): unknown;
|
|
2569
2576
|
builtInFrame: unknown;
|
|
2570
2577
|
calculateDiff(arg0: unknown, arg1: unknown): unknown;
|
|
2571
|
-
colorHelpers: { LinearToSRGB: (arg0?: any) => unknown; SRGBToLinear: (arg0?: any) => unknown; colorString: (arg0?: any, arg1?: any, arg2?: any) => unknown; colors: Record<string, string>; colors3d: { RED: string; BLUE: string; GREEN: string; ORANGE: string; PURPLE: string; GRAY: string }; computedThemeColors: (arg0?: any) => unknown; convertColorStringToLinearRGB: (arg0?: any) => unknown; getDisplayColor: (arg0?: any, arg1?: any) => unknown; invertColor: (arg0?: any) => unknown; isValidHexColor: (arg0?: any) => unknown; mixColors: (arg0?: any, arg1?: any, arg2?: any) => unknown; mutateOpacity: (arg0?: any, arg1?: any) => unknown; normalizeColor: (arg0?: any) => unknown; parseHex: (arg0?: any) => unknown; shadeColor: (arg0?: any, arg1?: any) => unknown };
|
|
2578
|
+
colorHelpers: { LinearToSRGB: (arg0?: any) => unknown; SRGBToLinear: (arg0?: any) => unknown; colorModeForThemeColors: (arg0?: any, arg1?: any) => unknown; colorString: (arg0?: any, arg1?: any, arg2?: any) => unknown; colors: Record<string, string>; colors3d: { RED: string; BLUE: string; GREEN: string; ORANGE: string; PURPLE: string; GRAY: string }; computedThemeColors: (arg0?: any) => unknown; convertColorStringToLinearRGB: (arg0?: any) => unknown; curveDisplayColor: (arg0?: any, arg1?: any) => unknown; darkModeTheme: { background: string; text: string; accent: string; curves: Record<string, string> }; getDisplayColor: (arg0?: any, arg1?: any) => unknown; invertColor: (arg0?: any) => unknown; isLowContrastDarkSwatch: (arg0?: any) => boolean; isResolvedColorMode: (arg0?: any) => boolean; isValidHexColor: (arg0?: any) => unknown; mixColors: (arg0?: any, arg1?: any, arg2?: any) => unknown; mutateOpacity: (arg0?: any, arg1?: any) => unknown; normalizeColor: (arg0?: any) => unknown; parseHex: (arg0?: any) => unknown; shadeColor: (arg0?: any, arg1?: any) => unknown; themeColorsForMode: (arg0?: any, arg1?: any) => unknown };
|
|
2572
2579
|
context(arg0?: unknown): unknown;
|
|
2573
2580
|
createEvaluationContext(arg0: unknown): { evaluate: (...args: any[]) => unknown };
|
|
2574
2581
|
extractLocalizationMap(arg0: unknown): unknown;
|
|
@@ -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 708cae05bc1791060d18ee355f4fb29e9ae090a9).
|
|
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 708cae05bc1791060d18ee355f4fb29e9ae090a9).
|
|
2105
2105
|
// Runtime shapes of internal objects.
|
|
2106
2106
|
declare namespace Desmos.Internals.Generated {
|
|
2107
2107
|
interface Controller {
|
|
@@ -2348,10 +2348,12 @@ declare namespace Desmos.Internals.Generated {
|
|
|
2348
2348
|
getCanShowKeyboardShortcuts(): boolean;
|
|
2349
2349
|
getCapExpressionSize(): boolean;
|
|
2350
2350
|
getColorById(id: string): { type: "single-color"; value: "" } | { type: "shader"; imageData?: unknown } | { type: "unrendered-shader" } | { type: "color-array"; value?: unknown } | { type: "single-color"; value?: unknown };
|
|
2351
|
+
getColorMode(): string;
|
|
2351
2352
|
getColorPickerOptions(arg0?: unknown): unknown[];
|
|
2352
2353
|
getColors(): Record<string, string>;
|
|
2353
2354
|
getCompilerDebugData(): unknown;
|
|
2354
2355
|
getCooperativeGestureHint(): this["cooperativeGestureHint"];
|
|
2356
|
+
getCurveDisplayColor(arg0: unknown): unknown;
|
|
2355
2357
|
getDefaultAxisScaleSettings(): { xAxisScale: string; yAxisScale: string };
|
|
2356
2358
|
getDegreeMode(): boolean;
|
|
2357
2359
|
getDraggedIdentifier(): unknown;
|
|
@@ -3158,12 +3160,14 @@ declare namespace Desmos.Internals.Generated {
|
|
|
3158
3160
|
deregisterMovablePointListener(): void;
|
|
3159
3161
|
deselectSketch(arg0: unknown): void;
|
|
3160
3162
|
drawLabelHitMask(arg0: unknown): unknown;
|
|
3163
|
+
drawScreenshotToCanvas(arg0: unknown, arg1?: unknown): void;
|
|
3161
3164
|
getAudioTrace(): Grapher2DAudioGraph;
|
|
3162
3165
|
getCanvasNode(): HTMLCanvasElement;
|
|
3163
3166
|
getDefaultViewport(): unknown;
|
|
3164
3167
|
getGraphImage(arg0: unknown): unknown;
|
|
3165
3168
|
getGraphSketch(arg0: unknown): unknown;
|
|
3166
3169
|
getProjection(): Grapher2DProjection;
|
|
3170
|
+
isColoredByExpression(id: unknown, arg1: unknown): boolean;
|
|
3167
3171
|
makeScreenshotProjection(arg0: unknown): unknown;
|
|
3168
3172
|
privateGetGridLayer(): this["gridLayer"];
|
|
3169
3173
|
registerMovablePointListener(movablePointListener: unknown): void;
|
|
@@ -3171,7 +3175,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
3171
3175
|
removeGraphImage(arg0: unknown): void;
|
|
3172
3176
|
removeGraphSketch(arg0: unknown): void;
|
|
3173
3177
|
screenshot(arg0?: unknown): string;
|
|
3174
|
-
screenshotToCanvas(arg0: unknown, arg1
|
|
3178
|
+
screenshotToCanvas(arg0: unknown, arg1: unknown): void;
|
|
3175
3179
|
selectSketch(arg0: unknown): void;
|
|
3176
3180
|
setActiveToken(arg0: unknown, arg1: string): void;
|
|
3177
3181
|
setBoxSelectRectangle(boxSelectRectangle: unknown): void;
|
|
@@ -3182,7 +3186,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
3182
3186
|
tick(arg0?: unknown): void;
|
|
3183
3187
|
update(): void;
|
|
3184
3188
|
updateIntersections(arg0: unknown, arg1?: unknown): void;
|
|
3185
|
-
updateSketch(
|
|
3189
|
+
updateSketch(id: unknown, arg1: unknown): void;
|
|
3186
3190
|
getState(arg0?: unknown): unknown;
|
|
3187
3191
|
getUndoRedoDiffState(): Record<string, boolean | number | number[] | string | unknown[] | { xmin: string; xmax: string; ymin: string; ymax: string }>;
|
|
3188
3192
|
getUndoRedoFullState(): Record<string, boolean | number | number[] | string | unknown[] | { xmin: string; xmax: string; ymin: string; ymax: string }>;
|
|
@@ -3270,15 +3274,18 @@ declare namespace Desmos.Internals.Generated {
|
|
|
3270
3274
|
cloneConfig(): unknown;
|
|
3271
3275
|
getAccentColor(options?: { invertBlack?: unknown }): string;
|
|
3272
3276
|
getBackgroundColor(options?: { invertWhite?: unknown }): string;
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3277
|
+
getColorMode(): string;
|
|
3278
|
+
getConfiguredThemeColors(): Record<string, string>;
|
|
3279
|
+
getCurveDisplayColor(arg0: string): unknown;
|
|
3276
3280
|
getFillOpacityMultiplier(): number;
|
|
3277
3281
|
getHighlightPropertyMultiplier(arg0: unknown, arg1: unknown): unknown;
|
|
3278
3282
|
getTextColor(options?: { invertBlack?: unknown }): string;
|
|
3283
|
+
getThemeColors(): Record<string, string>;
|
|
3284
|
+
isKeptLightByThemeColors(): boolean;
|
|
3279
3285
|
registerCallbacks(): void;
|
|
3280
3286
|
setController(controller: unknown): void;
|
|
3281
3287
|
validateSettings(arg0: unknown): unknown;
|
|
3288
|
+
whileTakingScreenshot(callback: (...args: any[]) => unknown): unknown;
|
|
3282
3289
|
getProperty(name: string): unknown;
|
|
3283
3290
|
notifyPropertyChange(arg0: unknown): void;
|
|
3284
3291
|
observe(names: string, callback?: unknown): void;
|
|
@@ -4669,7 +4676,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
4669
4676
|
applyLocalizationMap(arg0: unknown, arg1: unknown, arg2: string): unknown;
|
|
4670
4677
|
builtInFrame: unknown;
|
|
4671
4678
|
calculateDiff(arg0: unknown, arg1: unknown): unknown;
|
|
4672
|
-
colorHelpers: { LinearToSRGB: (arg0?: any) => unknown; SRGBToLinear: (arg0?: any) => unknown; colorString: (arg0?: any, arg1?: any, arg2?: any) => unknown; colors: Record<string, string>; colors3d: { RED: string; BLUE: string; GREEN: string; ORANGE: string; PURPLE: string; GRAY: string }; computedThemeColors: (arg0?: any) => unknown; convertColorStringToLinearRGB: (arg0?: any) => unknown; getDisplayColor: (arg0?: any, arg1?: any) => unknown; invertColor: (arg0?: any) => unknown; isValidHexColor: (arg0?: any) => unknown; mixColors: (arg0?: any, arg1?: any, arg2?: any) => unknown; mutateOpacity: (arg0?: any, arg1?: any) => unknown; normalizeColor: (arg0?: any) => unknown; parseHex: (arg0?: any) => unknown; shadeColor: (arg0?: any, arg1?: any) => unknown };
|
|
4679
|
+
colorHelpers: { LinearToSRGB: (arg0?: any) => unknown; SRGBToLinear: (arg0?: any) => unknown; colorModeForThemeColors: (arg0?: any, arg1?: any) => unknown; colorString: (arg0?: any, arg1?: any, arg2?: any) => unknown; colors: Record<string, string>; colors3d: { RED: string; BLUE: string; GREEN: string; ORANGE: string; PURPLE: string; GRAY: string }; computedThemeColors: (arg0?: any) => unknown; convertColorStringToLinearRGB: (arg0?: any) => unknown; curveDisplayColor: (arg0?: any, arg1?: any) => unknown; darkModeTheme: { background: string; text: string; accent: string; curves: Record<string, string> }; getDisplayColor: (arg0?: any, arg1?: any) => unknown; invertColor: (arg0?: any) => unknown; isLowContrastDarkSwatch: (arg0?: any) => boolean; isResolvedColorMode: (arg0?: any) => boolean; isValidHexColor: (arg0?: any) => unknown; mixColors: (arg0?: any, arg1?: any, arg2?: any) => unknown; mutateOpacity: (arg0?: any, arg1?: any) => unknown; normalizeColor: (arg0?: any) => unknown; parseHex: (arg0?: any) => unknown; shadeColor: (arg0?: any, arg1?: any) => unknown; themeColorsForMode: (arg0?: any, arg1?: any) => unknown };
|
|
4673
4680
|
context(arg0?: unknown): unknown;
|
|
4674
4681
|
createEvaluationContext(arg0: unknown): { evaluate: (...args: any[]) => unknown };
|
|
4675
4682
|
extractLocalizationMap(arg0: unknown): unknown;
|
|
@@ -4759,7 +4766,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
4759
4766
|
|
|
4760
4767
|
// AUTO-GENERATED by scripts/extract-internals.cjs. Do not edit by hand:
|
|
4761
4768
|
// put precise types in the hand-written files in internals/ instead.
|
|
4762
|
-
// Source: Desmos v1.13-prerelease (commit
|
|
4769
|
+
// Source: Desmos v1.13-prerelease (commit 708cae05bc1791060d18ee355f4fb29e9ae090a9).
|
|
4763
4770
|
// Actions accepted by each dispatch domain, from static analysis.
|
|
4764
4771
|
declare namespace Desmos.Internals.Generated {
|
|
4765
4772
|
/**
|
|
@@ -5517,7 +5524,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
5517
5524
|
|
|
5518
5525
|
// AUTO-GENERATED by scripts/extract-internals.cjs. Do not edit by hand:
|
|
5519
5526
|
// put precise types in the hand-written files in internals/ instead.
|
|
5520
|
-
// Source: Desmos v1.13-prerelease (commit
|
|
5527
|
+
// Source: Desmos v1.13-prerelease (commit 708cae05bc1791060d18ee355f4fb29e9ae090a9).
|
|
5521
5528
|
// Props and instance members of the views on Private.Fragile.
|
|
5522
5529
|
declare namespace Desmos.Internals.Generated {
|
|
5523
5530
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spidunno/desmos-types",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.50",
|
|
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": "708cae05bc1791060d18ee355f4fb29e9ae090a9"
|
|
58
58
|
}
|
|
59
59
|
}
|