diff --git a/etc/jsxgraph_types.patch b/etc/jsxgraph_types.patch new file mode 100644 index 0000000..b1f2af3 --- /dev/null +++ b/etc/jsxgraph_types.patch @@ -0,0 +1,62 @@ +--- 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; +-} ++//} diff --git a/etc/x_ite_types.patch b/etc/x_ite_types.patch new file mode 100644 index 0000000..448dec8 --- /dev/null +++ b/etc/x_ite_types.patch @@ -0,0 +1,153 @@ +--- etc/deps/x_ite/x_ite.d.mts 2024-06-09 21:07:39.573824568 -0700 ++++ tsbuild/deps/x_ite/x_ite.d.mts 2024-06-09 21:08:25.037633672 -0700 +@@ -4,7 +4,7 @@ + + // Handle both importing via UMD and modules: + export default X3D; +-export = X3D; ++// export = X3D; + + declare const X3D: X3D; + +@@ -688,11 +688,11 @@ + /** + * The default container field name for this node. This property is read only. + */ +- static readonly containerField: string; ++ /* static */ readonly containerField: string; + /** + * Returns an array with two strings defining the first version and last version where this node is specified. This property is read only. + */ +- static readonly specificationRange: ++ /* static */ readonly specificationRange: + { + readonly from: string, + readonly to: string, +@@ -700,7 +700,7 @@ + /** + * Returns a list of fields defined for the SFNode object. + */ +- static readonly fieldDefinitions: FieldDefinitionArray; ++ /* static */ readonly fieldDefinitions: FieldDefinitionArray; + } + + /** +@@ -716,11 +716,11 @@ + /** + * The node type name for this class. This property is read only. + */ +- static readonly typeName: string; ++ /* static */ readonly typeName: string; + /** + * Returns an object with two properties *name* and *level* which can be used to get a ComponentInfo object from the X3D browser. This property is read only. + */ +- static readonly componentInfo: ++ /* static */ readonly componentInfo: + { + readonly name: string, + readonly level: number, +@@ -825,7 +825,7 @@ + /** + * The X3DImportedNode object stores information about a particular import declaration. The object consists solely of read-only properties. It does not define any additional functions. + */ +-class X3DImportedNode ++declare class X3DImportedNode + { + /** + * The SFNode object of the Inline node. This property is read only. +@@ -853,7 +853,7 @@ + /** + * The X3DExportedNode object stores information about a particular export declaration. The object consists solely of read-only properties. It does not define any additional functions. + */ +-class X3DExportedNode ++declare class X3DExportedNode + { + /** + * A string of the exported name. This property is read only. +@@ -2573,7 +2573,7 @@ + static readonly typeName: "MFMatrix4f"; + } + +-declare class MFNode extends X3DArrayField ++declare class MFNode extends X3DArrayField + { + static readonly typeName: "MFNode"; + } +@@ -4188,7 +4188,7 @@ + } + + /** CADPart is an atomic part that defines both coordinate-system location and the faces that constitute a part in a Computer-Aided Design (CAD) model. */ +-interface CADPartProxy extends X3DProductStructureChildNodeProxy, X3DGroupingNodeProxy ++interface CADPartProxy extends X3DProductStructureChildNodeProxy, X3DGroupingNodeProxy + { + /** + * This field is of access type 'inputOnly' and type MFNode. +@@ -5178,7 +5178,7 @@ + * + * This field is of access type 'inputOutput' and type MFNode. + */ +- field: MFNode ; ++ // field: MFNode ; + /** + * isSelected indicates this shader instance is selected for use by browser Warning: it is an error to define this transient outputOnly field in an X3D file, instead only use it a source for ROUTE events. + * +@@ -13148,7 +13148,7 @@ + * + * This field is of access type 'inputOutput' and type MFNode. + */ +- field: MFNode ; ++ // field: MFNode ; + /** + * isSelected indicates this shader instance is selected for use by browser Warning: it is an error to define this transient outputOnly field in an X3D file, instead only use it a source for ROUTE events. + * +@@ -15508,7 +15508,7 @@ + * + * This field is of access type 'inputOutput' and type MFNode. + */ +- field: MFNode ; ++ // field: MFNode ; + /** + * load=true means load immediately, load=false means defer loading or else unload a previously loaded scene. + * +@@ -15732,7 +15732,7 @@ + * + * This field is of access type 'inputOutput' and type MFNode. + */ +- field: MFNode ; ++ // field: MFNode ; + /** + * load=true means load immediately, load=false means defer loading or else unload a previously loaded scene. + * +@@ -20040,12 +20040,12 @@ + } + + /** Grouping nodes can contain other nodes as children, thus making up the backbone of a scene graph. */ +-interface X3DGroupingNodeProxy extends X3DChildNodeProxy, X3DBoundedObjectProxy ++interface X3DGroupingNodeProxy extends X3DChildNodeProxy, X3DBoundedObjectProxy + { + /** + * This field is of access type 'inputOnly' and type MFNode. + */ +- addChildren: MFNode ; ++ addChildren: MFNode ; + /** + * This field is of access type 'initializeOnly' and type SFVec3f. + */ +@@ -20061,7 +20061,7 @@ + /** + * This field is of access type 'inputOutput' and type MFNode. + */ +- children: MFNode ; ++ children: MFNode ; + /** + * This field is of access type 'inputOutput' and type SFNode. + */ +@@ -20069,7 +20069,7 @@ + /** + * This field is of access type 'inputOnly' and type MFNode. + */ +- removeChildren: MFNode ; ++ removeChildren: MFNode ; + /** + * This field is of access type 'inputOutput' and type SFBool. + */