@tsparticles/shape-star
Advanced tools
Comparing version 3.0.0-beta.0 to 3.0.0-beta.1
@@ -1,4 +0,4 @@ | ||
import { StarDrawer } from "./StarDrawer"; | ||
import { StarDrawer } from "./StarDrawer.js"; | ||
export async function loadStarShape(engine, refresh = true) { | ||
await engine.addShape("star", new StarDrawer(), refresh); | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.loadStarShape = void 0; | ||
const StarDrawer_1 = require("./StarDrawer"); | ||
const StarDrawer_js_1 = require("./StarDrawer.js"); | ||
async function loadStarShape(engine, refresh = true) { | ||
await engine.addShape("star", new StarDrawer_1.StarDrawer(), refresh); | ||
await engine.addShape("star", new StarDrawer_js_1.StarDrawer(), refresh); | ||
} | ||
exports.loadStarShape = loadStarShape; |
@@ -1,4 +0,4 @@ | ||
import { StarDrawer } from "./StarDrawer"; | ||
import { StarDrawer } from "./StarDrawer.js"; | ||
export async function loadStarShape(engine, refresh = true) { | ||
await engine.addShape("star", new StarDrawer(), refresh); | ||
} |
{ | ||
"name": "@tsparticles/shape-star", | ||
"version": "3.0.0-beta.0", | ||
"version": "3.0.0-beta.1", | ||
"description": "tsParticles star shape", | ||
@@ -43,10 +43,22 @@ "homepage": "https://particles.js.org", | ||
}, | ||
"main": "cjs/index.js", | ||
"sideEffects": false, | ||
"jsdelivr": "tsparticles.shape.star.min.js", | ||
"unpkg": "tsparticles.shape.star.min.js", | ||
"browser": "browser/index.js", | ||
"main": "cjs/index.js", | ||
"module": "esm/index.js", | ||
"types": "types/index.d.ts", | ||
"sideEffects": false, | ||
"exports": { | ||
".": { | ||
"types": "./types/index.d.ts", | ||
"browser": "./browser/index.js", | ||
"import": "./esm/index.js", | ||
"require": "./cjs/index.js", | ||
"umd": "./umd/index.js", | ||
"default": "./cjs/index.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"dependencies": { | ||
"@tsparticles/engine": "^3.0.0-beta.0" | ||
"@tsparticles/engine": "^3.0.0-beta.1" | ||
}, | ||
@@ -53,0 +65,0 @@ "publishConfig": { |
@@ -7,3 +7,3 @@ /*! | ||
* How to use? : Check the GitHub README | ||
* v3.0.0-beta.0 | ||
* v3.0.0-beta.1 | ||
*/ | ||
@@ -10,0 +10,0 @@ (function webpackUniversalModuleDefinition(root, factory) { |
@@ -1,1 +0,1 @@ | ||
/*! tsParticles Star Shape v3.0.0-beta.0 by Matteo Bruni */ | ||
/*! tsParticles Star Shape v3.0.0-beta.1 by Matteo Bruni */ |
import { type Container, type IShapeDrawer, type Particle } from "@tsparticles/engine"; | ||
import type { StarParticle } from "./StarParticle"; | ||
import type { StarParticle } from "./StarParticle.js"; | ||
export declare class StarDrawer implements IShapeDrawer { | ||
@@ -4,0 +4,0 @@ draw(context: CanvasRenderingContext2D, particle: StarParticle, radius: number): void; |
@@ -7,3 +7,3 @@ (function (factory) { | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports", "./StarDrawer"], factory); | ||
define(["require", "exports", "./StarDrawer.js"], factory); | ||
} | ||
@@ -14,7 +14,7 @@ })(function (require, exports) { | ||
exports.loadStarShape = void 0; | ||
const StarDrawer_1 = require("./StarDrawer"); | ||
const StarDrawer_js_1 = require("./StarDrawer.js"); | ||
async function loadStarShape(engine, refresh = true) { | ||
await engine.addShape("star", new StarDrawer_1.StarDrawer(), refresh); | ||
await engine.addShape("star", new StarDrawer_js_1.StarDrawer(), refresh); | ||
} | ||
exports.loadStarShape = loadStarShape; | ||
}); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
297254
30