@silentstatestudio/perseon 0.1.0 → 0.1.1

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.
Files changed (48) hide show
  1. package/CHANGELOG.md +31 -4
  2. package/LICENSE.md +61 -18
  3. package/README.md +9 -8
  4. package/dist/authoring/index.cjs +7 -2
  5. package/dist/authoring/index.d.cts +102 -4
  6. package/dist/authoring/index.d.ts +102 -4
  7. package/dist/authoring/index.js +6 -1
  8. package/dist/authoring/index.js.map +1 -1
  9. package/dist/{chunk-PT7F7TTB.cjs → chunk-443SQYAB.cjs} +216 -179
  10. package/dist/{chunk-ON4JV4BI.js → chunk-AVYXWDFD.js} +39 -2
  11. package/dist/chunk-AVYXWDFD.js.map +1 -0
  12. package/dist/{chunk-GDXCMDJ6.js → chunk-BEDH7OYG.js} +25 -3
  13. package/dist/chunk-BEDH7OYG.js.map +1 -0
  14. package/dist/{chunk-Q2HLLGJ7.cjs → chunk-WEQPSGPS.cjs} +23 -2
  15. package/dist/chunk-ZIMCQTYK.cjs +5 -0
  16. package/dist/chunk-ZTG42LPX.js +6 -0
  17. package/dist/{colors-CUEeQ78V.d.cts → colors-CCeWL9q4.d.cts} +362 -12
  18. package/dist/{colors-pshUJaKB.d.ts → colors-CGWrMf4V.d.ts} +362 -12
  19. package/dist/core/index.cjs +8 -3
  20. package/dist/core/index.d.cts +4 -3
  21. package/dist/core/index.d.ts +4 -3
  22. package/dist/core/index.js +8 -3
  23. package/dist/index.cjs +8 -3
  24. package/dist/index.d.cts +2 -2
  25. package/dist/index.d.ts +2 -2
  26. package/dist/index.js +8 -3
  27. package/dist/pixi-v7/index.cjs +79 -5
  28. package/dist/pixi-v7/index.d.cts +106 -7
  29. package/dist/pixi-v7/index.d.ts +106 -7
  30. package/dist/pixi-v7/index.js +77 -3
  31. package/dist/pixi-v7/index.js.map +1 -1
  32. package/dist/pixi-v8/index.cjs +78 -7
  33. package/dist/pixi-v8/index.d.cts +81 -9
  34. package/dist/pixi-v8/index.d.ts +81 -9
  35. package/dist/pixi-v8/index.js +76 -5
  36. package/dist/pixi-v8/index.js.map +1 -1
  37. package/dist/{rendering-DeUo1BsK.d.cts → rendering-dYQXmGTV.d.cts} +29 -2
  38. package/dist/{rendering-DeUo1BsK.d.ts → rendering-dYQXmGTV.d.ts} +29 -2
  39. package/dist/testing/index.cjs +23 -0
  40. package/dist/testing/index.d.cts +19 -1
  41. package/dist/testing/index.d.ts +19 -1
  42. package/dist/testing/index.js +24 -0
  43. package/dist/testing/index.js.map +1 -1
  44. package/package.json +145 -148
  45. package/dist/chunk-GDXCMDJ6.js.map +0 -1
  46. package/dist/chunk-ON4JV4BI.js.map +0 -1
  47. package/dist/chunk-SVI6WUOB.js +0 -1
  48. /package/dist/{chunk-SVI6WUOB.js.map → chunk-ZTG42LPX.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -3,9 +3,35 @@
3
3
  Notable changes to `@silentstatestudio/perseon`. The format is based on
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow
5
5
  [semantic versioning](https://semver.org/spec/v2.0.0.html), with the usual `0.x`
6
- caveat that a minor bump may still break, until `1.0.0` says otherwise. This
7
- first entry has nothing to compare with, so instead of `Added` or `Changed` it
8
- describes the package, grouped by area.
6
+ caveat that a minor bump may still break, until `1.0.0` says otherwise. The
7
+ first entry, 0.1.0, had nothing to compare with, so instead of `Added` or
8
+ `Changed` it describes the package, grouped by area.
9
+
10
+ ## [0.1.1] - 2026-11-24
11
+
12
+ No behavior or format changes: an effect made for 0.1.0 runs unchanged.
13
+
14
+ ### Changed
15
+
16
+ - License: the package is now distributed under the PolyForm Perimeter License
17
+ 1.0.1 instead of its previous custom license. It may be used, modified and
18
+ redistributed for any purpose, in personal and commercial projects, except to
19
+ provide others with a product that competes with Perseon Engine. The code is
20
+ source-available. Version 0.1.0 keeps the license it was published with.
21
+ - Every built JavaScript file now starts with the license notice.
22
+ - Documentation: every exported symbol and public member now carries a TSDoc
23
+ comment, shown by editors and in the API reference. Several comments that
24
+ described the behavior wrongly were corrected. No behavior changed.
25
+ - `package.json`: `repository` no longer declares a `directory` (the engine is
26
+ the root of its public repository), and the package declares `packageManager`.
27
+ - The [README](README.md) gives a support address and points to how to
28
+ contribute.
29
+
30
+ ### Removed
31
+
32
+ - The type `ExternalForcesForEmitterUse`, exported as a type by every entry
33
+ except `authoring` and `testing`. It was an internal leftover that nothing
34
+ used; the `ExternalForces` class replaced it.
9
35
 
10
36
  ## [0.1.0] - 2026-11-16
11
37
 
@@ -189,4 +215,5 @@ is rather than what changed in it. The [README](README.md) has the full guide.
189
215
 
190
216
  See "Known limits" in the [README](README.md).
191
217
 
192
- [0.1.0]: https://github.com/silentstatestudio/perseon/releases/tag/v0.1.0
218
+ [0.1.1]: https://github.com/silentstatestudio/perseon/releases/tag/v0.1.1
219
+ [0.1.0]: https://www.npmjs.com/package/@silentstatestudio/perseon/v/0.1.0
package/LICENSE.md CHANGED
@@ -1,30 +1,73 @@
1
- # Perseon License
1
+ # PolyForm Perimeter License 1.0.1
2
2
 
3
- Copyright © 2026 Silent State Studio
3
+ <https://polyformproject.org/licenses/perimeter/1.0.1>
4
4
 
5
- All rights reserved.
5
+ Required Notice: Copyright 2026 Jesús Pérez de Miguel, trading as Silent State Studio (https://perseon.dev)
6
6
 
7
- ## Grant of License
7
+ ## Acceptance
8
8
 
9
- Permission is granted to use Perseon in personal and commercial projects, including games and interactive applications, provided that Perseon is used solely as part of a final product.
9
+ In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
10
10
 
11
- You may modify the source code for your own projects.
11
+ ## Copyright License
12
12
 
13
- ## Restrictions
13
+ The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
14
14
 
15
- You may NOT:
15
+ ## Distribution License
16
16
 
17
- - Sell, sublicense, rent or lease Perseon as a standalone product
18
- - Redistribute Perseon on its own, in source or binary form, whether modified or unmodified. Shipping Perseon inside your final product, as the Grant of License allows, is not redistribution on its own
19
- - Include Perseon in another engine, framework, SDK or library that is distributed or sold
20
- - Present Perseon (or a modified version of it) as your own product
17
+ The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
21
18
 
22
- ## Ownership
19
+ ## Notices
23
20
 
24
- Perseon is proprietary software.
25
- All rights, title and interest in and to Perseon remain with Silent State Studio.
21
+ You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
26
22
 
27
- ## Disclaimer
23
+ > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
28
24
 
29
- This software is provided "as is", without warranty of any kind, express or implied.
30
- In no event shall the authors or copyright holders be liable for any claim, damages or other liability arising from the use of this software.
25
+ ## Changes and New Works License
26
+
27
+ The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
28
+
29
+ ## Patent License
30
+
31
+ The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
32
+
33
+ ## Noncompete
34
+
35
+ Any purpose is a permitted purpose, except for providing to others any product that competes with the software.
36
+
37
+ ## Competition
38
+
39
+ If you use this software to market a product as a substitute for the functionality or value of the software, it competes with the software. A product may compete regardless how it is designed or deployed. For example, a product may compete even if it provides its functionality via any kind of interface (including services, libraries or plug-ins), even if it is ported to a different platform or programming language, and even if it is provided free of charge.
40
+
41
+ ## Fair Use
42
+
43
+ You may have "fair use" rights for the software under the law. These terms do not limit them.
44
+
45
+ ## No Other Rights
46
+
47
+ These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
48
+
49
+ ## Patent Defense
50
+
51
+ If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
52
+
53
+ ## Violations
54
+
55
+ The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
56
+
57
+ ## No Liability
58
+
59
+ ***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
60
+
61
+ ## Definitions
62
+
63
+ The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
64
+
65
+ A **product** can be a good or service, or a combination of them.
66
+
67
+ **You** refers to the individual or entity agreeing to these terms.
68
+
69
+ **Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
70
+
71
+ **Your licenses** are all the licenses granted to you for the software under these terms.
72
+
73
+ **Use** means anything you do with the software requiring one of your licenses.
package/README.md CHANGED
@@ -836,14 +836,15 @@ do not store frames or tests that depend on it across an upgrade.
836
836
  Work in progress. The API may change until the first stable release; the
837
837
  [changelog](CHANGELOG.md) records each version. Website: <https://perseon.dev>.
838
838
  Source and issues: <https://github.com/silentstatestudio/perseon>.
839
+ Support: <contact@silentstatestudio.com>. To contribute, read
840
+ [CONTRIBUTING.md](CONTRIBUTING.md).
839
841
 
840
842
  ## License
841
843
 
842
- Perseon Engine is proprietary software by Silent State Studio. You may use it in
843
- personal and commercial projects, such as games and interactive applications,
844
- only as part of a final product, and modify it for your own projects. Shipping it
845
- inside that product is allowed. You may not sell, sublicense, rent or lease it as
846
- a standalone product, redistribute it on its own (modified or not, as source or
847
- binary), include it in another engine, framework, SDK or library that is
848
- distributed or sold, or present it as your own product. The full terms are in
849
- [LICENSE.md](LICENSE.md).
844
+ Perseon Engine is source-available and free to use, under the
845
+ [PolyForm Perimeter License 1.0.1](LICENSE.md). You may use it, modify it and
846
+ redistribute it for any purpose, in personal and commercial projects, except to
847
+ provide others with a product that competes with Perseon Engine. Keep the license
848
+ and its copyright notice with any copy you pass on. Every JavaScript file of the
849
+ package starts with the license notice in a header comment; if your bundler strips
850
+ comments, keep the notice in your product's credits or in a third-party notices file.
@@ -1,3 +1,8 @@
1
+ /*!
2
+ * @silentstatestudio/perseon v0.1.1
3
+ * Required Notice: Copyright 2026 Jesús Pérez de Miguel, trading as Silent State Studio (https://perseon.dev)
4
+ * PolyForm Perimeter License 1.0.1 <https://polyformproject.org/licenses/perimeter/1.0.1>
5
+ */
1
6
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
7
 
3
8
 
@@ -37,7 +42,7 @@
37
42
 
38
43
 
39
44
 
40
- var _chunkQ2HLLGJ7cjs = require('../chunk-Q2HLLGJ7.cjs');
45
+ var _chunkWEQPSGPScjs = require('../chunk-WEQPSGPS.cjs');
41
46
 
42
47
  // src/core/parameters/probabilityCurvePresets.ts
43
48
  var DEFAULT_PROBABILITY_CURVE_PRESET_ID = "uniform";
@@ -210,4 +215,4 @@ var createProbabilityCurveFromPreset = (presetId = DEFAULT_PROBABILITY_CURVE_PRE
210
215
 
211
216
 
212
217
 
213
- exports.ANIMATION_FORMAT_VERSION = _chunkQ2HLLGJ7cjs.ANIMATION_FORMAT_VERSION; exports.BLEND_MODE_CATALOG = _chunkQ2HLLGJ7cjs.BLEND_MODE_CATALOG; exports.COLOR_DOMAIN = _chunkQ2HLLGJ7cjs.COLOR_DOMAIN; exports.COMMON_NUMERIC_DOMAINS = _chunkQ2HLLGJ7cjs.COMMON_NUMERIC_DOMAINS; exports.CUSTOM_PARAMETER_DOMAINS = _chunkQ2HLLGJ7cjs.CUSTOM_PARAMETER_DOMAINS; exports.DEFAULT_BLEND_MODE = _chunkQ2HLLGJ7cjs.DEFAULT_BLEND_MODE; exports.DEFAULT_PROBABILITY_CURVE_PRESET_ID = DEFAULT_PROBABILITY_CURVE_PRESET_ID; exports.EMITTER_EVENT_TRIGGERS = _chunkQ2HLLGJ7cjs.EMITTER_EVENT_TRIGGERS; exports.EMITTER_OPTION_DOMAINS = _chunkQ2HLLGJ7cjs.EMITTER_OPTION_DOMAINS; exports.EMITTER_PARAMETER_DOMAINS = _chunkQ2HLLGJ7cjs.EMITTER_PARAMETER_DOMAINS; exports.LINKED_SOURCE_CATALOG = _chunkQ2HLLGJ7cjs.LINKED_SOURCE_CATALOG; exports.MAX_PARAMETER_VALUE = _chunkQ2HLLGJ7cjs.MAX_PARAMETER_VALUE; exports.MIN_PARAMETER_VALUE = _chunkQ2HLLGJ7cjs.MIN_PARAMETER_VALUE; exports.MODIFIER_DOMAINS = _chunkQ2HLLGJ7cjs.MODIFIER_DOMAINS; exports.MODULATOR_DOMAINS = _chunkQ2HLLGJ7cjs.MODULATOR_DOMAINS; exports.MODULATOR_TIME_ELAPSED_SOURCE = _chunkQ2HLLGJ7cjs.MODULATOR_TIME_ELAPSED_SOURCE; exports.NAME_MAX_LENGTH = _chunkQ2HLLGJ7cjs.NAME_MAX_LENGTH; exports.OPTION_PATH_CATALOG = _chunkQ2HLLGJ7cjs.OPTION_PATH_CATALOG; exports.PARAMETER_OPTION_DOMAINS = _chunkQ2HLLGJ7cjs.PARAMETER_OPTION_DOMAINS; exports.PARTICLE_EVENT_TRIGGERS = _chunkQ2HLLGJ7cjs.PARTICLE_EVENT_TRIGGERS; exports.PARTICLE_OPTION_DOMAINS = _chunkQ2HLLGJ7cjs.PARTICLE_OPTION_DOMAINS; exports.PARTICLE_PARAMETER_DOMAINS = _chunkQ2HLLGJ7cjs.PARTICLE_PARAMETER_DOMAINS; exports.POINT_FORCE_DOMAINS = _chunkQ2HLLGJ7cjs.POINT_FORCE_DOMAINS; exports.PROBABILITY_CURVE_PRESETS = PROBABILITY_CURVE_PRESETS; exports.PROBABILITY_CURVE_PRESET_OPTIONS = PROBABILITY_CURVE_PRESET_OPTIONS; exports.ParameterTypeChecker = _chunkQ2HLLGJ7cjs.ParameterTypeChecker; exports.SPRITE_ANIMATION_DOMAINS = _chunkQ2HLLGJ7cjs.SPRITE_ANIMATION_DOMAINS; exports.TEXT_DOMAINS = _chunkQ2HLLGJ7cjs.TEXT_DOMAINS; exports.WARM_UP_MIN_STEP_SECONDS = _chunkQ2HLLGJ7cjs.WARM_UP_MIN_STEP_SECONDS; exports.collectLayerTextureSources = _chunkQ2HLLGJ7cjs.collectLayerTextureSources; exports.collectTextureSources = _chunkQ2HLLGJ7cjs.collectTextureSources; exports.collectTextureSourcesByLayer = _chunkQ2HLLGJ7cjs.collectTextureSourcesByLayer; exports.compileCurveSegments = _chunkQ2HLLGJ7cjs.compileCurveSegments; exports.createProbabilityCurveFromPreset = createProbabilityCurveFromPreset; exports.findMissingTextureSources = _chunkQ2HLLGJ7cjs.findMissingTextureSources; exports.findOptionPathEntry = _chunkQ2HLLGJ7cjs.findOptionPathEntry; exports.getProbabilityCurvePreset = getProbabilityCurvePreset; exports.isEmitterEventTrigger = _chunkQ2HLLGJ7cjs.isEmitterEventTrigger; exports.isEventTrigger = _chunkQ2HLLGJ7cjs.isEventTrigger; exports.isParticleBlendMode = _chunkQ2HLLGJ7cjs.isParticleBlendMode; exports.isParticleEventTrigger = _chunkQ2HLLGJ7cjs.isParticleEventTrigger; exports.isValidEventName = _chunkQ2HLLGJ7cjs.isValidEventName; exports.sanitizeName = _chunkQ2HLLGJ7cjs.sanitizeName;
218
+ exports.ANIMATION_FORMAT_VERSION = _chunkWEQPSGPScjs.ANIMATION_FORMAT_VERSION; exports.BLEND_MODE_CATALOG = _chunkWEQPSGPScjs.BLEND_MODE_CATALOG; exports.COLOR_DOMAIN = _chunkWEQPSGPScjs.COLOR_DOMAIN; exports.COMMON_NUMERIC_DOMAINS = _chunkWEQPSGPScjs.COMMON_NUMERIC_DOMAINS; exports.CUSTOM_PARAMETER_DOMAINS = _chunkWEQPSGPScjs.CUSTOM_PARAMETER_DOMAINS; exports.DEFAULT_BLEND_MODE = _chunkWEQPSGPScjs.DEFAULT_BLEND_MODE; exports.DEFAULT_PROBABILITY_CURVE_PRESET_ID = DEFAULT_PROBABILITY_CURVE_PRESET_ID; exports.EMITTER_EVENT_TRIGGERS = _chunkWEQPSGPScjs.EMITTER_EVENT_TRIGGERS; exports.EMITTER_OPTION_DOMAINS = _chunkWEQPSGPScjs.EMITTER_OPTION_DOMAINS; exports.EMITTER_PARAMETER_DOMAINS = _chunkWEQPSGPScjs.EMITTER_PARAMETER_DOMAINS; exports.LINKED_SOURCE_CATALOG = _chunkWEQPSGPScjs.LINKED_SOURCE_CATALOG; exports.MAX_PARAMETER_VALUE = _chunkWEQPSGPScjs.MAX_PARAMETER_VALUE; exports.MIN_PARAMETER_VALUE = _chunkWEQPSGPScjs.MIN_PARAMETER_VALUE; exports.MODIFIER_DOMAINS = _chunkWEQPSGPScjs.MODIFIER_DOMAINS; exports.MODULATOR_DOMAINS = _chunkWEQPSGPScjs.MODULATOR_DOMAINS; exports.MODULATOR_TIME_ELAPSED_SOURCE = _chunkWEQPSGPScjs.MODULATOR_TIME_ELAPSED_SOURCE; exports.NAME_MAX_LENGTH = _chunkWEQPSGPScjs.NAME_MAX_LENGTH; exports.OPTION_PATH_CATALOG = _chunkWEQPSGPScjs.OPTION_PATH_CATALOG; exports.PARAMETER_OPTION_DOMAINS = _chunkWEQPSGPScjs.PARAMETER_OPTION_DOMAINS; exports.PARTICLE_EVENT_TRIGGERS = _chunkWEQPSGPScjs.PARTICLE_EVENT_TRIGGERS; exports.PARTICLE_OPTION_DOMAINS = _chunkWEQPSGPScjs.PARTICLE_OPTION_DOMAINS; exports.PARTICLE_PARAMETER_DOMAINS = _chunkWEQPSGPScjs.PARTICLE_PARAMETER_DOMAINS; exports.POINT_FORCE_DOMAINS = _chunkWEQPSGPScjs.POINT_FORCE_DOMAINS; exports.PROBABILITY_CURVE_PRESETS = PROBABILITY_CURVE_PRESETS; exports.PROBABILITY_CURVE_PRESET_OPTIONS = PROBABILITY_CURVE_PRESET_OPTIONS; exports.ParameterTypeChecker = _chunkWEQPSGPScjs.ParameterTypeChecker; exports.SPRITE_ANIMATION_DOMAINS = _chunkWEQPSGPScjs.SPRITE_ANIMATION_DOMAINS; exports.TEXT_DOMAINS = _chunkWEQPSGPScjs.TEXT_DOMAINS; exports.WARM_UP_MIN_STEP_SECONDS = _chunkWEQPSGPScjs.WARM_UP_MIN_STEP_SECONDS; exports.collectLayerTextureSources = _chunkWEQPSGPScjs.collectLayerTextureSources; exports.collectTextureSources = _chunkWEQPSGPScjs.collectTextureSources; exports.collectTextureSourcesByLayer = _chunkWEQPSGPScjs.collectTextureSourcesByLayer; exports.compileCurveSegments = _chunkWEQPSGPScjs.compileCurveSegments; exports.createProbabilityCurveFromPreset = createProbabilityCurveFromPreset; exports.findMissingTextureSources = _chunkWEQPSGPScjs.findMissingTextureSources; exports.findOptionPathEntry = _chunkWEQPSGPScjs.findOptionPathEntry; exports.getProbabilityCurvePreset = getProbabilityCurvePreset; exports.isEmitterEventTrigger = _chunkWEQPSGPScjs.isEmitterEventTrigger; exports.isEventTrigger = _chunkWEQPSGPScjs.isEventTrigger; exports.isParticleBlendMode = _chunkWEQPSGPScjs.isParticleBlendMode; exports.isParticleEventTrigger = _chunkWEQPSGPScjs.isParticleEventTrigger; exports.isValidEventName = _chunkWEQPSGPScjs.isValidEventName; exports.sanitizeName = _chunkWEQPSGPScjs.sanitizeName;
@@ -1,8 +1,13 @@
1
- import { T as NumericDomain, aV as TextDomain, aA as ProbabilityCurvePresetId, i as CurveDefinition, az as ProbabilityCurvePreset, ac as ParticleLayerOptions, a2 as ParticleAnimationOptions, aw as PointValue } from '../colors-CUEeQ78V.cjs';
2
- export { k as CustomParameterSampleScope, a_ as EMITTER_EVENT_TRIGGERS, r as EmitterEventTrigger, w as EventTrigger, a$ as OPTION_PATH_CATALOG, U as OptionNodeKind, b0 as OptionPathEntry, b1 as OptionScope, V as OptionStage, W as OptionStrategy, b2 as PARTICLE_EVENT_TRIGGERS, a5 as ParticleEventTrigger, b3 as findOptionPathEntry, b4 as isEmitterEventTrigger, b5 as isEventTrigger, b6 as isParticleEventTrigger, b7 as isValidEventName } from '../colors-CUEeQ78V.cjs';
3
- import { P as ParticleBlendMode } from '../rendering-DeUo1BsK.cjs';
1
+ import { S as NumericDomain, aU as TextDomain, az as ProbabilityCurvePresetId, i as CurveDefinition, ay as ProbabilityCurvePreset, ab as ParticleLayerOptions, a1 as ParticleAnimationOptions, av as PointValue } from '../colors-CCeWL9q4.cjs';
2
+ export { k as CustomParameterSampleScope, aZ as EMITTER_EVENT_TRIGGERS, r as EmitterEventTrigger, w as EventTrigger, a_ as OPTION_PATH_CATALOG, T as OptionNodeKind, a$ as OptionPathEntry, b0 as OptionScope, U as OptionStage, V as OptionStrategy, b1 as PARTICLE_EVENT_TRIGGERS, a4 as ParticleEventTrigger, b2 as findOptionPathEntry, b3 as isEmitterEventTrigger, b4 as isEventTrigger, b5 as isParticleEventTrigger, b6 as isValidEventName } from '../colors-CCeWL9q4.cjs';
3
+ import { P as ParticleBlendMode } from '../rendering-dYQXmGTV.cjs';
4
4
 
5
+ /**
6
+ * The bound most numeric domains are built from (`signedInteger`, `nonNegativeDecimal`…), often divided down.
7
+ * Some domains go past it, such as `uint32` and `COLOR_DOMAIN`.
8
+ */
5
9
  declare const MAX_PARAMETER_VALUE = 1000000;
10
+ /** Lowest value a numeric parameter may take by default (the negative of `MAX_PARAMETER_VALUE`). */
6
11
  declare const MIN_PARAMETER_VALUE = -1000000;
7
12
  /**
8
13
  * Shared upper bound for every user-facing name that travels through a config —
@@ -13,6 +18,10 @@ declare const MIN_PARAMETER_VALUE = -1000000;
13
18
  * redeclaring its own.
14
19
  */
15
20
  declare const NAME_MAX_LENGTH = 50;
21
+ /**
22
+ * Domains of name-like text values. `name` bounds the length of any user-facing name to `NAME_MAX_LENGTH` characters
23
+ * and trims surrounding whitespace.
24
+ */
16
25
  declare const TEXT_DOMAINS: {
17
26
  name: {
18
27
  minLength: number;
@@ -20,6 +29,11 @@ declare const TEXT_DOMAINS: {
20
29
  trim: true;
21
30
  };
22
31
  };
32
+ /**
33
+ * Reusable numeric domains the other catalogs are built from: integers, decimals, normalized `0..1` values,
34
+ * a percentage, an angle in radians (a full turn either way) and an unsigned 32-bit integer.
35
+ * Each entry is a numeric domain: `min`, `max`, and optionally the `step` and `decimals` an authoring tool should use for it.
36
+ */
23
37
  declare const COMMON_NUMERIC_DOMAINS: {
24
38
  signedInteger: {
25
39
  min: number;
@@ -88,6 +102,11 @@ declare const COMMON_NUMERIC_DOMAINS: {
88
102
  decimals: number;
89
103
  };
90
104
  };
105
+ /**
106
+ * Domains for custom parameters declared by the animation: `continuous` (decimal), `discrete` (integer)
107
+ * and `labelIndex` (a non-negative integer).
108
+ * Each entry is a numeric domain: `min`, `max`, and optionally the `step` and `decimals` an authoring tool should use for it.
109
+ */
91
110
  declare const CUSTOM_PARAMETER_DOMAINS: {
92
111
  continuous: {
93
112
  min: number;
@@ -108,6 +127,11 @@ declare const CUSTOM_PARAMETER_DOMAINS: {
108
127
  decimals: number;
109
128
  };
110
129
  };
130
+ /**
131
+ * Domains of the per-particle parameters: life, position, velocity, acceleration, scale, rotation and alpha,
132
+ * including their rates of change. Keyed by parameter name.
133
+ * Each entry is a numeric domain: `min`, `max`, and optionally the `step` and `decimals` an authoring tool should use for it.
134
+ */
111
135
  declare const PARTICLE_PARAMETER_DOMAINS: {
112
136
  lifeProgress: {
113
137
  min: number;
@@ -260,6 +284,10 @@ declare const PARTICLE_PARAMETER_DOMAINS: {
260
284
  decimals: number;
261
285
  };
262
286
  };
287
+ /**
288
+ * Domains of the particle options: `lifetime` and the gravity, damping, wind and point-force factors.
289
+ * Each entry is a numeric domain: `min`, `max`, and optionally the `step` and `decimals` an authoring tool should use for it.
290
+ */
263
291
  declare const PARTICLE_OPTION_DOMAINS: {
264
292
  lifetime: {
265
293
  min: number;
@@ -292,6 +320,10 @@ declare const PARTICLE_OPTION_DOMAINS: {
292
320
  decimals: number;
293
321
  };
294
322
  };
323
+ /**
324
+ * Domains of a point force: `strength`, `radius` and the `positionX` / `positionY` of its center.
325
+ * Each entry is a numeric domain: `min`, `max`, and optionally the `step` and `decimals` an authoring tool should use for it.
326
+ */
295
327
  declare const POINT_FORCE_DOMAINS: {
296
328
  strength: {
297
329
  min: number;
@@ -318,6 +350,10 @@ declare const POINT_FORCE_DOMAINS: {
318
350
  decimals: number;
319
351
  };
320
352
  };
353
+ /**
354
+ * Domains of the emitter and playback parameters, such as gravity, damping, wind and the spawn values.
355
+ * Each entry is a numeric domain: `min`, `max`, and optionally the `step` and `decimals` an authoring tool should use for it.
356
+ */
321
357
  declare const EMITTER_PARAMETER_DOMAINS: {
322
358
  gravity: {
323
359
  min: number;
@@ -380,6 +416,10 @@ declare const EMITTER_PARAMETER_DOMAINS: {
380
416
  decimals: number;
381
417
  };
382
418
  };
419
+ /**
420
+ * Domains of the emitter options: pool sizes, alive limits, delays, repeats, the random seed and update limits.
421
+ * Each entry is a numeric domain: `min`, `max`, and optionally the `step` and `decimals` an authoring tool should use for it.
422
+ */
383
423
  declare const EMITTER_OPTION_DOMAINS: {
384
424
  maxAlive: {
385
425
  min: number;
@@ -442,6 +482,11 @@ declare const EMITTER_OPTION_DOMAINS: {
442
482
  decimals: number;
443
483
  };
444
484
  };
485
+ /**
486
+ * Domains of the numbers inside a parameter definition: random-list weights, curve axes and bends,
487
+ * color stop positions and area coordinates, sizes and rotation.
488
+ * Each entry is a numeric domain: `min`, `max`, and optionally the `step` and `decimals` an authoring tool should use for it.
489
+ */
445
490
  declare const PARAMETER_OPTION_DOMAINS: {
446
491
  randomListWeight: {
447
492
  min: number;
@@ -486,6 +531,10 @@ declare const PARAMETER_OPTION_DOMAINS: {
486
531
  decimals: number;
487
532
  };
488
533
  };
534
+ /**
535
+ * Domains of the numbers of a modifier. `strength` ranges from -10 to 10.
536
+ * Each entry is a numeric domain: `min`, `max`, and optionally the `step` and `decimals` an authoring tool should use for it.
537
+ */
489
538
  declare const MODIFIER_DOMAINS: {
490
539
  strength: {
491
540
  min: number;
@@ -494,6 +543,10 @@ declare const MODIFIER_DOMAINS: {
494
543
  decimals: number;
495
544
  };
496
545
  };
546
+ /**
547
+ * Domains of a modulator's numbers: `frequency`, `amplitude`, `offset` and `phase` (a fraction of one cycle).
548
+ * Each entry is a numeric domain: `min`, `max`, and optionally the `step` and `decimals` an authoring tool should use for it.
549
+ */
497
550
  declare const MODULATOR_DOMAINS: {
498
551
  frequency: {
499
552
  min: number;
@@ -520,6 +573,11 @@ declare const MODULATOR_DOMAINS: {
520
573
  decimals: number;
521
574
  };
522
575
  };
576
+ /**
577
+ * Domains of a sprite animation: `animationFPS` (a positive integer) and `startFrame`,
578
+ * a zero-based frame index where -1 means a random start frame.
579
+ * Each entry is a numeric domain: `min`, `max`, and optionally the `step` and `decimals` an authoring tool should use for it.
580
+ */
523
581
  declare const SPRITE_ANIMATION_DOMAINS: {
524
582
  animationFPS: {
525
583
  min: number;
@@ -552,7 +610,14 @@ declare const SPRITE_ANIMATION_DOMAINS: {
552
610
  * fixed-function on v7, a shader pass on v8. A renderer answers that about
553
611
  * itself through `IRendererCapabilities.blendModeSupport`.
554
612
  */
555
- /** Ordered catalog. Order is the display order; the cheap, universal modes first. */
613
+ /**
614
+ * Ordered catalog. Order is the display order; the cheap, universal modes first.
615
+ * Each entry is an object whose `id` is one blend mode, a valid `ParticleBlendMode`.
616
+ *
617
+ * What a mode costs, and whether a backend can honor it at all, is not part of
618
+ * the catalog: it depends on the renderer, which answers it about itself through
619
+ * `IRendererCapabilities.blendModeSupport`.
620
+ */
556
621
  declare const BLEND_MODE_CATALOG: readonly [{
557
622
  readonly id: "normal";
558
623
  }, {
@@ -596,6 +661,7 @@ declare const MODULATOR_TIME_ELAPSED_SOURCE = "timeElapsed";
596
661
  */
597
662
  declare const ANIMATION_FORMAT_VERSION = 2;
598
663
 
664
+ /** The range a packed `0xRRGGBB` color number must sit in: `0` to `0xffffff` (24 bits, no alpha). It does not have to be an integer. */
599
665
  declare const COLOR_DOMAIN: NumericDomain;
600
666
  /**
601
667
  * Coerce a name-like string into its `TextDomain`: trim (when the domain asks)
@@ -612,12 +678,20 @@ declare const sanitizeName: (value: string, domain?: TextDomain) => string;
612
678
  * scopes. Every path resolves to a number.
613
679
  */
614
680
  declare const LINKED_SOURCE_CATALOG: {
681
+ /** Paths of the playback-wide values: gravity, damping and the wind's magnitude and angle. */
615
682
  readonly playback: readonly ["gravity", "damping", "windMagnitude", "windAngle"];
683
+ /** Paths of the emitter values: spawn rate, spawn count and spawn duration. */
616
684
  readonly emitter: readonly ["spawnRate", "spawnCount", "spawnDuration"];
685
+ /** Paths of the per-particle values: life progress, lifetime, time lived, position, velocity, acceleration, scale, rotation and alpha, plus their rates of change. */
617
686
  readonly particle: readonly ["lifeProgress", "lifetime", "lifeElapsed", "positionX", "positionY", "velocityX", "velocityY", "velocityMagnitude", "velocityAngle", "accelerationX", "accelerationY", "accelerationMagnitude", "accelerationAngle", "scaleX", "scaleY", "scaleVelocityX", "scaleVelocityY", "scaleAccelerationX", "scaleAccelerationY", "rotation", "rotationVelocity", "rotationAcceleration", "alpha", "alphaVelocity", "alphaAcceleration"];
618
687
  };
619
688
 
689
+ /** The preset used when none is given: `'uniform'`. */
620
690
  declare const DEFAULT_PROBABILITY_CURVE_PRESET_ID: ProbabilityCurvePresetId;
691
+ /**
692
+ * The built-in probability curve presets. Each has an `id`, a `label`, a `description`, an optional `iconKey`
693
+ * and a `curve` defined over x in `0..1` that `createProbabilityCurveFromPreset` can rescale.
694
+ */
621
695
  declare const PROBABILITY_CURVE_PRESETS: readonly [{
622
696
  readonly id: "uniform";
623
697
  readonly label: "Uniform";
@@ -748,12 +822,18 @@ declare const PROBABILITY_CURVE_PRESETS: readonly [{
748
822
  readonly segmentBends: [0.22, 0.18, 0.18, 0.22];
749
823
  };
750
824
  }];
825
+ /** The presets as `{ value, label, description }` options, ready to fill a selection list. */
751
826
  declare const PROBABILITY_CURVE_PRESET_OPTIONS: {
752
827
  value: "uniform" | "lowBias" | "highBias" | "centerBias" | "edgeBias" | "bell" | "doublePeak";
753
828
  label: "Uniform" | "Low Bias" | "High Bias" | "Center Bias" | "Edge Bias" | "Bell" | "Double Peak";
754
829
  description: "Equal probability across the full range." | "Higher probability near the minimum side." | "Higher probability near the maximum side." | "Smooth preference for the middle of the range." | "Higher probability near both edges." | "Gaussian-like central bell curve." | "Two smooth internal probability peaks.";
755
830
  }[];
831
+ /** Returns the preset with the given id, or the first preset (`uniform`) if the id is unknown. */
756
832
  declare const getProbabilityCurvePreset: (presetId: ProbabilityCurvePresetId) => ProbabilityCurvePreset;
833
+ /**
834
+ * Builds a fresh copy of a preset's curve (the default preset when no id is given). With `xDomain`,
835
+ * the curve's x values are rescaled from `0..1` to that range.
836
+ */
757
837
  declare const createProbabilityCurveFromPreset: (presetId?: ProbabilityCurvePresetId, xDomain?: Pick<NumericDomain, "min" | "max">) => CurveDefinition;
758
838
 
759
839
  /**
@@ -766,17 +846,29 @@ declare const createProbabilityCurveFromPreset: (presetId?: ProbabilityCurvePres
766
846
  * same object shape at runtime, since `SpawnNumber` extends `number`.
767
847
  */
768
848
  declare class ParameterTypeChecker {
849
+ /** Whether `object` is a non-null object (arrays included). */
769
850
  static isObject(object: unknown): boolean;
851
+ /** Whether `object` has exactly the keys `x` and `y`: a point, or the separated form of a number pair. */
770
852
  static isPointValue(object: unknown): boolean;
853
+ /** Whether `object` has exactly the keys `angle` and `magnitude`: a vector in polar form. */
771
854
  static isVectorValue(object: unknown): boolean;
855
+ /** Whether `object` has `min` and `max` keys (extra keys are allowed): a random range. */
772
856
  static isRandomValueRange(object: unknown): boolean;
857
+ /** Whether `object` has `center`, `width` and `height`: a rectangle area. */
773
858
  static isRectangleArea(object: unknown): boolean;
859
+ /** Whether `object` has `center` and `radius`. Also true for a capsule, so test `isCapsuleArea` first. */
774
860
  static isCircleArea(object: unknown): boolean;
861
+ /** Whether `object` has `center`, `innerRadius` and `outerRadius`: a ring area. */
775
862
  static isRingArea(object: unknown): boolean;
863
+ /** Whether `object` has `center`, `radius` and `length`: a capsule area. */
776
864
  static isCapsuleArea(object: unknown): boolean;
865
+ /** Whether `object` has a `points` array: a polygon area. */
777
866
  static isPolygonArea(object: unknown): boolean;
867
+ /** Whether `object` has a `values` array: a weighted list of values to pick from. */
778
868
  static isRandomValueList(object: unknown): boolean;
869
+ /** Whether `object` has `sourceParameterId` and `transferFunction`: a value linked to another parameter. */
779
870
  static isParameterLinkRelation(object: unknown): boolean;
871
+ /** Whether `object` has a `stops` array: a color gradient. Also true for a `ColorRandomRange`, so test `isColorRandomRange` first. */
780
872
  static isColorGradientDefinition(object: unknown): boolean;
781
873
  /**
782
874
  * A spawn-time random pick over a gradient: has `stops` but NO
@@ -791,7 +883,9 @@ declare class ParameterTypeChecker {
791
883
  * wrapper off and compile the base + stack.
792
884
  */
793
885
  static isModulatedValue(object: unknown): boolean;
886
+ /** Whether `value` is a number strictly greater than zero. */
794
887
  static isPositiveNumber(value: unknown): boolean;
888
+ /** Whether `object` has a `textures` array: a sprite animation definition. */
795
889
  static isSpriteAnimationOptions(object: unknown): boolean;
796
890
  /**
797
891
  * Recognises any variant of SpawnNumber: plain number, RandomValueRange,
@@ -853,6 +947,10 @@ type CompiledCurveSegment = {
853
947
  rightXSpan: number;
854
948
  segmentXSpan: number;
855
949
  };
950
+ /**
951
+ * Precompiles every segment of `curve` (its points sorted by x), one per pair of consecutive points,
952
+ * with the segment bends applied. An empty array when the curve has fewer than two points.
953
+ */
856
954
  declare const compileCurveSegments: (curve: CurveDefinition) => CompiledCurveSegment[];
857
955
 
858
956
  /**