Skip to content

Commit

Permalink
web: move controls, features, and tools to their own directories
Browse files Browse the repository at this point in the history
  • Loading branch information
av8ta committed Jun 1, 2024
1 parent 85e48e6 commit 4f91e24
Show file tree
Hide file tree
Showing 19 changed files with 208 additions and 207 deletions.
8 changes: 4 additions & 4 deletions applications/web/src/components/FeatureHistory.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script lang="ts">
import {workbench, realization} from "shared/stores"
import PointFeature from "./PointFeature.svelte"
import PlaneFeature from "./PlaneFeature.svelte"
import SketchFeature from "./SketchFeature.svelte"
import ExtrusionFeature from "./ExtrusionFeature.svelte"
import PointFeature from "./features/Point.svelte"
import PlaneFeature from "./features/Plane.svelte"
import SketchFeature from "./features/Sketch.svelte"
import ExtrusionFeature from "./features/Extrusion.svelte"
import SolidItem from "./SolidItem.svelte"
import {isPoint, isPlane, isExtrusion, isSketch} from "shared/projectUtils"
import type {SetCameraFocus} from "shared/types"
Expand Down
8 changes: 4 additions & 4 deletions applications/web/src/components/PassiveSketch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
import Face from "./Face.svelte"
import {LineMaterial} from "three/addons/lines/LineMaterial.js"
import {LineGeometry} from "three/addons/lines/LineGeometry.js"
import NewLineTool from "./NewLineTool.svelte"
import NewCircleTool from "./NewCircleTool.svelte"
import NewRectangleTool from "./NewRectangleTool.svelte"
import SelectTool from "./SelectTool.svelte"
import NewLineTool from "./tools/NewLine.svelte"
import NewCircleTool from "./tools/NewCircle.svelte"
import NewRectangleTool from "./tools/NewRectangle.svelte"
import SelectTool from "./tools/Select.svelte"
import type {ArcTuple, CircleTuple, FaceTuple, IDictionary, LineTuple, PlaneData, PreviewGeometry, SketchPoint, PointById, SketchRealized} from "shared/types"
const log = (function () { const context = "[PassiveSketch.svelte]"; const color="gray"; return Function.prototype.bind.call(console.log, console, `%c${context}`, `font-weight:bold;color:${color};`)})() // prettier-ignore
Expand Down
4 changes: 2 additions & 2 deletions applications/web/src/components/Scene.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
import Plane from "./Plane.svelte"
import Solid from "./Solid.svelte"
import Sketch from "./Sketch.svelte"
import CubeGizmo from "./CubeGizmo/CubeGizmo.svelte"
import CubeGizmo from "./controls/CubeGizmo/CubeGizmo.svelte"
import {base} from "../base"
import CadControls from "./CadControls.svelte"
import CadControls from "./controls/CadControls/CadControls.svelte"
const log = (function () { const context = "[Scene.svelte]"; const color="gray"; return Function.prototype.bind.call(console.log, console, `%c${context}`, `font-weight:bold;color:${color};`)})() // prettier-ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import {onDestroy} from "svelte"
import {useControlsContext} from "./useControlsContext"
import type {TrackballControlsEvents, TrackballControlsProps, TrackballControlsSlots} from "./TrackballControls.svelte"
import {useControlsContext} from "./useControlsContext.js"
import type {TrackballControlsEvents, TrackballControlsProps, TrackballControlsSlots} from "./TrackballControls.svelte.js"
type $$Props = TrackballControlsProps
type $$Events = TrackballControlsEvents
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import {selectingFor, workbenchIsStale, featureIndex, currentlySelected, hiddenSketches} from "shared/stores"
import X from "phosphor-svelte/lib/X"
import type {ExtrusionData} from "shared/types"
import {base} from "../base"
import {base} from "../../base"
const log = (function () { const context = "[ExtrusionFeature.svelte]"; const color="gray"; return Function.prototype.bind.call(console.log, console, `%c${context}`, `font-weight:bold;color:${color};`)})() // prettier-ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import {workbenchIsStale, featureIndex} from "shared/stores"
import MagnifyingGlass from "phosphor-svelte/lib/MagnifyingGlass"
import type {Plane, SetCameraFocus} from "shared/types"
import {base} from "../base"
import {base} from "../../base"
const log = (function () { const context = "[PlaneFeature.svelte]"; const color="gray"; return Function.prototype.bind.call(console.log, console, `%c${context}`, `font-weight:bold;color:${color};`)})() // prettier-ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import {quintOut} from "svelte/easing"
import {renameStep} from "shared/projectUtils"
import {workbenchIsStale, featureIndex} from "shared/stores"
import {base} from "../base"
import {base} from "../../base"
const log = (function () { const context = "[PointFeature.svelte]"; const color="gray"; return Function.prototype.bind.call(console.log, console, `%c${context}`, `font-weight:bold;color:${color};`)})() // prettier-ignore
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import Eye from "phosphor-svelte/lib/Eye"
import X from "phosphor-svelte/lib/X"
import type {Entity} from "shared/types"
import {base} from "../base"
import {base} from "../../base"
const log = (function () { const context = "[SketchFeature.svelte]"; const color="gray"; return Function.prototype.bind.call(console.log, console, `%c${context}`, `font-weight:bold;color:${color};`)})() // prettier-ignore
Expand Down
Loading

0 comments on commit 4f91e24

Please sign in to comment.