archematics/etc/jsxgraph_types.patch

63 lines
1.5 KiB
Diff
Raw Normal View History

2024-06-10 21:47:26 +00:00
--- node_modules/jsxgraph/distrib/index.d.ts 2024-04-29 23:05:16.785680814 -0700
+++ tsbuild/deps/jsxgraphcore.d.mts 2024-06-09 10:04:21.396339486 -0700
@@ -15,7 +15,7 @@
/**
* JSXGraph in the namespace JXG.
*/
-declare namespace JXG {
+// export namespace JXG {
/**
* Store a reference to every board in this central list.
* This will at some point replace JXG.JSXGraph.boards.
@@ -421,7 +421,7 @@
parents: unknown[],
attrClass: string,
attrArray: unknown[]
- ): JXG.Point[] | false;
+ ): Point[] | false;
/**
* This registers a new construction element to JSXGraph for the construction via the JXG.Board.create interface.
* @param element The elements name. This is case-insensitive, existing elements with the same name will be overwritten.
@@ -5742,8 +5742,8 @@
/**
*
*/
- const JSXGraph: Graph;
- let Options: JXGOptions;
+ export const JSXGraph: Graph;
+ export let Options: JXGOptions;
/**
*
@@ -5756,7 +5756,7 @@
/**
* Dump Namespace.
*/
- const Dump: Dump;
+ export const Dump: Dump;
/**
*
@@ -6054,7 +6054,7 @@
/**
* Math Namespace
*/
- const Math: Math;
+ export const Math: Math;
/**
* This namespace contains algorithms for Boolean operations on paths, i.e. intersection, union and difference of paths.
@@ -6303,11 +6303,4 @@
}
export type touchProperty = string;
-}
-
-/**
- * JSXGraph in the module "jsxgraph".
- */
-declare module "jsxgraph" {
- export = JXG;
-}
+//}