@teachinglab/omd 0.5.2 → 0.5.3
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/index.js +5 -24
- package/omd/core/index.js +10 -18
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -11,31 +11,12 @@
|
|
|
11
11
|
* const { omdTable } = await import('@teachinglab/omd')
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
//
|
|
15
|
-
|
|
16
|
-
import './
|
|
17
|
-
import './
|
|
18
|
-
import './omd/nodes/omdLeafNode.js'; // Extends omdNode
|
|
14
|
+
// Import everything first to ensure proper loading order
|
|
15
|
+
import * as omdCore from './omd/core/index.js';
|
|
16
|
+
import * as omdCanvas from './canvas/index.js';
|
|
17
|
+
import * as omdVisualizations from './src/index.js';
|
|
19
18
|
|
|
20
|
-
//
|
|
21
|
-
import './omd/nodes/omdConstantNode.js';
|
|
22
|
-
import './omd/nodes/omdOperatorNode.js';
|
|
23
|
-
import './omd/nodes/omdVariableNode.js';
|
|
24
|
-
import './omd/nodes/omdGroupNode.js';
|
|
25
|
-
|
|
26
|
-
// Load other node classes that extend omdNode
|
|
27
|
-
import './omd/nodes/omdBinaryExpressionNode.js';
|
|
28
|
-
import './omd/nodes/omdUnaryExpressionNode.js';
|
|
29
|
-
import './omd/nodes/omdParenthesisNode.js';
|
|
30
|
-
import './omd/nodes/omdPowerNode.js';
|
|
31
|
-
import './omd/nodes/omdRationalNode.js';
|
|
32
|
-
import './omd/nodes/omdSqrtNode.js';
|
|
33
|
-
import './omd/nodes/omdFunctionNode.js';
|
|
34
|
-
import './omd/nodes/omdEquationNode.js';
|
|
35
|
-
import './omd/nodes/omdEquationSequenceNode.js';
|
|
36
|
-
import './omd/nodes/omdOperationDisplayNode.js';
|
|
37
|
-
|
|
38
|
-
// Now that classes are initialized, we can safely import and re-export
|
|
19
|
+
// Re-export everything
|
|
39
20
|
export * from './omd/core/index.js';
|
|
40
21
|
export * from './canvas/index.js';
|
|
41
22
|
export * from './src/index.js';
|
package/omd/core/index.js
CHANGED
|
@@ -1,28 +1,20 @@
|
|
|
1
|
-
// Core node classes
|
|
2
|
-
// Level 1: Base class
|
|
1
|
+
// Core node classes
|
|
3
2
|
import { omdNode } from '../nodes/omdNode.js';
|
|
4
|
-
|
|
5
|
-
// Level 2: First-level descendants of omdNode
|
|
6
|
-
import { omdLeafNode } from '../nodes/omdLeafNode.js';
|
|
7
|
-
|
|
8
|
-
// Level 3: Classes that extend omdLeafNode - MUST come after omdLeafNode
|
|
3
|
+
import { omdBinaryExpressionNode } from '../nodes/omdBinaryExpressionNode.js';
|
|
9
4
|
import { omdConstantNode } from '../nodes/omdConstantNode.js';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
5
|
+
import { omdEquationNode } from '../nodes/omdEquationNode.js';
|
|
6
|
+
import { omdFunctionNode } from '../nodes/omdFunctionNode.js';
|
|
12
7
|
import { omdGroupNode } from '../nodes/omdGroupNode.js';
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
import {
|
|
16
|
-
import { omdUnaryExpressionNode } from '../nodes/omdUnaryExpressionNode.js';
|
|
8
|
+
import { omdLeafNode } from '../nodes/omdLeafNode.js';
|
|
9
|
+
import { omdOperationDisplayNode } from '../nodes/omdOperationDisplayNode.js';
|
|
10
|
+
import { omdOperatorNode } from '../nodes/omdOperatorNode.js';
|
|
17
11
|
import { omdParenthesisNode } from '../nodes/omdParenthesisNode.js';
|
|
18
12
|
import { omdPowerNode } from '../nodes/omdPowerNode.js';
|
|
19
13
|
import { omdRationalNode } from '../nodes/omdRationalNode.js';
|
|
20
|
-
import { omdSqrtNode } from '../nodes/omdSqrtNode.js';
|
|
21
|
-
import { omdFunctionNode } from '../nodes/omdFunctionNode.js';
|
|
22
|
-
import { omdOperationDisplayNode } from '../nodes/omdOperationDisplayNode.js';
|
|
23
|
-
import { omdEquationNode } from '../nodes/omdEquationNode.js';
|
|
24
14
|
import { omdEquationSequenceNode } from '../nodes/omdEquationSequenceNode.js';
|
|
25
|
-
|
|
15
|
+
import { omdSqrtNode } from '../nodes/omdSqrtNode.js';
|
|
16
|
+
import { omdUnaryExpressionNode } from '../nodes/omdUnaryExpressionNode.js';
|
|
17
|
+
import { omdVariableNode } from '../nodes/omdVariableNode.js';
|
|
26
18
|
import { omdEquationStack } from './omdEquationStack.js';
|
|
27
19
|
|
|
28
20
|
// Visualization components
|