@spidunno/desmos-types 1.13.19 → 1.13.21
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.21
|
|
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.21`), 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 f82f43220c7f1f5431e57e431ace564953009e6b).
|
|
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 f82f43220c7f1f5431e57e431ace564953009e6b).
|
|
4
4
|
// Runtime shapes of internal objects.
|
|
5
5
|
declare namespace Desmos.Internals.Generated {
|
|
6
6
|
interface Controller {
|
|
@@ -1636,8 +1636,6 @@ declare namespace Desmos.Internals.Generated {
|
|
|
1636
1636
|
_getReusableIdForCurrentInput(arg0?: unknown): unknown;
|
|
1637
1637
|
_modifySelection(arg0: unknown): void;
|
|
1638
1638
|
_shouldNewObjectsBeMarkedUncommitted(): boolean;
|
|
1639
|
-
applyTransformation(arg0: unknown): void;
|
|
1640
|
-
areAnyObjectsHovered(): boolean;
|
|
1641
1639
|
attemptLockToolInputIn(arg0: unknown): void;
|
|
1642
1640
|
cancelToolplay(): void;
|
|
1643
1641
|
clear(): void;
|
|
@@ -1650,42 +1648,32 @@ declare namespace Desmos.Internals.Generated {
|
|
|
1650
1648
|
createToolInputDependency(objectDef: unknown, toolSpec: unknown, depIndex: unknown): unknown;
|
|
1651
1649
|
defaultColorForObject(arg0: unknown, arg1: unknown): unknown;
|
|
1652
1650
|
deleteObjectsAndRememberReusableId(reusableInputIdMap: unknown): void;
|
|
1653
|
-
deleteSelectedObjects(): void;
|
|
1654
1651
|
deselectAllObjects(): void;
|
|
1655
1652
|
findDefsForInputId(assignment: unknown): unknown[];
|
|
1656
1653
|
findIncidentPointDef(arg0: unknown, arg1: unknown): unknown;
|
|
1657
1654
|
generateIdsForNewToolOutputs(arg0: unknown): void;
|
|
1658
1655
|
generatePureToolOutput(arg0: unknown, arg1: unknown[]): { canCommit?: unknown; outputs?: unknown } | undefined;
|
|
1659
|
-
getAdditionalTools(): Array<{ key: string; objects: string }>;
|
|
1660
1656
|
getAllChoosableDefsUnordered(arg0: unknown, arg1: unknown): unknown[];
|
|
1661
1657
|
getClickToInsertMode(): string;
|
|
1662
1658
|
getComputedBoard(): unknown;
|
|
1663
1659
|
getCurrentTool(): unknown;
|
|
1664
1660
|
getCurrentToolDisplayName(): string;
|
|
1665
1661
|
getDisplayNameForTool(arg0: unknown): unknown;
|
|
1666
|
-
getEnabledAdditionalTools(): Array<{ key: string; objects: string }>;
|
|
1667
1662
|
getHoveredItems(): unknown[];
|
|
1668
1663
|
getIconInstructionsForTool(arg0: unknown): unknown;
|
|
1669
1664
|
getNonObjectsState(): { objects?: unknown; ui: { currentTool: Record<string, unknown>; colors: Record<string, string>; clickToInsertMode: string }; hoveredObjects: unknown[]; uncommittedIds: Record<string, unknown>; selectedIds: Record<string, unknown>; nextSelectionNumber: number; fadeAnimations: Record<string, unknown>; maxAnimationEndTime: number };
|
|
1670
1665
|
getObjectDefUnderMouse(arg0: unknown, arg1: number, arg2: unknown): unknown;
|
|
1671
1666
|
getOrCreatePointNearMouse(arg0: unknown, arg1: number): { type: "def"; def?: unknown } | { type: "spec"; spec: { type: "point-reference"; targetSpec: { type: "intersection"; parentDefs?: unknown }; parentDefs: unknown[] } } | { type: "spec"; spec: { type: "intersection"; parentDefs?: unknown } } | { type: "spec"; spec: { type: "glider"; t?: unknown; parentDefs: unknown[] } } | { type: "spec"; spec: { type: "vector-endpoint"; location: "end" | "start"; parentDefs: unknown[] } } | { type: "spec"; spec: { type: "point"; x?: unknown; y?: unknown; parentDefs: unknown[]; previewOnly: boolean } };
|
|
1672
1667
|
getProjection(): Grapher2DProjection;
|
|
1673
|
-
getSelectedObjectIdsSorted(): unknown[];
|
|
1674
|
-
getSelectedObjectIdsUnsorted(): unknown[];
|
|
1675
|
-
getSelectionBox(): unknown;
|
|
1676
1668
|
getTool(arg0: unknown): unknown;
|
|
1677
1669
|
getToolFadeOpacity(id: string): number;
|
|
1678
1670
|
getToolMode(): string;
|
|
1679
1671
|
getUncommittedObjectIds(): unknown[];
|
|
1680
1672
|
getUncommittedObjects(): Record<string, unknown>;
|
|
1681
|
-
isAnyAdditionalToolEnabled(): boolean;
|
|
1682
|
-
isCreatingNewTransform(): boolean;
|
|
1683
|
-
isCurrentToolComplex(): boolean;
|
|
1684
1673
|
isCurrentToolSingleUse(): boolean;
|
|
1685
1674
|
isDegenerateInput(arg0: unknown): unknown;
|
|
1686
1675
|
isFading(): boolean;
|
|
1687
1676
|
isObjectALockedToolInput(id: unknown): boolean;
|
|
1688
|
-
isObjectSelected(id: unknown): boolean;
|
|
1689
1677
|
isObjectUncommitted(id: unknown): boolean;
|
|
1690
1678
|
isToolActuallyUsable(arg0: unknown): boolean;
|
|
1691
1679
|
isToolplayActive(): boolean;
|
|
@@ -1699,8 +1687,6 @@ declare namespace Desmos.Internals.Generated {
|
|
|
1699
1687
|
resetToolMode(): void;
|
|
1700
1688
|
setClickToInsertMode(clickToInsertMode: unknown): void;
|
|
1701
1689
|
setObjectHovered(objectHovered: unknown): void;
|
|
1702
|
-
setObjectSelected(objectSelected: unknown): void;
|
|
1703
|
-
setObjectsSelected(objectsSelected: unknown[]): void;
|
|
1704
1690
|
setToolMode(name: string): void;
|
|
1705
1691
|
speakCurrentGeoToolHint(): void;
|
|
1706
1692
|
storeNumberInputLatex(arg0: unknown, arg1: unknown): 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 f82f43220c7f1f5431e57e431ace564953009e6b).
|
|
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 f82f43220c7f1f5431e57e431ace564953009e6b).
|
|
2105
2105
|
// Runtime shapes of internal objects.
|
|
2106
2106
|
declare namespace Desmos.Internals.Generated {
|
|
2107
2107
|
interface Controller {
|
|
@@ -3737,8 +3737,6 @@ declare namespace Desmos.Internals.Generated {
|
|
|
3737
3737
|
_getReusableIdForCurrentInput(arg0?: unknown): unknown;
|
|
3738
3738
|
_modifySelection(arg0: unknown): void;
|
|
3739
3739
|
_shouldNewObjectsBeMarkedUncommitted(): boolean;
|
|
3740
|
-
applyTransformation(arg0: unknown): void;
|
|
3741
|
-
areAnyObjectsHovered(): boolean;
|
|
3742
3740
|
attemptLockToolInputIn(arg0: unknown): void;
|
|
3743
3741
|
cancelToolplay(): void;
|
|
3744
3742
|
clear(): void;
|
|
@@ -3751,42 +3749,32 @@ declare namespace Desmos.Internals.Generated {
|
|
|
3751
3749
|
createToolInputDependency(objectDef: unknown, toolSpec: unknown, depIndex: unknown): unknown;
|
|
3752
3750
|
defaultColorForObject(arg0: unknown, arg1: unknown): unknown;
|
|
3753
3751
|
deleteObjectsAndRememberReusableId(reusableInputIdMap: unknown): void;
|
|
3754
|
-
deleteSelectedObjects(): void;
|
|
3755
3752
|
deselectAllObjects(): void;
|
|
3756
3753
|
findDefsForInputId(assignment: unknown): unknown[];
|
|
3757
3754
|
findIncidentPointDef(arg0: unknown, arg1: unknown): unknown;
|
|
3758
3755
|
generateIdsForNewToolOutputs(arg0: unknown): void;
|
|
3759
3756
|
generatePureToolOutput(arg0: unknown, arg1: unknown[]): { canCommit?: unknown; outputs?: unknown } | undefined;
|
|
3760
|
-
getAdditionalTools(): Array<{ key: string; objects: string }>;
|
|
3761
3757
|
getAllChoosableDefsUnordered(arg0: unknown, arg1: unknown): unknown[];
|
|
3762
3758
|
getClickToInsertMode(): string;
|
|
3763
3759
|
getComputedBoard(): unknown;
|
|
3764
3760
|
getCurrentTool(): unknown;
|
|
3765
3761
|
getCurrentToolDisplayName(): string;
|
|
3766
3762
|
getDisplayNameForTool(arg0: unknown): unknown;
|
|
3767
|
-
getEnabledAdditionalTools(): Array<{ key: string; objects: string }>;
|
|
3768
3763
|
getHoveredItems(): unknown[];
|
|
3769
3764
|
getIconInstructionsForTool(arg0: unknown): unknown;
|
|
3770
3765
|
getNonObjectsState(): { objects?: unknown; ui: { currentTool: Record<string, unknown>; colors: Record<string, string>; clickToInsertMode: string }; hoveredObjects: unknown[]; uncommittedIds: Record<string, unknown>; selectedIds: Record<string, unknown>; nextSelectionNumber: number; fadeAnimations: Record<string, unknown>; maxAnimationEndTime: number };
|
|
3771
3766
|
getObjectDefUnderMouse(arg0: unknown, arg1: number, arg2: unknown): unknown;
|
|
3772
3767
|
getOrCreatePointNearMouse(arg0: unknown, arg1: number): { type: "def"; def?: unknown } | { type: "spec"; spec: { type: "point-reference"; targetSpec: { type: "intersection"; parentDefs?: unknown }; parentDefs: unknown[] } } | { type: "spec"; spec: { type: "intersection"; parentDefs?: unknown } } | { type: "spec"; spec: { type: "glider"; t?: unknown; parentDefs: unknown[] } } | { type: "spec"; spec: { type: "vector-endpoint"; location: "end" | "start"; parentDefs: unknown[] } } | { type: "spec"; spec: { type: "point"; x?: unknown; y?: unknown; parentDefs: unknown[]; previewOnly: boolean } };
|
|
3773
3768
|
getProjection(): Grapher2DProjection;
|
|
3774
|
-
getSelectedObjectIdsSorted(): unknown[];
|
|
3775
|
-
getSelectedObjectIdsUnsorted(): unknown[];
|
|
3776
|
-
getSelectionBox(): unknown;
|
|
3777
3769
|
getTool(arg0: unknown): unknown;
|
|
3778
3770
|
getToolFadeOpacity(id: string): number;
|
|
3779
3771
|
getToolMode(): string;
|
|
3780
3772
|
getUncommittedObjectIds(): unknown[];
|
|
3781
3773
|
getUncommittedObjects(): Record<string, unknown>;
|
|
3782
|
-
isAnyAdditionalToolEnabled(): boolean;
|
|
3783
|
-
isCreatingNewTransform(): boolean;
|
|
3784
|
-
isCurrentToolComplex(): boolean;
|
|
3785
3774
|
isCurrentToolSingleUse(): boolean;
|
|
3786
3775
|
isDegenerateInput(arg0: unknown): unknown;
|
|
3787
3776
|
isFading(): boolean;
|
|
3788
3777
|
isObjectALockedToolInput(id: unknown): boolean;
|
|
3789
|
-
isObjectSelected(id: unknown): boolean;
|
|
3790
3778
|
isObjectUncommitted(id: unknown): boolean;
|
|
3791
3779
|
isToolActuallyUsable(arg0: unknown): boolean;
|
|
3792
3780
|
isToolplayActive(): boolean;
|
|
@@ -3800,8 +3788,6 @@ declare namespace Desmos.Internals.Generated {
|
|
|
3800
3788
|
resetToolMode(): void;
|
|
3801
3789
|
setClickToInsertMode(clickToInsertMode: unknown): void;
|
|
3802
3790
|
setObjectHovered(objectHovered: unknown): void;
|
|
3803
|
-
setObjectSelected(objectSelected: unknown): void;
|
|
3804
|
-
setObjectsSelected(objectsSelected: unknown[]): void;
|
|
3805
3791
|
setToolMode(name: string): void;
|
|
3806
3792
|
speakCurrentGeoToolHint(): void;
|
|
3807
3793
|
storeNumberInputLatex(arg0: unknown, arg1: unknown): void;
|
|
@@ -4772,7 +4758,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
4772
4758
|
|
|
4773
4759
|
// AUTO-GENERATED by scripts/extract-internals.cjs. Do not edit by hand:
|
|
4774
4760
|
// put precise types in the hand-written files in internals/ instead.
|
|
4775
|
-
// Source: Desmos v1.13-prerelease (commit
|
|
4761
|
+
// Source: Desmos v1.13-prerelease (commit f82f43220c7f1f5431e57e431ace564953009e6b).
|
|
4776
4762
|
// Actions accepted by each dispatch domain, from static analysis.
|
|
4777
4763
|
declare namespace Desmos.Internals.Generated {
|
|
4778
4764
|
/**
|
|
@@ -5530,7 +5516,7 @@ declare namespace Desmos.Internals.Generated {
|
|
|
5530
5516
|
|
|
5531
5517
|
// AUTO-GENERATED by scripts/extract-internals.cjs. Do not edit by hand:
|
|
5532
5518
|
// put precise types in the hand-written files in internals/ instead.
|
|
5533
|
-
// Source: Desmos v1.13-prerelease (commit
|
|
5519
|
+
// Source: Desmos v1.13-prerelease (commit f82f43220c7f1f5431e57e431ace564953009e6b).
|
|
5534
5520
|
// Props and instance members of the views on Private.Fragile.
|
|
5535
5521
|
declare namespace Desmos.Internals.Generated {
|
|
5536
5522
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spidunno/desmos-types",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.21",
|
|
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": "f82f43220c7f1f5431e57e431ace564953009e6b"
|
|
58
58
|
}
|
|
59
59
|
}
|