@silentstatestudio/perseon 0.0.0-stage → 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.
- package/CHANGELOG.md +219 -0
- package/LICENSE.md +73 -0
- package/README.md +849 -2
- package/dist/authoring/index.cjs +218 -0
- package/dist/authoring/index.d.cts +964 -0
- package/dist/authoring/index.d.ts +964 -0
- package/dist/authoring/index.js +219 -0
- package/dist/authoring/index.js.map +1 -0
- package/dist/chunk-443SQYAB.cjs +8468 -0
- package/dist/chunk-AVYXWDFD.js +8469 -0
- package/dist/chunk-AVYXWDFD.js.map +1 -0
- package/dist/chunk-BEDH7OYG.js +5484 -0
- package/dist/chunk-BEDH7OYG.js.map +1 -0
- package/dist/chunk-WEQPSGPS.cjs +5482 -0
- package/dist/chunk-ZIMCQTYK.cjs +6 -0
- package/dist/chunk-ZTG42LPX.js +6 -0
- package/dist/chunk-ZTG42LPX.js.map +1 -0
- package/dist/colors-CCeWL9q4.d.cts +2597 -0
- package/dist/colors-CGWrMf4V.d.ts +2597 -0
- package/dist/core/index.cjs +34 -0
- package/dist/core/index.d.cts +40 -0
- package/dist/core/index.d.ts +40 -0
- package/dist/core/index.js +35 -0
- package/dist/core/index.js.map +1 -0
- package/dist/index.cjs +34 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +35 -0
- package/dist/index.js.map +1 -0
- package/dist/pixi-v7/index.cjs +587 -0
- package/dist/pixi-v7/index.d.cts +471 -0
- package/dist/pixi-v7/index.d.ts +471 -0
- package/dist/pixi-v7/index.js +588 -0
- package/dist/pixi-v7/index.js.map +1 -0
- package/dist/pixi-v8/index.cjs +679 -0
- package/dist/pixi-v8/index.d.cts +452 -0
- package/dist/pixi-v8/index.d.ts +452 -0
- package/dist/pixi-v8/index.js +680 -0
- package/dist/pixi-v8/index.js.map +1 -0
- package/dist/rendering-dYQXmGTV.d.cts +264 -0
- package/dist/rendering-dYQXmGTV.d.ts +264 -0
- package/dist/testing/index.cjs +182 -0
- package/dist/testing/index.d.cts +103 -0
- package/dist/testing/index.d.ts +103 -0
- package/dist/testing/index.js +184 -0
- package/dist/testing/index.js.map +1 -0
- package/package.json +144 -5
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
*/
|
|
6
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-ZIMCQTYK.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
var _chunk443SQYABcjs = require('../chunk-443SQYAB.cjs');
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
var _chunkWEQPSGPScjs = require('../chunk-WEQPSGPS.cjs');
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
exports.Emitter = _chunk443SQYABcjs.EmitterView; exports.LocalDefaultHandle = _chunk443SQYABcjs.LocalDefaultHandle; exports.LocalParameterHandle = _chunk443SQYABcjs.LocalParameterHandle; exports.ParameterHandle = _chunk443SQYABcjs.ParameterHandle; exports.ParticleItem = _chunk443SQYABcjs.ParticleItem; exports.ParticleLayer = _chunk443SQYABcjs.ParticleLayerView; exports.PerseonAnimation = _chunk443SQYABcjs.PerseonAnimation; exports.PerseonConfigError = _chunkWEQPSGPScjs.PerseonConfigError; exports.PerseonIntegration = _chunk443SQYABcjs.PerseonIntegration; exports.PerseonPlayback = _chunk443SQYABcjs.PerseonPlayback; exports.parseAnimationOptions = _chunk443SQYABcjs.parseAnimationOptions;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { a1 as ParticleAnimationOptions } from '../colors-CCeWL9q4.cjs';
|
|
2
|
+
export { A as AnimationDescription, a as AnimationPlayOptions, b as AnimationRandomnessOptions, C as CapacityOptions, c as CapsuleArea, d as CircleArea, e as ColorGradientDefinition, f as ColorOptions, g as ColorRandomRange, h as ColorStop, i as CurveDefinition, j as CustomParameterOption, k as CustomParameterSampleScope, l as CustomParameterType, m as CustomParameterValue, D as DiagnosticsPolicy, E as EmissionOptions, n as EmissionTransform, o as Emitter, p as EmitterEventBinding, q as EmitterEventBindings, r as EmitterEventTrigger, s as EmitterEventsByTrigger, t as EmitterOptionPath, u as EmitterOptionType, v as EmitterOptions, w as EventTrigger, x as ExternalForcesFactorOptions, y as ExternalForcesOptions, z as ExternalForcesTypes, G as GlobalParameterOption, I as InitialStateOptions, K as KineticsOptions, L as LayerOptionPath, B as LayerOptionType, F as LocalDefaultHandle, H as LocalParameterHandle, M as ModifierBlendMode, J as ModulatableNumber, N as ModulatedValue, O as ModulatorOptions, Q as ModulatorShape, R as NumberOptions, S as NumericDomain, T as OptionNodeKind, U as OptionStage, V as OptionStrategy, W as ParameterDescription, X as ParameterHandle, Y as ParameterInitOptions, Z as ParameterLinkRelation, _ as ParameterModifier, $ as ParameterModifierSource, a0 as ParameterUpdateOptions, a2 as ParticleEventBinding, a3 as ParticleEventBindings, a4 as ParticleEventTrigger, a5 as ParticleEventsByTrigger, a6 as ParticleHookEmitter, a7 as ParticleHookPlayback, a8 as ParticleHookRandom, a9 as ParticleItem, aa as ParticleLayer, ab as ParticleLayerOptions, ac as ParticleLimitStrategy, ad as ParticleRegionRef, ae as ParticleSnapshot, af as ParticleSnapshotObject, ag as ParticleSpawnStrategy, ah as ParticleSpriteAnimationParameters, ai as PerformanceOptions, aj as PerseonAnimation, ak as PerseonEvent, P as PerseonIntegration, al as PerseonPlayback, am as PlaybackFinishedReason, an as PlaybackFinishedResult, ao as PlaybackHost, ap as PlaybackOptionPath, aq as PlaybackOptionType, ar as PlaybackOptions, as as PointForceConfig, at as PointForceFalloff, au as PointForceMode, av as PointValue, aw as PolygonArea, ax as ProbabilityCurveKind, ay as ProbabilityCurvePreset, az as ProbabilityCurvePresetId, aA as RandomListState, aB as RandomValueList, aC as RandomValueListMode, aD as RandomValueRange, aE as RandomnessOptions, aF as RandomnessSeedMode, aG as RectangleArea, aH as RegionBehavior, aI as RegionOptions, aJ as RingArea, aK as ScaleOptions, aL as ShapeArea, aM as SingleTextureOption, aN as SpawnColor, aO as SpawnNumber, aP as SpawnPoint, aQ as SpawnPosition, aR as SpawnVector, aS as SpriteAnimationOptions, aT as SpriteAnimationTexturesOptions, aU as TextDomain, aV as TextureElement, aW as Unsubscribe, aX as ValueProbability, aY as VectorValue } from '../colors-CCeWL9q4.cjs';
|
|
3
|
+
export { B as BlendModeSupport, I as IParticleGroup, a as IParticleGroupOptions, b as IParticleVisualState, d as IRenderNode, c as IRenderRootNode, f as IRenderer, h as IRendererCapabilities, i as IShape, g as ITextureRef, e as ITicker, P as ParticleBlendMode } from '../rendering-dYQXmGTV.cjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Turn the contents of an animation file into a typed `ParticleAnimationOptions`.
|
|
7
|
+
*
|
|
8
|
+
* Scope is deliberately narrow: this covers the mistakes that belong to *file
|
|
9
|
+
* loading* — the payload is not an object, it is of another format version
|
|
10
|
+
* (checked before anything else), it declares no emitters, or it
|
|
11
|
+
* smuggles in live objects that cannot survive a round-trip through JSON. It
|
|
12
|
+
* does NOT re-validate the animation's contents, because creating the
|
|
13
|
+
* animation (or a playback built by hand) already validates the whole tree,
|
|
14
|
+
* each emitter included, with precise, path-qualified messages. Duplicating that here would mean two error surfaces drifting apart.
|
|
15
|
+
*
|
|
16
|
+
* So the contract is: parse tells you whether you have an animation file at all, and
|
|
17
|
+
* construction tells you whether the animation is valid.
|
|
18
|
+
*
|
|
19
|
+
* Throws `PerseonConfigError` on a malformed payload, with the `path` of the
|
|
20
|
+
* offending part of the file (`'parseAnimationOptions'` when it is the file as a
|
|
21
|
+
* whole). It extends `Error`, so a caller that catches `Error` keeps working.
|
|
22
|
+
*/
|
|
23
|
+
declare const parseAnimationOptions: (input: unknown) => ParticleAnimationOptions;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A configuration Perseon refuses: what the load asserts
|
|
27
|
+
* throw on a config they reject, and what `set` throws on a node config. The
|
|
28
|
+
* message says what is wrong and, where there are any, the valid alternatives;
|
|
29
|
+
* `path` says where, as the message names it (`'regions.water.area'`,
|
|
30
|
+
* `"ParticleAnimationOptions.localParameters['a']"`), so a caller can tell the
|
|
31
|
+
* node apart without parsing the text.
|
|
32
|
+
*/
|
|
33
|
+
declare class PerseonConfigError extends Error {
|
|
34
|
+
/** Where the config failed: the node, or the field inside it. */
|
|
35
|
+
readonly path: string;
|
|
36
|
+
/** Creates the error. `message` says what is wrong, `path` where, and `options` is the standard `ErrorOptions` (for instance a `cause`). */
|
|
37
|
+
constructor(message: string, path: string, options?: ErrorOptions);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { ParticleAnimationOptions, PerseonConfigError, parseAnimationOptions };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { a1 as ParticleAnimationOptions } from '../colors-CGWrMf4V.js';
|
|
2
|
+
export { A as AnimationDescription, a as AnimationPlayOptions, b as AnimationRandomnessOptions, C as CapacityOptions, c as CapsuleArea, d as CircleArea, e as ColorGradientDefinition, f as ColorOptions, g as ColorRandomRange, h as ColorStop, i as CurveDefinition, j as CustomParameterOption, k as CustomParameterSampleScope, l as CustomParameterType, m as CustomParameterValue, D as DiagnosticsPolicy, E as EmissionOptions, n as EmissionTransform, o as Emitter, p as EmitterEventBinding, q as EmitterEventBindings, r as EmitterEventTrigger, s as EmitterEventsByTrigger, t as EmitterOptionPath, u as EmitterOptionType, v as EmitterOptions, w as EventTrigger, x as ExternalForcesFactorOptions, y as ExternalForcesOptions, z as ExternalForcesTypes, G as GlobalParameterOption, I as InitialStateOptions, K as KineticsOptions, L as LayerOptionPath, B as LayerOptionType, F as LocalDefaultHandle, H as LocalParameterHandle, M as ModifierBlendMode, J as ModulatableNumber, N as ModulatedValue, O as ModulatorOptions, Q as ModulatorShape, R as NumberOptions, S as NumericDomain, T as OptionNodeKind, U as OptionStage, V as OptionStrategy, W as ParameterDescription, X as ParameterHandle, Y as ParameterInitOptions, Z as ParameterLinkRelation, _ as ParameterModifier, $ as ParameterModifierSource, a0 as ParameterUpdateOptions, a2 as ParticleEventBinding, a3 as ParticleEventBindings, a4 as ParticleEventTrigger, a5 as ParticleEventsByTrigger, a6 as ParticleHookEmitter, a7 as ParticleHookPlayback, a8 as ParticleHookRandom, a9 as ParticleItem, aa as ParticleLayer, ab as ParticleLayerOptions, ac as ParticleLimitStrategy, ad as ParticleRegionRef, ae as ParticleSnapshot, af as ParticleSnapshotObject, ag as ParticleSpawnStrategy, ah as ParticleSpriteAnimationParameters, ai as PerformanceOptions, aj as PerseonAnimation, ak as PerseonEvent, P as PerseonIntegration, al as PerseonPlayback, am as PlaybackFinishedReason, an as PlaybackFinishedResult, ao as PlaybackHost, ap as PlaybackOptionPath, aq as PlaybackOptionType, ar as PlaybackOptions, as as PointForceConfig, at as PointForceFalloff, au as PointForceMode, av as PointValue, aw as PolygonArea, ax as ProbabilityCurveKind, ay as ProbabilityCurvePreset, az as ProbabilityCurvePresetId, aA as RandomListState, aB as RandomValueList, aC as RandomValueListMode, aD as RandomValueRange, aE as RandomnessOptions, aF as RandomnessSeedMode, aG as RectangleArea, aH as RegionBehavior, aI as RegionOptions, aJ as RingArea, aK as ScaleOptions, aL as ShapeArea, aM as SingleTextureOption, aN as SpawnColor, aO as SpawnNumber, aP as SpawnPoint, aQ as SpawnPosition, aR as SpawnVector, aS as SpriteAnimationOptions, aT as SpriteAnimationTexturesOptions, aU as TextDomain, aV as TextureElement, aW as Unsubscribe, aX as ValueProbability, aY as VectorValue } from '../colors-CGWrMf4V.js';
|
|
3
|
+
export { B as BlendModeSupport, I as IParticleGroup, a as IParticleGroupOptions, b as IParticleVisualState, d as IRenderNode, c as IRenderRootNode, f as IRenderer, h as IRendererCapabilities, i as IShape, g as ITextureRef, e as ITicker, P as ParticleBlendMode } from '../rendering-dYQXmGTV.js';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Turn the contents of an animation file into a typed `ParticleAnimationOptions`.
|
|
7
|
+
*
|
|
8
|
+
* Scope is deliberately narrow: this covers the mistakes that belong to *file
|
|
9
|
+
* loading* — the payload is not an object, it is of another format version
|
|
10
|
+
* (checked before anything else), it declares no emitters, or it
|
|
11
|
+
* smuggles in live objects that cannot survive a round-trip through JSON. It
|
|
12
|
+
* does NOT re-validate the animation's contents, because creating the
|
|
13
|
+
* animation (or a playback built by hand) already validates the whole tree,
|
|
14
|
+
* each emitter included, with precise, path-qualified messages. Duplicating that here would mean two error surfaces drifting apart.
|
|
15
|
+
*
|
|
16
|
+
* So the contract is: parse tells you whether you have an animation file at all, and
|
|
17
|
+
* construction tells you whether the animation is valid.
|
|
18
|
+
*
|
|
19
|
+
* Throws `PerseonConfigError` on a malformed payload, with the `path` of the
|
|
20
|
+
* offending part of the file (`'parseAnimationOptions'` when it is the file as a
|
|
21
|
+
* whole). It extends `Error`, so a caller that catches `Error` keeps working.
|
|
22
|
+
*/
|
|
23
|
+
declare const parseAnimationOptions: (input: unknown) => ParticleAnimationOptions;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* A configuration Perseon refuses: what the load asserts
|
|
27
|
+
* throw on a config they reject, and what `set` throws on a node config. The
|
|
28
|
+
* message says what is wrong and, where there are any, the valid alternatives;
|
|
29
|
+
* `path` says where, as the message names it (`'regions.water.area'`,
|
|
30
|
+
* `"ParticleAnimationOptions.localParameters['a']"`), so a caller can tell the
|
|
31
|
+
* node apart without parsing the text.
|
|
32
|
+
*/
|
|
33
|
+
declare class PerseonConfigError extends Error {
|
|
34
|
+
/** Where the config failed: the node, or the field inside it. */
|
|
35
|
+
readonly path: string;
|
|
36
|
+
/** Creates the error. `message` says what is wrong, `path` where, and `options` is the standard `ErrorOptions` (for instance a `cause`). */
|
|
37
|
+
constructor(message: string, path: string, options?: ErrorOptions);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { ParticleAnimationOptions, PerseonConfigError, parseAnimationOptions };
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
*/
|
|
6
|
+
import "../chunk-ZTG42LPX.js";
|
|
7
|
+
import {
|
|
8
|
+
EmitterView,
|
|
9
|
+
LocalDefaultHandle,
|
|
10
|
+
LocalParameterHandle,
|
|
11
|
+
ParameterHandle,
|
|
12
|
+
ParticleItem,
|
|
13
|
+
ParticleLayerView,
|
|
14
|
+
PerseonAnimation,
|
|
15
|
+
PerseonIntegration,
|
|
16
|
+
PerseonPlayback,
|
|
17
|
+
parseAnimationOptions
|
|
18
|
+
} from "../chunk-AVYXWDFD.js";
|
|
19
|
+
import {
|
|
20
|
+
PerseonConfigError
|
|
21
|
+
} from "../chunk-BEDH7OYG.js";
|
|
22
|
+
export {
|
|
23
|
+
EmitterView as Emitter,
|
|
24
|
+
LocalDefaultHandle,
|
|
25
|
+
LocalParameterHandle,
|
|
26
|
+
ParameterHandle,
|
|
27
|
+
ParticleItem,
|
|
28
|
+
ParticleLayerView as ParticleLayer,
|
|
29
|
+
PerseonAnimation,
|
|
30
|
+
PerseonConfigError,
|
|
31
|
+
PerseonIntegration,
|
|
32
|
+
PerseonPlayback,
|
|
33
|
+
parseAnimationOptions
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"mappings":"","names":[]}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
*/
|
|
6
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-ZIMCQTYK.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
var _chunk443SQYABcjs = require('./chunk-443SQYAB.cjs');
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
var _chunkWEQPSGPScjs = require('./chunk-WEQPSGPS.cjs');
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
exports.Emitter = _chunk443SQYABcjs.EmitterView; exports.LocalDefaultHandle = _chunk443SQYABcjs.LocalDefaultHandle; exports.LocalParameterHandle = _chunk443SQYABcjs.LocalParameterHandle; exports.ParameterHandle = _chunk443SQYABcjs.ParameterHandle; exports.ParticleItem = _chunk443SQYABcjs.ParticleItem; exports.ParticleLayer = _chunk443SQYABcjs.ParticleLayerView; exports.PerseonAnimation = _chunk443SQYABcjs.PerseonAnimation; exports.PerseonConfigError = _chunkWEQPSGPScjs.PerseonConfigError; exports.PerseonIntegration = _chunk443SQYABcjs.PerseonIntegration; exports.PerseonPlayback = _chunk443SQYABcjs.PerseonPlayback; exports.parseAnimationOptions = _chunk443SQYABcjs.parseAnimationOptions;
|
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { A as AnimationDescription, a as AnimationPlayOptions, b as AnimationRandomnessOptions, C as CapacityOptions, c as CapsuleArea, d as CircleArea, e as ColorGradientDefinition, f as ColorOptions, g as ColorRandomRange, h as ColorStop, i as CurveDefinition, j as CustomParameterOption, k as CustomParameterSampleScope, l as CustomParameterType, m as CustomParameterValue, D as DiagnosticsPolicy, E as EmissionOptions, n as EmissionTransform, o as Emitter, p as EmitterEventBinding, q as EmitterEventBindings, r as EmitterEventTrigger, s as EmitterEventsByTrigger, t as EmitterOptionPath, u as EmitterOptionType, v as EmitterOptions, w as EventTrigger, x as ExternalForcesFactorOptions, y as ExternalForcesOptions, z as ExternalForcesTypes, G as GlobalParameterOption, I as InitialStateOptions, K as KineticsOptions, L as LayerOptionPath, B as LayerOptionType, F as LocalDefaultHandle, H as LocalParameterHandle, M as ModifierBlendMode, J as ModulatableNumber, N as ModulatedValue, O as ModulatorOptions, Q as ModulatorShape, R as NumberOptions, S as NumericDomain, T as OptionNodeKind, U as OptionStage, V as OptionStrategy, W as ParameterDescription, X as ParameterHandle, Y as ParameterInitOptions, Z as ParameterLinkRelation, _ as ParameterModifier, $ as ParameterModifierSource, a0 as ParameterUpdateOptions, a1 as ParticleAnimationOptions, a2 as ParticleEventBinding, a3 as ParticleEventBindings, a4 as ParticleEventTrigger, a5 as ParticleEventsByTrigger, a6 as ParticleHookEmitter, a7 as ParticleHookPlayback, a8 as ParticleHookRandom, a9 as ParticleItem, aa as ParticleLayer, ab as ParticleLayerOptions, ac as ParticleLimitStrategy, ad as ParticleRegionRef, ae as ParticleSnapshot, af as ParticleSnapshotObject, ag as ParticleSpawnStrategy, ah as ParticleSpriteAnimationParameters, ai as PerformanceOptions, aj as PerseonAnimation, ak as PerseonEvent, P as PerseonIntegration, al as PerseonPlayback, am as PlaybackFinishedReason, an as PlaybackFinishedResult, ao as PlaybackHost, ap as PlaybackOptionPath, aq as PlaybackOptionType, ar as PlaybackOptions, as as PointForceConfig, at as PointForceFalloff, au as PointForceMode, av as PointValue, aw as PolygonArea, ax as ProbabilityCurveKind, ay as ProbabilityCurvePreset, az as ProbabilityCurvePresetId, aA as RandomListState, aB as RandomValueList, aC as RandomValueListMode, aD as RandomValueRange, aE as RandomnessOptions, aF as RandomnessSeedMode, aG as RectangleArea, aH as RegionBehavior, aI as RegionOptions, aJ as RingArea, aK as ScaleOptions, aL as ShapeArea, aM as SingleTextureOption, aN as SpawnColor, aO as SpawnNumber, aP as SpawnPoint, aQ as SpawnPosition, aR as SpawnVector, aS as SpriteAnimationOptions, aT as SpriteAnimationTexturesOptions, aU as TextDomain, aV as TextureElement, aW as Unsubscribe, aX as ValueProbability, aY as VectorValue } from './colors-CCeWL9q4.cjs';
|
|
2
|
+
export { B as BlendModeSupport, I as IParticleGroup, a as IParticleGroupOptions, b as IParticleVisualState, d as IRenderNode, c as IRenderRootNode, f as IRenderer, h as IRendererCapabilities, i as IShape, g as ITextureRef, e as ITicker, P as ParticleBlendMode } from './rendering-dYQXmGTV.cjs';
|
|
3
|
+
export { PerseonConfigError, parseAnimationOptions } from './core/index.cjs';
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { A as AnimationDescription, a as AnimationPlayOptions, b as AnimationRandomnessOptions, C as CapacityOptions, c as CapsuleArea, d as CircleArea, e as ColorGradientDefinition, f as ColorOptions, g as ColorRandomRange, h as ColorStop, i as CurveDefinition, j as CustomParameterOption, k as CustomParameterSampleScope, l as CustomParameterType, m as CustomParameterValue, D as DiagnosticsPolicy, E as EmissionOptions, n as EmissionTransform, o as Emitter, p as EmitterEventBinding, q as EmitterEventBindings, r as EmitterEventTrigger, s as EmitterEventsByTrigger, t as EmitterOptionPath, u as EmitterOptionType, v as EmitterOptions, w as EventTrigger, x as ExternalForcesFactorOptions, y as ExternalForcesOptions, z as ExternalForcesTypes, G as GlobalParameterOption, I as InitialStateOptions, K as KineticsOptions, L as LayerOptionPath, B as LayerOptionType, F as LocalDefaultHandle, H as LocalParameterHandle, M as ModifierBlendMode, J as ModulatableNumber, N as ModulatedValue, O as ModulatorOptions, Q as ModulatorShape, R as NumberOptions, S as NumericDomain, T as OptionNodeKind, U as OptionStage, V as OptionStrategy, W as ParameterDescription, X as ParameterHandle, Y as ParameterInitOptions, Z as ParameterLinkRelation, _ as ParameterModifier, $ as ParameterModifierSource, a0 as ParameterUpdateOptions, a1 as ParticleAnimationOptions, a2 as ParticleEventBinding, a3 as ParticleEventBindings, a4 as ParticleEventTrigger, a5 as ParticleEventsByTrigger, a6 as ParticleHookEmitter, a7 as ParticleHookPlayback, a8 as ParticleHookRandom, a9 as ParticleItem, aa as ParticleLayer, ab as ParticleLayerOptions, ac as ParticleLimitStrategy, ad as ParticleRegionRef, ae as ParticleSnapshot, af as ParticleSnapshotObject, ag as ParticleSpawnStrategy, ah as ParticleSpriteAnimationParameters, ai as PerformanceOptions, aj as PerseonAnimation, ak as PerseonEvent, P as PerseonIntegration, al as PerseonPlayback, am as PlaybackFinishedReason, an as PlaybackFinishedResult, ao as PlaybackHost, ap as PlaybackOptionPath, aq as PlaybackOptionType, ar as PlaybackOptions, as as PointForceConfig, at as PointForceFalloff, au as PointForceMode, av as PointValue, aw as PolygonArea, ax as ProbabilityCurveKind, ay as ProbabilityCurvePreset, az as ProbabilityCurvePresetId, aA as RandomListState, aB as RandomValueList, aC as RandomValueListMode, aD as RandomValueRange, aE as RandomnessOptions, aF as RandomnessSeedMode, aG as RectangleArea, aH as RegionBehavior, aI as RegionOptions, aJ as RingArea, aK as ScaleOptions, aL as ShapeArea, aM as SingleTextureOption, aN as SpawnColor, aO as SpawnNumber, aP as SpawnPoint, aQ as SpawnPosition, aR as SpawnVector, aS as SpriteAnimationOptions, aT as SpriteAnimationTexturesOptions, aU as TextDomain, aV as TextureElement, aW as Unsubscribe, aX as ValueProbability, aY as VectorValue } from './colors-CGWrMf4V.js';
|
|
2
|
+
export { B as BlendModeSupport, I as IParticleGroup, a as IParticleGroupOptions, b as IParticleVisualState, d as IRenderNode, c as IRenderRootNode, f as IRenderer, h as IRendererCapabilities, i as IShape, g as ITextureRef, e as ITicker, P as ParticleBlendMode } from './rendering-dYQXmGTV.js';
|
|
3
|
+
export { PerseonConfigError, parseAnimationOptions } from './core/index.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
*/
|
|
6
|
+
import "./chunk-ZTG42LPX.js";
|
|
7
|
+
import {
|
|
8
|
+
EmitterView,
|
|
9
|
+
LocalDefaultHandle,
|
|
10
|
+
LocalParameterHandle,
|
|
11
|
+
ParameterHandle,
|
|
12
|
+
ParticleItem,
|
|
13
|
+
ParticleLayerView,
|
|
14
|
+
PerseonAnimation,
|
|
15
|
+
PerseonIntegration,
|
|
16
|
+
PerseonPlayback,
|
|
17
|
+
parseAnimationOptions
|
|
18
|
+
} from "./chunk-AVYXWDFD.js";
|
|
19
|
+
import {
|
|
20
|
+
PerseonConfigError
|
|
21
|
+
} from "./chunk-BEDH7OYG.js";
|
|
22
|
+
export {
|
|
23
|
+
EmitterView as Emitter,
|
|
24
|
+
LocalDefaultHandle,
|
|
25
|
+
LocalParameterHandle,
|
|
26
|
+
ParameterHandle,
|
|
27
|
+
ParticleItem,
|
|
28
|
+
ParticleLayerView as ParticleLayer,
|
|
29
|
+
PerseonAnimation,
|
|
30
|
+
PerseonConfigError,
|
|
31
|
+
PerseonIntegration,
|
|
32
|
+
PerseonPlayback,
|
|
33
|
+
parseAnimationOptions
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"mappings":"","names":[]}
|