@motionscript/patterns 0.1.0-alpha.6 → 0.1.0-alpha.8

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 CHANGED
@@ -1,5 +1,9 @@
1
1
  # @motionscript/patterns
2
2
 
3
+ ## 0.1.0-alpha.8
4
+
5
+ ## 0.1.0-alpha.7
6
+
3
7
  ## 0.1.0-alpha.6
4
8
 
5
9
  ### Minor Changes
package/NOTICE CHANGED
@@ -4,24 +4,25 @@ Copyright 2026 Motionscript LLC
4
4
  This product includes the third-party code below, each part under the MIT
5
5
  License reproduced at the end of this file.
6
6
 
7
- - packages/skia-render/src/fills/fractal-noise.ts: `hash2` is "Hash without
8
- Sine" by David Hoskins (https://www.shadertoy.com/view/4djSRW).
7
+ - packages/renderer/crates/renderer/src/shaders/prim.wgsl (`fn_hash2`):
8
+ "Hash without Sine" by David Hoskins (https://www.shadertoy.com/view/4djSRW).
9
9
  Copyright (c) 2014 David Hoskins.
10
10
 
11
- - packages/skia-render/src/fills/fractal-noise.ts: `simplexNoise` follows
12
- "Noise - simplex - 2D" by Inigo Quilez (https://www.shadertoy.com/view/Msf3WH).
13
- Copyright (c) 2013 Inigo Quilez.
11
+ - packages/renderer/crates/renderer/src/shaders/prim.wgsl (`simplex_noise`): "Noise - simplex - 2D" by Inigo Quilez
12
+ (https://www.shadertoy.com/view/Msf3WH). Copyright (c) 2013 Inigo Quilez.
14
13
 
15
- The project website, which is in the source repository only and in no npm
16
- package, also includes MIT code: its landing-page background
17
- (packages/site/components/landing/GradientBackground.tsx) uses 3D simplex
18
- noise from webgl-noise by Ian McEwan, Ashima Arts
19
- (https://github.com/ashima/webgl-noise). Copyright (C) 2011 by Ashima Arts.
14
+ - packages/renderer/crates/render3d (in @motionscript/renderer's WebAssembly):
15
+ its shaders (src/shaders/mesh.wgsl) port three.js r185's mesh programs and
16
+ src/geometry.rs its primitive generators (https://threejs.org).
17
+ Copyright (c) 2010-2026 three.js authors.
20
18
 
21
- @motionscript/canvaskit is a build of Skia's CanvasKit (BSD-3-Clause,
22
- Copyright (c) 2011 Google Inc.) and carries FreeType, HarfBuzz, ICU, zlib,
23
- libpng, Brotli, WOFF2, Emscripten and musl; their notices are in
24
- packages/canvaskit/THIRD_PARTY_NOTICES.txt.
19
+ @motionscript/renderer's WebAssembly (dist/ms_renderer_bg.wasm) compiles in
20
+ Rust crates under MIT, Apache-2.0, Zlib and Unicode-3.0 terms (wgpu, naga,
21
+ harfrust, read-fonts, kurbo, wasm-bindgen and others); their notices are in
22
+ packages/renderer/THIRD_PARTY_NOTICES.txt.
23
+
24
+ MP3 export loads @mediabunny/mp3-encoder (MPL-2.0), a WebAssembly build of
25
+ the LAME MP3 encoder (LGPL, https://lame.sourceforge.io), on first use.
25
26
 
26
27
  The browser builds under dist/browser/ bundle each package's npm dependencies;
27
28
  dist/browser/THIRD_PARTY_LICENSES.txt in each package lists them with their
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@motionscript/patterns",
3
- "version": "0.1.0-alpha.6",
3
+ "version": "0.1.0-alpha.8",
4
4
  "exports": {
5
5
  ".": "dist/browser/index.js",
6
6
  "./kit": "dist/browser/kit.js"
@@ -75,7 +75,43 @@ export declare const DotGridPattern: import("@motionscript/sdk").Component<"dotG
75
75
  overlay: import("@motionscript/sdk").Attribute<_Fill, _FillResolved[]>;
76
76
  start: import("@motionscript/sdk").Type<number, number, false>;
77
77
  end: import("@motionscript/sdk").Type<number, number, false>;
78
- }>, null>>;
78
+ }>, null, import("@motionscript/sdk").BuiltNode<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
79
+ /** Cells along each axis, as in `LineGridPattern.divisions`: 4 puts 5 major dots on each axis. */
80
+ divisions: number;
81
+ /** Splits each division again. `1` draws only the major dots; `2` puts one minor dot between each pair. */
82
+ subdivisions: number;
83
+ /** Radius of a major dot. */
84
+ radius: number;
85
+ /**
86
+ * A minor dot's radius as a fraction of a major one's. A fraction rather than a
87
+ * second paint stack, so the whole field stays one fill and a gradient crosses
88
+ * every dot in it.
89
+ */
90
+ subScale: number;
91
+ /** Pans the field, as `LineGridPattern.offset` does, so the two stay aligned while both scroll. */
92
+ offset: import("@motionscript/sdk").Type<Vector2, Vector2, false>;
93
+ flow: import("@motionscript/sdk").Type<_FlowMode, _FlowResolved, false>;
94
+ gap: import("@motionscript/sdk").Type<_GapSize, _GapSize, false>;
95
+ wrap: boolean;
96
+ crossGap: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
97
+ columns: import("@motionscript/sdk").Type<number, number, false>;
98
+ align: import("@motionscript/sdk").Attribute<_Alignment, Vector2>;
99
+ fill: import("@motionscript/sdk").Attribute<_Fill, _FillResolved[]>;
100
+ stroke: import("@motionscript/sdk").Attribute<_Stroke, _StrokeResolved[]>;
101
+ shadow: import("@motionscript/sdk").Attribute<_Shadow, _ShadowResolved[]>;
102
+ overlay: import("@motionscript/sdk").Attribute<_Fill, _FillResolved[]>;
103
+ start: import("@motionscript/sdk").Type<number, number, false>;
104
+ end: import("@motionscript/sdk").Type<number, number, false>;
105
+ }>, {
106
+ readonly fillTo: readonly ["fill"];
107
+ readonly strokeTo: readonly ["stroke"];
108
+ readonly shadowTo: readonly ["shadow"];
109
+ readonly overlayTo: readonly ["overlay"];
110
+ readonly progressTo: readonly ["start", "end"];
111
+ readonly flash: {
112
+ readonly portion: import("@motionscript/sdk").Type<number, number, false>;
113
+ };
114
+ }, _Node2D<_Node2DProps>>>>;
79
115
  export type DotGridPattern = NodeOf<typeof DotGridPattern>;
80
116
  /** What a call or a document row may set. */
81
117
  export type DotGridPatternProps = NonNullable<Parameters<typeof DotGridPattern>[0]>;
@@ -1 +1 @@
1
- {"version":3,"file":"dot-grid-pattern.d.ts","sourceRoot":"","sources":["../../src/dot-grid-pattern/dot-grid-pattern.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,MAAM,EAEX,KAAK,OAAO,EAEZ,KAAK,SAAS,IAAI,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K,MAAM,IAAI,OAAO,EACtB,KAAK,cAAc,IAAI,eAAe,EACtC,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,cAAc,IAAI,eAAe,EACvC,MAAM,mBAAmB,CAAA;AAsD1B;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,cAAc;IArCzB,kGAAkG;;IAElG,2GAA2G;;IAE3G,6BAA6B;;IAE7B;;;;OAIG;;IAEH,mGAAmG;;;;;;;;;;;;;;;;;;;;;;;;IAZnG,kGAAkG;;IAElG,2GAA2G;;IAE3G,6BAA6B;;IAE7B;;;;OAIG;;IAEH,mGAAmG;;;;;;;;;;;;;;;IAZnG,kGAAkG;;IAElG,2GAA2G;;IAE3G,6BAA6B;;IAE7B;;;;OAIG;;IAEH,mGAAmG;;;;;;;;;;;;;;;;;;;;;;;2BAsCnG,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,OAAO,cAAc,CAAC,CAAA;AAC1D,6CAA6C;AAC7C,MAAM,MAAM,mBAAmB,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA"}
@@ -57,7 +57,37 @@ export declare const GridPattern: import("@motionscript/sdk").Component<"gridPat
57
57
  readonly overlay: import("@motionscript/sdk").Attribute<_Fill, FillResolved[]>;
58
58
  readonly start: import("@motionscript/sdk").Type<number, number, false>;
59
59
  readonly end: import("@motionscript/sdk").Type<number, number, false>;
60
- }>, null>>;
60
+ }>, null, import("@motionscript/sdk").BuiltNode<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
61
+ /** Spacing between grid lines in world units: one number for both axes, or `{ x, y }`. */
62
+ readonly cellSize: import("@motionscript/sdk").Type<number | Vector2, number | Vector2, false>;
63
+ /** Finer cells each cell is split into, as in `LineGridPattern.subdivisions`. */
64
+ readonly subdivisions: 1;
65
+ /** Stroke for the minor lines. Unset, the major `stroke` at half opacity when `subdivisions > 1`. */
66
+ readonly subStroke: import("@motionscript/sdk").Attribute<_Stroke, StrokeResolved[]>;
67
+ /** Scrolls the pattern relative to the world, which it is otherwise anchored to. */
68
+ readonly offset: import("@motionscript/sdk").Type<Vector2, Vector2, false>;
69
+ readonly flow: import("@motionscript/sdk").Type<_FlowMode, _FlowResolved, false>;
70
+ readonly gap: import("@motionscript/sdk").Type<_GapSize, _GapSize, false>;
71
+ readonly wrap: boolean;
72
+ readonly crossGap: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
73
+ readonly columns: import("@motionscript/sdk").Type<number, number, false>;
74
+ readonly align: import("@motionscript/sdk").Attribute<_Alignment, Vector2>;
75
+ readonly fill: import("@motionscript/sdk").Attribute<_Fill, FillResolved[]>;
76
+ readonly stroke: import("@motionscript/sdk").Attribute<_Stroke, StrokeResolved[]>;
77
+ readonly shadow: import("@motionscript/sdk").Attribute<_Shadow, ShadowResolved[]>;
78
+ readonly overlay: import("@motionscript/sdk").Attribute<_Fill, FillResolved[]>;
79
+ readonly start: import("@motionscript/sdk").Type<number, number, false>;
80
+ readonly end: import("@motionscript/sdk").Type<number, number, false>;
81
+ }>, {
82
+ readonly fillTo: readonly ["fill"];
83
+ readonly strokeTo: readonly ["stroke"];
84
+ readonly shadowTo: readonly ["shadow"];
85
+ readonly overlayTo: readonly ["overlay"];
86
+ readonly progressTo: readonly ["start", "end"];
87
+ readonly flash: {
88
+ readonly portion: import("@motionscript/sdk").Type<number, number, false>;
89
+ };
90
+ }, _Node2D<_Node2DProps>>>>;
61
91
  export type GridPattern = NodeOf<typeof GridPattern>;
62
92
  /** What a call or a document row may set. */
63
93
  export type GridPatternProps = NonNullable<Parameters<typeof GridPattern>[0]>;
@@ -1 +1 @@
1
- {"version":3,"file":"grid-pattern.d.ts","sourceRoot":"","sources":["../../src/grid-pattern/grid-pattern.ts"],"names":[],"mappings":"AAAA,OAAO,EAOH,KAAK,MAAM,EAGX,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,cAAc,EACnB,KAAK,OAAO,EA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eAAe,EACtC,KAAK,OAAO,IAAI,QAAQ,EAC3B,MAAM,mBAAmB,CAAC;AAE3B;;;;;;;;;;;;;;;;GAgBG;AAEH,yEAAyE;AACzE,eAAO,MAAM,KAAK;;;;;;;;;;;;;CAAoC,CAAC;AAEvD,eAAO,MAAM,QAAQ;;;oBATlB,CAAA;;;;oBAC4B,CAAA;;;;oBAC2B,CAAC;;;;oBAI/B,CAAC;;;;oBAGhB,CAAA;;;;;;;;CAAgC,CAAC;AAE9C,KAAK,UAAU,GAAG,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,OAAO,KAAK,CAAC,KAAK,CAAC,CAAC;AAE9D,wBAAgB,OAAO,CAAC,QAAQ,EAAE,QAAQ,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,SAAS,EAAE,GAAG,MAAM,CAEjG;AAED,wBAAgB,MAAM,CAAC,GAAG,EAAE,SAAS,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,SAAS,EAAE,GAAG,SAAS,WAAW,EAAE,CAE5G;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,aAAa,GAAG,SAAS,CA6B3D;AAED;;;;;;;;GAQG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,aAAa,EAAE,OAAO,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,IAAI,GAAG,IAAI,CAKnF"}
@@ -56,7 +56,37 @@ export declare const LineGridPattern: import("@motionscript/sdk").Component<"lin
56
56
  readonly overlay: import("@motionscript/sdk").Attribute<_Fill, _FillResolved[]>;
57
57
  readonly start: import("@motionscript/sdk").Type<number, number, false>;
58
58
  readonly end: import("@motionscript/sdk").Type<number, number, false>;
59
- }>, null>>;
59
+ }>, null, import("@motionscript/sdk").BuiltNode<import("@motionscript/sdk").Merge<import("@motionscript/sdk").Box2DState, {
60
+ /** Cells along each axis: `divisions` of 4 draws 5 major lines per axis. */
61
+ readonly divisions: 4;
62
+ /** Finer cells each division is split into. 1 draws no minor lines; 2 adds one per division. */
63
+ readonly subdivisions: 1;
64
+ /** Stroke for the minor lines. Unset, the major `stroke` at half opacity when `subdivisions > 1`. */
65
+ readonly subStroke: import("@motionscript/sdk").Attribute<_Stroke, _StrokeResolved[]>;
66
+ /** Pans the grid. Lines wrap and tile, so the rect stays full while `offset` scrolls it. */
67
+ readonly offset: import("@motionscript/sdk").Type<Vector2, Vector2, false>;
68
+ readonly flow: import("@motionscript/sdk").Type<_FlowMode, _FlowResolved, false>;
69
+ readonly gap: import("@motionscript/sdk").Type<_GapSize, _GapSize, false>;
70
+ readonly wrap: boolean;
71
+ readonly crossGap: import("@motionscript/sdk").Type<number | undefined, number | undefined, false>;
72
+ readonly columns: import("@motionscript/sdk").Type<number, number, false>;
73
+ readonly align: import("@motionscript/sdk").Attribute<_Alignment, Vector2>;
74
+ readonly fill: import("@motionscript/sdk").Attribute<_Fill, _FillResolved[]>;
75
+ readonly stroke: import("@motionscript/sdk").Attribute<_Stroke, _StrokeResolved[]>;
76
+ readonly shadow: import("@motionscript/sdk").Attribute<_Shadow, _ShadowResolved[]>;
77
+ readonly overlay: import("@motionscript/sdk").Attribute<_Fill, _FillResolved[]>;
78
+ readonly start: import("@motionscript/sdk").Type<number, number, false>;
79
+ readonly end: import("@motionscript/sdk").Type<number, number, false>;
80
+ }>, {
81
+ readonly fillTo: readonly ["fill"];
82
+ readonly strokeTo: readonly ["stroke"];
83
+ readonly shadowTo: readonly ["shadow"];
84
+ readonly overlayTo: readonly ["overlay"];
85
+ readonly progressTo: readonly ["start", "end"];
86
+ readonly flash: {
87
+ readonly portion: import("@motionscript/sdk").Type<number, number, false>;
88
+ };
89
+ }, _Node2D<_Node2DProps>>>>;
60
90
  export type LineGridPattern = NodeOf<typeof LineGridPattern>;
61
91
  /** What a call or a document row may set. */
62
92
  export type LineGridPatternProps = NonNullable<Parameters<typeof LineGridPattern>[0]>;
@@ -1 +1 @@
1
- {"version":3,"file":"line-grid-pattern.d.ts","sourceRoot":"","sources":["../../src/line-grid-pattern/line-grid-pattern.ts"],"names":[],"mappings":"AAAA,OAAO,EAOH,KAAK,MAAM,EAGX,KAAK,OAAO,EAEZ,KAAK,SAAS,IAAI,UAAU,EAC5B,KAAK,IAAI,IAAI,KAAK,EAClB,KAAK,YAAY,IAAI,aAAa,EAClC,KAAK,QAAQ,IAAI,SAAS,EAC1B,KAAK,YAAY,IAAI,aAAa,EAClC,KAAK,OAAO,IAAI,QAAQ,EACxB,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,WAAW,IAAI,YAAY,EAChC,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,cAAc,IAAI,eAAe,EACtC,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,cAAc,IAAI,eAAe,EACzC,MAAM,mBAAmB,CAAC;AAI3B;;;;;GAKG;AACH,eAAO,MAAM,eAAe;IAKpB,4EAA4E;;IAE5E,gGAAgG;;IAEhG,qGAAqG;;IAErG,4FAA4F;;;;;;;;;;;;;;;;;;;;;;;;IAN5F,4EAA4E;;IAE5E,gGAAgG;;IAEhG,qGAAqG;;IAErG,4FAA4F;;;;;;;;;;;;;;UAwClG,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC;AAC7D,6CAA6C;AAC7C,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"line-grid-pattern.d.ts","sourceRoot":"","sources":["../../src/line-grid-pattern/line-grid-pattern.ts"],"names":[],"mappings":"AAAA,OAAO,EAOH,KAAK,MAAM,EAGX,KAAK,OAAO,EAEZ,KAAK,SAAS,IAAI,UAAU,EAC5B,KAAK,IAAI,IAAI,KAAK,EAClB,KAAK,YAAY,IAAI,aAAa,EAClC,KAAK,QAAQ,IAAI,SAAS,EAC1B,KAAK,YAAY,IAAI,aAAa,EAClC,KAAK,OAAO,IAAI,QAAQ,EACxB,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,WAAW,IAAI,YAAY,EAChC,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,cAAc,IAAI,eAAe,EACtC,KAAK,MAAM,IAAI,OAAO,EACtB,KAAK,cAAc,IAAI,eAAe,EACzC,MAAM,mBAAmB,CAAC;AAI3B;;;;;GAKG;AACH,eAAO,MAAM,eAAe;IAKpB,4EAA4E;;IAE5E,gGAAgG;;IAEhG,qGAAqG;;IAErG,4FAA4F;;;;;;;;;;;;;;;;;;;;;;;;IAN5F,4EAA4E;;IAE5E,gGAAgG;;IAEhG,qGAAqG;;IAErG,4FAA4F;;;;;;;;;;;;;;;IAN5F,4EAA4E;;IAE5E,gGAAgG;;IAEhG,qGAAqG;;IAErG,4FAA4F;;;;;;;;;;;;;;;;;;;;;;;2BAwClG,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,eAAe,CAAC,CAAC;AAC7D,6CAA6C;AAC7C,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAC,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@motionscript/patterns",
3
- "version": "0.1.0-alpha.6",
3
+ "version": "0.1.0-alpha.8",
4
4
  "type": "module",
5
5
  "description": "Background patterns for Motion Script: line and dot grids that fill a box, and an infinite grid that fills whatever a camera can see.",
6
6
  "repository": {
@@ -49,8 +49,9 @@
49
49
  "animation"
50
50
  ],
51
51
  "license": "Apache-2.0",
52
+ "author": "Motionscript",
52
53
  "peerDependencies": {
53
- "@motionscript/sdk": "^0.1.0-alpha.6"
54
+ "@motionscript/sdk": "^0.1.0-alpha.8"
54
55
  },
55
56
  "devDependencies": {
56
57
  "@types/node": "^25.6.2",
@@ -61,8 +62,8 @@
61
62
  "typescript": "^6.0.3",
62
63
  "typescript-eslint": "^8.48.0",
63
64
  "vitest": "^4.1.5",
64
- "@motionscript/core": "0.1.0-alpha.6",
65
- "@motionscript/sdk": "0.1.0-alpha.6"
65
+ "@motionscript/sdk": "0.1.0-alpha.8",
66
+ "@motionscript/core": "0.1.0-alpha.8"
66
67
  },
67
68
  "scripts": {
68
69
  "build": "tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json --resolve-full-paths && node ../../../scripts/build-browser.mjs",