@operato/scene-visualizer 9.0.0-beta.11 → 9.0.0-beta.15
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/banner.js +8 -4
- package/dist/banner.js.map +1 -1
- package/dist/camera.js +14 -9
- package/dist/camera.js.map +1 -1
- package/dist/cube.js +8 -4
- package/dist/cube.js.map +1 -1
- package/dist/cylinder.js +8 -4
- package/dist/cylinder.js.map +1 -1
- package/dist/desk.js +8 -4
- package/dist/desk.js.map +1 -1
- package/dist/editors/property-editor-location-increase-pattern.js +39 -36
- package/dist/editors/property-editor-location-increase-pattern.js.map +1 -1
- package/dist/gltf-object.js +14 -9
- package/dist/gltf-object.js.map +1 -1
- package/dist/light.js +8 -4
- package/dist/light.js.map +1 -1
- package/dist/rack-table-cell.js +8 -4
- package/dist/rack-table-cell.js.map +1 -1
- package/dist/rack-table.js +8 -4
- package/dist/rack-table.js.map +1 -1
- package/dist/sphere.js +8 -4
- package/dist/sphere.js.map +1 -1
- package/dist/sprite.js +8 -4
- package/dist/sprite.js.map +1 -1
- package/dist/three-container.js +8 -4
- package/dist/three-container.js.map +1 -1
- package/dist/three-space.js +8 -4
- package/dist/three-space.js.map +1 -1
- package/dist/visualizer.js +8 -4
- package/dist/visualizer.js.map +1 -1
- package/dist/wall.js +8 -4
- package/dist/wall.js.map +1 -1
- package/package.json +2 -2
package/dist/wall.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { __decorate } from "tslib";
|
|
1
2
|
/*
|
|
2
3
|
* Copyright © HatioLab Inc. All rights reserved.
|
|
3
4
|
*/
|
|
4
|
-
import {
|
|
5
|
+
import { RectPath, Shape, sceneComponent } from '@hatiolab/things-scene';
|
|
5
6
|
import * as THREE from 'three';
|
|
6
7
|
import { RealObjectMesh } from './threed/real-object-mesh.js';
|
|
7
8
|
const NATURE = {
|
|
@@ -26,7 +27,7 @@ export class Wall3D extends RealObjectMesh {
|
|
|
26
27
|
this.object3d.geometry = geometry;
|
|
27
28
|
}
|
|
28
29
|
}
|
|
29
|
-
|
|
30
|
+
let Wall = class Wall extends RectPath(Shape) {
|
|
30
31
|
is3dish() {
|
|
31
32
|
return true;
|
|
32
33
|
}
|
|
@@ -36,6 +37,9 @@ export class Wall extends RectPath(Shape) {
|
|
|
36
37
|
get nature() {
|
|
37
38
|
return NATURE;
|
|
38
39
|
}
|
|
39
|
-
}
|
|
40
|
-
|
|
40
|
+
};
|
|
41
|
+
Wall = __decorate([
|
|
42
|
+
sceneComponent('wall')
|
|
43
|
+
], Wall);
|
|
44
|
+
export { Wall };
|
|
41
45
|
//# sourceMappingURL=wall.js.map
|
package/dist/wall.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wall.js","sourceRoot":"","sources":["../src/wall.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"wall.js","sourceRoot":"","sources":["../src/wall.ts"],"names":[],"mappings":";AAAA;;GAEG;AACH,OAAO,EAA+B,QAAQ,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AACrG,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAE9B,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAE7D,MAAM,MAAM,GAAoB;IAC9B,OAAO,EAAE,KAAK;IACd,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,UAAU,EAAE;QACV;YACE,IAAI,EAAE,QAAQ;YACd,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,OAAO;SAClB;KACF;IACD,IAAI,EAAE,sBAAsB;CAC7B,CAAA;AAED,MAAM,OAAO,MAAO,SAAQ,cAAc;IACxC,aAAa;QACX,IAAI,EAAE,KAAK,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,EAAE,KAAK,GAAG,CAAC,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAA;QAE/D,IAAI,QAAQ,GAAG,IAAI,KAAK,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAA;QAC7C,QAAQ,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;QAEpC,IAAI,CAAC,QAAQ,CAAC,QAAQ,GAAG,QAAQ,CAAA;IACnC,CAAC;CACF;AAGM,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,QAAQ,CAAC,KAAK,CAAC;IACvC,OAAO;QACL,OAAO,IAAI,CAAA;IACb,CAAC;IAED,eAAe;QACb,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,CAAA;IACzB,CAAC;IAED,IAAI,MAAM;QACR,OAAO,MAAM,CAAA;IACf,CAAC;CACF,CAAA;AAZY,IAAI;IADhB,cAAc,CAAC,MAAM,CAAC;GACV,IAAI,CAYhB","sourcesContent":["/*\n * Copyright © HatioLab Inc. All rights reserved.\n */\nimport { ComponentNature, Properties, RectPath, Shape, sceneComponent } from '@hatiolab/things-scene'\nimport * as THREE from 'three'\nimport { RealObject } from './threed/real-object.js'\nimport { RealObjectMesh } from './threed/real-object-mesh.js'\n\nconst NATURE: ComponentNature = {\n mutable: false,\n resizable: true,\n rotatable: true,\n properties: [\n {\n type: 'number',\n label: 'depth',\n name: 'depth',\n property: 'depth'\n }\n ],\n help: 'scene/component/wall'\n}\n\nexport class Wall3D extends RealObjectMesh {\n buildGeometry() {\n var { width = 0, height = 0, depth = 0 } = this.component.state\n\n let geometry = new THREE.BoxGeometry(1, 1, 1)\n geometry.scale(width, depth, height)\n\n this.object3d.geometry = geometry\n }\n}\n\n@sceneComponent('wall')\nexport class Wall extends RectPath(Shape) {\n is3dish() {\n return true\n }\n\n buildRealObject(): RealObject | undefined {\n return new Wall3D(this)\n }\n\n get nature() {\n return NATURE\n }\n}\n"]}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@operato/scene-visualizer",
|
|
3
3
|
"description": "visualizer component for operato-scene",
|
|
4
4
|
"author": "heartyoh",
|
|
5
|
-
"version": "9.0.0-beta.
|
|
5
|
+
"version": "9.0.0-beta.15",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"module": "dist/index.js",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"prettier --write"
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "3a94a8a9ee8cb8de82ad331cb08b9e48d6625d31"
|
|
69
69
|
}
|