Update viewport-host.ts with additional imports and functions
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import {
|
import {
|
||||||
AmbientLight,
|
AmbientLight,
|
||||||
AxesHelper,
|
AxesHelper,
|
||||||
|
BufferGeometry,
|
||||||
BoxGeometry,
|
BoxGeometry,
|
||||||
CanvasTexture,
|
CanvasTexture,
|
||||||
CapsuleGeometry,
|
CapsuleGeometry,
|
||||||
@@ -10,6 +11,7 @@ import {
|
|||||||
EdgesGeometry,
|
EdgesGeometry,
|
||||||
GridHelper,
|
GridHelper,
|
||||||
Group,
|
Group,
|
||||||
|
Line,
|
||||||
LineBasicMaterial,
|
LineBasicMaterial,
|
||||||
LineSegments,
|
LineSegments,
|
||||||
Material,
|
Material,
|
||||||
@@ -34,7 +36,17 @@ import {
|
|||||||
} from "three";
|
} from "three";
|
||||||
import { EffectComposer } from "postprocessing";
|
import { EffectComposer } from "postprocessing";
|
||||||
|
|
||||||
import { isBrushFaceSelected, isBrushSelected, isModelInstanceSelected, type EditorSelection } from "../core/selection";
|
import {
|
||||||
|
areEditorSelectionsEqual,
|
||||||
|
isBrushEdgeSelected,
|
||||||
|
isBrushFaceSelected,
|
||||||
|
isBrushSelected,
|
||||||
|
isBrushVertexSelected,
|
||||||
|
isModelInstanceSelected,
|
||||||
|
type EditorSelection
|
||||||
|
} from "../core/selection";
|
||||||
|
import { getWhiteboxSelectionFeedbackLabel } from "../core/whitebox-selection-feedback";
|
||||||
|
import type { WhiteboxSelectionMode } from "../core/whitebox-selection-mode";
|
||||||
import {
|
import {
|
||||||
cloneTransformSession,
|
cloneTransformSession,
|
||||||
createInactiveTransformSession,
|
createInactiveTransformSession,
|
||||||
@@ -91,7 +103,17 @@ import {
|
|||||||
type PointLightEntity,
|
type PointLightEntity,
|
||||||
type SpotLightEntity
|
type SpotLightEntity
|
||||||
} from "../entities/entity-instances";
|
} from "../entities/entity-instances";
|
||||||
import { BOX_FACE_IDS, DEFAULT_BOX_BRUSH_SIZE, type BoxBrush, type BoxFaceId } from "../document/brushes";
|
import {
|
||||||
|
BOX_EDGE_IDS,
|
||||||
|
BOX_FACE_IDS,
|
||||||
|
BOX_VERTEX_IDS,
|
||||||
|
DEFAULT_BOX_BRUSH_SIZE,
|
||||||
|
type BoxBrush,
|
||||||
|
type BoxEdgeId,
|
||||||
|
type BoxFaceId,
|
||||||
|
type BoxVertexId
|
||||||
|
} from "../document/brushes";
|
||||||
|
import { getBoxBrushEdgeWorldSegment, getBoxBrushVertexWorldPosition } from "../geometry/box-brush-components";
|
||||||
import { applyBoxBrushFaceUvsToGeometry } from "../geometry/box-face-uvs";
|
import { applyBoxBrushFaceUvsToGeometry } from "../geometry/box-face-uvs";
|
||||||
import { createModelColliderDebugGroup } from "../geometry/model-instance-collider-debug-mesh";
|
import { createModelColliderDebugGroup } from "../geometry/model-instance-collider-debug-mesh";
|
||||||
import { buildGeneratedModelCollider } from "../geometry/model-instance-collider-generation";
|
import { buildGeneratedModelCollider } from "../geometry/model-instance-collider-generation";
|
||||||
|
|||||||
Reference in New Issue
Block a user