babylon.quarks-editor 0.32.0 → 0.33.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
@@ -7,6 +7,16 @@ needs in its peer dependency.
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.33.0] — 2026-11-10
11
+
12
+ Released with babylon.quarks 1.0.0. No editor behaviour changes.
13
+
14
+ ### Changed
15
+
16
+ - The peer dependency on babylon.quarks is `~1.0.0`. It no longer matches the release candidate
17
+ (`~1.0.0-rc.2` was 0.32.0), so a project that depends on the editor with `^0.32.0` does not take
18
+ this release on its next install.
19
+
10
20
  ## [0.32.0] — 2026-11-08
11
21
 
12
22
  Released with babylon.quarks 1.0.0-rc.2, on npm's `next` tag with it; its peer dependency is
package/README.md CHANGED
@@ -10,13 +10,9 @@ Shuriken-style effect editor for [babylon.quarks](https://www.npmjs.com/package/
10
10
  npm install babylon.quarks-editor babylon.quarks @babylonjs/core @babylonjs/materials react react-dom @heroicons/react @tanstack/react-virtual
11
11
  ```
12
12
 
13
- Until babylon.quarks 1.0.0 is out, editor 0.31 and the 1.0 release candidate are on the `next` tag:
14
- install `babylon.quarks-editor@next babylon.quarks@next` in place of the first two.
15
-
16
- The editor is an ES module package (`import`, not `require`). It stays on 0.x while babylon.quarks
17
- reaches 1.0, and each editor release names the babylon.quarks line it works with: editor 0.31.x
18
- needs babylon.quarks 1.0 (from 1.0.0-rc.1, installed with `@next` until 1.0.0 is out), and editor
19
- 0.30.x needs babylon.quarks 0.30.x.
13
+ The editor is an ES module package (`import`, not `require`). It stays on 0.x, and each editor
14
+ release names the babylon.quarks line it works with: editor 0.33 needs babylon.quarks 1.0
15
+ (`~1.0.0`), and editor 0.30.x needs babylon.quarks 0.30.x.
20
16
 
21
17
  ## Usage
22
18
 
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
2
2
  import { Texture } from '@babylonjs/core/Materials/Textures/texture.js';
3
3
  import { Mesh } from '@babylonjs/core/Meshes/mesh.js';
4
4
  import { PlusIcon, XMarkIcon } from '@heroicons/react/24/solid';
5
- import { AxisAngleGenerator, BoxEmitFrom, ColorOverLife, ColorRange, ConeEmitFrom, ConstantColor, ConstantValue, EulerGenerator, Gradient, GridSampling, IntervalValue, RandomColor, RandomColorBetweenGradient, RandomQuatGenerator, RenderMode, SizeOverLife, Vector3Function, normalizeTextureUV, } from 'babylon.quarks';
5
+ import { AxisAngleGenerator, BoxEmitFrom, ColorOverLife, ColorRange, ConeEmitFrom, ConstantColor, ConstantValue, EulerGenerator, Gradient, GridSampling, IntervalValue, RandomColor, RandomColorBetweenGradient, RandomQuatGenerator, RenderMode, STRETCHED_LENGTH_FACTOR, SizeOverLife, Vector3Function, normalizeTextureUV, } from 'babylon.quarks';
6
6
  import React, { useMemo } from 'react';
7
7
  import { DEFAULT_GRADIENT_STOPS, buildGradient, findBehavior, hexToRgb, readGradientStops, rgbToHex, } from '../core/colors.js';
8
8
  import { applyRendererMaterial, getMaterialLabel } from '../core/material.js';
@@ -466,7 +466,8 @@ export function RendererModule({ binding, textureOptions, geometryOptions, resol
466
466
  }) }) }), system.rendererEmitterSettings.sideAxis && (_jsx(Row, { label: "Side axis", children: _jsx(AxisField, { value: system.rendererEmitterSettings.sideAxis, onChange: (axis) => binding.apply((s) => {
467
467
  // The axis's length scales the width: keep it a unit vector.
468
468
  s.rendererEmitterSettings.sideAxis = unitOrZero(axis);
469
- }) }) }))] })), system.renderMode === RenderMode.StretchedBillBoard && (_jsxs(_Fragment, { children: [_jsx(Row, { label: "Speed factor", children: _jsx(NumberField, { value: system.rendererEmitterSettings.speedFactor ?? 0, step: 0.1, onChange: (v) => binding.apply((s) => (s.rendererEmitterSettings.speedFactor = v)) }) }), _jsx(Row, { label: "Length factor", children: _jsx(NumberField, { value: system.rendererEmitterSettings.lengthFactor ?? 2, step: 0.1, onChange: (v) => binding.apply((s) => (s.rendererEmitterSettings.lengthFactor = v)) }) })] })), _jsx(SubHeader, { title: "Material", hint: "Shader and blending settings applied to the particle sprite or mesh." }), materialLabel ? (_jsx(Row, { label: "Source", children: _jsx("div", { style: { fontSize: 12, color: theme.textDim, lineHeight: 1.45 }, children: materialLabel }) })) : null, _jsx(Row, { label: "Blend mode", children: _jsx(SelectField, { value: system.blending, options: [
469
+ }) }) }))] })), system.renderMode === RenderMode.StretchedBillBoard && (_jsxs(_Fragment, { children: [_jsx(Row, { label: "Speed factor", children: _jsx(NumberField, { value: system.rendererEmitterSettings.speedFactor ?? 0, step: 0.1, onChange: (v) => binding.apply((s) => (s.rendererEmitterSettings.speedFactor = v)) }) }), _jsx(Row, { label: "Length factor", children: _jsx(NumberField, { value: system.rendererEmitterSettings.lengthFactor ??
470
+ STRETCHED_LENGTH_FACTOR, step: 0.1, onChange: (v) => binding.apply((s) => (s.rendererEmitterSettings.lengthFactor = v)) }) })] })), _jsx(SubHeader, { title: "Material", hint: "Shader and blending settings applied to the particle sprite or mesh." }), materialLabel ? (_jsx(Row, { label: "Source", children: _jsx("div", { style: { fontSize: 12, color: theme.textDim, lineHeight: 1.45 }, children: materialLabel }) })) : null, _jsx(Row, { label: "Blend mode", children: _jsx(SelectField, { value: system.blending, options: [
470
471
  { value: 1, label: 'Additive' },
471
472
  { value: 2, label: 'Alpha blend' },
472
473
  { value: 3, label: 'Subtract' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylon.quarks-editor",
3
- "version": "0.32.0",
3
+ "version": "0.33.0",
4
4
  "description": "Shuriken-style effect editor for babylon.quarks: headless edit-model core + React module-stack UI",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -61,7 +61,7 @@
61
61
  "@babylonjs/materials": "^9.23.0",
62
62
  "@heroicons/react": ">=2.0.0",
63
63
  "@tanstack/react-virtual": ">=3.0.0",
64
- "babylon.quarks": "~1.0.0-rc.2",
64
+ "babylon.quarks": "~1.0.0",
65
65
  "react": ">=18",
66
66
  "react-dom": ">=18"
67
67
  },
@@ -31,6 +31,7 @@ import {
31
31
  RandomColorBetweenGradient,
32
32
  RandomQuatGenerator,
33
33
  RenderMode,
34
+ STRETCHED_LENGTH_FACTOR,
34
35
  SizeOverLife,
35
36
  Vector3Function,
36
37
  normalizeTextureUV,
@@ -1265,7 +1266,10 @@ export function RendererModule({
1265
1266
  </Row>
1266
1267
  <Row label="Length factor">
1267
1268
  <NumberField
1268
- value={(system.rendererEmitterSettings as {lengthFactor?: number}).lengthFactor ?? 2}
1269
+ value={
1270
+ (system.rendererEmitterSettings as {lengthFactor?: number}).lengthFactor ??
1271
+ STRETCHED_LENGTH_FACTOR
1272
+ }
1269
1273
  step={0.1}
1270
1274
  onChange={(v) =>
1271
1275
  binding.apply(