From 534d80a41b82e59f4a1feac1adb56c958d4c32a2 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 13 Jan 2021 06:57:26 +0000 Subject: [PATCH] chore(release): 1.0.12 [skip ci] ## [1.0.12](https://github.com/6eDesign/svelte-three-mograph/compare/v1.0.11...v1.0.12) (2021-01-13) ### Bug Fixes * Update demo and add components: ([a2a9c58](https://github.com/6eDesign/svelte-three-mograph/commit/a2a9c58dd12fe19d76cbabfebcf995d40a2466d3)) --- CHANGELOG.md | 7 + docs/_dist_/App.js | 224 +++++++++----- docs/_dist_/OrbitExample.js | 277 ++++++++++++++---- docs/_dist_/components/Scene.js | 82 ++++-- docs/_dist_/components/index.js | 3 + docs/_dist_/components/lights/PointLight.js | 48 +++ docs/_dist_/components/lights/index.js | 6 +- docs/_dist_/components/materials/Material.js | 92 ++++++ docs/_dist_/components/numbers/RandomColor.js | 71 +++++ docs/_dist_/components/numbers/index.js | 3 + docs/_dist_/components/primitives/Plane.js | 110 +++++++ .../_dist_/components/primitives/Primitive.js | 23 +- docs/_dist_/components/primitives/index.js | 4 +- .../{index-452c186e.js => index-a391cc2f.js} | 13 +- docs/web_modules/svelte.js | 2 +- docs/web_modules/svelte/internal.js | 2 +- docs/web_modules/svelte/store.js | 2 +- docs/web_modules/three.js | 2 +- package.json | 2 +- 19 files changed, 795 insertions(+), 178 deletions(-) create mode 100644 docs/_dist_/components/lights/PointLight.js create mode 100644 docs/_dist_/components/materials/Material.js create mode 100644 docs/_dist_/components/numbers/RandomColor.js create mode 100644 docs/_dist_/components/numbers/index.js create mode 100644 docs/_dist_/components/primitives/Plane.js rename docs/web_modules/common/{index-452c186e.js => index-a391cc2f.js} (93%) diff --git a/CHANGELOG.md b/CHANGELOG.md index e6928d3..743607a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.0.12](https://github.com/6eDesign/svelte-three-mograph/compare/v1.0.11...v1.0.12) (2021-01-13) + + +### Bug Fixes + +* Update demo and add components: ([a2a9c58](https://github.com/6eDesign/svelte-three-mograph/commit/a2a9c58dd12fe19d76cbabfebcf995d40a2466d3)) + ## [1.0.11](https://github.com/6eDesign/svelte-three-mograph/compare/v1.0.10...v1.0.11) (2021-01-12) diff --git a/docs/_dist_/App.js b/docs/_dist_/App.js index a150571..a863440 100644 --- a/docs/_dist_/App.js +++ b/docs/_dist_/App.js @@ -2,10 +2,7 @@ import './App.css.proxy.js'; /* src/App.svelte generated by Svelte v3.31.2 */ import { SvelteComponent, - add_flush_callback, add_render_callback, - bind, - binding_callbacks, check_outros, create_component, destroy_component, @@ -22,32 +19,30 @@ import { transition_out } from "../web_modules/svelte/internal.js"; -import { Scene, lights, mograph, primitives } from "./components/index.js"; +import { + Scene, + Material, + numbers, + lights, + mograph, + primitives +} from "./components/index.js"; + import OrbitExample from "./OrbitExample.js"; function create_if_block(ctx) { let scene; - let updating_ctx; let current; - function scene_ctx_binding(value) { - /*scene_ctx_binding*/ ctx[10].call(null, value); - } - - let scene_props = { - background: "#000", - width: /*width*/ ctx[1], - height: /*height*/ ctx[2], - $$slots: { default: [create_default_slot] }, - $$scope: { ctx } - }; - - if (/*sceneCtx*/ ctx[0] !== void 0) { - scene_props.ctx = /*sceneCtx*/ ctx[0]; - } - - scene = new Scene({ props: scene_props }); - binding_callbacks.push(() => bind(scene, "ctx", scene_ctx_binding)); + scene = new Scene({ + props: { + background: "#000", + width: /*width*/ ctx[0], + height: /*height*/ ctx[1], + $$slots: { default: [create_default_slot] }, + $$scope: { ctx } + } + }); return { c() { @@ -59,19 +54,13 @@ function create_if_block(ctx) { }, p(ctx, dirty) { const scene_changes = {}; - if (dirty & /*width*/ 2) scene_changes.width = /*width*/ ctx[1]; - if (dirty & /*height*/ 4) scene_changes.height = /*height*/ ctx[2]; + if (dirty & /*width*/ 1) scene_changes.width = /*width*/ ctx[0]; + if (dirty & /*height*/ 2) scene_changes.height = /*height*/ ctx[1]; - if (dirty & /*$$scope, emitterPosition*/ 16392) { + if (dirty & /*$$scope*/ 65536) { scene_changes.$$scope = { dirty, ctx }; } - if (!updating_ctx && dirty & /*sceneCtx*/ 1) { - updating_ctx = true; - scene_changes.ctx = /*sceneCtx*/ ctx[0]; - add_flush_callback(() => updating_ctx = false); - } - scene.$set(scene_changes); }, i(local) { @@ -89,17 +78,16 @@ function create_if_block(ctx) { }; } -// (28:4) -function create_default_slot_1(ctx) { +// (45:8) +function create_default_slot_3(ctx) { let icosahedron; let current; - icosahedron = new /*Icosahedron*/ ctx[5]({ + icosahedron = new /*Icosahedron*/ ctx[4]({ props: { - size: 0.13, - position: /*position*/ ctx[12], - rotation: /*rotation*/ ctx[13], - color: "#fff" + size: 0.1, + position: /*position*/ ctx[13], + rotation: /*rotation*/ ctx[14] } }); @@ -113,8 +101,8 @@ function create_default_slot_1(ctx) { }, p(ctx, dirty) { const icosahedron_changes = {}; - if (dirty & /*position*/ 4096) icosahedron_changes.position = /*position*/ ctx[12]; - if (dirty & /*rotation*/ 8192) icosahedron_changes.rotation = /*rotation*/ ctx[13]; + if (dirty & /*position*/ 8192) icosahedron_changes.position = /*position*/ ctx[13]; + if (dirty & /*rotation*/ 16384) icosahedron_changes.rotation = /*rotation*/ ctx[14]; icosahedron.$set(icosahedron_changes); }, i(local) { @@ -132,7 +120,105 @@ function create_default_slot_1(ctx) { }; } -// (25:2) +// (44:6) +function create_default_slot_2(ctx) { + let material; + let current; + + material = new Material({ + props: { + roughness: 1, + metalness: 0.1, + color: /*color*/ ctx[15], + $$slots: { default: [create_default_slot_3] }, + $$scope: { ctx } + } + }); + + return { + c() { + create_component(material.$$.fragment); + }, + m(target, anchor) { + mount_component(material, target, anchor); + current = true; + }, + p(ctx, dirty) { + const material_changes = {}; + if (dirty & /*color*/ 32768) material_changes.color = /*color*/ ctx[15]; + + if (dirty & /*$$scope, position, rotation*/ 90112) { + material_changes.$$scope = { dirty, ctx }; + } + + material.$set(material_changes); + }, + i(local) { + if (current) return; + transition_in(material.$$.fragment, local); + current = true; + }, + o(local) { + transition_out(material.$$.fragment, local); + current = false; + }, + d(detaching) { + destroy_component(material, detaching); + } + }; +} + +// (32:4) +function create_default_slot_1(ctx) { + let randomcolor; + let current; + + randomcolor = new /*RandomColor*/ ctx[2]({ + props: { + $$slots: { + default: [ + create_default_slot_2, + ({ color }) => ({ 15: color }), + ({ color }) => color ? 32768 : 0 + ] + }, + $$scope: { ctx } + } + }); + + return { + c() { + create_component(randomcolor.$$.fragment); + }, + m(target, anchor) { + mount_component(randomcolor, target, anchor); + current = true; + }, + p(ctx, dirty) { + const randomcolor_changes = {}; + + if (dirty & /*$$scope, color, position, rotation*/ 122880) { + randomcolor_changes.$$scope = { dirty, ctx }; + } + + randomcolor.$set(randomcolor_changes); + }, + i(local) { + if (current) return; + transition_in(randomcolor.$$.fragment, local); + current = true; + }, + o(local) { + transition_out(randomcolor.$$.fragment, local); + current = false; + }, + d(detaching) { + destroy_component(randomcolor, detaching); + } + }; +} + +// (28:2) function create_default_slot(ctx) { let ambientlight; let t0; @@ -142,24 +228,24 @@ function create_default_slot(ctx) { let t2; let orbitexample; let current; - ambientlight = new /*AmbientLight*/ ctx[6]({}); - directionallight = new /*DirectionalLight*/ ctx[7]({}); + ambientlight = new /*AmbientLight*/ ctx[5]({}); + directionallight = new /*DirectionalLight*/ ctx[6]({}); - emitter = new /*Emitter*/ ctx[4]({ + emitter = new /*Emitter*/ ctx[3]({ props: { - position: /*emitterPosition*/ ctx[3], - size: [22, 3, 0.5], + position: /*emitterPosition*/ ctx[7], + size: [12, 3, 0.5], direction: [0, 0, 2], directionVariance: 0.4, - velocity: 0.25, + velocity: 0.45, lifespan: 3000, forces: [/*gravity*/ ctx[8]], - particlesPerSecond: 350, + particlesPerSecond: 150, $$slots: { default: [ create_default_slot_1, - ({ position, rotation }) => ({ 12: position, 13: rotation }), - ({ position, rotation }) => (position ? 4096 : 0) | (rotation ? 8192 : 0) + ({ position, rotation }) => ({ 13: position, 14: rotation }), + ({ position, rotation }) => (position ? 8192 : 0) | (rotation ? 16384 : 0) ] }, $$scope: { ctx } @@ -190,9 +276,8 @@ function create_default_slot(ctx) { }, p(ctx, dirty) { const emitter_changes = {}; - if (dirty & /*emitterPosition*/ 8) emitter_changes.position = /*emitterPosition*/ ctx[3]; - if (dirty & /*$$scope, position, rotation*/ 28672) { + if (dirty & /*$$scope, position, rotation*/ 90112) { emitter_changes.$$scope = { dirty, ctx }; } @@ -231,7 +316,7 @@ function create_fragment(ctx) { let mounted; let dispose; add_render_callback(/*onwindowresize*/ ctx[9]); - let if_block = /*width*/ ctx[1] && /*height*/ ctx[2] && create_if_block(ctx); + let if_block = /*width*/ ctx[0] && /*height*/ ctx[1] && create_if_block(ctx); return { c() { @@ -249,11 +334,11 @@ function create_fragment(ctx) { } }, p(ctx, [dirty]) { - if (/*width*/ ctx[1] && /*height*/ ctx[2]) { + if (/*width*/ ctx[0] && /*height*/ ctx[1]) { if (if_block) { if_block.p(ctx, dirty); - if (dirty & /*width, height*/ 6) { + if (dirty & /*width, height*/ 3) { transition_in(if_block, 1); } } else { @@ -291,8 +376,9 @@ function create_fragment(ctx) { } function instance($$self, $$props, $$invalidate) { + const { RandomColor } = numbers; const { Emitter, Forces } = mograph; - const { Icosahedron } = primitives; + const { Icosahedron, Plane } = primitives; const { AmbientLight, DirectionalLight } = lights; let width; let height; @@ -301,35 +387,21 @@ function instance($$self, $$props, $$invalidate) { const gravity = particle => particle.getVector(0, -0.0001, 0); function onwindowresize() { - $$invalidate(1, width = window.innerWidth) - $$invalidate(2, height = window.innerHeight) - } - - function scene_ctx_binding(value) { - sceneCtx = value; - $$invalidate(0, sceneCtx); + $$invalidate(0, width = window.innerWidth) + $$invalidate(1, height = window.innerHeight) } - $$self.$$.update = () => { - if ($$self.$$.dirty & /*sceneCtx*/ 1) { - $: sceneCtx && sceneCtx.time.subscribe(t => { - $$invalidate(3, emitterPosition[0] = Math.sin(t / 1000), emitterPosition); - }); - } - }; - return [ - sceneCtx, width, height, - emitterPosition, + RandomColor, Emitter, Icosahedron, AmbientLight, DirectionalLight, + emitterPosition, gravity, - onwindowresize, - scene_ctx_binding + onwindowresize ]; } diff --git a/docs/_dist_/OrbitExample.js b/docs/_dist_/OrbitExample.js index a11960c..41d9779 100644 --- a/docs/_dist_/OrbitExample.js +++ b/docs/_dist_/OrbitExample.js @@ -17,26 +17,33 @@ import { transition_out } from "../web_modules/svelte/internal.js"; -import { Scene, lights, mograph, primitives } from "./components/index.js"; +import { + Scene, + Material, + numbers, + lights, + mograph, + primitives +} from "./components/index.js"; + import { Vector3 } from "../web_modules/three.js"; import { random, addVariance } from "./utils/index.js"; function get_each_context(ctx, list, i) { const child_ctx = ctx.slice(); - child_ctx[20] = list[i]; + child_ctx[22] = list[i]; return child_ctx; } -// (63:0) -function create_default_slot_1(ctx) { +// (73:2) +function create_default_slot_4(ctx) { let icosahedron; let current; - icosahedron = new /*Icosahedron*/ ctx[2]({ + icosahedron = new /*Icosahedron*/ ctx[4]({ props: { - color: "#f7901e", size: 1, - rotation: /*rotation*/ ctx[23], + rotation: /*rotation*/ ctx[25], position: /*position*/ ctx[0] } }); @@ -51,7 +58,7 @@ function create_default_slot_1(ctx) { }, p(ctx, dirty) { const icosahedron_changes = {}; - if (dirty & /*rotation*/ 8388608) icosahedron_changes.rotation = /*rotation*/ ctx[23]; + if (dirty & /*rotation*/ 33554432) icosahedron_changes.rotation = /*rotation*/ ctx[25]; if (dirty & /*position*/ 1) icosahedron_changes.position = /*position*/ ctx[0]; icosahedron.$set(icosahedron_changes); }, @@ -70,34 +77,78 @@ function create_default_slot_1(ctx) { }; } -// (68:2) -function create_default_slot(ctx) { +// (72:0) +function create_default_slot_3(ctx) { + let material; + let current; + + material = new Material({ + props: { + color: "#fff", + metalness: 0.8, + roughness: 0.7, + $$slots: { default: [create_default_slot_4] }, + $$scope: { ctx } + } + }); + + return { + c() { + create_component(material.$$.fragment); + }, + m(target, anchor) { + mount_component(material, target, anchor); + current = true; + }, + p(ctx, dirty) { + const material_changes = {}; + + if (dirty & /*$$scope, rotation, position*/ 167772161) { + material_changes.$$scope = { dirty, ctx }; + } + + material.$set(material_changes); + }, + i(local) { + if (current) return; + transition_in(material.$$.fragment, local); + current = true; + }, + o(local) { + transition_out(material.$$.fragment, local); + current = false; + }, + d(detaching) { + destroy_component(material, detaching); + } + }; +} + +// (88:6) +function create_default_slot_2(ctx) { let icosahedron; - let t; let current; - icosahedron = new /*Icosahedron*/ ctx[2]({ + icosahedron = new /*Icosahedron*/ ctx[4]({ props: { size: 0.01 + Math.random() * 0.05, position: /*position*/ ctx[0], - rotation: /*rotation*/ ctx[23] + rotation: /*rotation*/ ctx[25] } }); return { c() { create_component(icosahedron.$$.fragment); - t = space(); }, m(target, anchor) { mount_component(icosahedron, target, anchor); - insert(target, t, anchor); current = true; }, p(ctx, dirty) { const icosahedron_changes = {}; if (dirty & /*position*/ 1) icosahedron_changes.position = /*position*/ ctx[0]; - if (dirty & /*rotation*/ 8388608) icosahedron_changes.rotation = /*rotation*/ ctx[23]; + if (dirty & /*rotation*/ 33554432) icosahedron_changes.rotation = /*rotation*/ ctx[25]; icosahedron.$set(icosahedron_changes); }, i(local) { @@ -111,35 +162,159 @@ function create_default_slot(ctx) { }, d(detaching) { destroy_component(icosahedron, detaching); + } + }; +} + +// (87:4) +function create_default_slot_1(ctx) { + let material; + let t; + let pointlight; + let current; + + material = new Material({ + props: { + metalness: 0.2, + roughness: 0.8, + color: /*color*/ ctx[26], + $$slots: { default: [create_default_slot_2] }, + $$scope: { ctx } + } + }); + + pointlight = new /*PointLight*/ ctx[3]({ + props: { + position: /*position*/ ctx[0], + intensity: 1, + distance: 1.8, + color: /*color*/ ctx[26] + } + }); + + return { + c() { + create_component(material.$$.fragment); + t = space(); + create_component(pointlight.$$.fragment); + }, + m(target, anchor) { + mount_component(material, target, anchor); + insert(target, t, anchor); + mount_component(pointlight, target, anchor); + current = true; + }, + p(ctx, dirty) { + const material_changes = {}; + if (dirty & /*color*/ 67108864) material_changes.color = /*color*/ ctx[26]; + + if (dirty & /*$$scope, position, rotation*/ 167772161) { + material_changes.$$scope = { dirty, ctx }; + } + + material.$set(material_changes); + const pointlight_changes = {}; + if (dirty & /*position*/ 1) pointlight_changes.position = /*position*/ ctx[0]; + if (dirty & /*color*/ 67108864) pointlight_changes.color = /*color*/ ctx[26]; + pointlight.$set(pointlight_changes); + }, + i(local) { + if (current) return; + transition_in(material.$$.fragment, local); + transition_in(pointlight.$$.fragment, local); + current = true; + }, + o(local) { + transition_out(material.$$.fragment, local); + transition_out(pointlight.$$.fragment, local); + current = false; + }, + d(detaching) { + destroy_component(material, detaching); + if (detaching) detach(t); + destroy_component(pointlight, detaching); + } + }; +} + +// (79:2) +function create_default_slot(ctx) { + let randomcolor; + let t; + let current; + + randomcolor = new /*RandomColor*/ ctx[1]({ + props: { + $$slots: { + default: [ + create_default_slot_1, + ({ color }) => ({ 26: color }), + ({ color }) => color ? 67108864 : 0 + ] + }, + $$scope: { ctx } + } + }); + + return { + c() { + create_component(randomcolor.$$.fragment); + t = space(); + }, + m(target, anchor) { + mount_component(randomcolor, target, anchor); + insert(target, t, anchor); + current = true; + }, + p(ctx, dirty) { + const randomcolor_changes = {}; + + if (dirty & /*$$scope, position, color, rotation*/ 234881025) { + randomcolor_changes.$$scope = { dirty, ctx }; + } + + randomcolor.$set(randomcolor_changes); + }, + i(local) { + if (current) return; + transition_in(randomcolor.$$.fragment, local); + current = true; + }, + o(local) { + transition_out(randomcolor.$$.fragment, local); + current = false; + }, + d(detaching) { + destroy_component(randomcolor, detaching); if (detaching) detach(t); } }; } -// (67:0) {#each orbiters as orbiter} +// (78:0) {#each orbiters as orbiter} function create_each_block(ctx) { let forces; let current; - forces = new /*Forces*/ ctx[1]({ + forces = new /*Forces*/ ctx[2]({ props: { position: [ - /*orbiter*/ ctx[20].position.x, - /*orbiter*/ ctx[20].position.y, - /*orbiter*/ ctx[20].position.z + /*orbiter*/ ctx[22].position.x, + /*orbiter*/ ctx[22].position.y, + /*orbiter*/ ctx[22].position.z ], velocity: [ - /*orbiter*/ ctx[20].velocity.x, - /*orbiter*/ ctx[20].velocity.y, - /*orbiter*/ ctx[20].velocity.z + /*orbiter*/ ctx[22].velocity.x, + /*orbiter*/ ctx[22].velocity.y, + /*orbiter*/ ctx[22].velocity.z ], rotationalVelocity: [0.02, 0.02, 0.02], - forces: [/*orbit*/ ctx[4](/*orbiter*/ ctx[20].radius, [0, 0, 0])], + forces: [/*orbit*/ ctx[6](/*orbiter*/ ctx[22].radius, [0, 0, 0])], $$slots: { default: [ create_default_slot, - ({ position, rotation }) => ({ 0: position, 23: rotation }), - ({ position, rotation }) => (position ? 1 : 0) | (rotation ? 8388608 : 0) + ({ position, rotation }) => ({ 0: position, 25: rotation }), + ({ position, rotation }) => (position ? 1 : 0) | (rotation ? 33554432 : 0) ] }, $$scope: { ctx } @@ -157,7 +332,7 @@ function create_each_block(ctx) { p(ctx, dirty) { const forces_changes = {}; - if (dirty & /*$$scope, position, rotation*/ 25165825) { + if (dirty & /*$$scope, position, rotation*/ 167772161) { forces_changes.$$scope = { dirty, ctx }; } @@ -184,21 +359,21 @@ function create_fragment(ctx) { let each_1_anchor; let current; - forces = new /*Forces*/ ctx[1]({ + forces = new /*Forces*/ ctx[2]({ props: { rotationalVelocity: [0.03, 0.03, 0.03], $$slots: { default: [ - create_default_slot_1, - ({ rotation, position }) => ({ 23: rotation, 0: position }), - ({ rotation, position }) => (rotation ? 8388608 : 0) | (position ? 1 : 0) + create_default_slot_3, + ({ rotation, position }) => ({ 25: rotation, 0: position }), + ({ rotation, position }) => (rotation ? 33554432 : 0) | (position ? 1 : 0) ] }, $$scope: { ctx } } }); - let each_value = /*orbiters*/ ctx[3]; + let each_value = /*orbiters*/ ctx[5]; let each_blocks = []; for (let i = 0; i < each_value.length; i += 1) { @@ -234,14 +409,14 @@ function create_fragment(ctx) { p(ctx, [dirty]) { const forces_changes = {}; - if (dirty & /*$$scope, rotation, position*/ 25165825) { + if (dirty & /*$$scope, rotation, position*/ 167772161) { forces_changes.$$scope = { dirty, ctx }; } forces.$set(forces_changes); - if (dirty & /*orbiters, orbit, Math, position, rotation*/ 8388633) { - each_value = /*orbiters*/ ctx[3]; + if (dirty & /*orbiters, orbit, position, color, Math, rotation*/ 100663393) { + each_value = /*orbiters*/ ctx[5]; let i; for (i = 0; i < each_value.length; i += 1) { @@ -297,12 +472,14 @@ function create_fragment(ctx) { } function instance($$self, $$props, $$invalidate) { + const { RandomColor } = numbers; const { Emitter, Forces } = mograph; + const { PointLight } = lights; const { Cube, Icosahedron, Octahedron, Sphere, Tetrahedron, Torus, TorusKnot } = primitives; let { position = [0, 0, 0] } = $$props; - let { radius = 1.3 } = $$props; - let { orbitingCount = 100 } = $$props; - let { velocity = 0.008 } = $$props; + let { radius = 1.6 } = $$props; + let { orbitingCount = 18 } = $$props; + let { velocity = 0.01 } = $$props; let { velocityVariance = 0.09 } = $$props; let { radiusVariance = 0.8 } = $$props; const varyRadius = addVariance(radiusVariance); @@ -330,16 +507,18 @@ function instance($$self, $$props, $$invalidate) { $$self.$$set = $$props => { if ("position" in $$props) $$invalidate(0, position = $$props.position); - if ("radius" in $$props) $$invalidate(5, radius = $$props.radius); - if ("orbitingCount" in $$props) $$invalidate(6, orbitingCount = $$props.orbitingCount); - if ("velocity" in $$props) $$invalidate(7, velocity = $$props.velocity); - if ("velocityVariance" in $$props) $$invalidate(8, velocityVariance = $$props.velocityVariance); - if ("radiusVariance" in $$props) $$invalidate(9, radiusVariance = $$props.radiusVariance); + if ("radius" in $$props) $$invalidate(7, radius = $$props.radius); + if ("orbitingCount" in $$props) $$invalidate(8, orbitingCount = $$props.orbitingCount); + if ("velocity" in $$props) $$invalidate(9, velocity = $$props.velocity); + if ("velocityVariance" in $$props) $$invalidate(10, velocityVariance = $$props.velocityVariance); + if ("radiusVariance" in $$props) $$invalidate(11, radiusVariance = $$props.radiusVariance); }; return [ position, + RandomColor, Forces, + PointLight, Icosahedron, orbiters, orbit, @@ -357,11 +536,11 @@ class OrbitExample extends SvelteComponent { init(this, options, instance, create_fragment, safe_not_equal, { position: 0, - radius: 5, - orbitingCount: 6, - velocity: 7, - velocityVariance: 8, - radiusVariance: 9 + radius: 7, + orbitingCount: 8, + velocity: 9, + velocityVariance: 10, + radiusVariance: 11 }); } } diff --git a/docs/_dist_/components/Scene.js b/docs/_dist_/components/Scene.js index 31eda21..df4d1c7 100644 --- a/docs/_dist_/components/Scene.js +++ b/docs/_dist_/components/Scene.js @@ -2,11 +2,14 @@ import { SvelteComponent, binding_callbacks, + create_component, create_slot, + destroy_component, detach, element, init, insert, + mount_component, safe_not_equal, space, transition_in, @@ -17,35 +20,28 @@ import { import { onMount, setContext } from "../../web_modules/svelte.js"; import { writable } from "../../web_modules/svelte/store.js"; import { Scene, Color, PerspectiveCamera, WebGLRenderer } from "../../web_modules/three.js"; +import { Material } from "./index.js"; -function create_fragment(ctx) { - let div; - let t; +function create_default_slot(ctx) { let current; - const default_slot_template = /*#slots*/ ctx[6].default; - const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[5], null); + const default_slot_template = /*#slots*/ ctx[5].default; + const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[7], null); return { c() { - div = element("div"); - t = space(); if (default_slot) default_slot.c(); }, m(target, anchor) { - insert(target, div, anchor); - /*div_binding*/ ctx[7](div); - insert(target, t, anchor); - if (default_slot) { default_slot.m(target, anchor); } current = true; }, - p(ctx, [dirty]) { + p(ctx, dirty) { if (default_slot) { - if (default_slot.p && dirty & /*$$scope*/ 32) { - update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[5], dirty, null, null); + if (default_slot.p && dirty & /*$$scope*/ 128) { + update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[7], dirty, null, null); } } }, @@ -58,11 +54,61 @@ function create_fragment(ctx) { transition_out(default_slot, local); current = false; }, + d(detaching) { + if (default_slot) default_slot.d(detaching); + } + }; +} + +function create_fragment(ctx) { + let div; + let t; + let material; + let current; + + material = new Material({ + props: { + $$slots: { default: [create_default_slot] }, + $$scope: { ctx } + } + }); + + return { + c() { + div = element("div"); + t = space(); + create_component(material.$$.fragment); + }, + m(target, anchor) { + insert(target, div, anchor); + /*div_binding*/ ctx[6](div); + insert(target, t, anchor); + mount_component(material, target, anchor); + current = true; + }, + p(ctx, [dirty]) { + const material_changes = {}; + + if (dirty & /*$$scope*/ 128) { + material_changes.$$scope = { dirty, ctx }; + } + + material.$set(material_changes); + }, + i(local) { + if (current) return; + transition_in(material.$$.fragment, local); + current = true; + }, + o(local) { + transition_out(material.$$.fragment, local); + current = false; + }, d(detaching) { if (detaching) detach(div); - /*div_binding*/ ctx[7](null); + /*div_binding*/ ctx[6](null); if (detaching) detach(t); - if (default_slot) default_slot.d(detaching); + destroy_component(material, detaching); } }; } @@ -114,7 +160,7 @@ function instance($$self, $$props, $$invalidate) { if ("width" in $$props) $$invalidate(1, width = $$props.width); if ("height" in $$props) $$invalidate(2, height = $$props.height); if ("background" in $$props) $$invalidate(3, background = $$props.background); - if ("$$scope" in $$props) $$invalidate(5, $$scope = $$props.$$scope); + if ("$$scope" in $$props) $$invalidate(7, $$scope = $$props.$$scope); }; $$self.$$.update = () => { @@ -123,7 +169,7 @@ function instance($$self, $$props, $$invalidate) { } }; - return [target, width, height, background, ctx, $$scope, slots, div_binding]; + return [target, width, height, background, ctx, slots, div_binding, $$scope]; } class Scene_1 extends SvelteComponent { diff --git a/docs/_dist_/components/index.js b/docs/_dist_/components/index.js index 3536947..0147f9c 100644 --- a/docs/_dist_/components/index.js +++ b/docs/_dist_/components/index.js @@ -1,6 +1,9 @@ import SceneComponent from './Scene.js'; +import MaterialComponent from './materials/Material.js'; export * as lights from './lights/index.js'; export * as mograph from './mograph/index.js'; export * as primitives from './primitives/index.js'; +export * as numbers from './numbers/index.js'; export const Scene = SceneComponent; +export const Material = MaterialComponent; diff --git a/docs/_dist_/components/lights/PointLight.js b/docs/_dist_/components/lights/PointLight.js new file mode 100644 index 0000000..c0a0fca --- /dev/null +++ b/docs/_dist_/components/lights/PointLight.js @@ -0,0 +1,48 @@ +/* src/components/lights/PointLight.svelte generated by Svelte v3.31.2 */ +import { SvelteComponent, init, safe_not_equal } from "../../../web_modules/svelte/internal.js"; + +import { PointLight } from "../../../web_modules/three.js"; +import { getContext } from "../../../web_modules/svelte.js"; + +function instance($$self, $$props, $$invalidate) { + let { color = 4210752 } = $$props; + let { intensity = 1 } = $$props; + let { distance = 0 } = $$props; + let { decay = 2 } = $$props; + let { position = [0, 0, 0] } = $$props; + const light = new PointLight(color, intensity, distance, decay); + const sceneCtx = getContext("sceneCtx"); + sceneCtx.scene.add(light); + + $$self.$$set = $$props => { + if ("color" in $$props) $$invalidate(0, color = $$props.color); + if ("intensity" in $$props) $$invalidate(1, intensity = $$props.intensity); + if ("distance" in $$props) $$invalidate(2, distance = $$props.distance); + if ("decay" in $$props) $$invalidate(3, decay = $$props.decay); + if ("position" in $$props) $$invalidate(4, position = $$props.position); + }; + + $$self.$$.update = () => { + if ($$self.$$.dirty & /*position*/ 16) { + $: light.position.set(...position); + } + }; + + return [color, intensity, distance, decay, position]; +} + +class PointLight_1 extends SvelteComponent { + constructor(options) { + super(); + + init(this, options, instance, null, safe_not_equal, { + color: 0, + intensity: 1, + distance: 2, + decay: 3, + position: 4 + }); + } +} + +export default PointLight_1; \ No newline at end of file diff --git a/docs/_dist_/components/lights/index.js b/docs/_dist_/components/lights/index.js index 28faafd..0895cc6 100644 --- a/docs/_dist_/components/lights/index.js +++ b/docs/_dist_/components/lights/index.js @@ -1,7 +1,5 @@ import AmbientLight from './AmbientLight.js'; import DirectionalLight from './DirectionalLight.js'; +import PointLight from './PointLight.js'; -export { - AmbientLight, - DirectionalLight, -}; \ No newline at end of file +export { AmbientLight, DirectionalLight, PointLight }; diff --git a/docs/_dist_/components/materials/Material.js b/docs/_dist_/components/materials/Material.js new file mode 100644 index 0000000..e1afe53 --- /dev/null +++ b/docs/_dist_/components/materials/Material.js @@ -0,0 +1,92 @@ +/* src/components/materials/Material.svelte generated by Svelte v3.31.2 */ +import { + SvelteComponent, + assign, + create_slot, + exclude_internal_props, + init, + safe_not_equal, + transition_in, + transition_out, + update_slot +} from "../../../web_modules/svelte/internal.js"; + +import { MeshStandardMaterial } from "../../../web_modules/three.js"; +import { setContext } from "../../../web_modules/svelte.js"; +import { writable } from "../../../web_modules/svelte/store.js"; + +function create_fragment(ctx) { + let current; + const default_slot_template = /*#slots*/ ctx[4].default; + const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[3], null); + + return { + c() { + if (default_slot) default_slot.c(); + }, + m(target, anchor) { + if (default_slot) { + default_slot.m(target, anchor); + } + + current = true; + }, + p(ctx, [dirty]) { + if (default_slot) { + if (default_slot.p && dirty & /*$$scope*/ 8) { + update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[3], dirty, null, null); + } + } + }, + i(local) { + if (current) return; + transition_in(default_slot, local); + current = true; + }, + o(local) { + transition_out(default_slot, local); + current = false; + }, + d(detaching) { + if (default_slot) default_slot.d(detaching); + } + }; +} + +function instance($$self, $$props, $$invalidate) { + let { $$slots: slots = {}, $$scope } = $$props; + let { metalness = 0.8 } = $$props; + let { roughness = 0.2 } = $$props; + let { color = Math.random() * 16777215 } = $$props; + const material = new MeshStandardMaterial({ metalness, roughness, color }); + setContext("material", material); + + $$self.$$set = $$new_props => { + $$invalidate(6, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); + if ("metalness" in $$new_props) $$invalidate(0, metalness = $$new_props.metalness); + if ("roughness" in $$new_props) $$invalidate(1, roughness = $$new_props.roughness); + if ("color" in $$new_props) $$invalidate(2, color = $$new_props.color); + if ("$$scope" in $$new_props) $$invalidate(3, $$scope = $$new_props.$$scope); + }; + + $$self.$$.update = () => { + $: Object.entries($$props, ([key, val]) => { + update(mat => { + mat[key] = val; + return mat; + }); + }); + }; + + $$props = exclude_internal_props($$props); + return [metalness, roughness, color, $$scope, slots]; +} + +class Material extends SvelteComponent { + constructor(options) { + super(); + init(this, options, instance, create_fragment, safe_not_equal, { metalness: 0, roughness: 1, color: 2 }); + } +} + +export default Material; \ No newline at end of file diff --git a/docs/_dist_/components/numbers/RandomColor.js b/docs/_dist_/components/numbers/RandomColor.js new file mode 100644 index 0000000..7dd4827 --- /dev/null +++ b/docs/_dist_/components/numbers/RandomColor.js @@ -0,0 +1,71 @@ +/* src/components/numbers/RandomColor.svelte generated by Svelte v3.31.2 */ +import { + SvelteComponent, + create_slot, + init, + safe_not_equal, + transition_in, + transition_out, + update_slot +} from "../../../web_modules/svelte/internal.js"; + +const get_default_slot_changes = dirty => ({}); +const get_default_slot_context = ctx => ({ color: /*color*/ ctx[0] }); + +function create_fragment(ctx) { + let current; + const default_slot_template = /*#slots*/ ctx[2].default; + const default_slot = create_slot(default_slot_template, ctx, /*$$scope*/ ctx[1], get_default_slot_context); + + return { + c() { + if (default_slot) default_slot.c(); + }, + m(target, anchor) { + if (default_slot) { + default_slot.m(target, anchor); + } + + current = true; + }, + p(ctx, [dirty]) { + if (default_slot) { + if (default_slot.p && dirty & /*$$scope*/ 2) { + update_slot(default_slot, default_slot_template, ctx, /*$$scope*/ ctx[1], dirty, get_default_slot_changes, get_default_slot_context); + } + } + }, + i(local) { + if (current) return; + transition_in(default_slot, local); + current = true; + }, + o(local) { + transition_out(default_slot, local); + current = false; + }, + d(detaching) { + if (default_slot) default_slot.d(detaching); + } + }; +} + +function instance($$self, $$props, $$invalidate) { + let { $$slots: slots = {}, $$scope } = $$props; + const color = Math.random() * 16777215; + + $$self.$$set = $$props => { + if ("$$scope" in $$props) $$invalidate(1, $$scope = $$props.$$scope); + }; + + return [color, $$scope, slots]; +} + +class RandomColor extends SvelteComponent { + constructor(options) { + super(); + init(this, options, instance, create_fragment, safe_not_equal, {}); + } +} + +export default RandomColor; \ No newline at end of file diff --git a/docs/_dist_/components/numbers/index.js b/docs/_dist_/components/numbers/index.js new file mode 100644 index 0000000..78f47b8 --- /dev/null +++ b/docs/_dist_/components/numbers/index.js @@ -0,0 +1,3 @@ +import RandomColor from './RandomColor.js'; + +export { RandomColor }; diff --git a/docs/_dist_/components/primitives/Plane.js b/docs/_dist_/components/primitives/Plane.js new file mode 100644 index 0000000..c2cadf5 --- /dev/null +++ b/docs/_dist_/components/primitives/Plane.js @@ -0,0 +1,110 @@ +/* src/components/primitives/Plane.svelte generated by Svelte v3.31.2 */ +import { + SvelteComponent, + assign, + create_component, + destroy_component, + exclude_internal_props, + get_spread_object, + get_spread_update, + init, + mount_component, + safe_not_equal, + transition_in, + transition_out +} from "../../../web_modules/svelte/internal.js"; + +import { PlaneBufferGeometry } from "../../../web_modules/three.js"; +import Primitive from "./Primitive.js"; + +function create_fragment(ctx) { + let primitive; + let current; + + const primitive_spread_levels = [ + { Geometry: PlaneBufferGeometry }, + /*$$props*/ ctx[1], + { size: /*size*/ ctx[0] } + ]; + + let primitive_props = {}; + + for (let i = 0; i < primitive_spread_levels.length; i += 1) { + primitive_props = assign(primitive_props, primitive_spread_levels[i]); + } + + primitive = new Primitive({ props: primitive_props }); + + return { + c() { + create_component(primitive.$$.fragment); + }, + m(target, anchor) { + mount_component(primitive, target, anchor); + current = true; + }, + p(ctx, [dirty]) { + const primitive_changes = (dirty & /*PlaneBufferGeometry, $$props, size*/ 3) + ? get_spread_update(primitive_spread_levels, [ + dirty & /*PlaneBufferGeometry*/ 0 && { Geometry: PlaneBufferGeometry }, + dirty & /*$$props*/ 2 && get_spread_object(/*$$props*/ ctx[1]), + dirty & /*size*/ 1 && { size: /*size*/ ctx[0] } + ]) + : {}; + + primitive.$set(primitive_changes); + }, + i(local) { + if (current) return; + transition_in(primitive.$$.fragment, local); + current = true; + }, + o(local) { + transition_out(primitive.$$.fragment, local); + current = false; + }, + d(detaching) { + destroy_component(primitive, detaching); + } + }; +} + +function instance($$self, $$props, $$invalidate) { + let size; + let { width = 1 } = $$props; + let { height = 1 } = $$props; + let { widthSegments = 1 } = $$props; + let { heightSegments = 1 } = $$props; + + $$self.$$set = $$new_props => { + $$invalidate(1, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props))); + if ("width" in $$new_props) $$invalidate(2, width = $$new_props.width); + if ("height" in $$new_props) $$invalidate(3, height = $$new_props.height); + if ("widthSegments" in $$new_props) $$invalidate(4, widthSegments = $$new_props.widthSegments); + if ("heightSegments" in $$new_props) $$invalidate(5, heightSegments = $$new_props.heightSegments); + }; + + $$self.$$.update = () => { + if ($$self.$$.dirty & /*width, height, widthSegments, heightSegments*/ 60) { + $: $$invalidate(0, size = [width, height, widthSegments, heightSegments]); + } + }; + + $$props = exclude_internal_props($$props); + return [size, $$props, width, height, widthSegments, heightSegments]; +} + +class Plane extends SvelteComponent { + constructor(options) { + super(); + + init(this, options, instance, create_fragment, safe_not_equal, { + width: 2, + height: 3, + widthSegments: 4, + heightSegments: 5 + }); + } +} + +export default Plane; \ No newline at end of file diff --git a/docs/_dist_/components/primitives/Primitive.js b/docs/_dist_/components/primitives/Primitive.js index a649c17..8752415 100644 --- a/docs/_dist_/components/primitives/Primitive.js +++ b/docs/_dist_/components/primitives/Primitive.js @@ -7,12 +7,11 @@ import { MeshPhongMaterial, Mesh } from "../../../web_modules/three.js"; function instance($$self, $$props, $$invalidate) { let { Geometry } = $$props; let { size } = $$props; - let { color = Math.random() * 16777215 } = $$props; let { position = [0, 0, 0] } = $$props; let { rotation = [0, 0, 0] } = $$props; let { renderFn } = $$props; + const material = getContext("material"); const geometry = new Geometry(...size); - const material = new MeshPhongMaterial({ color }); const mesh = new Mesh(geometry, material); const primitive = new Mesh(mesh, material); const sceneCtx = getContext("sceneCtx"); @@ -31,23 +30,22 @@ function instance($$self, $$props, $$invalidate) { $$self.$$set = $$props => { if ("Geometry" in $$props) $$invalidate(0, Geometry = $$props.Geometry); if ("size" in $$props) $$invalidate(1, size = $$props.size); - if ("color" in $$props) $$invalidate(2, color = $$props.color); - if ("position" in $$props) $$invalidate(3, position = $$props.position); - if ("rotation" in $$props) $$invalidate(4, rotation = $$props.rotation); - if ("renderFn" in $$props) $$invalidate(5, renderFn = $$props.renderFn); + if ("position" in $$props) $$invalidate(2, position = $$props.position); + if ("rotation" in $$props) $$invalidate(3, rotation = $$props.rotation); + if ("renderFn" in $$props) $$invalidate(4, renderFn = $$props.renderFn); }; $$self.$$.update = () => { - if ($$self.$$.dirty & /*position*/ 8) { + if ($$self.$$.dirty & /*position*/ 4) { $: mesh.position.set(...position); } - if ($$self.$$.dirty & /*rotation*/ 16) { + if ($$self.$$.dirty & /*rotation*/ 8) { $: mesh.rotation.set(...rotation); } }; - return [Geometry, size, color, position, rotation, renderFn]; + return [Geometry, size, position, rotation, renderFn]; } class Primitive extends SvelteComponent { @@ -57,10 +55,9 @@ class Primitive extends SvelteComponent { init(this, options, instance, null, safe_not_equal, { Geometry: 0, size: 1, - color: 2, - position: 3, - rotation: 4, - renderFn: 5 + position: 2, + rotation: 3, + renderFn: 4 }); } } diff --git a/docs/_dist_/components/primitives/index.js b/docs/_dist_/components/primitives/index.js index 62c8ef3..23d9129 100644 --- a/docs/_dist_/components/primitives/index.js +++ b/docs/_dist_/components/primitives/index.js @@ -1,6 +1,7 @@ import Cube from './Cube.js'; import Icosahedron from './Icosahedron.js'; import Octahedron from './Octahedron.js'; +import Plane from './Plane.js'; import Sphere from './Sphere.js'; import Tetrahedron from './Tetrahedron.js'; import Torus from './Torus.js'; @@ -10,8 +11,9 @@ export { Cube, Icosahedron, Octahedron, + Plane, Sphere, Tetrahedron, Torus, TorusKnot, -}; \ No newline at end of file +}; diff --git a/docs/web_modules/common/index-452c186e.js b/docs/web_modules/common/index-a391cc2f.js similarity index 93% rename from docs/web_modules/common/index-452c186e.js rename to docs/web_modules/common/index-a391cc2f.js index a28ad30..9d6701a 100644 --- a/docs/web_modules/common/index-452c186e.js +++ b/docs/web_modules/common/index-a391cc2f.js @@ -145,9 +145,6 @@ function schedule_update() { function add_render_callback(fn) { render_callbacks.push(fn); } -function add_flush_callback(fn) { - flush_callbacks.push(fn); -} let flushing = false; const seen_callbacks = new Set(); function flush() { @@ -350,14 +347,6 @@ function get_spread_update(levels, updates) { function get_spread_object(spread_props) { return typeof spread_props === 'object' && spread_props !== null ? spread_props : {}; } - -function bind(component, name, callback) { - const index = component.$$.props[name]; - if (index !== undefined) { - component.$$.bound[index] = callback; - callback(component.$$.ctx[index]); - } -} function create_component(block) { block && block.c(); } @@ -483,4 +472,4 @@ class SvelteComponent { } } -export { component_subscribe as A, assign as B, exclude_internal_props as C, get_spread_object as D, get_spread_update as E, element as F, destroy_each as G, noop as H, SvelteComponent as S, onMount as a, add_flush_callback as b, add_render_callback as c, bind as d, binding_callbacks as e, check_outros as f, getContext as g, create_component as h, destroy_component as i, detach as j, empty as k, group_outros as l, init as m, insert as n, onDestroy as o, listen as p, mount_component as q, safe_not_equal as r, setContext as s, space as t, transition_in as u, transition_out as v, create_slot as w, outro_and_destroy_block as x, update_keyed_each as y, update_slot as z }; +export { get_spread_object as A, get_spread_update as B, binding_callbacks as C, element as D, destroy_each as E, noop as F, SvelteComponent as S, onMount as a, add_render_callback as b, check_outros as c, create_component as d, destroy_component as e, detach as f, getContext as g, empty as h, group_outros as i, init as j, insert as k, listen as l, mount_component as m, safe_not_equal as n, onDestroy as o, space as p, transition_out as q, assign as r, setContext as s, transition_in as t, create_slot as u, exclude_internal_props as v, update_slot as w, outro_and_destroy_block as x, update_keyed_each as y, component_subscribe as z }; diff --git a/docs/web_modules/svelte.js b/docs/web_modules/svelte.js index 8aeb70b..62f9376 100644 --- a/docs/web_modules/svelte.js +++ b/docs/web_modules/svelte.js @@ -1 +1 @@ -export { g as getContext, o as onDestroy, a as onMount, s as setContext } from './common/index-452c186e.js'; +export { g as getContext, o as onDestroy, a as onMount, s as setContext } from './common/index-a391cc2f.js'; diff --git a/docs/web_modules/svelte/internal.js b/docs/web_modules/svelte/internal.js index 28a90df..057c7c9 100644 --- a/docs/web_modules/svelte/internal.js +++ b/docs/web_modules/svelte/internal.js @@ -1 +1 @@ -export { S as SvelteComponent, b as add_flush_callback, c as add_render_callback, B as assign, d as bind, e as binding_callbacks, f as check_outros, A as component_subscribe, h as create_component, w as create_slot, i as destroy_component, G as destroy_each, j as detach, F as element, k as empty, C as exclude_internal_props, D as get_spread_object, E as get_spread_update, l as group_outros, m as init, n as insert, p as listen, q as mount_component, x as outro_and_destroy_block, r as safe_not_equal, t as space, u as transition_in, v as transition_out, y as update_keyed_each, z as update_slot } from '../common/index-452c186e.js'; +export { S as SvelteComponent, b as add_render_callback, r as assign, C as binding_callbacks, c as check_outros, z as component_subscribe, d as create_component, u as create_slot, e as destroy_component, E as destroy_each, f as detach, D as element, h as empty, v as exclude_internal_props, A as get_spread_object, B as get_spread_update, i as group_outros, j as init, k as insert, l as listen, m as mount_component, x as outro_and_destroy_block, n as safe_not_equal, p as space, t as transition_in, q as transition_out, y as update_keyed_each, w as update_slot } from '../common/index-a391cc2f.js'; diff --git a/docs/web_modules/svelte/store.js b/docs/web_modules/svelte/store.js index 95af52e..767ee99 100644 --- a/docs/web_modules/svelte/store.js +++ b/docs/web_modules/svelte/store.js @@ -1,4 +1,4 @@ -import { H as noop, r as safe_not_equal } from '../common/index-452c186e.js'; +import { F as noop, n as safe_not_equal } from '../common/index-a391cc2f.js'; const subscriber_queue = []; /** diff --git a/docs/web_modules/three.js b/docs/web_modules/three.js index 1353a83..08c55a4 100644 --- a/docs/web_modules/three.js +++ b/docs/web_modules/three.js @@ -45577,4 +45577,4 @@ if ( typeof __THREE_DEVTOOLS__ !== 'undefined' ) { } -export { AmbientLight, BoxBufferGeometry, Color, DirectionalLight, IcosahedronBufferGeometry, Mesh, MeshPhongMaterial, OctahedronBufferGeometry, PerspectiveCamera, Scene, SphereBufferGeometry, TetrahedronBufferGeometry, TorusBufferGeometry, TorusKnotBufferGeometry, Vector3, WebGLRenderer }; +export { AmbientLight, BoxBufferGeometry, Color, DirectionalLight, IcosahedronBufferGeometry, Mesh, MeshPhongMaterial, MeshStandardMaterial, OctahedronBufferGeometry, PerspectiveCamera, PlaneBufferGeometry, PointLight, Scene, SphereBufferGeometry, TetrahedronBufferGeometry, TorusBufferGeometry, TorusKnotBufferGeometry, Vector3, WebGLRenderer }; diff --git a/package.json b/package.json index 30a7089..5105aa6 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@6edesign/svelte-three", "svelte": "src/components/index.js", "main": "src/components/index.js", - "version": "1.0.11", + "version": "1.0.12", "license": "MIT", "keywords": [ "svelte",