babylonjs-procedural-textures 6.8.1 → 6.10.0

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/.npmignore ADDED
@@ -0,0 +1,5 @@
1
+ src
2
+ config.json
3
+ tsconfig*.*
4
+ .npmignore
5
+ webpack*.*
package/config.json ADDED
@@ -0,0 +1,6 @@
1
+ {
2
+ "declarationLibs": ["@lts/procedural-textures"],
3
+ "devPackageName": "procedural-textures",
4
+ "filename": "babylonjs.proceduralTextures.module.d.ts",
5
+ "outputDirectory": "./"
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babylonjs-procedural-textures",
3
- "version": "6.8.1",
3
+ "version": "6.10.0",
4
4
  "main": "babylonjs.proceduralTextures.js",
5
5
  "types": "babylonjs.proceduralTextures.module.d.ts",
6
6
  "files": [
@@ -14,7 +14,7 @@
14
14
  "clean": "rimraf dist && rimraf babylon*.*"
15
15
  },
16
16
  "dependencies": {
17
- "babylonjs": "^6.8.1"
17
+ "babylonjs": "^6.10.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@dev/build-tools": "1.0.0",
package/src/brick.ts ADDED
@@ -0,0 +1,15 @@
1
+ /* eslint-disable import/no-internal-modules */
2
+ import * as proceduralTexture from "procedural-textures/brick/index";
3
+
4
+ /**
5
+ * This is the entry point for the UMD module.
6
+ * The entry point for a future ESM package should be index.ts
7
+ */
8
+ const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
9
+ if (typeof globalObject !== "undefined") {
10
+ for (const key in proceduralTexture) {
11
+ (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
12
+ }
13
+ }
14
+
15
+ export * from "procedural-textures/brick/index";
package/src/cloud.ts ADDED
@@ -0,0 +1,15 @@
1
+ /* eslint-disable import/no-internal-modules */
2
+ import * as proceduralTexture from "procedural-textures/cloud/index";
3
+
4
+ /**
5
+ * This is the entry point for the UMD module.
6
+ * The entry point for a future ESM package should be index.ts
7
+ */
8
+ const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
9
+ if (typeof globalObject !== "undefined") {
10
+ for (const key in proceduralTexture) {
11
+ (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
12
+ }
13
+ }
14
+
15
+ export * from "procedural-textures/cloud/index";
package/src/fire.ts ADDED
@@ -0,0 +1,15 @@
1
+ /* eslint-disable import/no-internal-modules */
2
+ import * as proceduralTexture from "procedural-textures/fire/index";
3
+
4
+ /**
5
+ * This is the entry point for the UMD module.
6
+ * The entry point for a future ESM package should be index.ts
7
+ */
8
+ const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
9
+ if (typeof globalObject !== "undefined") {
10
+ for (const key in proceduralTexture) {
11
+ (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
12
+ }
13
+ }
14
+
15
+ export * from "procedural-textures/fire/index";
package/src/grass.ts ADDED
@@ -0,0 +1,15 @@
1
+ /* eslint-disable import/no-internal-modules */
2
+ import * as proceduralTexture from "procedural-textures/grass/index";
3
+
4
+ /**
5
+ * This is the entry point for the UMD module.
6
+ * The entry point for a future ESM package should be index.ts
7
+ */
8
+ const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
9
+ if (typeof globalObject !== "undefined") {
10
+ for (const key in proceduralTexture) {
11
+ (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
12
+ }
13
+ }
14
+
15
+ export * from "procedural-textures/grass/index";
package/src/index.ts ADDED
@@ -0,0 +1,3 @@
1
+ import * as proceduralTextures from "procedural-textures/legacy/legacy";
2
+ export { proceduralTextures };
3
+ export default proceduralTextures;
package/src/marble.ts ADDED
@@ -0,0 +1,15 @@
1
+ /* eslint-disable import/no-internal-modules */
2
+ import * as proceduralTexture from "procedural-textures/marble/index";
3
+
4
+ /**
5
+ * This is the entry point for the UMD module.
6
+ * The entry point for a future ESM package should be index.ts
7
+ */
8
+ const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
9
+ if (typeof globalObject !== "undefined") {
10
+ for (const key in proceduralTexture) {
11
+ (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
12
+ }
13
+ }
14
+
15
+ export * from "procedural-textures/marble/index";
@@ -0,0 +1,15 @@
1
+ /* eslint-disable import/no-internal-modules */
2
+ import * as proceduralTexture from "procedural-textures/normalMap/index";
3
+
4
+ /**
5
+ * This is the entry point for the UMD module.
6
+ * The entry point for a future ESM package should be index.ts
7
+ */
8
+ const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
9
+ if (typeof globalObject !== "undefined") {
10
+ for (const key in proceduralTexture) {
11
+ (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
12
+ }
13
+ }
14
+
15
+ export * from "procedural-textures/normalMap/index";
@@ -0,0 +1,15 @@
1
+ /* eslint-disable import/no-internal-modules */
2
+ import * as proceduralTexture from "procedural-textures/perlinNoise/index";
3
+
4
+ /**
5
+ * This is the entry point for the UMD module.
6
+ * The entry point for a future ESM package should be index.ts
7
+ */
8
+ const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
9
+ if (typeof globalObject !== "undefined") {
10
+ for (const key in proceduralTexture) {
11
+ (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
12
+ }
13
+ }
14
+
15
+ export * from "procedural-textures/perlinNoise/index";
package/src/road.ts ADDED
@@ -0,0 +1,15 @@
1
+ /* eslint-disable import/no-internal-modules */
2
+ import * as proceduralTexture from "procedural-textures/road/index";
3
+
4
+ /**
5
+ * This is the entry point for the UMD module.
6
+ * The entry point for a future ESM package should be index.ts
7
+ */
8
+ const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
9
+ if (typeof globalObject !== "undefined") {
10
+ for (const key in proceduralTexture) {
11
+ (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
12
+ }
13
+ }
14
+
15
+ export * from "procedural-textures/road/index";
@@ -0,0 +1,15 @@
1
+ /* eslint-disable import/no-internal-modules */
2
+ import * as proceduralTexture from "procedural-textures/starfield/index";
3
+
4
+ /**
5
+ * This is the entry point for the UMD module.
6
+ * The entry point for a future ESM package should be index.ts
7
+ */
8
+ const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
9
+ if (typeof globalObject !== "undefined") {
10
+ for (const key in proceduralTexture) {
11
+ (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
12
+ }
13
+ }
14
+
15
+ export * from "procedural-textures/starfield/index";
package/src/wood.ts ADDED
@@ -0,0 +1,15 @@
1
+ /* eslint-disable import/no-internal-modules */
2
+ import * as proceduralTexture from "procedural-textures/wood/index";
3
+
4
+ /**
5
+ * This is the entry point for the UMD module.
6
+ * The entry point for a future ESM package should be index.ts
7
+ */
8
+ const globalObject = typeof global !== "undefined" ? global : typeof window !== "undefined" ? window : undefined;
9
+ if (typeof globalObject !== "undefined") {
10
+ for (const key in proceduralTexture) {
11
+ (<any>globalObject).BABYLON[key] = (<any>proceduralTexture)[key];
12
+ }
13
+ }
14
+
15
+ export * from "procedural-textures/wood/index";
@@ -0,0 +1,13 @@
1
+ {
2
+ "extends": "../../../../tsconfig.build.json",
3
+
4
+ "compilerOptions": {
5
+ "outDir": "./dist",
6
+ "rootDir": "./src",
7
+ "declaration": false,
8
+ "paths": {
9
+ "procedural-textures/*": ["lts/proceduralTextures/dist/*"],
10
+ }
11
+ },
12
+ "include": ["./src/**/*"]
13
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "../../../../tsconfig.json",
3
+
4
+ "compilerOptions": {
5
+ "paths": {
6
+ "procedural-textures/*": ["lts/proceduralTextures/generated/*"],
7
+ }
8
+ },
9
+ }
@@ -0,0 +1,27 @@
1
+ const commonConfigGenerator = require("@dev/build-tools").webpackTools.commonUMDWebpackConfiguration;
2
+ const path = require("path");
3
+ module.exports = (env) => {
4
+ const commonConfig = commonConfigGenerator({
5
+ mode: env.production ? "production" : "development",
6
+ devPackageName: "procedural-textures",
7
+ namespace: "PROCEDURALTEXTURES",
8
+ outputPath: path.resolve(__dirname),
9
+ entryPoints: {
10
+ proceduralTextures: "./src/index.ts",
11
+ brick: "./src/brick.ts",
12
+ cloud: "./src/cloud.ts",
13
+ fire: "./src/fire.ts",
14
+ grass: "./src/grass.ts",
15
+ marble: "./src/marble.ts",
16
+ normalMap: "./src/normalMap.ts",
17
+ perlinNoise: "./src/perlinNoise.ts",
18
+ road: "./src/road.ts",
19
+ starfield: "./src/starfield.ts",
20
+ wood: "./src/wood.ts",
21
+ },
22
+ overrideFilename: (pathData) => {
23
+ return pathData.chunk.name === "proceduralTextures" ? `babylonjs.[name]${env.production ? ".min" : ""}.js` : `babylon.[name]ProceduralTexture${env.production ? ".min" : ""}.js`;
24
+ },
25
+ });
26
+ return commonConfig;
27
+ };