otsdaq_utilities  v2_05_02_indev
three.extra_head.js
1 // Collection of additional THREE.js classes, required in JSROOT
2 
3 (function( factory ) {
4  if ( typeof define === "function" && define.amd ) {
5  define( ['JSRootCore', 'threejs'], factory );
6  } else
7  if (typeof exports === 'object' && typeof module !== 'undefined') {
8  var jsroot = require("./JSRootCore.js");
9  factory(jsroot, require("three"), jsroot.nodejs || (typeof document=='undefined') ? jsroot.nodejs_document : document);
10  } else {
11 
12  if (typeof JSROOT == 'undefined')
13  throw new Error('JSROOT is not defined', 'three.extra.js');
14 
15  if (typeof THREE == 'undefined')
16  throw new Error('THREE is not defined', 'three.extra.js');
17 
18  factory(JSROOT, THREE, document);
19  }
20 } (function(JSROOT, THREE, document) {
21 
22  "use strict";
23 
24  if ((typeof document=='undefined') && (typeof window=='object')) document = window.document;
25 
26  // ===============================================================
27 
28  // Small initialisation part for used THREE font
29  JSROOT.threejs_font_helvetiker_regular = new THREE.Font(