@motionscript/math 0.3.0 → 0.4.0
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/CHANGELOG.md +16 -0
- package/README.md +1 -0
- package/dist/browser/chunks/chunk-BIUAHFF7.js +2 -0
- package/dist/browser/chunks/chunk-BIUAHFF7.js.map +7 -0
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +4 -4
- package/dist/browser/manifest.json +2 -1
- package/dist/browser/v1.js +2 -0
- package/dist/browser/v1.js.map +7 -0
- package/dist/v1.d.ts +2 -0
- package/dist/v1.d.ts.map +1 -0
- package/dist/v1.js +3 -0
- package/dist/v1.js.map +1 -0
- package/package.json +8 -4
- package/src/v1.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @motionscript/math
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- b996da5: Versioned component-API paths. `@motionscript/sdk/v1`, `@motionscript/sdk/v1/component` and each kit's `@motionscript/<kit>/v1` are the v1 API, today exactly the bare paths. A custom component imports the `/v1` paths, so a later major, which ships a v1 shim in the same engine, keeps it linking against one core. A bare import means the latest API, for npm users who follow the newest release. Each kit's `./kit` stays unstable and unversioned.
|
|
8
|
+
|
|
9
|
+
A dynamic node's `require("@motionscript/sdk/v1")` resolves to the host's `sdk`, as `@motionscript/sdk` does, and the error for an unknown specifier now names `@motionscript/sdk/v1`. `@motionscript/sdk/v1/component` and the kit paths link through `dynamicNodes.modules`, like `@motionscript/sdk/component`.
|
|
10
|
+
|
|
11
|
+
## 0.4.0-alpha.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- b996da5: Versioned component-API paths. `@motionscript/sdk/v1`, `@motionscript/sdk/v1/component` and each kit's `@motionscript/<kit>/v1` are the v1 API, today exactly the bare paths. A custom component imports the `/v1` paths, so a later major, which ships a v1 shim in the same engine, keeps it linking against one core. A bare import means the latest API, for npm users who follow the newest release. Each kit's `./kit` stays unstable and unversioned.
|
|
16
|
+
|
|
17
|
+
A dynamic node's `require("@motionscript/sdk/v1")` resolves to the host's `sdk`, as `@motionscript/sdk` does, and the error for an unknown specifier now names `@motionscript/sdk/v1`. `@motionscript/sdk/v1/component` and the kit paths link through `dynamicNodes.modules`, like `@motionscript/sdk/component`.
|
|
18
|
+
|
|
3
19
|
## 0.3.0
|
|
4
20
|
|
|
5
21
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -19,6 +19,7 @@ export const nodes = NODES;
|
|
|
19
19
|
| Entry | Holds |
|
|
20
20
|
| --- | --- |
|
|
21
21
|
| `@motionscript/math` | The public surface: every component, `NODES` and `loadMathJax`. A name leaves it only after a deprecation, in the next major (the next minor while on 0.x) |
|
|
22
|
+
| `@motionscript/math/v1` | The v1 public surface, the same names as the root today. A custom component imports this path, so a later major keeps it linking; the bare path follows the latest API. |
|
|
22
23
|
| `@motionscript/math/kit` | Everything (`src/unstable.ts`): every component's module and what the nodes share and a copied node imports rather than copies (`src/engine.ts`): the systems' and marks' helpers (`systemLayout`, `traced`, `drawMark`, the plane a system hands its marks), the coordinate map, the equation language, the sampler, and the LaTeX helpers. **Unstable**: any release may change it |
|
|
23
24
|
| `@motionscript/math/tex` | The typeset-math half alone: `Latex`, `TEX_NODES` and its helpers |
|
|
24
25
|
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ab as A,Bb as L,Db as S,Ga as m,Kb as N,La as e,Na as p,Ta as f,Va as i,Vb as h,Xb as M,Yb as k,Zb as w,ac as C,cc as V,eb as a,fb as x,gb as n,hb as l,ib as P,jb as c,kb as d,lb as u,nb as s,za as t}from"./chunk-347RSDIW.js";import{M as r,O as o}from"./chunk-T42HWKBC.js";var b=[r,o,t,m,e,f,i,l,P,c,d,u,s,A,L,S,N,h,M,k,w,p,a,x,n,C,V];export{b as a};
|
|
2
|
+
//# sourceMappingURL=chunk-BIUAHFF7.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/nodes.ts"],
|
|
4
|
+
"sourcesContent": ["import { AngleMark } from \"./annotate/angle-mark\";\nimport { CurlyBrace } from \"./annotate/curly-brace\";\nimport { EmphasisMark } from \"./annotate/emphasis-mark\";\nimport { CurveArea } from \"./marks/curve-area\";\nimport { DropLines } from \"./marks/drop-lines\";\nimport { PlotPoint } from \"./marks/plot-point\";\nimport { RiemannSum } from \"./marks/riemann-sum\";\nimport { TangentLine } from \"./marks/tangent-line\";\nimport { VectorArrow } from \"./marks/vector-arrow\";\nimport { FunctionPlot } from \"./plots/function-plot\";\nimport { PointsPlot } from \"./plots/points-plot\";\nimport { StreamLines } from \"./plots/stream-lines\";\nimport { TracedPath } from \"./plots/traced-path\";\nimport { VectorField } from \"./plots/vector-field\";\nimport { Axes2d } from \"./systems/axes2d\";\nimport { NumberLine } from \"./systems/number-line\";\nimport { NumberPlane } from \"./systems/number-plane\";\nimport { PolarPlane } from \"./systems/polar-plane\";\nimport { NetworkGraph } from \"./structures/network-graph\";\nimport { SampleSpace } from \"./structures/sample-space\";\nimport { LatexMatrix } from \"./tex/matrix\";\nimport { Latex } from \"./tex/node\";\nimport { Axes3d } from \"./three/axes3d\";\nimport { CurvePlot3d } from \"./three/curve-plot3d\";\nimport { PlotPoint3d } from \"./three/plot-point3d\";\nimport { SurfacePlot3d } from \"./three/surface-plot3d\";\nimport { VectorArrow3d } from \"./three/vector-arrow3d\";\n\n/** Every node type this package publishes, for `new Engine(platform, { nodes: NODES })`. Listing the values survives `sideEffects: false` bundling. */\n// Typed by name, so the declaration names each component rather than spelling out its type through core.\ntype KitNode =\n | typeof Latex\n | typeof LatexMatrix\n | typeof NumberLine\n | typeof Axes2d\n | typeof NumberPlane\n | typeof FunctionPlot\n | typeof PointsPlot\n | typeof PlotPoint\n | typeof VectorArrow\n | typeof CurveArea\n | typeof RiemannSum\n | typeof TangentLine\n | typeof DropLines\n | typeof CurlyBrace\n | typeof AngleMark\n | typeof EmphasisMark\n | typeof Axes3d\n | typeof SurfacePlot3d\n | typeof CurvePlot3d\n | typeof PlotPoint3d\n | typeof VectorArrow3d\n | typeof PolarPlane\n | typeof VectorField\n | typeof StreamLines\n | typeof TracedPath\n | typeof NetworkGraph\n | typeof SampleSpace;\n\nexport const NODES: KitNode[] = [\n Latex,\n LatexMatrix,\n NumberLine,\n Axes2d,\n NumberPlane,\n FunctionPlot,\n PointsPlot,\n PlotPoint,\n VectorArrow,\n CurveArea,\n RiemannSum,\n TangentLine,\n DropLines,\n CurlyBrace,\n AngleMark,\n EmphasisMark,\n Axes3d,\n SurfacePlot3d,\n CurvePlot3d,\n PlotPoint3d,\n VectorArrow3d,\n PolarPlane,\n VectorField,\n StreamLines,\n TracedPath,\n NetworkGraph,\n SampleSpace,\n];\n"],
|
|
5
|
+
"mappings": "wRA2DO,IAAMA,EAAmB,CAC5BC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC",
|
|
6
|
+
"names": ["NODES", "Latex", "LatexMatrix", "NumberLine", "Axes2d", "NumberPlane", "FunctionPlot", "PointsPlot", "PlotPoint", "VectorArrow", "CurveArea", "RiemannSum", "TangentLine", "DropLines", "CurlyBrace", "AngleMark", "EmphasisMark", "Axes3d", "SurfacePlot3d", "CurvePlot3d", "PlotPoint3d", "VectorArrow3d", "PolarPlane", "VectorField", "StreamLines", "TracedPath", "NetworkGraph", "SampleSpace"]
|
|
7
|
+
}
|
package/dist/browser/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Ab as
|
|
1
|
+
import{a as C}from"./chunks/chunk-BIUAHFF7.js";import{Ab as s,Bb as t,Db as u,Ga as e,Kb as v,La as f,Na as g,Ta as h,Va as i,Vb as w,Xb as x,Yb as y,Zb as z,ac as A,cc as B,eb as j,fb as k,gb as l,hb as m,ib as n,jb as o,kb as p,lb as q,nb as r,za as d}from"./chunks/chunk-347RSDIW.js";import{M as b,O as c,e as a}from"./chunks/chunk-T42HWKBC.js";export{t as AngleMark,e as Axes2d,v as Axes3d,s as CurlyBrace,o as CurveArea,x as CurvePlot3d,r as DropLines,u as EmphasisMark,h as FunctionPlot,b as Latex,c as LatexMatrix,C as NODES,A as NetworkGraph,d as NumberLine,f as NumberPlane,m as PlotPoint,y as PlotPoint3d,i as PointsPlot,g as PolarPlane,p as RiemannSum,B as SampleSpace,k as StreamLines,w as SurfacePlot3d,q as TangentLine,l as TracedPath,n as VectorArrow,z as VectorArrow3d,j as VectorField,a as loadMathJax};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": [
|
|
3
|
+
"sources": [],
|
|
4
|
+
"sourcesContent": [],
|
|
5
|
+
"mappings": "",
|
|
6
|
+
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as C}from"./chunks/chunk-BIUAHFF7.js";import{Ab as n,Bb as q,Db as s,Ga as m,Kb as u,La as p,Na as t,Ta as x,Va as a,Vb as v,Xb as w,Yb as y,Zb as z,ac as A,cc as B,eb as b,fb as c,gb as d,hb as g,ib as h,jb as i,kb as j,lb as k,nb as l,za as f}from"./chunks/chunk-347RSDIW.js";import{M as r,O as e,e as o}from"./chunks/chunk-T42HWKBC.js";export{q as AngleMark,m as Axes2d,u as Axes3d,n as CurlyBrace,i as CurveArea,w as CurvePlot3d,l as DropLines,s as EmphasisMark,x as FunctionPlot,r as Latex,e as LatexMatrix,C as NODES,A as NetworkGraph,f as NumberLine,p as NumberPlane,g as PlotPoint,y as PlotPoint3d,a as PointsPlot,t as PolarPlane,j as RiemannSum,B as SampleSpace,c as StreamLines,v as SurfacePlot3d,k as TangentLine,d as TracedPath,h as VectorArrow,z as VectorArrow3d,b as VectorField,o as loadMathJax};
|
|
2
|
+
//# sourceMappingURL=v1.js.map
|
package/dist/v1.d.ts
ADDED
package/dist/v1.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../src/v1.ts"],"names":[],"mappings":"AACA,cAAc,GAAG,CAAC"}
|
package/dist/v1.js
ADDED
package/dist/v1.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../src/v1.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,cAAc,GAAG,CAAC","sourcesContent":["// `@motionscript/math/v1`: the root as of v1. A later major keeps this path working.\nexport * from '.';\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@motionscript/math",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Math for Motion Script: coordinate systems, function and vector-field plots, 3D graphs and surfaces, network graphs, and LaTeX formulas typeset to glyph paths that morph token by token.",
|
|
6
6
|
"repository": {
|
|
@@ -32,6 +32,10 @@
|
|
|
32
32
|
"types": "./dist/index.d.ts",
|
|
33
33
|
"default": "./dist/index.js"
|
|
34
34
|
},
|
|
35
|
+
"./v1": {
|
|
36
|
+
"types": "./dist/v1.d.ts",
|
|
37
|
+
"default": "./dist/v1.js"
|
|
38
|
+
},
|
|
35
39
|
"./kit": {
|
|
36
40
|
"types": "./dist/unstable.d.ts",
|
|
37
41
|
"default": "./dist/unstable.js"
|
|
@@ -54,7 +58,7 @@
|
|
|
54
58
|
"license": "Apache-2.0",
|
|
55
59
|
"author": "Motionscript",
|
|
56
60
|
"peerDependencies": {
|
|
57
|
-
"@motionscript/sdk": "^0.
|
|
61
|
+
"@motionscript/sdk": "^0.4.0"
|
|
58
62
|
},
|
|
59
63
|
"dependencies": {
|
|
60
64
|
"@mathjax/mathjax-newcm-font": "^4.1.1",
|
|
@@ -69,8 +73,8 @@
|
|
|
69
73
|
"typescript": "^6.0.3",
|
|
70
74
|
"typescript-eslint": "^8.48.0",
|
|
71
75
|
"vitest": "^4.1.5",
|
|
72
|
-
"@motionscript/core": "0.
|
|
73
|
-
"@motionscript/sdk": "0.
|
|
76
|
+
"@motionscript/core": "0.4.0",
|
|
77
|
+
"@motionscript/sdk": "0.4.0"
|
|
74
78
|
},
|
|
75
79
|
"scripts": {
|
|
76
80
|
"build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json --resolve-full-paths && node ../../../scripts/build-browser.mjs",
|
package/src/v1.ts
ADDED