@damienmortini/three 0.1.193 → 0.1.195

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/copyExamples.js CHANGED
@@ -1,4 +1,4 @@
1
- const fs = require('fs-extra')
1
+ const fs = require('fs-extra');
2
2
 
3
3
  const files = new Map([
4
4
  [require.resolve('three/examples/jsm/loaders/BasisTextureLoader.js'), './examples/loaders/BasisTextureLoader.js'],
@@ -8,10 +8,10 @@ const files = new Map([
8
8
  [require.resolve('three/examples/jsm/utils/WorkerPool.js'), './examples/utils/WorkerPool.js'],
9
9
  [require.resolve('three/examples/jsm/objects/Lensflare.js'), './examples/objects/Lensflare.js'],
10
10
  [require.resolve('three/examples/jsm/utils/BufferGeometryUtils.js'), './examples/utils/BufferGeometryUtils.js'],
11
- ])
11
+ ]);
12
12
  for (const [source, destination] of files) {
13
- fs.copySync(source, destination)
14
- const data = fs.readFileSync(destination, 'utf-8')
15
- const newValue = data.replace('from \'three\'', 'from \'../../../../three/src/Three.js\'')
16
- fs.writeFileSync(destination, newValue, 'utf-8')
13
+ fs.copySync(source, destination);
14
+ const data = fs.readFileSync(destination, 'utf-8');
15
+ const newValue = data.replace('from \'three\'', 'from \'../../../../three/src/Three.js\'');
16
+ fs.writeFileSync(destination, newValue, 'utf-8');
17
17
  }
package/ecs/THREEView.js CHANGED
@@ -1,4 +1,4 @@
1
- import View from '../ecs/components/View.js'
1
+ import View from '../ecs/components/View.js';
2
2
 
3
3
  export default class THREEView extends View {
4
4
  constructor(entity, {
@@ -6,26 +6,26 @@ export default class THREEView extends View {
6
6
  visible,
7
7
  visibilityExecutor,
8
8
  } = {}) {
9
- super(entity, view, { visible, visibilityExecutor })
9
+ super(entity, view, { visible, visibilityExecutor });
10
10
  }
11
11
 
12
12
  get position() {
13
- return this._view.position
13
+ return this._view.position;
14
14
  }
15
15
 
16
16
  get rotation() {
17
- return this._view.rotation
17
+ return this._view.rotation;
18
18
  }
19
19
 
20
20
  get quaternion() {
21
- return this._view.quaternion
21
+ return this._view.quaternion;
22
22
  }
23
23
 
24
24
  get scale() {
25
- return this._view.scale
25
+ return this._view.scale;
26
26
  }
27
27
 
28
28
  get object3D() {
29
- return this._view
29
+ return this._view;
30
30
  }
31
31
  }