@anov/3d 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/scene.d.ts +2 -2
- package/dist/core/scene.js +6 -6
- package/dist/export.d.ts +2 -3
- package/dist/export.js +2 -3
- package/lib/3d.min.js +1 -1
- package/package.json +1 -1
package/dist/core/scene.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ interface CutoutAreaType {
|
|
|
65
65
|
width: number;
|
|
66
66
|
height: number;
|
|
67
67
|
}
|
|
68
|
-
declare class
|
|
68
|
+
declare class SceneControl {
|
|
69
69
|
private opts;
|
|
70
70
|
private pointer;
|
|
71
71
|
scene: TScene | null;
|
|
@@ -172,4 +172,4 @@ declare class Scene {
|
|
|
172
172
|
private updateRenderForCut;
|
|
173
173
|
destroy(): void;
|
|
174
174
|
}
|
|
175
|
-
export default
|
|
175
|
+
export default SceneControl;
|
package/dist/core/scene.js
CHANGED
|
@@ -14,11 +14,11 @@ import Cssrenderer from "./cssRenderer";
|
|
|
14
14
|
import globalControl from "./global/globalControl";
|
|
15
15
|
import globalObjectManage from "./global/global";
|
|
16
16
|
import { PerspectiveCamera } from "./camera";
|
|
17
|
-
var
|
|
17
|
+
var SceneControl = /*#__PURE__*/function () {
|
|
18
18
|
/** 裁剪相关 */
|
|
19
19
|
|
|
20
|
-
function
|
|
21
|
-
_classCallCheck(this,
|
|
20
|
+
function SceneControl(opts) {
|
|
21
|
+
_classCallCheck(this, SceneControl);
|
|
22
22
|
_defineProperty(this, "opts", {});
|
|
23
23
|
_defineProperty(this, "pointer", new Vector2());
|
|
24
24
|
_defineProperty(this, "scene", null);
|
|
@@ -48,7 +48,7 @@ var Scene = /*#__PURE__*/function () {
|
|
|
48
48
|
/**
|
|
49
49
|
* init default scene components
|
|
50
50
|
*/
|
|
51
|
-
_createClass(
|
|
51
|
+
_createClass(SceneControl, [{
|
|
52
52
|
key: "defaultInit",
|
|
53
53
|
value: function defaultInit() {
|
|
54
54
|
var _this$opts$background, _this$opts$background2;
|
|
@@ -384,6 +384,6 @@ var Scene = /*#__PURE__*/function () {
|
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
386
|
}]);
|
|
387
|
-
return
|
|
387
|
+
return SceneControl;
|
|
388
388
|
}();
|
|
389
|
-
export default
|
|
389
|
+
export default SceneControl;
|
package/dist/export.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import SceneControl from './core/scene';
|
|
2
2
|
import Mesh from './core/mesh';
|
|
3
3
|
import Group from './core/group';
|
|
4
4
|
import { PerspectiveCamera } from './core/camera';
|
|
@@ -36,6 +36,5 @@ declare const use: {
|
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
38
|
export * from 'three';
|
|
39
|
-
export { Scene as TScene } from 'three';
|
|
40
39
|
export * from './threeCell';
|
|
41
|
-
export {
|
|
40
|
+
export { SceneControl, Mesh, Group, PerspectiveCamera, ModelLoader, TransformControls, createControlLine, createLabel, ModelType, Direction, createTransformControls, utils, dom, use, globalObjectManage, };
|
package/dist/export.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable import/export */
|
|
2
|
-
import
|
|
2
|
+
import SceneControl from "./core/scene";
|
|
3
3
|
import Mesh from "./core/mesh";
|
|
4
4
|
import Group from "./core/group";
|
|
5
5
|
import { PerspectiveCamera } from "./core/camera";
|
|
@@ -32,6 +32,5 @@ var use = {
|
|
|
32
32
|
useScene: useScene
|
|
33
33
|
};
|
|
34
34
|
export * from 'three';
|
|
35
|
-
export { Scene as TScene } from 'three';
|
|
36
35
|
export * from "./threeCell";
|
|
37
|
-
export {
|
|
36
|
+
export { SceneControl, Mesh, Group, PerspectiveCamera, ModelLoader, TransformControls, createControlLine, createLabel, ModelType, Direction, createTransformControls, utils, dom, use, globalObjectManage };
|