@scenography/props 0.1.0 → 0.3.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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["Mesh","BoxGeometry","MeshStandardMaterial"],"sources":["../src/cube.ts"],"sourcesContent":["import { BoxGeometry, Mesh, MeshStandardMaterial, type Object3D } from \"three\";\nimport type { Vec3 } from \"@scenography/core\";\n\nexport interface CubeOptions {\n /** Edge length in world units. Defaults to `50`. */\n size?: number;\n /** CSS-style color. Defaults to a warm gray. */\n color?: string;\n /** World position `[x, y, z]`. Defaults to the origin. */\n position?: Vec3;\n}\n\n/**\n * The first prop: a simple cube. Props are plain factory functions returning a\n * three.js object, so the catalog stays tree-shakeable and each project can add\n * its own without touching the engine.\n */\nexport function createCube(options: CubeOptions = {}): Object3D {\n const { size = 50, color = \"#b88b5c\", position = [0, 0, 0] } = options;\n const mesh = new Mesh(new BoxGeometry(size, size, size), new MeshStandardMaterial({ color }));\n mesh.position.set(position[0], position[1], position[2]);\n mesh.name = \"prop:cube\";\n return mesh;\n}\n"],"mappings":";;;;;;;;AAiBA,SAAgB,WAAW,UAAuB,CAAC,GAAa;CAC9D,MAAM,EAAE,OAAO,IAAI,QAAQ,WAAW,WAAW;EAAC;EAAG;EAAG;CAAC,MAAM;CAC/D,MAAM,OAAO,IAAIA,MAAAA,KAAK,IAAIC,MAAAA,YAAY,MAAM,MAAM,IAAI,GAAG,IAAIC,MAAAA,qBAAqB,EAAE,MAAM,CAAC,CAAC;CAC5F,KAAK,SAAS,IAAI,SAAS,IAAI,SAAS,IAAI,SAAS,EAAE;CACvD,KAAK,OAAO;CACZ,OAAO;AACT"}
1
+ {"version":3,"file":"index.cjs","names":["Mesh","BoxGeometry","MeshStandardMaterial"],"sources":["../src/cube.ts"],"sourcesContent":["import { BoxGeometry, Mesh, MeshStandardMaterial, type Object3D } from \"three\";\nimport type { Vec3 } from \"@scenography/scene\";\n\nexport interface CubeOptions {\n /** Edge length in world units. Defaults to `50`. */\n size?: number;\n /** CSS-style color. Defaults to a warm gray. */\n color?: string;\n /** World position `[x, y, z]`. Defaults to the origin. */\n position?: Vec3;\n}\n\n/**\n * The first prop: a simple cube. Props are plain factory functions returning a\n * three.js object, so the catalog stays tree-shakeable and each project can add\n * its own without touching the engine.\n */\nexport function createCube(options: CubeOptions = {}): Object3D {\n const { size = 50, color = \"#b88b5c\", position = [0, 0, 0] } = options;\n const mesh = new Mesh(new BoxGeometry(size, size, size), new MeshStandardMaterial({ color }));\n mesh.position.set(position[0], position[1], position[2]);\n mesh.name = \"prop:cube\";\n return mesh;\n}\n"],"mappings":";;;;;;;;AAiBA,SAAgB,WAAW,UAAuB,CAAC,GAAa;CAC9D,MAAM,EAAE,OAAO,IAAI,QAAQ,WAAW,WAAW;EAAC;EAAG;EAAG;CAAC,MAAM;CAC/D,MAAM,OAAO,IAAIA,MAAAA,KAAK,IAAIC,MAAAA,YAAY,MAAM,MAAM,IAAI,GAAG,IAAIC,MAAAA,qBAAqB,EAAE,MAAM,CAAC,CAAC;CAC5F,KAAK,SAAS,IAAI,SAAS,IAAI,SAAS,IAAI,SAAS,EAAE;CACvD,KAAK,OAAO;CACZ,OAAO;AACT"}
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Object3D } from "three";
2
- import { Vec3 } from "@scenography/core";
2
+ import { Vec3 } from "@scenography/scene";
3
3
 
4
4
  //#region src/cube.d.ts
5
5
  interface CubeOptions {
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Object3D } from "three";
2
- import { Vec3 } from "@scenography/core";
2
+ import { Vec3 } from "@scenography/scene";
3
3
 
4
4
  //#region src/cube.d.ts
5
5
  interface CubeOptions {
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/cube.ts"],"sourcesContent":["import { BoxGeometry, Mesh, MeshStandardMaterial, type Object3D } from \"three\";\nimport type { Vec3 } from \"@scenography/core\";\n\nexport interface CubeOptions {\n /** Edge length in world units. Defaults to `50`. */\n size?: number;\n /** CSS-style color. Defaults to a warm gray. */\n color?: string;\n /** World position `[x, y, z]`. Defaults to the origin. */\n position?: Vec3;\n}\n\n/**\n * The first prop: a simple cube. Props are plain factory functions returning a\n * three.js object, so the catalog stays tree-shakeable and each project can add\n * its own without touching the engine.\n */\nexport function createCube(options: CubeOptions = {}): Object3D {\n const { size = 50, color = \"#b88b5c\", position = [0, 0, 0] } = options;\n const mesh = new Mesh(new BoxGeometry(size, size, size), new MeshStandardMaterial({ color }));\n mesh.position.set(position[0], position[1], position[2]);\n mesh.name = \"prop:cube\";\n return mesh;\n}\n"],"mappings":";;;;;;;AAiBA,SAAgB,WAAW,UAAuB,CAAC,GAAa;CAC9D,MAAM,EAAE,OAAO,IAAI,QAAQ,WAAW,WAAW;EAAC;EAAG;EAAG;CAAC,MAAM;CAC/D,MAAM,OAAO,IAAI,KAAK,IAAI,YAAY,MAAM,MAAM,IAAI,GAAG,IAAI,qBAAqB,EAAE,MAAM,CAAC,CAAC;CAC5F,KAAK,SAAS,IAAI,SAAS,IAAI,SAAS,IAAI,SAAS,EAAE;CACvD,KAAK,OAAO;CACZ,OAAO;AACT"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/cube.ts"],"sourcesContent":["import { BoxGeometry, Mesh, MeshStandardMaterial, type Object3D } from \"three\";\nimport type { Vec3 } from \"@scenography/scene\";\n\nexport interface CubeOptions {\n /** Edge length in world units. Defaults to `50`. */\n size?: number;\n /** CSS-style color. Defaults to a warm gray. */\n color?: string;\n /** World position `[x, y, z]`. Defaults to the origin. */\n position?: Vec3;\n}\n\n/**\n * The first prop: a simple cube. Props are plain factory functions returning a\n * three.js object, so the catalog stays tree-shakeable and each project can add\n * its own without touching the engine.\n */\nexport function createCube(options: CubeOptions = {}): Object3D {\n const { size = 50, color = \"#b88b5c\", position = [0, 0, 0] } = options;\n const mesh = new Mesh(new BoxGeometry(size, size, size), new MeshStandardMaterial({ color }));\n mesh.position.set(position[0], position[1], position[2]);\n mesh.name = \"prop:cube\";\n return mesh;\n}\n"],"mappings":";;;;;;;AAiBA,SAAgB,WAAW,UAAuB,CAAC,GAAa;CAC9D,MAAM,EAAE,OAAO,IAAI,QAAQ,WAAW,WAAW;EAAC;EAAG;EAAG;CAAC,MAAM;CAC/D,MAAM,OAAO,IAAI,KAAK,IAAI,YAAY,MAAM,MAAM,IAAI,GAAG,IAAI,qBAAqB,EAAE,MAAM,CAAC,CAAC;CAC5F,KAAK,SAAS,IAAI,SAAS,IAAI,SAAS,IAAI,SAAS,EAAE;CACvD,KAAK,OAAO;CACZ,OAAO;AACT"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scenography/props",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "description": "Optional, tree-shakeable catalog of ready-made set-dressing objects (props) for scenography galleries.",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -23,7 +23,7 @@
23
23
  }
24
24
  },
25
25
  "dependencies": {
26
- "@scenography/core": "0.1.0"
26
+ "@scenography/scene": "0.3.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/three": "^0.160.0",