Skip to content

Commit

Permalink
fix Editor
Browse files Browse the repository at this point in the history
  • Loading branch information
happynxy423 committed Jun 6, 2024
1 parent 7339653 commit 6d729bb
Show file tree
Hide file tree
Showing 43 changed files with 44 additions and 44 deletions.
4 changes: 2 additions & 2 deletions editor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@
<script type="importmap">
{
"imports": {
"three": "../build/three.module.js"
"@oppentech/three": "../build/three.module.js"
}
}
</script>

<script type="module">

import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { Editor } from './js/Editor.js';
import { Viewport } from './js/Viewport.js';
Expand Down
2 changes: 1 addition & 1 deletion editor/js/Editor.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { Config } from './Config.js';
import { Loader } from './Loader.js';
Expand Down
2 changes: 1 addition & 1 deletion editor/js/EditorControls.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

function EditorControls( object, domElement ) {

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Loader.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { TGALoader } from '../../examples/jsm/loaders/TGALoader.js';

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Menubar.Add.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UIPanel, UIRow, UIHorizontalRule } from './libs/ui.js';

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Menubar.Edit.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box3, Vector3 } from 'three';
import { Box3, Vector3 } from '@oppentech/three';

import { UIPanel, UIRow, UIHorizontalRule } from './libs/ui.js';

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Menubar.Examples.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UIPanel, UIRow } from './libs/ui.js';

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Menubar.File.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { zipSync, strToU8 } from '../../examples/jsm/libs/fflate.module.js';

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Menubar.Status.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UIPanel, UIText } from './libs/ui.js';
import { UIBoolean } from './libs/ui.three.js';
Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Geometry.BoxGeometry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UIRow, UIText, UINumber, UIInteger } from './libs/ui.js';

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Geometry.CircleGeometry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Geometry.CylinderGeometry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UIRow, UIText, UIInteger, UICheckbox, UINumber } from './libs/ui.js';

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Geometry.DodecahedronGeometry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Geometry.ExtrudeGeometry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UIRow, UIText, UIInteger, UICheckbox, UIButton, UINumber } from './libs/ui.js';

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Geometry.IcosahedronGeometry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Geometry.LatheGeometry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';
import { UIPoints2 } from './libs/ui.three.js';
Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Geometry.OctahedronGeometry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Geometry.PlaneGeometry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Geometry.RingGeometry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Geometry.ShapeGeometry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UIRow, UIText, UIInteger, UIButton } from './libs/ui.js';

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Geometry.SphereGeometry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Geometry.TetrahedronGeometry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Geometry.TorusGeometry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Geometry.TorusKnotGeometry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UIRow, UIText, UIInteger, UINumber } from './libs/ui.js';

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Geometry.TubeGeometry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UIRow, UIText, UIInteger, UISelect, UICheckbox, UINumber } from './libs/ui.js';
import { UIPoints3 } from './libs/ui.three.js';
Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Geometry.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UIPanel, UIRow, UIText, UIInput, UIButton, UISpan } from './libs/ui.js';

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Material.MapProperty.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UICheckbox, UINumber, UIRow, UIText } from './libs/ui.js';
import { UITexture } from './libs/ui.three.js';
Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Material.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UIButton, UIInput, UIPanel, UIRow, UISelect, UIText } from './libs/ui.js';

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Object.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UIPanel, UIRow, UIInput, UIButton, UIColor, UICheckbox, UIInteger, UITextArea, UIText, UINumber } from './libs/ui.js';
import { UIBoolean } from './libs/ui.three.js';
Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Project.Renderer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UINumber, UIPanel, UIRow, UISelect, UIText } from './libs/ui.js';
import { UIBoolean } from './libs/ui.three.js';
Expand Down
2 changes: 1 addition & 1 deletion editor/js/Sidebar.Scene.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { UIPanel, UIBreak, UIRow, UIColor, UISelect, UIText, UINumber } from './libs/ui.js';
import { UIOutliner, UITexture } from './libs/ui.three.js';
Expand Down
2 changes: 1 addition & 1 deletion editor/js/Viewport.VR.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { HTMLMesh } from '../../examples/jsm/interactive/HTMLMesh.js';
import { InteractiveGroup } from '../../examples/jsm/interactive/InteractiveGroup.js';
Expand Down
2 changes: 1 addition & 1 deletion editor/js/Viewport.ViewHelper.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { UIPanel } from './libs/ui.js';

import * as THREE from 'three';
import * as THREE from '@oppentech/three';

class ViewHelper extends THREE.Object3D {

Expand Down
2 changes: 1 addition & 1 deletion editor/js/Viewport.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { TransformControls } from '../../examples/jsm/controls/TransformControls.js';

Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/AddObjectCommand.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Command } from '../Command.js';
import { ObjectLoader } from 'three';
import { ObjectLoader } from '@oppentech/three';

/**
* @param editor Editor
Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/RemoveObjectCommand.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Command } from '../Command.js';

import { ObjectLoader } from 'three';
import { ObjectLoader } from '@oppentech/three';

/**
* @param editor Editor
Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/SetGeometryCommand.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Command } from '../Command.js';
import { ObjectLoader } from 'three';
import { ObjectLoader } from '@oppentech/three';

/**
* @param editor Editor
Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/SetMaterialCommand.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Command } from '../Command.js';
import { ObjectLoader } from 'three';
import { ObjectLoader } from '@oppentech/three';

/**
* @param editor Editor
Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/SetMaterialMapCommand.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Command } from '../Command.js';
import { ObjectLoader } from 'three';
import { ObjectLoader } from '@oppentech/three';

/**
* @param editor Editor
Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/SetPositionCommand.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Command } from '../Command.js';
import { Vector3 } from 'three';
import { Vector3 } from '@oppentech/three';

/**
* @param editor Editor
Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/SetRotationCommand.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Command } from '../Command.js';
import { Euler } from 'three';
import { Euler } from '@oppentech/three';

/**
* @param editor Editor
Expand Down
2 changes: 1 addition & 1 deletion editor/js/commands/SetScaleCommand.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Command } from '../Command.js';
import { Vector3 } from 'three';
import { Vector3 } from '@oppentech/three';

/**
* @param editor Editor
Expand Down
2 changes: 1 addition & 1 deletion editor/js/libs/ui.three.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as THREE from 'three';
import * as THREE from '@oppentech/three';

import { RGBELoader } from '../../../examples/jsm/loaders/RGBELoader.js';
import { TGALoader } from '../../../examples/jsm/loaders/TGALoader.js';
Expand Down

0 comments on commit 6d729bb

Please sign in to comment.