@tsparticles/template-scaffold 4.1.3 → 4.2.1

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.
Files changed (168) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +3 -0
  3. package/package.json +4 -3
  4. package/template/angular/LICENSE +21 -0
  5. package/template/angular/package.json +1 -1
  6. package/template/angular-confetti/.browserslistrc +6 -0
  7. package/template/angular-confetti/.editorconfig +9 -0
  8. package/template/angular-confetti/LICENSE +21 -0
  9. package/template/angular-confetti/README.md +10 -0
  10. package/template/angular-confetti/angular.json +53 -0
  11. package/template/angular-confetti/gitignore +17 -0
  12. package/template/angular-confetti/package.json +34 -0
  13. package/template/angular-confetti/src/app/app.component.css +15 -0
  14. package/template/angular-confetti/src/app/app.component.html +4 -0
  15. package/template/angular-confetti/src/app/app.component.ts +27 -0
  16. package/template/angular-confetti/src/app/app.module.ts +12 -0
  17. package/template/angular-confetti/src/index.html +12 -0
  18. package/template/angular-confetti/src/main.ts +6 -0
  19. package/template/angular-confetti/src/polyfills.ts +1 -0
  20. package/template/angular-confetti/src/styles.css +5 -0
  21. package/template/angular-confetti/tsconfig.app.json +9 -0
  22. package/template/angular-confetti/tsconfig.json +29 -0
  23. package/template/angular-confetti/tsconfig.spec.json +8 -0
  24. package/template/angular-fireworks/.browserslistrc +6 -0
  25. package/template/angular-fireworks/.editorconfig +9 -0
  26. package/template/angular-fireworks/LICENSE +21 -0
  27. package/template/angular-fireworks/README.md +10 -0
  28. package/template/angular-fireworks/angular.json +53 -0
  29. package/template/angular-fireworks/gitignore +17 -0
  30. package/template/angular-fireworks/package.json +34 -0
  31. package/template/angular-fireworks/src/app/app.component.css +15 -0
  32. package/template/angular-fireworks/src/app/app.component.html +4 -0
  33. package/template/angular-fireworks/src/app/app.component.ts +29 -0
  34. package/template/angular-fireworks/src/app/app.module.ts +12 -0
  35. package/template/angular-fireworks/src/index.html +12 -0
  36. package/template/angular-fireworks/src/main.ts +6 -0
  37. package/template/angular-fireworks/src/polyfills.ts +1 -0
  38. package/template/angular-fireworks/src/styles.css +5 -0
  39. package/template/angular-fireworks/tsconfig.app.json +9 -0
  40. package/template/angular-fireworks/tsconfig.json +29 -0
  41. package/template/angular-fireworks/tsconfig.spec.json +8 -0
  42. package/template/astro/LICENSE +21 -0
  43. package/template/astro/README.md +10 -0
  44. package/template/astro/gitignore +14 -0
  45. package/template/astro/package.json +21 -0
  46. package/template/astro/src/pages/index.astro +35 -0
  47. package/template/ember/LICENSE +21 -0
  48. package/template/ember/README.md +10 -0
  49. package/template/ember/app/controllers/application.js +35 -0
  50. package/template/ember/app/templates/application.hbs +14 -0
  51. package/template/ember/gitignore +14 -0
  52. package/template/ember/package.json +41 -0
  53. package/template/inferno/LICENSE +21 -0
  54. package/template/inferno/README.md +10 -0
  55. package/template/inferno/gitignore +14 -0
  56. package/template/inferno/index.html +12 -0
  57. package/template/inferno/package.json +23 -0
  58. package/template/inferno/src/App.tsx +37 -0
  59. package/template/inferno/src/main.tsx +4 -0
  60. package/template/inferno/tsconfig.json +17 -0
  61. package/template/inferno/vite.config.ts +11 -0
  62. package/template/jquery/LICENSE +21 -0
  63. package/template/jquery/README.md +10 -0
  64. package/template/jquery/gitignore +14 -0
  65. package/template/jquery/index.html +15 -0
  66. package/template/jquery/package.json +19 -0
  67. package/template/jquery/src/main.ts +31 -0
  68. package/template/jquery/src/style.css +22 -0
  69. package/template/jquery/tsconfig.json +19 -0
  70. package/template/jquery/vite.config.ts +5 -0
  71. package/template/lit/LICENSE +21 -0
  72. package/template/lit/README.md +10 -0
  73. package/template/lit/gitignore +14 -0
  74. package/template/lit/index.html +15 -0
  75. package/template/lit/package.json +19 -0
  76. package/template/lit/src/main.ts +8 -0
  77. package/template/lit/src/my-app.ts +34 -0
  78. package/template/lit/src/style.css +21 -0
  79. package/template/lit/tsconfig.json +20 -0
  80. package/template/lit/vite.config.ts +5 -0
  81. package/template/nextjs/LICENSE +21 -0
  82. package/template/nextjs/README.md +10 -0
  83. package/template/nextjs/gitignore +14 -0
  84. package/template/nextjs/package.json +24 -0
  85. package/template/nextjs/src/app/layout.tsx +16 -0
  86. package/template/nextjs/src/app/page.tsx +30 -0
  87. package/template/nextjs/src/app/providers.tsx +13 -0
  88. package/template/nuxt2/LICENSE +21 -0
  89. package/template/nuxt2/README.md +10 -0
  90. package/template/nuxt2/gitignore +14 -0
  91. package/template/nuxt2/nuxt.config.js +3 -0
  92. package/template/nuxt2/package.json +16 -0
  93. package/template/nuxt2/pages/index.vue +43 -0
  94. package/template/nuxt3/LICENSE +21 -0
  95. package/template/nuxt3/README.md +10 -0
  96. package/template/nuxt3/app.vue +36 -0
  97. package/template/nuxt3/gitignore +14 -0
  98. package/template/nuxt3/nuxt.config.ts +3 -0
  99. package/template/nuxt3/package.json +20 -0
  100. package/template/nuxt4/LICENSE +21 -0
  101. package/template/nuxt4/README.md +10 -0
  102. package/template/nuxt4/app.vue +36 -0
  103. package/template/nuxt4/gitignore +14 -0
  104. package/template/nuxt4/nuxt.config.ts +3 -0
  105. package/template/nuxt4/package.json +20 -0
  106. package/template/preact/LICENSE +21 -0
  107. package/template/preact/README.md +10 -0
  108. package/template/preact/gitignore +14 -0
  109. package/template/preact/index.html +12 -0
  110. package/template/preact/package.json +20 -0
  111. package/template/preact/src/App.tsx +43 -0
  112. package/template/preact/src/main.tsx +5 -0
  113. package/template/preact/src/style.css +21 -0
  114. package/template/preact/tsconfig.json +21 -0
  115. package/template/preact/vite.config.ts +7 -0
  116. package/template/qwik/LICENSE +21 -0
  117. package/template/qwik/README.md +10 -0
  118. package/template/qwik/gitignore +14 -0
  119. package/template/qwik/index.html +12 -0
  120. package/template/qwik/package.json +19 -0
  121. package/template/qwik/src/App.tsx +43 -0
  122. package/template/qwik/src/main.tsx +4 -0
  123. package/template/qwik/src/style.css +21 -0
  124. package/template/qwik/tsconfig.json +20 -0
  125. package/template/qwik/vite.config.ts +7 -0
  126. package/template/react/LICENSE +21 -0
  127. package/template/react/package.json +1 -1
  128. package/template/riot/LICENSE +21 -0
  129. package/template/riot/README.md +10 -0
  130. package/template/riot/gitignore +14 -0
  131. package/template/riot/index.html +12 -0
  132. package/template/riot/package.json +21 -0
  133. package/template/riot/src/app.riot +66 -0
  134. package/template/riot/src/main.ts +5 -0
  135. package/template/riot/src/style.css +21 -0
  136. package/template/riot/tsconfig.json +19 -0
  137. package/template/riot/vite.config.ts +7 -0
  138. package/template/solid/LICENSE +21 -0
  139. package/template/solid/package.json +1 -1
  140. package/template/stencil/LICENSE +21 -0
  141. package/template/stencil/README.md +10 -0
  142. package/template/stencil/gitignore +14 -0
  143. package/template/stencil/package.json +19 -0
  144. package/template/stencil/src/components/app-home/app-home.tsx +47 -0
  145. package/template/svelte/LICENSE +21 -0
  146. package/template/svelte/package.json +1 -1
  147. package/template/vanilla/LICENSE +21 -0
  148. package/template/vanilla/package.json +1 -1
  149. package/template/vue2/LICENSE +21 -0
  150. package/template/vue2/README.md +10 -0
  151. package/template/vue2/gitignore +14 -0
  152. package/template/vue2/index.html +12 -0
  153. package/template/vue2/package.json +21 -0
  154. package/template/vue2/src/App.vue +65 -0
  155. package/template/vue2/src/main.ts +14 -0
  156. package/template/vue2/tsconfig.json +19 -0
  157. package/template/vue2/vite.config.ts +7 -0
  158. package/template/vue3/LICENSE +21 -0
  159. package/template/vue3/package.json +1 -1
  160. package/template/webcomponents/LICENSE +21 -0
  161. package/template/webcomponents/README.md +10 -0
  162. package/template/webcomponents/gitignore +14 -0
  163. package/template/webcomponents/index.html +15 -0
  164. package/template/webcomponents/package.json +18 -0
  165. package/template/webcomponents/src/main.ts +9 -0
  166. package/template/webcomponents/src/style.css +22 -0
  167. package/template/webcomponents/tsconfig.json +19 -0
  168. package/template/webcomponents/vite.config.ts +5 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,16 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## [4.2.1](https://github.com/tsparticles/tsparticles/compare/v4.2.0...v4.2.1) (2026-06-18)
7
+
8
+ ### Bug Fixes
9
+
10
+ - fixed some various issues ([8534979](https://github.com/tsparticles/tsparticles/commit/85349791a4978f80f98f141a94a403a7e15785c0))
11
+
12
+ # [4.2.0](https://github.com/tsparticles/tsparticles/compare/v4.1.3...v4.2.0) (2026-06-17)
13
+
14
+ ### Features
15
+
16
+ - adding templates to cli create ([bc118ef](https://github.com/tsparticles/tsparticles/commit/bc118efa3f40497f9fa84186ac6102411a19fda7))
package/README.md ADDED
@@ -0,0 +1,3 @@
1
+ # @tsparticles/template-scaffold
2
+
3
+ tsParticles scaffold template. Use with `create-tsparticles-app` to scaffold a new tsParticles project.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsparticles/template-scaffold",
3
- "version": "4.1.3",
3
+ "version": "4.2.1",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -8,7 +8,8 @@
8
8
  "scripts": {
9
9
  "prebuild": "node scripts/prebuild.js",
10
10
  "build": "pnpm run prebuild",
11
- "build:ci": "pnpm run prebuild"
11
+ "build:ci": "pnpm run prebuild",
12
+ "version": "pnpm run build && git add template.json"
12
13
  },
13
- "gitHead": "0551736c55ae8eec3855a693af8a99b1b4420350"
14
+ "gitHead": "e2a7699c1f4212bbda4e6933970c062e6fc000dc"
14
15
  }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Matteo Bruni
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "{{projectName}}",
2
+ "name": "{{packageName}}",
3
3
  "private": true,
4
4
  "version": "1.0.0",
5
5
  "scripts": {
@@ -0,0 +1,6 @@
1
+ last 1 Chrome version
2
+ last 1 Firefox version
3
+ last 2 Edge major versions
4
+ last 2 Safari major versions
5
+ last 2 iOS major versions
6
+ Firefox ESR
@@ -0,0 +1,9 @@
1
+ root = true
2
+
3
+ [*]
4
+ indent_style = space
5
+ indent_size = 2
6
+ end_of_line = lf
7
+ charset = utf-8
8
+ trim_trailing_whitespace = true
9
+ insert_final_newline = true
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Matteo Bruni
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,10 @@
1
+ # {{projectName}}
2
+
3
+ A tsParticles Angular Confetti project scaffolded with [tsparticles-create](https://github.com/tsparticles/tsparticles).
4
+
5
+ ## Getting started
6
+
7
+ ```bash
8
+ npm install
9
+ npm run dev
10
+ ```
@@ -0,0 +1,53 @@
1
+ {
2
+ "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3
+ "version": 1,
4
+ "newProjectRoot": "projects",
5
+ "projects": {
6
+ "{{projectName}}": {
7
+ "projectType": "application",
8
+ "root": "",
9
+ "sourceRoot": "src",
10
+ "prefix": "app",
11
+ "architect": {
12
+ "build": {
13
+ "builder": "@angular/build:application",
14
+ "options": {
15
+ "outputPath": "dist",
16
+ "index": "src/index.html",
17
+ "browser": "src/main.ts",
18
+ "polyfills": ["zone.js"],
19
+ "tsConfig": "tsconfig.app.json",
20
+ "assets": ["src/favicon.ico"],
21
+ "styles": ["src/styles.css"],
22
+ "scripts": []
23
+ },
24
+ "configurations": {
25
+ "production": {
26
+ "budgets": [
27
+ { "type": "initial", "maximumWarning": "500kb", "maximumError": "1mb" }
28
+ ],
29
+ "outputHashing": "all"
30
+ },
31
+ "development": {
32
+ "buildOptimizer": false,
33
+ "optimization": false,
34
+ "vendorChunk": true,
35
+ "extractLicenses": false,
36
+ "sourceMap": true,
37
+ "namedChunks": true
38
+ }
39
+ },
40
+ "defaultConfiguration": "production"
41
+ },
42
+ "serve": {
43
+ "builder": "@angular/build:dev-server",
44
+ "configurations": {
45
+ "production": { "buildTarget": "{{projectName}}:build:production" },
46
+ "development": { "buildTarget": "{{projectName}}:build:development" }
47
+ },
48
+ "defaultConfiguration": "development"
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
@@ -0,0 +1,17 @@
1
+ # dependencies
2
+ /node_modules
3
+
4
+ # production
5
+ /dist
6
+
7
+ # Angular CLI cache
8
+ .angular/cache
9
+
10
+ # misc
11
+ .DS_Store
12
+ *.local
13
+
14
+ # debug
15
+ npm-debug.log*
16
+ yarn-debug.log*
17
+ yarn-error.log*
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "{{packageName}}",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "scripts": {
6
+ "ng": "ng",
7
+ "start": "ng serve",
8
+ "dev": "ng serve",
9
+ "build": "ng build",
10
+ "preview": "ng serve",
11
+ "watch": "ng build --watch --configuration development"
12
+ },
13
+ "dependencies": {
14
+ "@angular/animations": "~22.0.0",
15
+ "@angular/common": "~22.0.0",
16
+ "@angular/compiler": "~22.0.0",
17
+ "@angular/core": "~22.0.0",
18
+ "@angular/forms": "~22.0.0",
19
+ "@angular/platform-browser": "~22.0.0",
20
+ "@angular/platform-browser-dynamic": "~22.0.0",
21
+ "@angular/router": "~22.0.0",
22
+ "angular-confetti": "^4.1.3",
23
+ "@tsparticles/engine": "^4.1.3",
24
+ "rxjs": "~7.8.2",
25
+ "tslib": "^2.8.1",
26
+ "zone.js": "~0.16.2"
27
+ },
28
+ "devDependencies": {
29
+ "@angular-devkit/build-angular": "~22.0.0",
30
+ "@angular/cli": "~22.0.0",
31
+ "@angular/compiler-cli": "~22.0.0",
32
+ "typescript": "~6.0.3"
33
+ }
34
+ }
@@ -0,0 +1,15 @@
1
+ #app-content {
2
+ position: absolute;
3
+ top: 50%;
4
+ left: 50%;
5
+ transform: translate(-50%, -50%);
6
+ z-index: 10;
7
+ text-align: center;
8
+ color: #fff;
9
+ pointer-events: none;
10
+ }
11
+
12
+ h1 {
13
+ font-size: 3.2em;
14
+ text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
15
+ }
@@ -0,0 +1,4 @@
1
+ <div id="app-content">
2
+ <h1>Hello, tsParticles!</h1>
3
+ </div>
4
+ <ngx-confetti id="tsparticles" [options]="options" [fire]="true" />
@@ -0,0 +1,27 @@
1
+ import { Component } from "@angular/core";
2
+ import type { ConfettiOptions } from "@tsparticles/confetti";
3
+
4
+ @Component({
5
+ selector: "app-root",
6
+ templateUrl: "./app.component.html",
7
+ styleUrls: ["./app.component.css"],
8
+ })
9
+ export class AppComponent {
10
+ options: ConfettiOptions = {
11
+ angle: 90,
12
+ count: 50,
13
+ spread: 45,
14
+ startVelocity: 45,
15
+ decay: 0.9,
16
+ gravity: 1,
17
+ drift: 0,
18
+ ticks: 200,
19
+ position: { x: 50, y: 50 },
20
+ colors: ["#26ccff", "#a25afd", "#ff5e7e", "#88ff5a", "#fcff42", "#ffa62d", "#ff36ff"],
21
+ shapes: ["square", "circle"],
22
+ scalar: 1,
23
+ zIndex: 100,
24
+ disableForReducedMotion: true,
25
+ flat: false,
26
+ };
27
+ }
@@ -0,0 +1,12 @@
1
+ import { NgModule } from "@angular/core";
2
+ import { BrowserModule } from "@angular/platform-browser";
3
+ import { NgxConfettiModule } from "angular-confetti";
4
+ import { AppComponent } from "./app.component";
5
+
6
+ @NgModule({
7
+ declarations: [AppComponent],
8
+ imports: [BrowserModule, NgxConfettiModule],
9
+ providers: [],
10
+ bootstrap: [AppComponent],
11
+ })
12
+ export class AppModule {}
@@ -0,0 +1,12 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>{{projectName}}</title>
6
+ <base href="/" />
7
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
8
+ </head>
9
+ <body>
10
+ <app-root></app-root>
11
+ </body>
12
+ </html>
@@ -0,0 +1,6 @@
1
+ import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
2
+ import { AppModule } from "./app/app.module";
3
+
4
+ platformBrowserDynamic()
5
+ .bootstrapModule(AppModule)
6
+ .catch((err) => console.error(err));
@@ -0,0 +1 @@
1
+ import "zone.js";
@@ -0,0 +1,5 @@
1
+ body {
2
+ margin: 0;
3
+ overflow: hidden;
4
+ font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
5
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "./out-tsc/app",
5
+ "types": []
6
+ },
7
+ "files": ["src/main.ts"],
8
+ "include": ["src/**/*.d.ts"]
9
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "compileOnSave": false,
3
+ "compilerOptions": {
4
+ "baseUrl": "./",
5
+ "outDir": "./dist/out-tsc",
6
+ "ignoreDeprecations": "6.0",
7
+ "forceConsistentCasingInFileNames": true,
8
+ "strict": true,
9
+ "noImplicitOverride": true,
10
+ "noPropertyAccessFromIndexSignature": true,
11
+ "noImplicitReturns": true,
12
+ "noFallthroughCasesInSwitch": true,
13
+ "sourceMap": true,
14
+ "declaration": false,
15
+ "downlevelIteration": true,
16
+ "experimentalDecorators": true,
17
+ "moduleResolution": "bundler",
18
+ "importHelpers": true,
19
+ "target": "ES2022",
20
+ "module": "ES2022",
21
+ "lib": ["ES2022", "dom"]
22
+ },
23
+ "angularCompilerOptions": {
24
+ "enableI18nLegacyMessageIdFormat": false,
25
+ "strictInjectionParameters": true,
26
+ "strictInputAccessModifiers": true,
27
+ "strictTemplates": true
28
+ }
29
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "./out-tsc/spec",
5
+ "types": ["jasmine"]
6
+ },
7
+ "include": ["src/**/*.spec.ts", "src/**/*.d.ts"]
8
+ }
@@ -0,0 +1,6 @@
1
+ last 1 Chrome version
2
+ last 1 Firefox version
3
+ last 2 Edge major versions
4
+ last 2 Safari major versions
5
+ last 2 iOS major versions
6
+ Firefox ESR
@@ -0,0 +1,9 @@
1
+ root = true
2
+
3
+ [*]
4
+ indent_style = space
5
+ indent_size = 2
6
+ end_of_line = lf
7
+ charset = utf-8
8
+ trim_trailing_whitespace = true
9
+ insert_final_newline = true
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Matteo Bruni
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,10 @@
1
+ # {{projectName}}
2
+
3
+ A tsParticles Angular Fireworks project scaffolded with [tsparticles-create](https://github.com/tsparticles/tsparticles).
4
+
5
+ ## Getting started
6
+
7
+ ```bash
8
+ npm install
9
+ npm run dev
10
+ ```
@@ -0,0 +1,53 @@
1
+ {
2
+ "$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3
+ "version": 1,
4
+ "newProjectRoot": "projects",
5
+ "projects": {
6
+ "{{projectName}}": {
7
+ "projectType": "application",
8
+ "root": "",
9
+ "sourceRoot": "src",
10
+ "prefix": "app",
11
+ "architect": {
12
+ "build": {
13
+ "builder": "@angular/build:application",
14
+ "options": {
15
+ "outputPath": "dist",
16
+ "index": "src/index.html",
17
+ "browser": "src/main.ts",
18
+ "polyfills": ["zone.js"],
19
+ "tsConfig": "tsconfig.app.json",
20
+ "assets": ["src/favicon.ico"],
21
+ "styles": ["src/styles.css"],
22
+ "scripts": []
23
+ },
24
+ "configurations": {
25
+ "production": {
26
+ "budgets": [
27
+ { "type": "initial", "maximumWarning": "500kb", "maximumError": "1mb" }
28
+ ],
29
+ "outputHashing": "all"
30
+ },
31
+ "development": {
32
+ "buildOptimizer": false,
33
+ "optimization": false,
34
+ "vendorChunk": true,
35
+ "extractLicenses": false,
36
+ "sourceMap": true,
37
+ "namedChunks": true
38
+ }
39
+ },
40
+ "defaultConfiguration": "production"
41
+ },
42
+ "serve": {
43
+ "builder": "@angular/build:dev-server",
44
+ "configurations": {
45
+ "production": { "buildTarget": "{{projectName}}:build:production" },
46
+ "development": { "buildTarget": "{{projectName}}:build:development" }
47
+ },
48
+ "defaultConfiguration": "development"
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
@@ -0,0 +1,17 @@
1
+ # dependencies
2
+ /node_modules
3
+
4
+ # production
5
+ /dist
6
+
7
+ # Angular CLI cache
8
+ .angular/cache
9
+
10
+ # misc
11
+ .DS_Store
12
+ *.local
13
+
14
+ # debug
15
+ npm-debug.log*
16
+ yarn-debug.log*
17
+ yarn-error.log*
@@ -0,0 +1,34 @@
1
+ {
2
+ "name": "{{packageName}}",
3
+ "private": true,
4
+ "version": "1.0.0",
5
+ "scripts": {
6
+ "ng": "ng",
7
+ "start": "ng serve",
8
+ "dev": "ng serve",
9
+ "build": "ng build",
10
+ "preview": "ng serve",
11
+ "watch": "ng build --watch --configuration development"
12
+ },
13
+ "dependencies": {
14
+ "@angular/animations": "~22.0.0",
15
+ "@angular/common": "~22.0.0",
16
+ "@angular/compiler": "~22.0.0",
17
+ "@angular/core": "~22.0.0",
18
+ "@angular/forms": "~22.0.0",
19
+ "@angular/platform-browser": "~22.0.0",
20
+ "@angular/platform-browser-dynamic": "~22.0.0",
21
+ "@angular/router": "~22.0.0",
22
+ "angular-fireworks": "^4.1.3",
23
+ "@tsparticles/engine": "^4.1.3",
24
+ "rxjs": "~7.8.2",
25
+ "tslib": "^2.8.1",
26
+ "zone.js": "~0.16.2"
27
+ },
28
+ "devDependencies": {
29
+ "@angular-devkit/build-angular": "~22.0.0",
30
+ "@angular/cli": "~22.0.0",
31
+ "@angular/compiler-cli": "~22.0.0",
32
+ "typescript": "~6.0.3"
33
+ }
34
+ }
@@ -0,0 +1,15 @@
1
+ #app-content {
2
+ position: absolute;
3
+ top: 50%;
4
+ left: 50%;
5
+ transform: translate(-50%, -50%);
6
+ z-index: 10;
7
+ text-align: center;
8
+ color: #fff;
9
+ pointer-events: none;
10
+ }
11
+
12
+ h1 {
13
+ font-size: 3.2em;
14
+ text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
15
+ }
@@ -0,0 +1,4 @@
1
+ <div id="app-content">
2
+ <h1>Hello, tsParticles!</h1>
3
+ </div>
4
+ <ngx-fireworks id="tsparticles" [options]="options" />
@@ -0,0 +1,29 @@
1
+ import { Component } from "@angular/core";
2
+ import type { FireworkOptions } from "@tsparticles/fireworks";
3
+
4
+ @Component({
5
+ selector: "app-root",
6
+ templateUrl: "./app.component.html",
7
+ styleUrls: ["./app.component.css"],
8
+ })
9
+ export class AppComponent {
10
+ options: FireworkOptions = {
11
+ background: "none",
12
+ brightness: { min: -30, max: 30 },
13
+ colors: [
14
+ "#FF0000", "#FF2A00", "#FF5500", "#FF8000", "#FFAA00", "#FFD400",
15
+ "#FFFF00", "#D4FF00", "#AAFF00", "#80FF00", "#55FF00", "#2AFF00",
16
+ "#00FF00", "#00FF2A", "#00FF55", "#00FF80", "#00FFAA", "#00FFD4",
17
+ "#00FFFF", "#00D4FF", "#00AAFF", "#0080FF", "#0055FF", "#002AFF",
18
+ "#0000FF", "#2A00FF", "#5500FF", "#8000FF", "#AA00FF", "#D400FF",
19
+ "#FF00FF", "#FF00D4", "#FF00AA", "#FF0080", "#FF0055", "#FF002A",
20
+ ],
21
+ gravity: 30,
22
+ minHeight: { min: 10, max: 30 },
23
+ rate: 10,
24
+ saturation: { min: -30, max: 30 },
25
+ sounds: true,
26
+ speed: { min: 20, max: 40 },
27
+ splitCount: 100,
28
+ };
29
+ }
@@ -0,0 +1,12 @@
1
+ import { NgModule } from "@angular/core";
2
+ import { BrowserModule } from "@angular/platform-browser";
3
+ import { NgxFireworksModule } from "angular-fireworks";
4
+ import { AppComponent } from "./app.component";
5
+
6
+ @NgModule({
7
+ declarations: [AppComponent],
8
+ imports: [BrowserModule, NgxFireworksModule],
9
+ providers: [],
10
+ bootstrap: [AppComponent],
11
+ })
12
+ export class AppModule {}
@@ -0,0 +1,12 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <title>{{projectName}}</title>
6
+ <base href="/" />
7
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
8
+ </head>
9
+ <body>
10
+ <app-root></app-root>
11
+ </body>
12
+ </html>
@@ -0,0 +1,6 @@
1
+ import { platformBrowserDynamic } from "@angular/platform-browser-dynamic";
2
+ import { AppModule } from "./app/app.module";
3
+
4
+ platformBrowserDynamic()
5
+ .bootstrapModule(AppModule)
6
+ .catch((err) => console.error(err));
@@ -0,0 +1 @@
1
+ import "zone.js";
@@ -0,0 +1,5 @@
1
+ body {
2
+ margin: 0;
3
+ overflow: hidden;
4
+ font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
5
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "outDir": "./out-tsc/app",
5
+ "types": []
6
+ },
7
+ "files": ["src/main.ts"],
8
+ "include": ["src/**/*.d.ts"]
9
+ }