@spidunno/desmos-types 1.13.54 → 1.13.56
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.56
|
|
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.56`), 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 e1b566b8b1fecb3e2bd8c3279c6b6276ce8db5be).
|
|
4
4
|
// Actions accepted by each dispatch domain, from static analysis.
|
|
5
5
|
declare namespace Desmos.Internals.Generated {
|
|
6
6
|
/**
|
|
@@ -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 e1b566b8b1fecb3e2bd8c3279c6b6276ce8db5be).
|
|
4
4
|
// Runtime shapes of internal objects.
|
|
5
5
|
declare namespace Desmos.Internals.Generated {
|
|
6
6
|
interface Controller {
|
|
@@ -1488,7 +1488,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
1488
1488
|
onAction(action: unknown): void;
|
|
1489
1489
|
rejectPaste(arg0: unknown): void;
|
|
1490
1490
|
runAfterDispatch(callback: () => void): void;
|
|
1491
|
-
|
|
1491
|
+
selectedContentForCopy(): { plain?: unknown; latex: string } | { plain: string; latex: string };
|
|
1492
1492
|
setMostRecentAriaMessage(mostRecentAriaMessage: unknown): void;
|
|
1493
1493
|
subscribeToChanges(arg0: unknown): (...args: any[]) => unknown;
|
|
1494
1494
|
updateViews(): void;
|
|
@@ -1740,6 +1740,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
1740
1740
|
destroy(): void;
|
|
1741
1741
|
dispatch(action: unknown): void;
|
|
1742
1742
|
findReferencedOrDefinedTokenIdentifiers(): { permanent: Set<unknown>; transient: Set<unknown> };
|
|
1743
|
+
getColorMode(): string;
|
|
1743
1744
|
getIdFromParentRef(arg0: unknown): unknown;
|
|
1744
1745
|
getParentOrChildHovered(arg0: unknown): boolean | "parent" | "child";
|
|
1745
1746
|
getTokenRenderInfoByIdentifier(arg0: unknown): unknown;
|
|
@@ -2575,7 +2576,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
2575
2576
|
applyLocalizationMap(arg0: unknown, arg1: unknown, arg2: string): unknown;
|
|
2576
2577
|
builtInFrame: unknown;
|
|
2577
2578
|
calculateDiff(arg0: unknown, arg1: unknown): 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
|
|
2579
|
+
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>; secondaryText: string }; getDisplayColor: (arg0?: any, arg1?: any) => unknown; hexToRgba: (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 };
|
|
2579
2580
|
context(arg0?: unknown): unknown;
|
|
2580
2581
|
createEvaluationContext(arg0: unknown): { evaluate: (...args: any[]) => unknown };
|
|
2581
2582
|
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 e1b566b8b1fecb3e2bd8c3279c6b6276ce8db5be).
|
|
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 e1b566b8b1fecb3e2bd8c3279c6b6276ce8db5be).
|
|
2105
2105
|
// Runtime shapes of internal objects.
|
|
2106
2106
|
declare namespace Desmos.Internals.Generated {
|
|
2107
2107
|
interface Controller {
|
|
@@ -3589,7 +3589,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
3589
3589
|
onAction(action: unknown): void;
|
|
3590
3590
|
rejectPaste(arg0: unknown): void;
|
|
3591
3591
|
runAfterDispatch(callback: () => void): void;
|
|
3592
|
-
|
|
3592
|
+
selectedContentForCopy(): { plain?: unknown; latex: string } | { plain: string; latex: string };
|
|
3593
3593
|
setMostRecentAriaMessage(mostRecentAriaMessage: unknown): void;
|
|
3594
3594
|
subscribeToChanges(arg0: unknown): (...args: any[]) => unknown;
|
|
3595
3595
|
updateViews(): void;
|
|
@@ -3841,6 +3841,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
3841
3841
|
destroy(): void;
|
|
3842
3842
|
dispatch(action: unknown): void;
|
|
3843
3843
|
findReferencedOrDefinedTokenIdentifiers(): { permanent: Set<unknown>; transient: Set<unknown> };
|
|
3844
|
+
getColorMode(): string;
|
|
3844
3845
|
getIdFromParentRef(arg0: unknown): unknown;
|
|
3845
3846
|
getParentOrChildHovered(arg0: unknown): boolean | "parent" | "child";
|
|
3846
3847
|
getTokenRenderInfoByIdentifier(arg0: unknown): unknown;
|
|
@@ -4676,7 +4677,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
4676
4677
|
applyLocalizationMap(arg0: unknown, arg1: unknown, arg2: string): unknown;
|
|
4677
4678
|
builtInFrame: unknown;
|
|
4678
4679
|
calculateDiff(arg0: unknown, arg1: unknown): 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
|
|
4680
|
+
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>; secondaryText: string }; getDisplayColor: (arg0?: any, arg1?: any) => unknown; hexToRgba: (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 };
|
|
4680
4681
|
context(arg0?: unknown): unknown;
|
|
4681
4682
|
createEvaluationContext(arg0: unknown): { evaluate: (...args: any[]) => unknown };
|
|
4682
4683
|
extractLocalizationMap(arg0: unknown): unknown;
|
|
@@ -4766,7 +4767,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
4766
4767
|
|
|
4767
4768
|
// AUTO-GENERATED by scripts/extract-internals.cjs. Do not edit by hand:
|
|
4768
4769
|
// put precise types in the hand-written files in internals/ instead.
|
|
4769
|
-
// Source: Desmos v1.13-prerelease (commit
|
|
4770
|
+
// Source: Desmos v1.13-prerelease (commit e1b566b8b1fecb3e2bd8c3279c6b6276ce8db5be).
|
|
4770
4771
|
// Actions accepted by each dispatch domain, from static analysis.
|
|
4771
4772
|
declare namespace Desmos.Internals.Generated {
|
|
4772
4773
|
/**
|
|
@@ -5385,6 +5386,8 @@ declare namespace Desmos.Internals.Generated {
|
|
|
5385
5386
|
/** Handled by: handleAction. */
|
|
5386
5387
|
| { type: "mouse-up" }
|
|
5387
5388
|
/** Handled by: handleAction. */
|
|
5389
|
+
| { type: "paste"; content: unknown }
|
|
5390
|
+
/** Handled by: handleAction. */
|
|
5388
5391
|
| { type: "resize-matrix-at-cursor"; dx: number; dy: number }
|
|
5389
5392
|
/** Handled by: handleAction. */
|
|
5390
5393
|
| { type: "resize-matrix-by-arrow"; dx: number; dy: number }
|
|
@@ -5425,7 +5428,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
5425
5428
|
/** Handled by: handleAction. */
|
|
5426
5429
|
| { type: "type-char"; char: unknown }
|
|
5427
5430
|
/** Handled by: handleAction. */
|
|
5428
|
-
| { type: "write-latex";
|
|
5431
|
+
| { type: "write-latex"; latex: string };
|
|
5429
5432
|
|
|
5430
5433
|
/**
|
|
5431
5434
|
* Actions handled by a four-function or scientific calculator controller.
|
|
@@ -5524,7 +5527,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
5524
5527
|
|
|
5525
5528
|
// AUTO-GENERATED by scripts/extract-internals.cjs. Do not edit by hand:
|
|
5526
5529
|
// put precise types in the hand-written files in internals/ instead.
|
|
5527
|
-
// Source: Desmos v1.13-prerelease (commit
|
|
5530
|
+
// Source: Desmos v1.13-prerelease (commit e1b566b8b1fecb3e2bd8c3279c6b6276ce8db5be).
|
|
5528
5531
|
// Props and instance members of the views on Private.Fragile.
|
|
5529
5532
|
declare namespace Desmos.Internals.Generated {
|
|
5530
5533
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spidunno/desmos-types",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.56",
|
|
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": "e1b566b8b1fecb3e2bd8c3279c6b6276ce8db5be"
|
|
58
58
|
}
|
|
59
59
|
}
|