Skip to content

Commit 81d55d9

Browse files
committed
fix: try fixing v3 errors
1 parent f81fd8f commit 81d55d9

File tree

11 files changed

+14
-14
lines changed

11 files changed

+14
-14
lines changed

files/create-plugin/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ $ yarn add tsparticles-plugin-template
5454
Then you need to import it in the app, like this:
5555

5656
```javascript
57-
const { tsParticles } = require("tsparticles-engine");
57+
const { tsParticles } = require("@tsparticles/engine");
5858
const { loadTemplatePlugin } = require("tsparticles-plugin-template");
5959

6060
(async () => {
@@ -65,7 +65,7 @@ const { loadTemplatePlugin } = require("tsparticles-plugin-template");
6565
or
6666

6767
```javascript
68-
import { tsParticles } from "tsparticles-engine";
68+
import { tsParticles } from "@tsparticles/engine";
6969
import { loadTemplatePlugin } from "tsparticles-plugin-template";
7070

7171
(async () => {

files/create-plugin/src/PluginInstance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type Container, type Engine, type IContainerPlugin } from "tsparticles-engine";
1+
import { type Container, type Engine, type IContainerPlugin } from "@tsparticles/engine";
22

33
export class PluginInstance implements IContainerPlugin {
44
private readonly _container;

files/create-plugin/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Container, Engine, IPlugin, ISourceOptions, Options } from "tsparticles-engine";
1+
import type { Container, Engine, IPlugin, ISourceOptions, Options } from "@tsparticles/engine";
22
import { PluginInstance } from "./PluginInstance";
33

44
/**

files/create-preset/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Once installed you need one more script to be included in your page (or you can
2121
from [jsDelivr](https://www.jsdelivr.com/package/npm/tsparticles-preset-template):
2222

2323
```html
24-
<script src="https://cdn.jsdelivr.net/npm/tsparticles-engine@2/tsparticles.engine.min.js"></script>
24+
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/engine@2/tsparticles.engine.min.js"></script>
2525
<script src="https://cdn.jsdelivr.net/npm/tsparticles-preset-template/tsparticles.preset.template.min.js"></script>
2626
```
2727

@@ -75,7 +75,7 @@ This sample uses the class component syntax, but you can use hooks as well (if t
7575

7676
```javascript
7777
import Particles from "react-particles";
78-
import { Engine } from "tsparticles-engine";
78+
import { Engine } from "@tsparticles/engine";
7979
import { loadTemplatePreset } from "tsparticles-preset-template";
8080

8181
export class ParticlesContainer extends React.PureComponent<IProps> {

files/create-preset/src/bundle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { loadTemplatePreset } from ".";
2-
import { tsParticles } from "tsparticles-engine";
2+
import { tsParticles } from "@tsparticles/engine";
33

44
loadTemplatePreset(tsParticles);
55

files/create-preset/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Engine } from "tsparticles-engine";
1+
import type { Engine } from "@tsparticles/engine";
22
import { options } from "./options";
33

44
/**

files/create-preset/src/options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { ISourceOptions } from "tsparticles-engine";
1+
import type { ISourceOptions } from "@tsparticles/engine";
22

33
// The options used by the preset
44
export const options: ISourceOptions = {

files/create-shape/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ $ yarn add tsparticles-shape-template
5555
Then you need to import it in the app, like this:
5656

5757
```javascript
58-
const { tsParticles } = require("tsparticles-engine");
58+
const { tsParticles } = require("@tsparticles/engine");
5959
const { loadTemplateShape } = require("tsparticles-shape-template");
6060

6161
(async () => {
@@ -66,7 +66,7 @@ const { loadTemplateShape } = require("tsparticles-shape-template");
6666
or
6767

6868
```javascript
69-
import { tsParticles } from "tsparticles-engine";
69+
import { tsParticles } from "@tsparticles/engine";
7070
import { loadTemplateShape } from "tsparticles-shape-template";
7171

7272
(async () => {

files/create-shape/src/ShapeDrawer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { IDelta, IShapeDrawer, Particle } from "tsparticles-engine";
1+
import type { IDelta, IShapeDrawer, Particle } from "@tsparticles/engine";
22

33
export class ShapeDrawer implements IShapeDrawer {
44
draw(_context: CanvasRenderingContext2D,

files/create-shape/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { Engine } from "tsparticles-engine";
1+
import type { Engine } from "@tsparticles/engine";
22
import { ShapeDrawer } from "./ShapeDrawer";
33

44
/**

0 commit comments

Comments
 (0)