diff --git a/demo/muon-monitor/build.gradle.kts b/demo/muon-monitor/build.gradle.kts index 2ea4d0eb..154d4b0a 100644 --- a/demo/muon-monitor/build.gradle.kts +++ b/demo/muon-monitor/build.gradle.kts @@ -34,8 +34,8 @@ kscience { implementation("ch.qos.logback:logback-classic:1.2.11") } jsMain { - implementation(project(":ui:ring")) - implementation(project(":visionforge-threejs")) + implementation(projects.ui.ring) + implementation(projects.visionforgeThreejs) //implementation(devNpm("webpack-bundle-analyzer", "4.4.0")) } } diff --git a/gradle.properties b/gradle.properties index f38299f2..39926f4b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,5 +6,5 @@ kotlin.incremental.js.ir=true org.gradle.parallel=true org.gradle.jvmargs=-Xmx4G -toolsVersion=0.14.9-kotlin-1.9.0-Beta +toolsVersion=0.14.9-kotlin-1.9.0-Beta-2 org.jetbrains.compose.experimental.jscanvas.enabled=true \ No newline at end of file diff --git a/ui/bootstrap/src/main/kotlin/space/kscience/visionforge/bootstrap/bootstrap.kt b/ui/bootstrap/src/jsMain/kotlin/space/kscience/visionforge/bootstrap/bootstrap.kt similarity index 100% rename from ui/bootstrap/src/main/kotlin/space/kscience/visionforge/bootstrap/bootstrap.kt rename to ui/bootstrap/src/jsMain/kotlin/space/kscience/visionforge/bootstrap/bootstrap.kt diff --git a/ui/bootstrap/src/main/kotlin/space/kscience/visionforge/bootstrap/outputConfig.kt b/ui/bootstrap/src/jsMain/kotlin/space/kscience/visionforge/bootstrap/outputConfig.kt similarity index 100% rename from ui/bootstrap/src/main/kotlin/space/kscience/visionforge/bootstrap/outputConfig.kt rename to ui/bootstrap/src/jsMain/kotlin/space/kscience/visionforge/bootstrap/outputConfig.kt diff --git a/ui/bootstrap/src/main/kotlin/space/kscience/visionforge/bootstrap/reactBootstrap.kt b/ui/bootstrap/src/jsMain/kotlin/space/kscience/visionforge/bootstrap/reactBootstrap.kt similarity index 100% rename from ui/bootstrap/src/main/kotlin/space/kscience/visionforge/bootstrap/reactBootstrap.kt rename to ui/bootstrap/src/jsMain/kotlin/space/kscience/visionforge/bootstrap/reactBootstrap.kt diff --git a/ui/bootstrap/src/main/kotlin/space/kscience/visionforge/bootstrap/tabComponent.kt b/ui/bootstrap/src/jsMain/kotlin/space/kscience/visionforge/bootstrap/tabComponent.kt similarity index 100% rename from ui/bootstrap/src/main/kotlin/space/kscience/visionforge/bootstrap/tabComponent.kt rename to ui/bootstrap/src/jsMain/kotlin/space/kscience/visionforge/bootstrap/tabComponent.kt diff --git a/ui/bootstrap/src/main/kotlin/space/kscience/visionforge/bootstrap/threeControls.kt b/ui/bootstrap/src/jsMain/kotlin/space/kscience/visionforge/bootstrap/threeControls.kt similarity index 100% rename from ui/bootstrap/src/main/kotlin/space/kscience/visionforge/bootstrap/threeControls.kt rename to ui/bootstrap/src/jsMain/kotlin/space/kscience/visionforge/bootstrap/threeControls.kt diff --git a/ui/bootstrap/src/main/kotlin/space/kscience/visionforge/bootstrap/visionPropertyEditor.kt b/ui/bootstrap/src/jsMain/kotlin/space/kscience/visionforge/bootstrap/visionPropertyEditor.kt similarity index 100% rename from ui/bootstrap/src/main/kotlin/space/kscience/visionforge/bootstrap/visionPropertyEditor.kt rename to ui/bootstrap/src/jsMain/kotlin/space/kscience/visionforge/bootstrap/visionPropertyEditor.kt diff --git a/ui/bootstrap/src/main/resources/css/custom-bootstrap.css b/ui/bootstrap/src/jsMain/resources/css/custom-bootstrap.css similarity index 100% rename from ui/bootstrap/src/main/resources/css/custom-bootstrap.css rename to ui/bootstrap/src/jsMain/resources/css/custom-bootstrap.css diff --git a/ui/react/build.gradle.kts b/ui/react/build.gradle.kts index acbe40cb..c4d40cf1 100644 --- a/ui/react/build.gradle.kts +++ b/ui/react/build.gradle.kts @@ -1,11 +1,16 @@ plugins { - id("space.kscience.gradle.js") + id("space.kscience.gradle.mpp") } -dependencies{ - api(project(":visionforge-solid")) - api("org.jetbrains.kotlin-wrappers:kotlin-styled") - api("org.jetbrains.kotlin-wrappers:kotlin-react-dom") +kscience { + js() + jsMain { + dependencies { + api(projects.visionforgeSolid) + api("org.jetbrains.kotlin-wrappers:kotlin-styled") + api("org.jetbrains.kotlin-wrappers:kotlin-react-dom") // implementation(npm("react-select","4.3.0")) - implementation(project(":visionforge-threejs")) + implementation(projects.visionforgeThreejs) + } + } } \ No newline at end of file diff --git a/ui/react/src/main/kotlin/space/kscience/visionforge/react/MetaViewer.kt b/ui/react/src/jsMain/kotlin/space/kscience/visionforge/react/MetaViewer.kt similarity index 100% rename from ui/react/src/main/kotlin/space/kscience/visionforge/react/MetaViewer.kt rename to ui/react/src/jsMain/kotlin/space/kscience/visionforge/react/MetaViewer.kt diff --git a/ui/react/src/main/kotlin/space/kscience/visionforge/react/MultiSelectChooser.kt b/ui/react/src/jsMain/kotlin/space/kscience/visionforge/react/MultiSelectChooser.kt similarity index 100% rename from ui/react/src/main/kotlin/space/kscience/visionforge/react/MultiSelectChooser.kt rename to ui/react/src/jsMain/kotlin/space/kscience/visionforge/react/MultiSelectChooser.kt diff --git a/ui/react/src/main/kotlin/space/kscience/visionforge/react/PropertyEditor.kt b/ui/react/src/jsMain/kotlin/space/kscience/visionforge/react/PropertyEditor.kt similarity index 97% rename from ui/react/src/main/kotlin/space/kscience/visionforge/react/PropertyEditor.kt rename to ui/react/src/jsMain/kotlin/space/kscience/visionforge/react/PropertyEditor.kt index a31a04fb..991ba2d5 100644 --- a/ui/react/src/main/kotlin/space/kscience/visionforge/react/PropertyEditor.kt +++ b/ui/react/src/jsMain/kotlin/space/kscience/visionforge/react/PropertyEditor.kt @@ -13,10 +13,13 @@ import kotlinx.html.js.onClickFunction import kotlinx.html.org.w3c.dom.events.Event import react.* import react.dom.attrs -import space.kscience.dataforge.meta.* +import space.kscience.dataforge.meta.MutableMeta +import space.kscience.dataforge.meta.ObservableMutableMeta import space.kscience.dataforge.meta.descriptors.MetaDescriptor import space.kscience.dataforge.meta.descriptors.ValueRequirement import space.kscience.dataforge.meta.descriptors.get +import space.kscience.dataforge.meta.get +import space.kscience.dataforge.meta.remove import space.kscience.dataforge.names.* import space.kscience.visionforge.hidden import styled.css diff --git a/ui/react/src/main/kotlin/space/kscience/visionforge/react/RangeValueChooser.kt b/ui/react/src/jsMain/kotlin/space/kscience/visionforge/react/RangeValueChooser.kt similarity index 100% rename from ui/react/src/main/kotlin/space/kscience/visionforge/react/RangeValueChooser.kt rename to ui/react/src/jsMain/kotlin/space/kscience/visionforge/react/RangeValueChooser.kt diff --git a/ui/react/src/main/kotlin/space/kscience/visionforge/react/ThreeCanvasComponent.kt b/ui/react/src/jsMain/kotlin/space/kscience/visionforge/react/ThreeCanvasComponent.kt similarity index 100% rename from ui/react/src/main/kotlin/space/kscience/visionforge/react/ThreeCanvasComponent.kt rename to ui/react/src/jsMain/kotlin/space/kscience/visionforge/react/ThreeCanvasComponent.kt diff --git a/ui/react/src/main/kotlin/space/kscience/visionforge/react/TreeStyles.kt b/ui/react/src/jsMain/kotlin/space/kscience/visionforge/react/TreeStyles.kt similarity index 100% rename from ui/react/src/main/kotlin/space/kscience/visionforge/react/TreeStyles.kt rename to ui/react/src/jsMain/kotlin/space/kscience/visionforge/react/TreeStyles.kt diff --git a/ui/react/src/main/kotlin/space/kscience/visionforge/react/VisionTree.kt b/ui/react/src/jsMain/kotlin/space/kscience/visionforge/react/VisionTree.kt similarity index 100% rename from ui/react/src/main/kotlin/space/kscience/visionforge/react/VisionTree.kt rename to ui/react/src/jsMain/kotlin/space/kscience/visionforge/react/VisionTree.kt diff --git a/ui/react/src/main/kotlin/space/kscience/visionforge/react/createRoot.kt b/ui/react/src/jsMain/kotlin/space/kscience/visionforge/react/createRoot.kt similarity index 100% rename from ui/react/src/main/kotlin/space/kscience/visionforge/react/createRoot.kt rename to ui/react/src/jsMain/kotlin/space/kscience/visionforge/react/createRoot.kt diff --git a/ui/react/src/main/kotlin/space/kscience/visionforge/react/ext.kt b/ui/react/src/jsMain/kotlin/space/kscience/visionforge/react/ext.kt similarity index 100% rename from ui/react/src/main/kotlin/space/kscience/visionforge/react/ext.kt rename to ui/react/src/jsMain/kotlin/space/kscience/visionforge/react/ext.kt diff --git a/ui/react/src/main/kotlin/space/kscience/visionforge/react/layout.kt b/ui/react/src/jsMain/kotlin/space/kscience/visionforge/react/layout.kt similarity index 100% rename from ui/react/src/main/kotlin/space/kscience/visionforge/react/layout.kt rename to ui/react/src/jsMain/kotlin/space/kscience/visionforge/react/layout.kt diff --git a/ui/react/src/main/kotlin/space/kscience/visionforge/react/valueChooser.kt b/ui/react/src/jsMain/kotlin/space/kscience/visionforge/react/valueChooser.kt similarity index 100% rename from ui/react/src/main/kotlin/space/kscience/visionforge/react/valueChooser.kt rename to ui/react/src/jsMain/kotlin/space/kscience/visionforge/react/valueChooser.kt diff --git a/ui/ring/build.gradle.kts b/ui/ring/build.gradle.kts index 8b4bf056..d1f2ff72 100644 --- a/ui/ring/build.gradle.kts +++ b/ui/ring/build.gradle.kts @@ -1,11 +1,11 @@ plugins { - id("space.kscience.gradle.js") + id("space.kscience.gradle.mpp") } val dataforgeVersion: String by rootProject.extra -kotlin{ - js(IR){ +kscience{ + js{ useCommonJs() browser { commonWebpackConfig { @@ -15,12 +15,11 @@ kotlin{ } } } -} + jsMain{ + api(projects.ui.react) + api("org.jetbrains.kotlin-wrappers:kotlin-ring-ui") -dependencies{ - api(project(":ui:react")) - api("org.jetbrains.kotlin-wrappers:kotlin-ring-ui") - - implementation(npm("core-js","3.12.1")) - implementation(npm("file-saver", "2.0.2")) + implementation(npm("core-js","3.12.1")) + implementation(npm("file-saver", "2.0.2")) + } } \ No newline at end of file diff --git a/ui/ring/src/main/kotlin/ringui/Loader.kt b/ui/ring/src/jsMain/kotlin/ringui/Loader.kt similarity index 100% rename from ui/ring/src/main/kotlin/ringui/Loader.kt rename to ui/ring/src/jsMain/kotlin/ringui/Loader.kt diff --git a/ui/ring/src/main/kotlin/ringui/LoaderScreen.kt b/ui/ring/src/jsMain/kotlin/ringui/LoaderScreen.kt similarity index 100% rename from ui/ring/src/main/kotlin/ringui/LoaderScreen.kt rename to ui/ring/src/jsMain/kotlin/ringui/LoaderScreen.kt diff --git a/ui/ring/src/main/kotlin/space.kscience.visionforge.ring/ThreeViewWithControls.kt b/ui/ring/src/jsMain/kotlin/space.kscience.visionforge.ring/ThreeViewWithControls.kt similarity index 100% rename from ui/ring/src/main/kotlin/space.kscience.visionforge.ring/ThreeViewWithControls.kt rename to ui/ring/src/jsMain/kotlin/space.kscience.visionforge.ring/ThreeViewWithControls.kt diff --git a/ui/ring/src/main/kotlin/space.kscience.visionforge.ring/ThreeWithControlsPlugin.kt b/ui/ring/src/jsMain/kotlin/space.kscience.visionforge.ring/ThreeWithControlsPlugin.kt similarity index 100% rename from ui/ring/src/main/kotlin/space.kscience.visionforge.ring/ThreeWithControlsPlugin.kt rename to ui/ring/src/jsMain/kotlin/space.kscience.visionforge.ring/ThreeWithControlsPlugin.kt diff --git a/ui/ring/src/main/kotlin/space.kscience.visionforge.ring/ringPropertyEditor.kt b/ui/ring/src/jsMain/kotlin/space.kscience.visionforge.ring/ringPropertyEditor.kt similarity index 100% rename from ui/ring/src/main/kotlin/space.kscience.visionforge.ring/ringPropertyEditor.kt rename to ui/ring/src/jsMain/kotlin/space.kscience.visionforge.ring/ringPropertyEditor.kt diff --git a/ui/ring/src/main/kotlin/space.kscience.visionforge.ring/ringThreeControls.kt b/ui/ring/src/jsMain/kotlin/space.kscience.visionforge.ring/ringThreeControls.kt similarity index 100% rename from ui/ring/src/main/kotlin/space.kscience.visionforge.ring/ringThreeControls.kt rename to ui/ring/src/jsMain/kotlin/space.kscience.visionforge.ring/ringThreeControls.kt diff --git a/visionforge-gdml/build.gradle.kts b/visionforge-gdml/build.gradle.kts index 6dd3042a..cdf4ad47 100644 --- a/visionforge-gdml/build.gradle.kts +++ b/visionforge-gdml/build.gradle.kts @@ -9,7 +9,7 @@ kscience { } dependencies { api(projects.visionforgeSolid) - api("space.kscience:gdml:0.4.0") + api("space.kscience:gdml:0.5.0") } dependencies(jvmTest) { implementation(spclibs.logback.classic) diff --git a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeAmbientLightFactory.kt b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeAmbientLightFactory.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeAmbientLightFactory.kt rename to visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeAmbientLightFactory.kt diff --git a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeBoxFactory.kt b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeBoxFactory.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeBoxFactory.kt rename to visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeBoxFactory.kt diff --git a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeCanvas.kt b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeCanvas.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeCanvas.kt rename to visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeCanvas.kt diff --git a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeCanvasLabelFactory.kt b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeCanvasLabelFactory.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeCanvasLabelFactory.kt rename to visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeCanvasLabelFactory.kt diff --git a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeCompositeFactory.kt b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeCompositeFactory.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeCompositeFactory.kt rename to visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeCompositeFactory.kt diff --git a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeConeFactory.kt b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeConeFactory.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeConeFactory.kt rename to visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeConeFactory.kt diff --git a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeConvexFactory.kt b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeConvexFactory.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeConvexFactory.kt rename to visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeConvexFactory.kt diff --git a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeFactory.kt b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeFactory.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeFactory.kt rename to visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeFactory.kt diff --git a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeGeometryBuilder.kt b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeGeometryBuilder.kt similarity index 99% rename from visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeGeometryBuilder.kt rename to visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeGeometryBuilder.kt index e75e4847..d97c354a 100644 --- a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeGeometryBuilder.kt +++ b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeGeometryBuilder.kt @@ -1,13 +1,13 @@ package space.kscience.visionforge.solid.three -import three.core.BufferGeometry -import three.core.Float32BufferAttribute -import three.math.Vector3 import space.kscience.dataforge.meta.Meta import space.kscience.visionforge.solid.GeometryBuilder import space.kscience.visionforge.solid.Point3D import space.kscience.visionforge.solid.cross import space.kscience.visionforge.solid.minus +import three.core.BufferGeometry +import three.core.Float32BufferAttribute +import three.math.Vector3 internal fun Point3D.toVector() = Vector3(x, y, z) diff --git a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeJsVision.kt b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeJsVision.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeJsVision.kt rename to visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeJsVision.kt index 3829698e..9d4b8e86 100644 --- a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeJsVision.kt +++ b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeJsVision.kt @@ -1,7 +1,7 @@ package space.kscience.visionforge.solid.three -import three.core.Object3D import space.kscience.visionforge.solid.SolidBase +import three.core.Object3D /** * A custom visual object that has its own Three.js renderer diff --git a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeLabelFactory.kt b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeLabelFactory.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeLabelFactory.kt rename to visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeLabelFactory.kt diff --git a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeLineFactory.kt b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeLineFactory.kt similarity index 99% rename from visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeLineFactory.kt rename to visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeLineFactory.kt index adf4ce0d..edfd6b65 100644 --- a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeLineFactory.kt +++ b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeLineFactory.kt @@ -1,15 +1,15 @@ package space.kscience.visionforge.solid.three -import three.core.BufferGeometry -import three.core.Object3D -import three.math.Color -import three.objects.LineSegments import space.kscience.visionforge.onPropertyChange import space.kscience.visionforge.solid.PolyLine import space.kscience.visionforge.solid.SolidMaterial import space.kscience.visionforge.solid.color import space.kscience.visionforge.solid.string import space.kscience.visionforge.solid.three.ThreeMaterials.DEFAULT_LINE_COLOR +import three.core.BufferGeometry +import three.core.Object3D +import three.math.Color +import three.objects.LineSegments import kotlin.math.ceil import kotlin.reflect.KClass diff --git a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeMaterials.kt b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeMaterials.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeMaterials.kt rename to visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeMaterials.kt diff --git a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeMeshFactory.kt b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeMeshFactory.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeMeshFactory.kt rename to visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeMeshFactory.kt diff --git a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeMeshLineFactory.kt b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeMeshLineFactory.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeMeshLineFactory.kt rename to visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeMeshLineFactory.kt diff --git a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreePlugin.kt b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreePlugin.kt similarity index 99% rename from visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreePlugin.kt rename to visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreePlugin.kt index 064597e6..8f577baa 100644 --- a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreePlugin.kt +++ b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreePlugin.kt @@ -6,7 +6,6 @@ import org.w3c.dom.Element import org.w3c.dom.HTMLElement import space.kscience.dataforge.context.* import space.kscience.dataforge.meta.Meta -import space.kscience.dataforge.meta.update import space.kscience.dataforge.names.* import space.kscience.visionforge.ElementVisionRenderer import space.kscience.visionforge.Vision diff --git a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreePointLightFactory.kt b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreePointLightFactory.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreePointLightFactory.kt rename to visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreePointLightFactory.kt diff --git a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeReferenceFactory.kt b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeReferenceFactory.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeReferenceFactory.kt rename to visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeReferenceFactory.kt diff --git a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeSmartLineFactory.kt b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeSmartLineFactory.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeSmartLineFactory.kt rename to visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeSmartLineFactory.kt diff --git a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeSphereFactory.kt b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeSphereFactory.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/ThreeSphereFactory.kt rename to visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/ThreeSphereFactory.kt diff --git a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/csg.kt b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/csg.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/csg.kt rename to visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/csg.kt diff --git a/visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/three.kt b/visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/three.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/space/kscience/visionforge/solid/three/three.kt rename to visionforge-threejs/src/jsMain/kotlin/space/kscience/visionforge/solid/three/three.kt diff --git a/visionforge-threejs/src/main/kotlin/three/THREE.kt b/visionforge-threejs/src/jsMain/kotlin/three/THREE.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/THREE.kt rename to visionforge-threejs/src/jsMain/kotlin/three/THREE.kt diff --git a/visionforge-threejs/src/main/kotlin/three/animation/AnimationAction.kt b/visionforge-threejs/src/jsMain/kotlin/three/animation/AnimationAction.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/animation/AnimationAction.kt rename to visionforge-threejs/src/jsMain/kotlin/three/animation/AnimationAction.kt diff --git a/visionforge-threejs/src/main/kotlin/three/animation/AnimationClip.kt b/visionforge-threejs/src/jsMain/kotlin/three/animation/AnimationClip.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/animation/AnimationClip.kt rename to visionforge-threejs/src/jsMain/kotlin/three/animation/AnimationClip.kt diff --git a/visionforge-threejs/src/main/kotlin/three/animation/AnimationMixer.kt b/visionforge-threejs/src/jsMain/kotlin/three/animation/AnimationMixer.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/animation/AnimationMixer.kt rename to visionforge-threejs/src/jsMain/kotlin/three/animation/AnimationMixer.kt diff --git a/visionforge-threejs/src/main/kotlin/three/animation/AnimationUtils.kt b/visionforge-threejs/src/jsMain/kotlin/three/animation/AnimationUtils.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/animation/AnimationUtils.kt rename to visionforge-threejs/src/jsMain/kotlin/three/animation/AnimationUtils.kt diff --git a/visionforge-threejs/src/main/kotlin/three/animation/KeyFrameTrack.kt b/visionforge-threejs/src/jsMain/kotlin/three/animation/KeyFrameTrack.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/animation/KeyFrameTrack.kt rename to visionforge-threejs/src/jsMain/kotlin/three/animation/KeyFrameTrack.kt diff --git a/visionforge-threejs/src/main/kotlin/three/audio/Audio.kt b/visionforge-threejs/src/jsMain/kotlin/three/audio/Audio.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/audio/Audio.kt rename to visionforge-threejs/src/jsMain/kotlin/three/audio/Audio.kt diff --git a/visionforge-threejs/src/main/kotlin/three/audio/AudioContext.kt b/visionforge-threejs/src/jsMain/kotlin/three/audio/AudioContext.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/audio/AudioContext.kt rename to visionforge-threejs/src/jsMain/kotlin/three/audio/AudioContext.kt diff --git a/visionforge-threejs/src/main/kotlin/three/audio/AudioListener.kt b/visionforge-threejs/src/jsMain/kotlin/three/audio/AudioListener.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/audio/AudioListener.kt rename to visionforge-threejs/src/jsMain/kotlin/three/audio/AudioListener.kt diff --git a/visionforge-threejs/src/main/kotlin/three/audio/PositionalAudio.kt b/visionforge-threejs/src/jsMain/kotlin/three/audio/PositionalAudio.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/audio/PositionalAudio.kt rename to visionforge-threejs/src/jsMain/kotlin/three/audio/PositionalAudio.kt diff --git a/visionforge-threejs/src/main/kotlin/three/cameras/Camera.kt b/visionforge-threejs/src/jsMain/kotlin/three/cameras/Camera.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/cameras/Camera.kt rename to visionforge-threejs/src/jsMain/kotlin/three/cameras/Camera.kt diff --git a/visionforge-threejs/src/main/kotlin/three/cameras/OrthographicCamera.kt b/visionforge-threejs/src/jsMain/kotlin/three/cameras/OrthographicCamera.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/cameras/OrthographicCamera.kt rename to visionforge-threejs/src/jsMain/kotlin/three/cameras/OrthographicCamera.kt diff --git a/visionforge-threejs/src/main/kotlin/three/cameras/PerspectiveCamera.kt b/visionforge-threejs/src/jsMain/kotlin/three/cameras/PerspectiveCamera.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/cameras/PerspectiveCamera.kt rename to visionforge-threejs/src/jsMain/kotlin/three/cameras/PerspectiveCamera.kt diff --git a/visionforge-threejs/src/main/kotlin/three/core/BufferAttribute.kt b/visionforge-threejs/src/jsMain/kotlin/three/core/BufferAttribute.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/core/BufferAttribute.kt rename to visionforge-threejs/src/jsMain/kotlin/three/core/BufferAttribute.kt diff --git a/visionforge-threejs/src/main/kotlin/three/core/BufferGeometry.kt b/visionforge-threejs/src/jsMain/kotlin/three/core/BufferGeometry.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/core/BufferGeometry.kt rename to visionforge-threejs/src/jsMain/kotlin/three/core/BufferGeometry.kt diff --git a/visionforge-threejs/src/main/kotlin/three/core/Clock.kt b/visionforge-threejs/src/jsMain/kotlin/three/core/Clock.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/core/Clock.kt rename to visionforge-threejs/src/jsMain/kotlin/three/core/Clock.kt diff --git a/visionforge-threejs/src/main/kotlin/three/core/EventDispatcher.kt b/visionforge-threejs/src/jsMain/kotlin/three/core/EventDispatcher.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/core/EventDispatcher.kt rename to visionforge-threejs/src/jsMain/kotlin/three/core/EventDispatcher.kt diff --git a/visionforge-threejs/src/main/kotlin/three/core/Face3.kt b/visionforge-threejs/src/jsMain/kotlin/three/core/Face3.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/core/Face3.kt rename to visionforge-threejs/src/jsMain/kotlin/three/core/Face3.kt diff --git a/visionforge-threejs/src/main/kotlin/three/core/InstancedBufferGeometry.kt b/visionforge-threejs/src/jsMain/kotlin/three/core/InstancedBufferGeometry.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/core/InstancedBufferGeometry.kt rename to visionforge-threejs/src/jsMain/kotlin/three/core/InstancedBufferGeometry.kt diff --git a/visionforge-threejs/src/main/kotlin/three/core/Layers.kt b/visionforge-threejs/src/jsMain/kotlin/three/core/Layers.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/core/Layers.kt rename to visionforge-threejs/src/jsMain/kotlin/three/core/Layers.kt diff --git a/visionforge-threejs/src/main/kotlin/three/core/Object3D.kt b/visionforge-threejs/src/jsMain/kotlin/three/core/Object3D.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/core/Object3D.kt rename to visionforge-threejs/src/jsMain/kotlin/three/core/Object3D.kt diff --git a/visionforge-threejs/src/main/kotlin/three/core/Raycaster.kt b/visionforge-threejs/src/jsMain/kotlin/three/core/Raycaster.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/core/Raycaster.kt rename to visionforge-threejs/src/jsMain/kotlin/three/core/Raycaster.kt diff --git a/visionforge-threejs/src/main/kotlin/three/core/Uniform.kt b/visionforge-threejs/src/jsMain/kotlin/three/core/Uniform.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/core/Uniform.kt rename to visionforge-threejs/src/jsMain/kotlin/three/core/Uniform.kt diff --git a/visionforge-threejs/src/main/kotlin/three/external/Detector.kt b/visionforge-threejs/src/jsMain/kotlin/three/external/Detector.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/external/Detector.kt rename to visionforge-threejs/src/jsMain/kotlin/three/external/Detector.kt diff --git a/visionforge-threejs/src/main/kotlin/three/external/ImprovedNoise.kt b/visionforge-threejs/src/jsMain/kotlin/three/external/ImprovedNoise.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/external/ImprovedNoise.kt rename to visionforge-threejs/src/jsMain/kotlin/three/external/ImprovedNoise.kt diff --git a/visionforge-threejs/src/main/kotlin/three/external/SimplexNoise.kt b/visionforge-threejs/src/jsMain/kotlin/three/external/SimplexNoise.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/external/SimplexNoise.kt rename to visionforge-threejs/src/jsMain/kotlin/three/external/SimplexNoise.kt diff --git a/visionforge-threejs/src/main/kotlin/three/external/controls/FlyControls.kt b/visionforge-threejs/src/jsMain/kotlin/three/external/controls/FlyControls.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/external/controls/FlyControls.kt rename to visionforge-threejs/src/jsMain/kotlin/three/external/controls/FlyControls.kt diff --git a/visionforge-threejs/src/main/kotlin/three/external/controls/OrbitControls.kt b/visionforge-threejs/src/jsMain/kotlin/three/external/controls/OrbitControls.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/external/controls/OrbitControls.kt rename to visionforge-threejs/src/jsMain/kotlin/three/external/controls/OrbitControls.kt diff --git a/visionforge-threejs/src/main/kotlin/three/external/controls/TrackballControls.kt b/visionforge-threejs/src/jsMain/kotlin/three/external/controls/TrackballControls.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/external/controls/TrackballControls.kt rename to visionforge-threejs/src/jsMain/kotlin/three/external/controls/TrackballControls.kt diff --git a/visionforge-threejs/src/main/kotlin/three/external/controls/TransformControls.kt b/visionforge-threejs/src/jsMain/kotlin/three/external/controls/TransformControls.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/external/controls/TransformControls.kt rename to visionforge-threejs/src/jsMain/kotlin/three/external/controls/TransformControls.kt diff --git a/visionforge-threejs/src/main/kotlin/three/external/exporters/OBJExporter.kt b/visionforge-threejs/src/jsMain/kotlin/three/external/exporters/OBJExporter.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/external/exporters/OBJExporter.kt rename to visionforge-threejs/src/jsMain/kotlin/three/external/exporters/OBJExporter.kt diff --git a/visionforge-threejs/src/main/kotlin/three/external/exporters/STLExporter.kt b/visionforge-threejs/src/jsMain/kotlin/three/external/exporters/STLExporter.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/external/exporters/STLExporter.kt rename to visionforge-threejs/src/jsMain/kotlin/three/external/exporters/STLExporter.kt diff --git a/visionforge-threejs/src/main/kotlin/three/external/geometries/ConvexGeometry.kt b/visionforge-threejs/src/jsMain/kotlin/three/external/geometries/ConvexGeometry.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/external/geometries/ConvexGeometry.kt rename to visionforge-threejs/src/jsMain/kotlin/three/external/geometries/ConvexGeometry.kt diff --git a/visionforge-threejs/src/main/kotlin/three/external/libs/GUIParams.kt b/visionforge-threejs/src/jsMain/kotlin/three/external/libs/GUIParams.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/external/libs/GUIParams.kt rename to visionforge-threejs/src/jsMain/kotlin/three/external/libs/GUIParams.kt diff --git a/visionforge-threejs/src/main/kotlin/three/external/libs/Stats.kt b/visionforge-threejs/src/jsMain/kotlin/three/external/libs/Stats.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/external/libs/Stats.kt rename to visionforge-threejs/src/jsMain/kotlin/three/external/libs/Stats.kt diff --git a/visionforge-threejs/src/main/kotlin/three/external/libs/datgui.kt b/visionforge-threejs/src/jsMain/kotlin/three/external/libs/datgui.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/external/libs/datgui.kt rename to visionforge-threejs/src/jsMain/kotlin/three/external/libs/datgui.kt diff --git a/visionforge-threejs/src/main/kotlin/three/external/loaders/BabylonLoader.kt b/visionforge-threejs/src/jsMain/kotlin/three/external/loaders/BabylonLoader.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/external/loaders/BabylonLoader.kt rename to visionforge-threejs/src/jsMain/kotlin/three/external/loaders/BabylonLoader.kt diff --git a/visionforge-threejs/src/main/kotlin/three/external/loaders/GLTFLoader.kt b/visionforge-threejs/src/jsMain/kotlin/three/external/loaders/GLTFLoader.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/external/loaders/GLTFLoader.kt rename to visionforge-threejs/src/jsMain/kotlin/three/external/loaders/GLTFLoader.kt diff --git a/visionforge-threejs/src/main/kotlin/three/external/loaders/LoaderSupport.kt b/visionforge-threejs/src/jsMain/kotlin/three/external/loaders/LoaderSupport.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/external/loaders/LoaderSupport.kt rename to visionforge-threejs/src/jsMain/kotlin/three/external/loaders/LoaderSupport.kt diff --git a/visionforge-threejs/src/main/kotlin/three/external/loaders/MTLLoader.kt b/visionforge-threejs/src/jsMain/kotlin/three/external/loaders/MTLLoader.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/external/loaders/MTLLoader.kt rename to visionforge-threejs/src/jsMain/kotlin/three/external/loaders/MTLLoader.kt diff --git a/visionforge-threejs/src/main/kotlin/three/external/loaders/OBJLoader.kt b/visionforge-threejs/src/jsMain/kotlin/three/external/loaders/OBJLoader.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/external/loaders/OBJLoader.kt rename to visionforge-threejs/src/jsMain/kotlin/three/external/loaders/OBJLoader.kt diff --git a/visionforge-threejs/src/main/kotlin/three/external/loaders/OBJLoader2.kt b/visionforge-threejs/src/jsMain/kotlin/three/external/loaders/OBJLoader2.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/external/loaders/OBJLoader2.kt rename to visionforge-threejs/src/jsMain/kotlin/three/external/loaders/OBJLoader2.kt diff --git a/visionforge-threejs/src/main/kotlin/three/external/loaders/STLLoader.kt b/visionforge-threejs/src/jsMain/kotlin/three/external/loaders/STLLoader.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/external/loaders/STLLoader.kt rename to visionforge-threejs/src/jsMain/kotlin/three/external/loaders/STLLoader.kt diff --git a/visionforge-threejs/src/main/kotlin/three/external/objects/Sky.kt b/visionforge-threejs/src/jsMain/kotlin/three/external/objects/Sky.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/external/objects/Sky.kt rename to visionforge-threejs/src/jsMain/kotlin/three/external/objects/Sky.kt diff --git a/visionforge-threejs/src/main/kotlin/three/external/objects/Water.kt b/visionforge-threejs/src/jsMain/kotlin/three/external/objects/Water.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/external/objects/Water.kt rename to visionforge-threejs/src/jsMain/kotlin/three/external/objects/Water.kt diff --git a/visionforge-threejs/src/main/kotlin/three/external/objects/WaterOptions.kt b/visionforge-threejs/src/jsMain/kotlin/three/external/objects/WaterOptions.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/external/objects/WaterOptions.kt rename to visionforge-threejs/src/jsMain/kotlin/three/external/objects/WaterOptions.kt diff --git a/visionforge-threejs/src/main/kotlin/three/extras/SceneUtils.kt b/visionforge-threejs/src/jsMain/kotlin/three/extras/SceneUtils.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/extras/SceneUtils.kt rename to visionforge-threejs/src/jsMain/kotlin/three/extras/SceneUtils.kt diff --git a/visionforge-threejs/src/main/kotlin/three/extras/core/Curve.kt b/visionforge-threejs/src/jsMain/kotlin/three/extras/core/Curve.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/extras/core/Curve.kt rename to visionforge-threejs/src/jsMain/kotlin/three/extras/core/Curve.kt diff --git a/visionforge-threejs/src/main/kotlin/three/extras/core/CurvePath.kt b/visionforge-threejs/src/jsMain/kotlin/three/extras/core/CurvePath.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/extras/core/CurvePath.kt rename to visionforge-threejs/src/jsMain/kotlin/three/extras/core/CurvePath.kt diff --git a/visionforge-threejs/src/main/kotlin/three/extras/core/Path.kt b/visionforge-threejs/src/jsMain/kotlin/three/extras/core/Path.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/extras/core/Path.kt rename to visionforge-threejs/src/jsMain/kotlin/three/extras/core/Path.kt diff --git a/visionforge-threejs/src/main/kotlin/three/extras/core/Shape.kt b/visionforge-threejs/src/jsMain/kotlin/three/extras/core/Shape.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/extras/core/Shape.kt rename to visionforge-threejs/src/jsMain/kotlin/three/extras/core/Shape.kt diff --git a/visionforge-threejs/src/main/kotlin/three/extras/core/ShapePath.kt b/visionforge-threejs/src/jsMain/kotlin/three/extras/core/ShapePath.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/extras/core/ShapePath.kt rename to visionforge-threejs/src/jsMain/kotlin/three/extras/core/ShapePath.kt diff --git a/visionforge-threejs/src/main/kotlin/three/extras/curves/ArcCurve.kt b/visionforge-threejs/src/jsMain/kotlin/three/extras/curves/ArcCurve.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/extras/curves/ArcCurve.kt rename to visionforge-threejs/src/jsMain/kotlin/three/extras/curves/ArcCurve.kt diff --git a/visionforge-threejs/src/main/kotlin/three/extras/curves/CatmullRomCurve3.kt b/visionforge-threejs/src/jsMain/kotlin/three/extras/curves/CatmullRomCurve3.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/extras/curves/CatmullRomCurve3.kt rename to visionforge-threejs/src/jsMain/kotlin/three/extras/curves/CatmullRomCurve3.kt diff --git a/visionforge-threejs/src/main/kotlin/three/extras/curves/EllipseCurve.kt b/visionforge-threejs/src/jsMain/kotlin/three/extras/curves/EllipseCurve.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/extras/curves/EllipseCurve.kt rename to visionforge-threejs/src/jsMain/kotlin/three/extras/curves/EllipseCurve.kt diff --git a/visionforge-threejs/src/main/kotlin/three/extras/curves/LineCurve.kt b/visionforge-threejs/src/jsMain/kotlin/three/extras/curves/LineCurve.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/extras/curves/LineCurve.kt rename to visionforge-threejs/src/jsMain/kotlin/three/extras/curves/LineCurve.kt diff --git a/visionforge-threejs/src/main/kotlin/three/extras/curves/LineCurve3.kt b/visionforge-threejs/src/jsMain/kotlin/three/extras/curves/LineCurve3.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/extras/curves/LineCurve3.kt rename to visionforge-threejs/src/jsMain/kotlin/three/extras/curves/LineCurve3.kt diff --git a/visionforge-threejs/src/main/kotlin/three/extras/curves/QuadricBezierCurve.kt b/visionforge-threejs/src/jsMain/kotlin/three/extras/curves/QuadricBezierCurve.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/extras/curves/QuadricBezierCurve.kt rename to visionforge-threejs/src/jsMain/kotlin/three/extras/curves/QuadricBezierCurve.kt diff --git a/visionforge-threejs/src/main/kotlin/three/extras/curves/QuadricBezierCurve3.kt b/visionforge-threejs/src/jsMain/kotlin/three/extras/curves/QuadricBezierCurve3.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/extras/curves/QuadricBezierCurve3.kt rename to visionforge-threejs/src/jsMain/kotlin/three/extras/curves/QuadricBezierCurve3.kt diff --git a/visionforge-threejs/src/main/kotlin/three/extras/curves/SplineCurve.kt b/visionforge-threejs/src/jsMain/kotlin/three/extras/curves/SplineCurve.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/extras/curves/SplineCurve.kt rename to visionforge-threejs/src/jsMain/kotlin/three/extras/curves/SplineCurve.kt diff --git a/visionforge-threejs/src/main/kotlin/three/geometries/BoxGeometry.kt b/visionforge-threejs/src/jsMain/kotlin/three/geometries/BoxGeometry.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/geometries/BoxGeometry.kt rename to visionforge-threejs/src/jsMain/kotlin/three/geometries/BoxGeometry.kt diff --git a/visionforge-threejs/src/main/kotlin/three/geometries/ConeGeometry.kt b/visionforge-threejs/src/jsMain/kotlin/three/geometries/ConeGeometry.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/geometries/ConeGeometry.kt rename to visionforge-threejs/src/jsMain/kotlin/three/geometries/ConeGeometry.kt diff --git a/visionforge-threejs/src/main/kotlin/three/geometries/CylinderGeometry.kt b/visionforge-threejs/src/jsMain/kotlin/three/geometries/CylinderGeometry.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/geometries/CylinderGeometry.kt rename to visionforge-threejs/src/jsMain/kotlin/three/geometries/CylinderGeometry.kt diff --git a/visionforge-threejs/src/main/kotlin/three/geometries/EdgesGeometry.kt b/visionforge-threejs/src/jsMain/kotlin/three/geometries/EdgesGeometry.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/geometries/EdgesGeometry.kt rename to visionforge-threejs/src/jsMain/kotlin/three/geometries/EdgesGeometry.kt diff --git a/visionforge-threejs/src/main/kotlin/three/geometries/ExtrudeGeometry.kt b/visionforge-threejs/src/jsMain/kotlin/three/geometries/ExtrudeGeometry.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/geometries/ExtrudeGeometry.kt rename to visionforge-threejs/src/jsMain/kotlin/three/geometries/ExtrudeGeometry.kt diff --git a/visionforge-threejs/src/main/kotlin/three/geometries/PlaneGeometry.kt b/visionforge-threejs/src/jsMain/kotlin/three/geometries/PlaneGeometry.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/geometries/PlaneGeometry.kt rename to visionforge-threejs/src/jsMain/kotlin/three/geometries/PlaneGeometry.kt diff --git a/visionforge-threejs/src/main/kotlin/three/geometries/SphereGeometry.kt b/visionforge-threejs/src/jsMain/kotlin/three/geometries/SphereGeometry.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/geometries/SphereGeometry.kt rename to visionforge-threejs/src/jsMain/kotlin/three/geometries/SphereGeometry.kt diff --git a/visionforge-threejs/src/main/kotlin/three/geometries/TextGeometry.kt b/visionforge-threejs/src/jsMain/kotlin/three/geometries/TextGeometry.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/geometries/TextGeometry.kt rename to visionforge-threejs/src/jsMain/kotlin/three/geometries/TextGeometry.kt diff --git a/visionforge-threejs/src/main/kotlin/three/geometries/TorusGeometry.kt b/visionforge-threejs/src/jsMain/kotlin/three/geometries/TorusGeometry.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/geometries/TorusGeometry.kt rename to visionforge-threejs/src/jsMain/kotlin/three/geometries/TorusGeometry.kt diff --git a/visionforge-threejs/src/main/kotlin/three/geometries/TubeGeometry.kt b/visionforge-threejs/src/jsMain/kotlin/three/geometries/TubeGeometry.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/geometries/TubeGeometry.kt rename to visionforge-threejs/src/jsMain/kotlin/three/geometries/TubeGeometry.kt diff --git a/visionforge-threejs/src/main/kotlin/three/geometries/WireframeGeometry.kt b/visionforge-threejs/src/jsMain/kotlin/three/geometries/WireframeGeometry.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/geometries/WireframeGeometry.kt rename to visionforge-threejs/src/jsMain/kotlin/three/geometries/WireframeGeometry.kt diff --git a/visionforge-threejs/src/main/kotlin/three/helpers/ArrowHelper.kt b/visionforge-threejs/src/jsMain/kotlin/three/helpers/ArrowHelper.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/helpers/ArrowHelper.kt rename to visionforge-threejs/src/jsMain/kotlin/three/helpers/ArrowHelper.kt diff --git a/visionforge-threejs/src/main/kotlin/three/helpers/AxesHelper.kt b/visionforge-threejs/src/jsMain/kotlin/three/helpers/AxesHelper.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/helpers/AxesHelper.kt rename to visionforge-threejs/src/jsMain/kotlin/three/helpers/AxesHelper.kt diff --git a/visionforge-threejs/src/main/kotlin/three/helpers/Box3Helper.kt b/visionforge-threejs/src/jsMain/kotlin/three/helpers/Box3Helper.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/helpers/Box3Helper.kt rename to visionforge-threejs/src/jsMain/kotlin/three/helpers/Box3Helper.kt diff --git a/visionforge-threejs/src/main/kotlin/three/helpers/CameraHelper.kt b/visionforge-threejs/src/jsMain/kotlin/three/helpers/CameraHelper.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/helpers/CameraHelper.kt rename to visionforge-threejs/src/jsMain/kotlin/three/helpers/CameraHelper.kt diff --git a/visionforge-threejs/src/main/kotlin/three/helpers/GridHelper.kt b/visionforge-threejs/src/jsMain/kotlin/three/helpers/GridHelper.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/helpers/GridHelper.kt rename to visionforge-threejs/src/jsMain/kotlin/three/helpers/GridHelper.kt diff --git a/visionforge-threejs/src/main/kotlin/three/helpers/HemisphereLightHelper.kt b/visionforge-threejs/src/jsMain/kotlin/three/helpers/HemisphereLightHelper.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/helpers/HemisphereLightHelper.kt rename to visionforge-threejs/src/jsMain/kotlin/three/helpers/HemisphereLightHelper.kt diff --git a/visionforge-threejs/src/main/kotlin/three/helpers/PlaneHelper.kt b/visionforge-threejs/src/jsMain/kotlin/three/helpers/PlaneHelper.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/helpers/PlaneHelper.kt rename to visionforge-threejs/src/jsMain/kotlin/three/helpers/PlaneHelper.kt diff --git a/visionforge-threejs/src/main/kotlin/three/ktutils.kt b/visionforge-threejs/src/jsMain/kotlin/three/ktutils.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/ktutils.kt rename to visionforge-threejs/src/jsMain/kotlin/three/ktutils.kt diff --git a/visionforge-threejs/src/main/kotlin/three/lights/AmbientLight.kt b/visionforge-threejs/src/jsMain/kotlin/three/lights/AmbientLight.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/lights/AmbientLight.kt rename to visionforge-threejs/src/jsMain/kotlin/three/lights/AmbientLight.kt diff --git a/visionforge-threejs/src/main/kotlin/three/lights/DirectionalLight.kt b/visionforge-threejs/src/jsMain/kotlin/three/lights/DirectionalLight.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/lights/DirectionalLight.kt rename to visionforge-threejs/src/jsMain/kotlin/three/lights/DirectionalLight.kt diff --git a/visionforge-threejs/src/main/kotlin/three/lights/DirectionalLightShadow.kt b/visionforge-threejs/src/jsMain/kotlin/three/lights/DirectionalLightShadow.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/lights/DirectionalLightShadow.kt rename to visionforge-threejs/src/jsMain/kotlin/three/lights/DirectionalLightShadow.kt diff --git a/visionforge-threejs/src/main/kotlin/three/lights/HemisphereLight.kt b/visionforge-threejs/src/jsMain/kotlin/three/lights/HemisphereLight.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/lights/HemisphereLight.kt rename to visionforge-threejs/src/jsMain/kotlin/three/lights/HemisphereLight.kt diff --git a/visionforge-threejs/src/main/kotlin/three/lights/Light.kt b/visionforge-threejs/src/jsMain/kotlin/three/lights/Light.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/lights/Light.kt rename to visionforge-threejs/src/jsMain/kotlin/three/lights/Light.kt diff --git a/visionforge-threejs/src/main/kotlin/three/lights/LightShadow.kt b/visionforge-threejs/src/jsMain/kotlin/three/lights/LightShadow.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/lights/LightShadow.kt rename to visionforge-threejs/src/jsMain/kotlin/three/lights/LightShadow.kt diff --git a/visionforge-threejs/src/main/kotlin/three/lights/PointLight.kt b/visionforge-threejs/src/jsMain/kotlin/three/lights/PointLight.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/lights/PointLight.kt rename to visionforge-threejs/src/jsMain/kotlin/three/lights/PointLight.kt diff --git a/visionforge-threejs/src/main/kotlin/three/lights/SpotLight.kt b/visionforge-threejs/src/jsMain/kotlin/three/lights/SpotLight.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/lights/SpotLight.kt rename to visionforge-threejs/src/jsMain/kotlin/three/lights/SpotLight.kt diff --git a/visionforge-threejs/src/main/kotlin/three/lights/SpotLightShadow.kt b/visionforge-threejs/src/jsMain/kotlin/three/lights/SpotLightShadow.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/lights/SpotLightShadow.kt rename to visionforge-threejs/src/jsMain/kotlin/three/lights/SpotLightShadow.kt diff --git a/visionforge-threejs/src/main/kotlin/three/loaders/Cache.kt b/visionforge-threejs/src/jsMain/kotlin/three/loaders/Cache.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/loaders/Cache.kt rename to visionforge-threejs/src/jsMain/kotlin/three/loaders/Cache.kt diff --git a/visionforge-threejs/src/main/kotlin/three/loaders/CompressedTextureLoader.kt b/visionforge-threejs/src/jsMain/kotlin/three/loaders/CompressedTextureLoader.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/loaders/CompressedTextureLoader.kt rename to visionforge-threejs/src/jsMain/kotlin/three/loaders/CompressedTextureLoader.kt diff --git a/visionforge-threejs/src/main/kotlin/three/loaders/ImageLoader.kt b/visionforge-threejs/src/jsMain/kotlin/three/loaders/ImageLoader.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/loaders/ImageLoader.kt rename to visionforge-threejs/src/jsMain/kotlin/three/loaders/ImageLoader.kt diff --git a/visionforge-threejs/src/main/kotlin/three/loaders/JSONLoader.kt b/visionforge-threejs/src/jsMain/kotlin/three/loaders/JSONLoader.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/loaders/JSONLoader.kt rename to visionforge-threejs/src/jsMain/kotlin/three/loaders/JSONLoader.kt diff --git a/visionforge-threejs/src/main/kotlin/three/loaders/Loader.kt b/visionforge-threejs/src/jsMain/kotlin/three/loaders/Loader.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/loaders/Loader.kt rename to visionforge-threejs/src/jsMain/kotlin/three/loaders/Loader.kt diff --git a/visionforge-threejs/src/main/kotlin/three/loaders/LoadingManager.kt b/visionforge-threejs/src/jsMain/kotlin/three/loaders/LoadingManager.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/loaders/LoadingManager.kt rename to visionforge-threejs/src/jsMain/kotlin/three/loaders/LoadingManager.kt diff --git a/visionforge-threejs/src/main/kotlin/three/loaders/MaterialLoader.kt b/visionforge-threejs/src/jsMain/kotlin/three/loaders/MaterialLoader.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/loaders/MaterialLoader.kt rename to visionforge-threejs/src/jsMain/kotlin/three/loaders/MaterialLoader.kt diff --git a/visionforge-threejs/src/main/kotlin/three/loaders/TextureLoader.kt b/visionforge-threejs/src/jsMain/kotlin/three/loaders/TextureLoader.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/loaders/TextureLoader.kt rename to visionforge-threejs/src/jsMain/kotlin/three/loaders/TextureLoader.kt diff --git a/visionforge-threejs/src/main/kotlin/three/materials/LineBasicMaterial.kt b/visionforge-threejs/src/jsMain/kotlin/three/materials/LineBasicMaterial.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/materials/LineBasicMaterial.kt rename to visionforge-threejs/src/jsMain/kotlin/three/materials/LineBasicMaterial.kt diff --git a/visionforge-threejs/src/main/kotlin/three/materials/LineDashedMaterial.kt b/visionforge-threejs/src/jsMain/kotlin/three/materials/LineDashedMaterial.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/materials/LineDashedMaterial.kt rename to visionforge-threejs/src/jsMain/kotlin/three/materials/LineDashedMaterial.kt diff --git a/visionforge-threejs/src/main/kotlin/three/materials/Material.kt b/visionforge-threejs/src/jsMain/kotlin/three/materials/Material.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/materials/Material.kt rename to visionforge-threejs/src/jsMain/kotlin/three/materials/Material.kt diff --git a/visionforge-threejs/src/main/kotlin/three/materials/MeshBasicMaterial.kt b/visionforge-threejs/src/jsMain/kotlin/three/materials/MeshBasicMaterial.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/materials/MeshBasicMaterial.kt rename to visionforge-threejs/src/jsMain/kotlin/three/materials/MeshBasicMaterial.kt diff --git a/visionforge-threejs/src/main/kotlin/three/materials/MeshDepthMaterial.kt b/visionforge-threejs/src/jsMain/kotlin/three/materials/MeshDepthMaterial.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/materials/MeshDepthMaterial.kt rename to visionforge-threejs/src/jsMain/kotlin/three/materials/MeshDepthMaterial.kt diff --git a/visionforge-threejs/src/main/kotlin/three/materials/MeshLambertMaterial.kt b/visionforge-threejs/src/jsMain/kotlin/three/materials/MeshLambertMaterial.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/materials/MeshLambertMaterial.kt rename to visionforge-threejs/src/jsMain/kotlin/three/materials/MeshLambertMaterial.kt diff --git a/visionforge-threejs/src/main/kotlin/three/materials/MeshNormalMaterial.kt b/visionforge-threejs/src/jsMain/kotlin/three/materials/MeshNormalMaterial.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/materials/MeshNormalMaterial.kt rename to visionforge-threejs/src/jsMain/kotlin/three/materials/MeshNormalMaterial.kt diff --git a/visionforge-threejs/src/main/kotlin/three/materials/MeshPhongMaterial.kt b/visionforge-threejs/src/jsMain/kotlin/three/materials/MeshPhongMaterial.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/materials/MeshPhongMaterial.kt rename to visionforge-threejs/src/jsMain/kotlin/three/materials/MeshPhongMaterial.kt diff --git a/visionforge-threejs/src/main/kotlin/three/materials/MeshPhysicalMaterial.kt b/visionforge-threejs/src/jsMain/kotlin/three/materials/MeshPhysicalMaterial.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/materials/MeshPhysicalMaterial.kt rename to visionforge-threejs/src/jsMain/kotlin/three/materials/MeshPhysicalMaterial.kt diff --git a/visionforge-threejs/src/main/kotlin/three/materials/MeshStandardMaterial.kt b/visionforge-threejs/src/jsMain/kotlin/three/materials/MeshStandardMaterial.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/materials/MeshStandardMaterial.kt rename to visionforge-threejs/src/jsMain/kotlin/three/materials/MeshStandardMaterial.kt diff --git a/visionforge-threejs/src/main/kotlin/three/materials/PointsMaterial.kt b/visionforge-threejs/src/jsMain/kotlin/three/materials/PointsMaterial.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/materials/PointsMaterial.kt rename to visionforge-threejs/src/jsMain/kotlin/three/materials/PointsMaterial.kt diff --git a/visionforge-threejs/src/main/kotlin/three/materials/RawShaderMaterial.kt b/visionforge-threejs/src/jsMain/kotlin/three/materials/RawShaderMaterial.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/materials/RawShaderMaterial.kt rename to visionforge-threejs/src/jsMain/kotlin/three/materials/RawShaderMaterial.kt diff --git a/visionforge-threejs/src/main/kotlin/three/materials/ShaderMaterial.kt b/visionforge-threejs/src/jsMain/kotlin/three/materials/ShaderMaterial.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/materials/ShaderMaterial.kt rename to visionforge-threejs/src/jsMain/kotlin/three/materials/ShaderMaterial.kt diff --git a/visionforge-threejs/src/main/kotlin/three/materials/SpriteMaterial.kt b/visionforge-threejs/src/jsMain/kotlin/three/materials/SpriteMaterial.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/materials/SpriteMaterial.kt rename to visionforge-threejs/src/jsMain/kotlin/three/materials/SpriteMaterial.kt diff --git a/visionforge-threejs/src/main/kotlin/three/math/Box2.kt b/visionforge-threejs/src/jsMain/kotlin/three/math/Box2.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/math/Box2.kt rename to visionforge-threejs/src/jsMain/kotlin/three/math/Box2.kt diff --git a/visionforge-threejs/src/main/kotlin/three/math/Box3.kt b/visionforge-threejs/src/jsMain/kotlin/three/math/Box3.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/math/Box3.kt rename to visionforge-threejs/src/jsMain/kotlin/three/math/Box3.kt diff --git a/visionforge-threejs/src/main/kotlin/three/math/Color.kt b/visionforge-threejs/src/jsMain/kotlin/three/math/Color.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/math/Color.kt rename to visionforge-threejs/src/jsMain/kotlin/three/math/Color.kt diff --git a/visionforge-threejs/src/main/kotlin/three/math/ColorConstants.kt b/visionforge-threejs/src/jsMain/kotlin/three/math/ColorConstants.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/math/ColorConstants.kt rename to visionforge-threejs/src/jsMain/kotlin/three/math/ColorConstants.kt diff --git a/visionforge-threejs/src/main/kotlin/three/math/Cylindrical.kt b/visionforge-threejs/src/jsMain/kotlin/three/math/Cylindrical.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/math/Cylindrical.kt rename to visionforge-threejs/src/jsMain/kotlin/three/math/Cylindrical.kt diff --git a/visionforge-threejs/src/main/kotlin/three/math/Euler.kt b/visionforge-threejs/src/jsMain/kotlin/three/math/Euler.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/math/Euler.kt rename to visionforge-threejs/src/jsMain/kotlin/three/math/Euler.kt diff --git a/visionforge-threejs/src/main/kotlin/three/math/Frustrum.kt b/visionforge-threejs/src/jsMain/kotlin/three/math/Frustrum.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/math/Frustrum.kt rename to visionforge-threejs/src/jsMain/kotlin/three/math/Frustrum.kt diff --git a/visionforge-threejs/src/main/kotlin/three/math/Line3.kt b/visionforge-threejs/src/jsMain/kotlin/three/math/Line3.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/math/Line3.kt rename to visionforge-threejs/src/jsMain/kotlin/three/math/Line3.kt diff --git a/visionforge-threejs/src/main/kotlin/three/math/Math.kt b/visionforge-threejs/src/jsMain/kotlin/three/math/Math.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/math/Math.kt rename to visionforge-threejs/src/jsMain/kotlin/three/math/Math.kt diff --git a/visionforge-threejs/src/main/kotlin/three/math/Matrix3.kt b/visionforge-threejs/src/jsMain/kotlin/three/math/Matrix3.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/math/Matrix3.kt rename to visionforge-threejs/src/jsMain/kotlin/three/math/Matrix3.kt diff --git a/visionforge-threejs/src/main/kotlin/three/math/Matrix4.kt b/visionforge-threejs/src/jsMain/kotlin/three/math/Matrix4.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/math/Matrix4.kt rename to visionforge-threejs/src/jsMain/kotlin/three/math/Matrix4.kt diff --git a/visionforge-threejs/src/main/kotlin/three/math/Plane.kt b/visionforge-threejs/src/jsMain/kotlin/three/math/Plane.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/math/Plane.kt rename to visionforge-threejs/src/jsMain/kotlin/three/math/Plane.kt diff --git a/visionforge-threejs/src/main/kotlin/three/math/Quaternion.kt b/visionforge-threejs/src/jsMain/kotlin/three/math/Quaternion.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/math/Quaternion.kt rename to visionforge-threejs/src/jsMain/kotlin/three/math/Quaternion.kt diff --git a/visionforge-threejs/src/main/kotlin/three/math/Ray.kt b/visionforge-threejs/src/jsMain/kotlin/three/math/Ray.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/math/Ray.kt rename to visionforge-threejs/src/jsMain/kotlin/three/math/Ray.kt diff --git a/visionforge-threejs/src/main/kotlin/three/math/Sphere.kt b/visionforge-threejs/src/jsMain/kotlin/three/math/Sphere.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/math/Sphere.kt rename to visionforge-threejs/src/jsMain/kotlin/three/math/Sphere.kt diff --git a/visionforge-threejs/src/main/kotlin/three/math/Spherical.kt b/visionforge-threejs/src/jsMain/kotlin/three/math/Spherical.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/math/Spherical.kt rename to visionforge-threejs/src/jsMain/kotlin/three/math/Spherical.kt diff --git a/visionforge-threejs/src/main/kotlin/three/math/Triangle.kt b/visionforge-threejs/src/jsMain/kotlin/three/math/Triangle.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/math/Triangle.kt rename to visionforge-threejs/src/jsMain/kotlin/three/math/Triangle.kt diff --git a/visionforge-threejs/src/main/kotlin/three/math/Vector2.kt b/visionforge-threejs/src/jsMain/kotlin/three/math/Vector2.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/math/Vector2.kt rename to visionforge-threejs/src/jsMain/kotlin/three/math/Vector2.kt diff --git a/visionforge-threejs/src/main/kotlin/three/math/Vector3.kt b/visionforge-threejs/src/jsMain/kotlin/three/math/Vector3.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/math/Vector3.kt rename to visionforge-threejs/src/jsMain/kotlin/three/math/Vector3.kt diff --git a/visionforge-threejs/src/main/kotlin/three/math/Vector4.kt b/visionforge-threejs/src/jsMain/kotlin/three/math/Vector4.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/math/Vector4.kt rename to visionforge-threejs/src/jsMain/kotlin/three/math/Vector4.kt diff --git a/visionforge-threejs/src/main/kotlin/three/math/operators.kt b/visionforge-threejs/src/jsMain/kotlin/three/math/operators.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/math/operators.kt rename to visionforge-threejs/src/jsMain/kotlin/three/math/operators.kt diff --git a/visionforge-threejs/src/main/kotlin/three/meshline/MeshLine.kt b/visionforge-threejs/src/jsMain/kotlin/three/meshline/MeshLine.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/meshline/MeshLine.kt rename to visionforge-threejs/src/jsMain/kotlin/three/meshline/MeshLine.kt diff --git a/visionforge-threejs/src/main/kotlin/three/meshline/meshLineExt.kt b/visionforge-threejs/src/jsMain/kotlin/three/meshline/meshLineExt.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/meshline/meshLineExt.kt rename to visionforge-threejs/src/jsMain/kotlin/three/meshline/meshLineExt.kt diff --git a/visionforge-threejs/src/main/kotlin/three/objects/Group.kt b/visionforge-threejs/src/jsMain/kotlin/three/objects/Group.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/objects/Group.kt rename to visionforge-threejs/src/jsMain/kotlin/three/objects/Group.kt diff --git a/visionforge-threejs/src/main/kotlin/three/objects/LOD.kt b/visionforge-threejs/src/jsMain/kotlin/three/objects/LOD.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/objects/LOD.kt rename to visionforge-threejs/src/jsMain/kotlin/three/objects/LOD.kt diff --git a/visionforge-threejs/src/main/kotlin/three/objects/Line.kt b/visionforge-threejs/src/jsMain/kotlin/three/objects/Line.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/objects/Line.kt rename to visionforge-threejs/src/jsMain/kotlin/three/objects/Line.kt diff --git a/visionforge-threejs/src/main/kotlin/three/objects/LineLoop.kt b/visionforge-threejs/src/jsMain/kotlin/three/objects/LineLoop.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/objects/LineLoop.kt rename to visionforge-threejs/src/jsMain/kotlin/three/objects/LineLoop.kt diff --git a/visionforge-threejs/src/main/kotlin/three/objects/LineSegments.kt b/visionforge-threejs/src/jsMain/kotlin/three/objects/LineSegments.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/objects/LineSegments.kt rename to visionforge-threejs/src/jsMain/kotlin/three/objects/LineSegments.kt diff --git a/visionforge-threejs/src/main/kotlin/three/objects/Mesh.kt b/visionforge-threejs/src/jsMain/kotlin/three/objects/Mesh.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/objects/Mesh.kt rename to visionforge-threejs/src/jsMain/kotlin/three/objects/Mesh.kt diff --git a/visionforge-threejs/src/main/kotlin/three/objects/Points.kt b/visionforge-threejs/src/jsMain/kotlin/three/objects/Points.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/objects/Points.kt rename to visionforge-threejs/src/jsMain/kotlin/three/objects/Points.kt diff --git a/visionforge-threejs/src/main/kotlin/three/objects/Sprite.kt b/visionforge-threejs/src/jsMain/kotlin/three/objects/Sprite.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/objects/Sprite.kt rename to visionforge-threejs/src/jsMain/kotlin/three/objects/Sprite.kt diff --git a/visionforge-threejs/src/main/kotlin/three/renderers/WebGL2Renderer.kt b/visionforge-threejs/src/jsMain/kotlin/three/renderers/WebGL2Renderer.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/renderers/WebGL2Renderer.kt rename to visionforge-threejs/src/jsMain/kotlin/three/renderers/WebGL2Renderer.kt diff --git a/visionforge-threejs/src/main/kotlin/three/renderers/WebGL2RendererParams.kt b/visionforge-threejs/src/jsMain/kotlin/three/renderers/WebGL2RendererParams.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/renderers/WebGL2RendererParams.kt rename to visionforge-threejs/src/jsMain/kotlin/three/renderers/WebGL2RendererParams.kt diff --git a/visionforge-threejs/src/main/kotlin/three/renderers/WebGLRenderTarget.kt b/visionforge-threejs/src/jsMain/kotlin/three/renderers/WebGLRenderTarget.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/renderers/WebGLRenderTarget.kt rename to visionforge-threejs/src/jsMain/kotlin/three/renderers/WebGLRenderTarget.kt diff --git a/visionforge-threejs/src/main/kotlin/three/renderers/WebGLRenderTargetOptions.kt b/visionforge-threejs/src/jsMain/kotlin/three/renderers/WebGLRenderTargetOptions.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/renderers/WebGLRenderTargetOptions.kt rename to visionforge-threejs/src/jsMain/kotlin/three/renderers/WebGLRenderTargetOptions.kt diff --git a/visionforge-threejs/src/main/kotlin/three/renderers/WebGLRenderer.kt b/visionforge-threejs/src/jsMain/kotlin/three/renderers/WebGLRenderer.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/renderers/WebGLRenderer.kt rename to visionforge-threejs/src/jsMain/kotlin/three/renderers/WebGLRenderer.kt diff --git a/visionforge-threejs/src/main/kotlin/three/renderers/WebGLRendererParams.kt b/visionforge-threejs/src/jsMain/kotlin/three/renderers/WebGLRendererParams.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/renderers/WebGLRendererParams.kt rename to visionforge-threejs/src/jsMain/kotlin/three/renderers/WebGLRendererParams.kt diff --git a/visionforge-threejs/src/main/kotlin/three/renderers/shaders/ShaderChunk.kt b/visionforge-threejs/src/jsMain/kotlin/three/renderers/shaders/ShaderChunk.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/renderers/shaders/ShaderChunk.kt rename to visionforge-threejs/src/jsMain/kotlin/three/renderers/shaders/ShaderChunk.kt diff --git a/visionforge-threejs/src/main/kotlin/three/renderers/shaders/ShaderLib.kt b/visionforge-threejs/src/jsMain/kotlin/three/renderers/shaders/ShaderLib.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/renderers/shaders/ShaderLib.kt rename to visionforge-threejs/src/jsMain/kotlin/three/renderers/shaders/ShaderLib.kt diff --git a/visionforge-threejs/src/main/kotlin/three/renderers/shaders/UniformsUtil.kt b/visionforge-threejs/src/jsMain/kotlin/three/renderers/shaders/UniformsUtil.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/renderers/shaders/UniformsUtil.kt rename to visionforge-threejs/src/jsMain/kotlin/three/renderers/shaders/UniformsUtil.kt diff --git a/visionforge-threejs/src/main/kotlin/three/scenes/Fog.kt b/visionforge-threejs/src/jsMain/kotlin/three/scenes/Fog.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/scenes/Fog.kt rename to visionforge-threejs/src/jsMain/kotlin/three/scenes/Fog.kt diff --git a/visionforge-threejs/src/main/kotlin/three/scenes/FogExp2.kt b/visionforge-threejs/src/jsMain/kotlin/three/scenes/FogExp2.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/scenes/FogExp2.kt rename to visionforge-threejs/src/jsMain/kotlin/three/scenes/FogExp2.kt diff --git a/visionforge-threejs/src/main/kotlin/three/scenes/Scene.kt b/visionforge-threejs/src/jsMain/kotlin/three/scenes/Scene.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/scenes/Scene.kt rename to visionforge-threejs/src/jsMain/kotlin/three/scenes/Scene.kt diff --git a/visionforge-threejs/src/main/kotlin/three/textures/CompressedTexture.kt b/visionforge-threejs/src/jsMain/kotlin/three/textures/CompressedTexture.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/textures/CompressedTexture.kt rename to visionforge-threejs/src/jsMain/kotlin/three/textures/CompressedTexture.kt diff --git a/visionforge-threejs/src/main/kotlin/three/textures/CubeTexture.kt b/visionforge-threejs/src/jsMain/kotlin/three/textures/CubeTexture.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/textures/CubeTexture.kt rename to visionforge-threejs/src/jsMain/kotlin/three/textures/CubeTexture.kt diff --git a/visionforge-threejs/src/main/kotlin/three/textures/DepthTexture.kt b/visionforge-threejs/src/jsMain/kotlin/three/textures/DepthTexture.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/textures/DepthTexture.kt rename to visionforge-threejs/src/jsMain/kotlin/three/textures/DepthTexture.kt diff --git a/visionforge-threejs/src/main/kotlin/three/textures/Texture.kt b/visionforge-threejs/src/jsMain/kotlin/three/textures/Texture.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/textures/Texture.kt rename to visionforge-threejs/src/jsMain/kotlin/three/textures/Texture.kt diff --git a/visionforge-threejs/src/main/kotlin/three/utils/BufferGeometryUtils.kt b/visionforge-threejs/src/jsMain/kotlin/three/utils/BufferGeometryUtils.kt similarity index 100% rename from visionforge-threejs/src/main/kotlin/three/utils/BufferGeometryUtils.kt rename to visionforge-threejs/src/jsMain/kotlin/three/utils/BufferGeometryUtils.kt