@altpsyche/maths 0.7.0 → 0.9.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/dist/index.d.ts CHANGED
@@ -20,9 +20,18 @@ export { mat3 } from './values/mat3.js';
20
20
  export type { Mat3 } from './values/mat3.js';
21
21
  export { SAME_TIME, keyAt, sampleTrack, sampleTracks, withKey, withoutKey } from './timing/track.js';
22
22
  export type { Key, Track, TrackValue, Tracks } from './timing/track.js';
23
- export { arc, circle, line, polygon, polyline, pointCount, pointOn, rect, straight, transformPath } from './figure/path.js';
23
+ export { arc, circle, line, polygon, polyline, pointCount, pointOn, rect, splitCurve, straight, transformPath } from './figure/path.js';
24
24
  export type { Cubic, Path, Subpath } from './figure/path.js';
25
25
  export { pathFromData } from './figure/path-data.js';
26
+ export { areaOf } from './figure/area.js';
27
+ export { differenceOf, intersectionOf, unionOf } from './figure/boolean.js';
28
+ export type { BooleanOptions } from './figure/boolean.js';
29
+ export { containsPoint, flattenPath, windingAt } from './figure/inside.js';
30
+ export type { FlattenOptions } from './figure/inside.js';
31
+ export { cutPath } from './figure/cut.js';
32
+ export type { Cut, CutOptions } from './figure/cut.js';
33
+ export { curveCrossings } from './figure/intersect.js';
34
+ export type { Crossing, CrossingOptions } from './figure/intersect.js';
26
35
  export type { Colour, Fill, Mark, PathMark, Stroke, TextMark } from './figure/mark.js';
27
36
  export { byAspect, fractionOf, matchingAspect, resolveExtent, viewMatrix } from './figure/extent.js';
28
37
  export type { Extent, ExtentChoice, Fit } from './figure/extent.js';
@@ -38,7 +47,7 @@ export { labelFor, tickStep, ticksOn } from './figure/ticks.js';
38
47
  export type { Tick } from './figure/ticks.js';
39
48
  export { flatten, group, shape, text } from './figure/node.js';
40
49
  export type { GroupNode, Node, ShapeNode, Style, TextNode, TextOptions } from './figure/node.js';
41
- export { circumscribe, fadeIn, fadeOut, fadeTo, draw, flash, growFrom, indicate, morph, morphEquation, moveAlong, moveBy, rotate, scale } from './figure/animation.js';
50
+ export { circumscribe, countTo, fadeIn, fadeOut, fadeTo, draw, flash, growFrom, indicate, morph, morphEquation, moveAlong, moveBy, rotate, scale } from './figure/animation.js';
42
51
  export type { AboutOptions, Animation, CircumscribeOptions, FlashOptions, IndicateOptions, ScaleOptions } from './figure/animation.js';
43
52
  export { Timeline } from './figure/timeline.js';
44
53
  export type { PlayOptions, Span, StaggerOptions } from './figure/timeline.js';
@@ -51,8 +60,8 @@ export { pathData, paintSvg, svgElements, svgMarkup } from './paint/svg.js';
51
60
  export type { ElementMaker, PaintNode, PaintTarget, SvgElement } from './paint/svg.js';
52
61
  export { paintCanvas } from './paint/canvas.js';
53
62
  export type { CanvasLike } from './paint/canvas.js';
54
- export { arrow, callout, dot } from './figure/annotate.js';
55
- export type { ArrowOptions, CalloutOptions } from './figure/annotate.js';
63
+ export { arrow, brace, bracePath, callout, dot } from './figure/annotate.js';
64
+ export type { ArrowOptions, BraceOptions, BracedOptions, CalloutOptions } from './figure/annotate.js';
56
65
  export { typesetElement } from './figure/typeset.js';
57
66
  export type { EquationElement } from './figure/typeset.js';
58
67
  export { equationFromTex, equationMarks, equationNode } from './figure/equation.js';
package/dist/index.js CHANGED
@@ -14,8 +14,13 @@ export { vec3 } from './values/vec3.js';
14
14
  export { interval } from './values/interval.js';
15
15
  export { mat3 } from './values/mat3.js';
16
16
  export { SAME_TIME, keyAt, sampleTrack, sampleTracks, withKey, withoutKey } from './timing/track.js';
17
- export { arc, circle, line, polygon, polyline, pointCount, pointOn, rect, straight, transformPath } from './figure/path.js';
17
+ export { arc, circle, line, polygon, polyline, pointCount, pointOn, rect, splitCurve, straight, transformPath } from './figure/path.js';
18
18
  export { pathFromData } from './figure/path-data.js';
19
+ export { areaOf } from './figure/area.js';
20
+ export { differenceOf, intersectionOf, unionOf } from './figure/boolean.js';
21
+ export { containsPoint, flattenPath, windingAt } from './figure/inside.js';
22
+ export { cutPath } from './figure/cut.js';
23
+ export { curveCrossings } from './figure/intersect.js';
19
24
  export { byAspect, fractionOf, matchingAspect, resolveExtent, viewMatrix } from './figure/extent.js';
20
25
  export { boundsOf, boundsOfMarks, centreOf } from './figure/bounds.js';
21
26
  export { areaUnder, plot, riemannBars, slopeOf, tangentAt } from './figure/plot.js';
@@ -23,7 +28,7 @@ export { axes, numberLine, numberPlane } from './figure/axis.js';
23
28
  export { coordsOf, pointOf, scaleOf, scaled, unscaled } from './figure/scale.js';
24
29
  export { labelFor, tickStep, ticksOn } from './figure/ticks.js';
25
30
  export { flatten, group, shape, text } from './figure/node.js';
26
- export { circumscribe, fadeIn, fadeOut, fadeTo, draw, flash, growFrom, indicate, morph, morphEquation, moveAlong, moveBy, rotate, scale } from './figure/animation.js';
31
+ export { circumscribe, countTo, fadeIn, fadeOut, fadeTo, draw, flash, growFrom, indicate, morph, morphEquation, moveAlong, moveBy, rotate, scale } from './figure/animation.js';
27
32
  export { Timeline } from './figure/timeline.js';
28
33
  export { lengthOf, pointAlong } from './figure/length.js';
29
34
  export { trimPath } from './figure/trim.js';
@@ -31,7 +36,7 @@ export { alignPaths, lerpPath } from './figure/morph.js';
31
36
  export { at, durationOf, loops, sameMarks } from './figure/figure.js';
32
37
  export { pathData, paintSvg, svgElements, svgMarkup } from './paint/svg.js';
33
38
  export { paintCanvas } from './paint/canvas.js';
34
- export { arrow, callout, dot } from './figure/annotate.js';
39
+ export { arrow, brace, bracePath, callout, dot } from './figure/annotate.js';
35
40
  export { typesetElement } from './figure/typeset.js';
36
41
  export { equationFromTex, equationMarks, equationNode } from './figure/equation.js';
37
42
  export { glyphToken, matchGlyphs } from './figure/equation-match.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altpsyche/maths",
3
- "version": "0.7.0",
3
+ "version": "0.9.0",
4
4
  "description": "The mathematics AltPsyche's figures are drawn from: vectors, matrices, curves, and a value walked over time.",
5
5
  "license": "MIT",
6
6
  "author": "Siva",