|
@@ -339,6 +339,39 @@ export const addCssText = () => {
|
|
|
group.add(fanLocalCSS3D);
|
|
|
}
|
|
|
}
|
|
|
+ if (!group.getObjectByName('text8')) {
|
|
|
+ const element = document.getElementById('gasBox3') as HTMLElement;
|
|
|
+ if (element) {
|
|
|
+ const fanLocalCSS3D = new CSS3DObject(element);
|
|
|
+ fanLocalCSS3D.name = 'text8';
|
|
|
+ fanLocalCSS3D.scale.set(0.03, 0.03, 0.03);
|
|
|
+ fanLocalCSS3D.rotation.y = -Math.PI / 2;
|
|
|
+ fanLocalCSS3D.position.set(-90.04, 6, 5);
|
|
|
+ group.add(fanLocalCSS3D);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!group.getObjectByName('text9')) {
|
|
|
+ const element = document.getElementById('gasBox2') as HTMLElement;
|
|
|
+ if (element) {
|
|
|
+ const fanLocalCSS3D = new CSS3DObject(element);
|
|
|
+ fanLocalCSS3D.name = 'text9';
|
|
|
+ fanLocalCSS3D.scale.set(0.07, 0.07, 0.07);
|
|
|
+ fanLocalCSS3D.rotation.y = -Math.PI / 2;
|
|
|
+ fanLocalCSS3D.position.set(-40, 6, -41);
|
|
|
+ group.add(fanLocalCSS3D);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (!group.getObjectByName('text10')) {
|
|
|
+ const element = document.getElementById('gasBox1') as HTMLElement;
|
|
|
+ if (element) {
|
|
|
+ const fanLocalCSS3D = new CSS3DObject(element);
|
|
|
+ fanLocalCSS3D.name = 'text10';
|
|
|
+ fanLocalCSS3D.scale.set(0.1, 0.1, 0.1);
|
|
|
+ fanLocalCSS3D.rotation.y = -Math.PI / 2;
|
|
|
+ fanLocalCSS3D.position.set(100, 10, -45);
|
|
|
+ group.add(fanLocalCSS3D);
|
|
|
+ }
|
|
|
+ }
|
|
|
};
|
|
|
|
|
|
// export const playSmoke = (controlType, deviceType, frequency, state) => {
|