@motionscript/core 0.1.1-alpha.5 → 0.2.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 CHANGED
@@ -1,5 +1,34 @@
1
1
  # @motionscript/core
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - **0.2.0** gathers the 0.1.1 alpha line into one stable release: the charts rehaul with saved styles and per-part text, the 3D globe and `GeoGlobe3d`, reversed-Z depth for thin and touching 3D parts, tilted shadow layers, texture anisotropy, smooth path scaling, shared asset loads and pre-warmed pipelines. All public packages move to 0.2.0 together.
8
+
9
+ ### Patch Changes
10
+
11
+ - 3050906: **Breaking:** every run of text a chart draws gets its own text style, the palette becomes `seriesFills`, and a chart has a background for the whole chart beside one for its grid.
12
+
13
+ - **`Types.typography(textStyle)`** (core, sdk): one text style as an entry (face, size, weight, style, spacing, paint). A partial is laid over the default or the value it replaces, so `{ fill }` recolours and keeps the rest; it tweens key by key. `describe()` reports `kind: "typography"` with its default.
14
+ - **Chart text** (charts): `foreground`, `muted`, `fontFamily`, `fontSize` and `fontWeight` are gone. Line and bar charts have `xLabelText`, `xTitleText`, `yLabelText`, `yTitleText`, `valueText` and `legendText`; a pie `labelText`, `valueText`, `centerText` and `legendText`; a radar `spokeText`; a radial `labelText` and `centerText`. Spacing that followed the one size now follows the text it sits beside.
15
+ - **Series fills**: `palette` is `seriesFills` (group `series`), each entry a fill that may stack paints.
16
+ - **Backgrounds**: `background` (group `background`) paints behind the whole chart on every chart; line, bar and radar charts add `gridBackground` for the plot (inside the web on a radar). A line or bar chart's old `background`, which painted the plot, is now `gridBackground`.
17
+ - **Bar corners**: `barRadius` is `barCornerRadius`, a `Types.cornerRadius` read as for a bar standing up (top pair at the far end, bottom pair at the base), with `barCornerStyle` (rounded or angled) beside it. `barWidth` reports itself as a percentage.
18
+ - Each chart's `migrate` hook (`migrateChartStyle`) carries a stored style across: the palette, the two inks and the shared type become the new fields as each chart derived them, a plot background becomes `gridBackground`, and a `barRadius` keeps rounding only the far end.
19
+
20
+ Migration: a stored document needs nothing done to it. Each chart's `migrate` hook converts its stored `style` (and a `to` command's) as the document opens: `palette` to `seriesFills`, `foreground`, `muted` and the font fields to the text fields as the chart derived them (titles 1.1× and a weight heavier, values as before), a line, bar or radar chart's `background` to `gridBackground`, and a number `barRadius` to `barCornerRadius` with only the top pair rounded. Code that sets these fields by hand, or a host that reads a chart's stored `style`, uses the new names; `migrateChartStyle(layout)` converts a style object the same way.
21
+
22
+ - 672012c: `Types.style(family, groups, { presets })`: a component's whole look as one entry. Fields are written in groups and read flat (`state.style.palette`); a set lays a partial over the previous value and drops keys the component does not declare, so one preset or saved style dresses every component of the family; `to({ style })` tweens field by field. `describe()` reports it as `kind: "style"` with its family, presets and grouped fields, so a host can edit and save looks generically. `Types.palette(fills)` is a colour-per-item entry, tweened pairwise. The SDK exports the `StyleGroups`, `StyleInput`, `StyleOptions`, `StyleShape` and `StyleValues` types.
23
+ - 3630b74: Editing a node whose own commands animate what its asset declaration reads no longer re-runs that declaration on every frame the commands cover. A sweep after an edit takes back what an owner declared on a frame when every slot it read there holds what it held, so moving a 3D component with a build-in command costs about 10 ms per edit instead of re-running its whole `render` a few hundred times (about 215 ms for a 19-tile board). A declaration that read anything else runs again as before.
24
+ - 1c43a37: `projectNode3D` also reports `bounds`: what the node and its children draw, as a box in the node's own frame. Projected through `localPoints`, it is a selection box that turns and scales with the mesh, where the screen box `getNodeBox` reports is only the upright rectangle around it.
25
+ - 420d5d0: **`Paint3D`**: a custom 3D node paints with the same `fill` and `stroke` entries a 2D shape takes. Spread `...Paint3D.state` and `...Paint3D.commands` (`fillTo`, `strokeTo`), then draw the surface with `Paint3D.material(fill)` (one solid colour stays a tweenable `color` and `opacity`; a gradient or image becomes a texture; `{ type: "standard" }` lights it) and the lines with `Paint3D.lines(g3, stroke, segments, { through, lift })`, one instanced batch of bars per stroke layer. Stroke `weight`, `dash` and `dashOffset` are thousandths of a scene unit; a `square` cap closes outline corners; `through: true` draws hidden lines through solids. Built-in meshes keep `Material.state`.
26
+ - e279864: **Breaking:** the deprecated shims and dead exports are gone. Core drops the `SceneDocument`, `SceneEffect`, `SceneTimeline`, `integrateSpeedToSceneTime` and `sourceTimeAtSceneElapsed` aliases, `Sound.sceneDurationFor`, the `Precomp*` aliases of the asset-timeline names, `ImageFilters` and `VideoFilters` (use `Adjustments` and `VideoAdjustments`), `PropertyMeta.withdrawn`, `AssetTimelineOptions.lifespans`, and the unused `opacity` and `blend` of per-shape descriptors (`ShapeState`). The `filters` prop of image and video fills is removed too: write the grade as `preset: { adjustments }`. Documents move to format 3, and opening one that carries `filters` on a media fill moves it into `preset.adjustments`. Also removed as unused: `sampleParam`, `IDENTITY_AFFINE3`, `neutralPreset`, `resolveMediaPreset`'s second argument, `paramAtDistance`, `arcPointFunction`, `segmentChord`, `isStyleOnlySegment`, `withTransformDescriptor`, `easeKey`, `isParentNode`, `AudioParams`, `ResolvedSoundProps`, `StarProps`, `RotatedBoxProps`, `ModelView3DProps` and `NumberNodeFormat`. In headless, `Semaphore`, `withDeadline`, `toRenderError` and `cleanPageErrorMessage` were internal and are deleted.
27
+
28
+ Migration: a stored document needs nothing done to it. Opening a format 2 document moves a media fill's `filters` into `preset.adjustments` (dropped where `preset.adjustments` already states the grade), and saving it writes format 3. Code that named a removed export uses what it aliased: `Adjustments` for `ImageFilters`, `VideoAdjustments` for `VideoFilters`, and the asset-timeline names for the `Precomp*` aliases.
29
+
30
+ - 0b752d6: - **A 3D texture's `anisotropy` is drawn**: above 1 the sampler filters anisotropically, rounded up to 4x, 8x or 16x (the most WebGPU allows), so a texture seen at a glancing angle stays sharp instead of blurring. It needs linear filters; a `nearest` texture ignores it. It was accepted and never applied before.
31
+
3
32
  ## 0.1.1-alpha.5
4
33
 
5
34
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@motionscript/core",
3
- "version": "0.1.1-alpha.5",
3
+ "version": "0.2.0",
4
4
  "exports": {
5
5
  ".": "dist/browser/index.js",
6
6
  "./experimental": "dist/browser/experimental.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@motionscript/core",
3
- "version": "0.1.1-alpha.5",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "description": "Engine-agnostic animation library for Motion Script: scenes, nodes, props, tweens and layout.",
6
6
  "repository": {