archematics/etc/jsxgraph_types.patch

74 lines
1.8 KiB
Diff
Raw Permalink 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-11 19:48:54.158169983 -0700
2024-06-10 21:47:26 +00:00
@@ -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.
@@ -5125,6 +5125,10 @@
export interface ZoomOptions {
/**
+ * Whether it is allowed to zoom
+ */
+ enabled?: boolean;
+ /**
* Horizontal zoom factor (multiplied to Board.zoomX).
*/
factorX?: number;
@@ -5742,8 +5746,8 @@
2024-06-10 21:47:26 +00:00
/**
*
*/
- const JSXGraph: Graph;
- let Options: JXGOptions;
+ export const JSXGraph: Graph;
+ export let Options: JXGOptions;
/**
*
@@ -5756,7 +5760,7 @@
2024-06-10 21:47:26 +00:00
/**
* Dump Namespace.
*/
- const Dump: Dump;
+ export const Dump: Dump;
/**
*
@@ -6054,7 +6058,7 @@
2024-06-10 21:47:26 +00:00
/**
* 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 +6307,4 @@
2024-06-10 21:47:26 +00:00
}
export type touchProperty = string;
-}
-
-/**
- * JSXGraph in the module "jsxgraph".
- */
-declare module "jsxgraph" {
- export = JXG;
-}
+//}