three-render-objects 1.27.0 → 1.27.1

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.
@@ -1,40 +1,10 @@
1
- // Version 1.27.0 three-render-objects - https://github.com/vasturiano/three-render-objects
1
+ // Version 1.27.1 three-render-objects - https://github.com/vasturiano/three-render-objects
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('three')) :
4
4
  typeof define === 'function' && define.amd ? define(['three'], factory) :
5
5
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.ThreeRenderObjects = factory(global.THREE));
6
6
  })(this, (function (three$1) { 'use strict';
7
7
 
8
- function styleInject(css, ref) {
9
- if ( ref === void 0 ) ref = {};
10
- var insertAt = ref.insertAt;
11
-
12
- if (!css || typeof document === 'undefined') { return; }
13
-
14
- var head = document.head || document.getElementsByTagName('head')[0];
15
- var style = document.createElement('style');
16
- style.type = 'text/css';
17
-
18
- if (insertAt === 'top') {
19
- if (head.firstChild) {
20
- head.insertBefore(style, head.firstChild);
21
- } else {
22
- head.appendChild(style);
23
- }
24
- } else {
25
- head.appendChild(style);
26
- }
27
-
28
- if (style.styleSheet) {
29
- style.styleSheet.cssText = css;
30
- } else {
31
- style.appendChild(document.createTextNode(css));
32
- }
33
- }
34
-
35
- var css_248z = ".scene-nav-info {\n bottom: 5px;\n width: 100%;\n text-align: center;\n color: slategrey;\n opacity: 0.7;\n font-size: 10px;\n}\n\n.scene-tooltip {\n top: 0;\n color: lavender;\n font-size: 15px;\n}\n\n.scene-nav-info, .scene-tooltip {\n position: absolute;\n font-family: sans-serif;\n pointer-events: none;\n}\n\n.scene-container canvas:focus {\n outline: none;\n}";
36
- styleInject(css_248z);
37
-
38
8
  function _defineProperty(obj, key, value) {
39
9
  if (key in obj) {
40
10
  Object.defineProperty(obj, key, {
@@ -1873,8 +1843,6 @@
1873
1843
 
1874
1844
  function onMouseMove( event ) {
1875
1845
 
1876
- if ( scope.enabled === false ) return;
1877
-
1878
1846
  switch ( state ) {
1879
1847
 
1880
1848
  case STATE.ROTATE: