@tsparticles/shape-text 3.0.0-beta.0 → 3.0.0-beta.2

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.
@@ -4,7 +4,7 @@
4
4
  * Demo / Generator : https://particles.js.org/
5
5
  * GitHub : https://www.github.com/matteobruni/tsparticles
6
6
  * How to use? : Check the GitHub README
7
- * v3.0.0-beta.0
7
+ * v3.0.0-beta.2
8
8
  */
9
9
  (function webpackUniversalModuleDefinition(root, factory) {
10
10
  if(typeof exports === 'object' && typeof module === 'object')
@@ -1 +1 @@
1
- /*! tsParticles Text Shape v3.0.0-beta.0 by Matteo Bruni */
1
+ /*! tsParticles Text Shape v3.0.0-beta.2 by Matteo Bruni */
@@ -1,5 +1,5 @@
1
1
  import { type Container, type IShapeDrawer } from "@tsparticles/engine";
2
- import type { TextParticle } from "./TextParticle";
2
+ import type { TextParticle } from "./TextParticle.js";
3
3
  export declare const validTypes: string[];
4
4
  export declare class TextDrawer implements IShapeDrawer {
5
5
  draw(context: CanvasRenderingContext2D, particle: TextParticle, radius: number, opacity: number): void;
package/umd/index.js CHANGED
@@ -4,15 +4,15 @@
4
4
  if (v !== undefined) module.exports = v;
5
5
  }
6
6
  else if (typeof define === "function" && define.amd) {
7
- define(["require", "exports", "./TextDrawer"], factory);
7
+ define(["require", "exports", "./TextDrawer.js"], factory);
8
8
  }
9
9
  })(function (require, exports) {
10
10
  "use strict";
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.loadTextShape = void 0;
13
- const TextDrawer_1 = require("./TextDrawer");
13
+ const TextDrawer_js_1 = require("./TextDrawer.js");
14
14
  async function loadTextShape(engine, refresh = true) {
15
- await engine.addShape(TextDrawer_1.validTypes, new TextDrawer_1.TextDrawer(), refresh);
15
+ await engine.addShape(TextDrawer_js_1.validTypes, new TextDrawer_js_1.TextDrawer(), refresh);
16
16
  }
17
17
  exports.loadTextShape = loadTextShape;
18
18
  });