three-render-objects 1.27.1 → 1.27.2
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,10 +1,40 @@
|
|
|
1
|
-
// Version 1.27.
|
|
1
|
+
// Version 1.27.2 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
|
+
|
|
8
38
|
function _defineProperty(obj, key, value) {
|
|
9
39
|
if (key in obj) {
|
|
10
40
|
Object.defineProperty(obj, key, {
|