pixi-particles-engine 0.1.5 → 0.1.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.
@@ -1,4 +1,4 @@
1
- import { Curve } from "./curved-behaviour/curve-sampler";
1
+ import { Curve } from "./curved-behaviour/curve-sampler.js";
2
2
  /**
3
3
  * Alpha over lifetime driven by a curve.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { Utils } from "../../utils";
1
+ import { Utils } from "../../utils.js";
2
2
  /**
3
3
  * Lightweight curve sampler for keyframed 1D values over normalized time [0..1].
4
4
  *
@@ -1,4 +1,4 @@
1
- import { Curve } from "../curved-behaviour/curve-sampler";
1
+ import { Curve } from "../curved-behaviour/curve-sampler.js";
2
2
  /**
3
3
  * Applies an acceleration (gx, gy) scaled by a curve over lifetime.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { Curve } from "../curved-behaviour/curve-sampler";
1
+ import { Curve } from "../curved-behaviour/curve-sampler.js";
2
2
  /**
3
3
  * Drives particle velocity directly using curves over lifetime.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { Utils } from "../../utils";
1
+ import { Utils } from "../../utils.js";
2
2
  /**
3
3
  * Initializes particle velocity on spawn in a radial/cone burst.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { Curve } from "./curved-behaviour/curve-sampler";
1
+ import { Curve } from "./curved-behaviour/curve-sampler.js";
2
2
  /**
3
3
  * Uniform scale over lifetime driven by a curve.
4
4
  *
@@ -1,5 +1,5 @@
1
1
  import { ParticleContainer, Ticker } from "pixi.js";
2
- import { PxParticle } from "./px-particle";
2
+ import { PxParticle } from "./px-particle.js";
3
3
  /**
4
4
  * Emitter is a ParticleContainer that owns a pool of {@link PxParticle} instances.
5
5
  *
package/dist/esm/index.js CHANGED
@@ -1,19 +1,19 @@
1
- export * from "./behaviour";
2
- export * from "./emitter";
3
- export * from "./texture-provider";
4
- export * from "./behaviours/alpha-behaviour";
5
- export * from "./behaviours/alpha-curve-behaviour";
6
- export * from "./behaviours/scale-curve-behaviour";
7
- export * from "./behaviours/curved-behaviour/curve-key-frame";
8
- export * from "./behaviours/curved-behaviour/curve-sampler";
9
- export * from "./behaviours/movement-behaviours/gravity-behaviour";
10
- export * from "./behaviours/movement-behaviours/movement-curve-behaviour";
11
- export * from "./behaviours/movement-behaviours/radial-burst-behaviour";
12
- export * from "./behaviours/spawn-behaviours/circle-spawn-behaviour";
13
- export * from "./behaviours/spawn-behaviours/rectangle-spawn-behaviour";
14
- export * from "./behaviours/static-behaviours/static-rotation-behaviour";
15
- export * from "./behaviours/static-behaviours/static-scale-behaviour";
16
- export * from "./texture-providers/animated-texture-provider";
17
- export * from "./texture-providers/single-texture-provider";
18
- export * from "./texture-providers/weighted-texture-provider";
1
+ export * from "./behaviour.js";
2
+ export * from "./emitter.js";
3
+ export * from "./texture-provider.js";
4
+ export * from "./behaviours/alpha-behaviour.js";
5
+ export * from "./behaviours/alpha-curve-behaviour.js";
6
+ export * from "./behaviours/scale-curve-behaviour.js";
7
+ export * from "./behaviours/curved-behaviour/curve-key-frame.js";
8
+ export * from "./behaviours/curved-behaviour/curve-sampler.js";
9
+ export * from "./behaviours/movement-behaviours/gravity-behaviour.js";
10
+ export * from "./behaviours/movement-behaviours/movement-curve-behaviour.js";
11
+ export * from "./behaviours/movement-behaviours/radial-burst-behaviour.js";
12
+ export * from "./behaviours/spawn-behaviours/circle-spawn-behaviour.js";
13
+ export * from "./behaviours/spawn-behaviours/rectangle-spawn-behaviour.js";
14
+ export * from "./behaviours/static-behaviours/static-rotation-behaviour.js";
15
+ export * from "./behaviours/static-behaviours/static-scale-behaviour.js";
16
+ export * from "./texture-providers/animated-texture-provider.js";
17
+ export * from "./texture-providers/single-texture-provider.js";
18
+ export * from "./texture-providers/weighted-texture-provider.js";
19
19
  //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"type":"module"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixi-particles-engine",
3
- "version": "0.1.5",
3
+ "version": "0.1.8",
4
4
  "description": "High-performance PixiJS v8 particle engine with behaviours and pooling",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -36,7 +36,7 @@
36
36
  ],
37
37
  "scripts": {
38
38
  "build": "npm run build:esm && npm run build:cjs",
39
- "build:esm": "tsc -p tsconfig.esm.json",
39
+ "build:esm": "tsc -p tsconfig.esm.json && node scripts/fix-esm-specifiers.cjs && node scripts/write-esm-package-json.cjs",
40
40
  "build:cjs": "tsc -p tsconfig.cjs.json",
41
41
  "prepare": "npm run build",
42
42
  "prepublishOnly": "npm run build"