@tsparticles/plugin-sounds 4.0.0-alpha.4 → 4.0.0-alpha.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.
- package/296.min.js.LICENSE.txt +1 -1
- package/340.min.js.LICENSE.txt +1 -1
- package/browser/SoundsPluginInstance.js +1 -3
- package/browser/index.js +3 -3
- package/cjs/SoundsPluginInstance.js +1 -3
- package/cjs/index.js +3 -3
- package/dist_browser_SoundsPluginInstance_js.js +1 -1
- package/dist_browser_SoundsPlugin_js.js +1 -1
- package/esm/SoundsPluginInstance.js +1 -3
- package/esm/index.js +3 -3
- package/package.json +2 -2
- package/report.html +3 -3
- package/tsparticles.plugin.sounds.js +2 -2
- package/tsparticles.plugin.sounds.min.js +1 -1
- package/tsparticles.plugin.sounds.min.js.LICENSE.txt +1 -1
- package/types/index.d.ts +1 -1
- package/umd/SoundsPluginInstance.js +1 -3
- package/umd/index.js +3 -3
package/296.min.js.LICENSE.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Sounds Plugin v4.0.0-alpha.
|
|
1
|
+
/*! tsParticles Sounds Plugin v4.0.0-alpha.8 by Matteo Bruni */
|
package/340.min.js.LICENSE.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Sounds Plugin v4.0.0-alpha.
|
|
1
|
+
/*! tsParticles Sounds Plugin v4.0.0-alpha.8 by Matteo Bruni */
|
|
@@ -6,9 +6,7 @@ const zIndexOffset = 1, rightOffset = 1, minVolume = 0;
|
|
|
6
6
|
function initImage(data) {
|
|
7
7
|
const img = safeDocument().createElement("img"), { clickCb, container, display, iconOptions, margin, options, pos, rightOffsets } = data, { width, path, style, svg } = iconOptions, defaultAccumulator = 0;
|
|
8
8
|
setIconStyle(img, pos.top + margin, pos.right -
|
|
9
|
-
(margin * (rightOffsets.length + rightOffset) +
|
|
10
|
-
width +
|
|
11
|
-
rightOffsets.reduce((a, b) => a + b, defaultAccumulator)), display, options.fullScreen.zIndex + zIndexOffset, width, margin, style);
|
|
9
|
+
(margin * (rightOffsets.length + rightOffset) + width + rightOffsets.reduce((a, b) => a + b, defaultAccumulator)), display, options.fullScreen.zIndex + zIndexOffset, width, margin, style);
|
|
12
10
|
img.src = path ?? (svg ? `data:image/svg+xml;base64,${btoa(svg)}` : "");
|
|
13
11
|
const parent = container.canvas.element?.parentNode ?? safeDocument().body;
|
|
14
12
|
parent.append(img);
|
package/browser/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export function loadSoundsPlugin(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-alpha.
|
|
3
|
-
engine.register(async (e) => {
|
|
1
|
+
export async function loadSoundsPlugin(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.8");
|
|
3
|
+
await engine.register(async (e) => {
|
|
4
4
|
const { SoundsPlugin } = await import("./SoundsPlugin.js");
|
|
5
5
|
e.addPlugin(new SoundsPlugin(engine));
|
|
6
6
|
});
|
|
@@ -6,9 +6,7 @@ const zIndexOffset = 1, rightOffset = 1, minVolume = 0;
|
|
|
6
6
|
function initImage(data) {
|
|
7
7
|
const img = safeDocument().createElement("img"), { clickCb, container, display, iconOptions, margin, options, pos, rightOffsets } = data, { width, path, style, svg } = iconOptions, defaultAccumulator = 0;
|
|
8
8
|
setIconStyle(img, pos.top + margin, pos.right -
|
|
9
|
-
(margin * (rightOffsets.length + rightOffset) +
|
|
10
|
-
width +
|
|
11
|
-
rightOffsets.reduce((a, b) => a + b, defaultAccumulator)), display, options.fullScreen.zIndex + zIndexOffset, width, margin, style);
|
|
9
|
+
(margin * (rightOffsets.length + rightOffset) + width + rightOffsets.reduce((a, b) => a + b, defaultAccumulator)), display, options.fullScreen.zIndex + zIndexOffset, width, margin, style);
|
|
12
10
|
img.src = path ?? (svg ? `data:image/svg+xml;base64,${btoa(svg)}` : "");
|
|
13
11
|
const parent = container.canvas.element?.parentNode ?? safeDocument().body;
|
|
14
12
|
parent.append(img);
|
package/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export function loadSoundsPlugin(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-alpha.
|
|
3
|
-
engine.register(async (e) => {
|
|
1
|
+
export async function loadSoundsPlugin(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.8");
|
|
3
|
+
await engine.register(async (e) => {
|
|
4
4
|
const { SoundsPlugin } = await import("./SoundsPlugin.js");
|
|
5
5
|
e.addPlugin(new SoundsPlugin(engine));
|
|
6
6
|
});
|
|
@@ -6,9 +6,7 @@ const zIndexOffset = 1, rightOffset = 1, minVolume = 0;
|
|
|
6
6
|
function initImage(data) {
|
|
7
7
|
const img = safeDocument().createElement("img"), { clickCb, container, display, iconOptions, margin, options, pos, rightOffsets } = data, { width, path, style, svg } = iconOptions, defaultAccumulator = 0;
|
|
8
8
|
setIconStyle(img, pos.top + margin, pos.right -
|
|
9
|
-
(margin * (rightOffsets.length + rightOffset) +
|
|
10
|
-
width +
|
|
11
|
-
rightOffsets.reduce((a, b) => a + b, defaultAccumulator)), display, options.fullScreen.zIndex + zIndexOffset, width, margin, style);
|
|
9
|
+
(margin * (rightOffsets.length + rightOffset) + width + rightOffsets.reduce((a, b) => a + b, defaultAccumulator)), display, options.fullScreen.zIndex + zIndexOffset, width, margin, style);
|
|
12
10
|
img.src = path ?? (svg ? `data:image/svg+xml;base64,${btoa(svg)}` : "");
|
|
13
11
|
const parent = container.canvas.element?.parentNode ?? safeDocument().body;
|
|
14
12
|
parent.append(img);
|
package/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export function loadSoundsPlugin(engine) {
|
|
2
|
-
engine.checkVersion("4.0.0-alpha.
|
|
3
|
-
engine.register(async (e) => {
|
|
1
|
+
export async function loadSoundsPlugin(engine) {
|
|
2
|
+
engine.checkVersion("4.0.0-alpha.8");
|
|
3
|
+
await engine.register(async (e) => {
|
|
4
4
|
const { SoundsPlugin } = await import("./SoundsPlugin.js");
|
|
5
5
|
e.addPlugin(new SoundsPlugin(engine));
|
|
6
6
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tsparticles/plugin-sounds",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.8",
|
|
4
4
|
"description": "tsParticles sounds plugin",
|
|
5
5
|
"homepage": "https://particles.js.org",
|
|
6
6
|
"repository": {
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"./package.json": "./package.json"
|
|
87
87
|
},
|
|
88
88
|
"dependencies": {
|
|
89
|
-
"@tsparticles/engine": "4.0.0-alpha.
|
|
89
|
+
"@tsparticles/engine": "4.0.0-alpha.8"
|
|
90
90
|
},
|
|
91
91
|
"publishConfig": {
|
|
92
92
|
"access": "public"
|