@tsparticles/shape-polygon
Advanced tools
Comparing version 3.0.0-beta.0 to 3.0.0-beta.1
@@ -1,3 +0,3 @@ | ||
import { PolygonDrawer } from "./PolygonDrawer"; | ||
import { TriangleDrawer } from "./TriangleDrawer"; | ||
import { PolygonDrawer } from "./PolygonDrawer.js"; | ||
import { TriangleDrawer } from "./TriangleDrawer.js"; | ||
export async function loadGenericPolygonShape(engine, refresh = true) { | ||
@@ -4,0 +4,0 @@ await engine.addShape("polygon", new PolygonDrawer(), refresh); |
@@ -1,2 +0,2 @@ | ||
import { PolygonDrawerBase } from "./PolygonDrawerBase"; | ||
import { PolygonDrawerBase } from "./PolygonDrawerBase.js"; | ||
export class PolygonDrawer extends PolygonDrawerBase { | ||
@@ -3,0 +3,0 @@ getCenter(particle, radius) { |
@@ -1,2 +0,2 @@ | ||
import { PolygonDrawerBase } from "./PolygonDrawerBase"; | ||
import { PolygonDrawerBase } from "./PolygonDrawerBase.js"; | ||
export class TriangleDrawer extends PolygonDrawerBase { | ||
@@ -3,0 +3,0 @@ getCenter(particle, radius) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.loadPolygonShape = exports.loadTriangleShape = exports.loadGenericPolygonShape = void 0; | ||
const PolygonDrawer_1 = require("./PolygonDrawer"); | ||
const TriangleDrawer_1 = require("./TriangleDrawer"); | ||
const PolygonDrawer_js_1 = require("./PolygonDrawer.js"); | ||
const TriangleDrawer_js_1 = require("./TriangleDrawer.js"); | ||
async function loadGenericPolygonShape(engine, refresh = true) { | ||
await engine.addShape("polygon", new PolygonDrawer_1.PolygonDrawer(), refresh); | ||
await engine.addShape("polygon", new PolygonDrawer_js_1.PolygonDrawer(), refresh); | ||
} | ||
exports.loadGenericPolygonShape = loadGenericPolygonShape; | ||
async function loadTriangleShape(engine, refresh = true) { | ||
await engine.addShape("triangle", new TriangleDrawer_1.TriangleDrawer(), refresh); | ||
await engine.addShape("triangle", new TriangleDrawer_js_1.TriangleDrawer(), refresh); | ||
} | ||
@@ -13,0 +13,0 @@ exports.loadTriangleShape = loadTriangleShape; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PolygonDrawer = void 0; | ||
const PolygonDrawerBase_1 = require("./PolygonDrawerBase"); | ||
class PolygonDrawer extends PolygonDrawerBase_1.PolygonDrawerBase { | ||
const PolygonDrawerBase_js_1 = require("./PolygonDrawerBase.js"); | ||
class PolygonDrawer extends PolygonDrawerBase_js_1.PolygonDrawerBase { | ||
getCenter(particle, radius) { | ||
@@ -7,0 +7,0 @@ return { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TriangleDrawer = void 0; | ||
const PolygonDrawerBase_1 = require("./PolygonDrawerBase"); | ||
class TriangleDrawer extends PolygonDrawerBase_1.PolygonDrawerBase { | ||
const PolygonDrawerBase_js_1 = require("./PolygonDrawerBase.js"); | ||
class TriangleDrawer extends PolygonDrawerBase_js_1.PolygonDrawerBase { | ||
getCenter(particle, radius) { | ||
@@ -7,0 +7,0 @@ return { |
@@ -1,3 +0,3 @@ | ||
import { PolygonDrawer } from "./PolygonDrawer"; | ||
import { TriangleDrawer } from "./TriangleDrawer"; | ||
import { PolygonDrawer } from "./PolygonDrawer.js"; | ||
import { TriangleDrawer } from "./TriangleDrawer.js"; | ||
export async function loadGenericPolygonShape(engine, refresh = true) { | ||
@@ -4,0 +4,0 @@ await engine.addShape("polygon", new PolygonDrawer(), refresh); |
@@ -1,2 +0,2 @@ | ||
import { PolygonDrawerBase } from "./PolygonDrawerBase"; | ||
import { PolygonDrawerBase } from "./PolygonDrawerBase.js"; | ||
export class PolygonDrawer extends PolygonDrawerBase { | ||
@@ -3,0 +3,0 @@ getCenter(particle, radius) { |
@@ -1,2 +0,2 @@ | ||
import { PolygonDrawerBase } from "./PolygonDrawerBase"; | ||
import { PolygonDrawerBase } from "./PolygonDrawerBase.js"; | ||
export class TriangleDrawer extends PolygonDrawerBase { | ||
@@ -3,0 +3,0 @@ getCenter(particle, radius) { |
{ | ||
"name": "@tsparticles/shape-polygon", | ||
"version": "3.0.0-beta.0", | ||
"version": "3.0.0-beta.1", | ||
"description": "tsParticles polygon shape", | ||
@@ -43,10 +43,22 @@ "homepage": "https://particles.js.org", | ||
}, | ||
"main": "cjs/index.js", | ||
"sideEffects": false, | ||
"jsdelivr": "tsparticles.shape.polygon.min.js", | ||
"unpkg": "tsparticles.shape.polygon.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 Polygon Shape v3.0.0-beta.0 by Matteo Bruni */ | ||
/*! tsParticles Polygon Shape v3.0.0-beta.1 by Matteo Bruni */ |
@@ -1,2 +0,2 @@ | ||
import type { ISideCount } from "./ISideCount"; | ||
import type { ISideCount } from "./ISideCount.js"; | ||
export interface ISide { | ||
@@ -3,0 +3,0 @@ count: ISideCount; |
import type { ICoordinates, Particle } from "@tsparticles/engine"; | ||
import type { ISide } from "./ISide"; | ||
import { PolygonDrawerBase } from "./PolygonDrawerBase"; | ||
import type { ISide } from "./ISide.js"; | ||
import { PolygonDrawerBase } from "./PolygonDrawerBase.js"; | ||
export declare class PolygonDrawer extends PolygonDrawerBase { | ||
@@ -5,0 +5,0 @@ getCenter(particle: Particle, radius: number): ICoordinates; |
import { type ICoordinates, type IShapeDrawer, type Particle } from "@tsparticles/engine"; | ||
import type { ISide } from "./ISide"; | ||
import type { ISide } from "./ISide.js"; | ||
export declare abstract class PolygonDrawerBase implements IShapeDrawer { | ||
@@ -4,0 +4,0 @@ draw(context: CanvasRenderingContext2D, particle: Particle, radius: number): void; |
import type { ICoordinates, Particle } from "@tsparticles/engine"; | ||
import type { ISide } from "./ISide"; | ||
import { PolygonDrawerBase } from "./PolygonDrawerBase"; | ||
import type { ISide } from "./ISide.js"; | ||
import { PolygonDrawerBase } from "./PolygonDrawerBase.js"; | ||
export declare class TriangleDrawer extends PolygonDrawerBase { | ||
@@ -5,0 +5,0 @@ getCenter(particle: Particle, radius: number): ICoordinates; |
@@ -7,3 +7,3 @@ (function (factory) { | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports", "./PolygonDrawer", "./TriangleDrawer"], factory); | ||
define(["require", "exports", "./PolygonDrawer.js", "./TriangleDrawer.js"], factory); | ||
} | ||
@@ -14,10 +14,10 @@ })(function (require, exports) { | ||
exports.loadPolygonShape = exports.loadTriangleShape = exports.loadGenericPolygonShape = void 0; | ||
const PolygonDrawer_1 = require("./PolygonDrawer"); | ||
const TriangleDrawer_1 = require("./TriangleDrawer"); | ||
const PolygonDrawer_js_1 = require("./PolygonDrawer.js"); | ||
const TriangleDrawer_js_1 = require("./TriangleDrawer.js"); | ||
async function loadGenericPolygonShape(engine, refresh = true) { | ||
await engine.addShape("polygon", new PolygonDrawer_1.PolygonDrawer(), refresh); | ||
await engine.addShape("polygon", new PolygonDrawer_js_1.PolygonDrawer(), refresh); | ||
} | ||
exports.loadGenericPolygonShape = loadGenericPolygonShape; | ||
async function loadTriangleShape(engine, refresh = true) { | ||
await engine.addShape("triangle", new TriangleDrawer_1.TriangleDrawer(), refresh); | ||
await engine.addShape("triangle", new TriangleDrawer_js_1.TriangleDrawer(), refresh); | ||
} | ||
@@ -24,0 +24,0 @@ exports.loadTriangleShape = loadTriangleShape; |
@@ -7,3 +7,3 @@ (function (factory) { | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports", "./PolygonDrawerBase"], factory); | ||
define(["require", "exports", "./PolygonDrawerBase.js"], factory); | ||
} | ||
@@ -14,4 +14,4 @@ })(function (require, exports) { | ||
exports.PolygonDrawer = void 0; | ||
const PolygonDrawerBase_1 = require("./PolygonDrawerBase"); | ||
class PolygonDrawer extends PolygonDrawerBase_1.PolygonDrawerBase { | ||
const PolygonDrawerBase_js_1 = require("./PolygonDrawerBase.js"); | ||
class PolygonDrawer extends PolygonDrawerBase_js_1.PolygonDrawerBase { | ||
getCenter(particle, radius) { | ||
@@ -18,0 +18,0 @@ return { |
@@ -7,3 +7,3 @@ (function (factory) { | ||
else if (typeof define === "function" && define.amd) { | ||
define(["require", "exports", "./PolygonDrawerBase"], factory); | ||
define(["require", "exports", "./PolygonDrawerBase.js"], factory); | ||
} | ||
@@ -14,4 +14,4 @@ })(function (require, exports) { | ||
exports.TriangleDrawer = void 0; | ||
const PolygonDrawerBase_1 = require("./PolygonDrawerBase"); | ||
class TriangleDrawer extends PolygonDrawerBase_1.PolygonDrawerBase { | ||
const PolygonDrawerBase_js_1 = require("./PolygonDrawerBase.js"); | ||
class TriangleDrawer extends PolygonDrawerBase_js_1.PolygonDrawerBase { | ||
getCenter(particle, radius) { | ||
@@ -18,0 +18,0 @@ return { |
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
310084
45