fl-web-component 2.0.2 → 2.0.3
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/README.md +4 -0
- package/dist/fl-web-component.common.js +333 -309
- package/dist/fl-web-component.common.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/instance-parser.js +45 -7
|
@@ -56466,7 +56466,7 @@ module.exports = document && document.documentElement;
|
|
|
56466
56466
|
/***/ "9224":
|
|
56467
56467
|
/***/ (function(module) {
|
|
56468
56468
|
|
|
56469
|
-
module.exports = JSON.parse("{\"name\":\"fl-web-component\",\"version\":\"2.0.
|
|
56469
|
+
module.exports = JSON.parse("{\"name\":\"fl-web-component\",\"version\":\"2.0.3\",\"scripts\":{\"postinstall\":\"patch-package\",\"tip1\":\"仅调试本组件不涉及业务组件,请执行dev\",\"dev\":\"vue-cli-service serve\",\"lint\":\"eslint \\\"{src,packages}/**/*.{vue,js}\\\" --fix\",\"prettier\":\"prettier --write \\\"packages/**/*.{js,css,less,scss,vue,html}\\\"\",\"=\":\"=============================================================\",\"tip2\":\"同时调试本组件与业务组件,请执行watch\",\"watch\":\"vue-cli-service build --watch --mode production --target lib --name fl-web-component --formats commonjs ./src/main.js\",\"build\":\"npm run lint && vue-cli-service build --target lib --name fl-web-component --formats commonjs ./src/main.js\",\"build:test\":\"vue-cli-service build --target lib --name fl-web-component --formats commonjs ./src/main.js\",\"publish:base\":\"npm run build && npm publish --registry https://registry.npmjs.org/\",\"publish:beta:base\":\"npm run build && npm publish --tag beta --registry https://registry.npmjs.org/\",\"==\":\"=============================================================\",\"tip3\":\"发版注意: 【测试版执行publish:beta】【修改bug执行publish:fix】【新增功能执行publish:feat】【新特性执行publish:perf】\",\"publish:beta\":\"npm version prerelease --preid=beta && npm run publish:beta:base\",\"publish:fix\":\"npm version patch && npm run publish:base\",\"publish:feat\":\"npm version minor && npm run publish:base\",\"publish:perf\":\"npm version major && npm run publish:base\"},\"files\":[\"dist\",\"packages\",\"src\"],\"main\":\"dist/fl-web-component.common.js\",\"dependencies\":{\"3d-tiles-renderer\":\"^0.4.14\",\"camera-controls\":\"2.9.0\",\"core-js\":\"^3.42.0\",\"dxf-parser\":\"^1.1.2\",\"element-ui\":\"2.15.14\",\"fflate\":\"^0.8.2\",\"html2canvas\":\"^1.4.1\",\"jspdf\":\"^3.0.1\",\"konva\":\"^9.3.12\",\"lodash\":\"^4.17.21\",\"meshline\":\"^3.3.1\",\"regenerator-runtime\":\"^0.14.1\",\"svg-pan-zoom\":\"^3.6.2\",\"three\":\"^0.176.0\",\"three.path\":\"^1.0.1\",\"vue\":\"^2.6.11\"},\"devDependencies\":{\"@babel/core\":\"^7.12.16\",\"@babel/plugin-proposal-nullish-coalescing-operator\":\"^7.18.6\",\"@babel/plugin-proposal-optional-chaining\":\"^7.21.0\",\"@babel/preset-env\":\"^7.0.0\",\"@babel/runtime-corejs3\":\"^7.27.1\",\"@vue/cli-plugin-babel\":\"~4.4.0\",\"@vue/cli-plugin-eslint\":\"~4.4.0\",\"@vue/cli-service\":\"~4.4.0\",\"babel-eslint\":\"^10.1.0\",\"babel-loader\":\"^8.0.0\",\"copy-webpack-plugin\":\"^4.0.1\",\"eslint\":\"^6.7.2\",\"eslint-config-prettier\":\"^6.15.0\",\"eslint-plugin-prettier\":\"^3.4.1\",\"eslint-plugin-vue\":\"^6.2.2\",\"patch-package\":\"^6.4.7\",\"prettier\":\"^2.8.8\",\"sass\":\"1.32.13\",\"sass-loader\":\"10.1.1\",\"vue-template-compiler\":\"^2.6.11\",\"worker-loader\":\"^3.0.8\"},\"browserslist\":[\"> 1%\",\"last 2 versions\"]}");
|
|
56470
56470
|
|
|
56471
56471
|
/***/ }),
|
|
56472
56472
|
|
|
@@ -78611,7 +78611,7 @@ if (typeof window !== 'undefined') {
|
|
|
78611
78611
|
// Indicate to webpack that this file can be concatenated
|
|
78612
78612
|
/* harmony default export */ var setPublicPath = (null);
|
|
78613
78613
|
|
|
78614
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
78614
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2fafb909-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/com-graphics/index.vue?vue&type=template&id=4b02d5a5&scoped=true
|
|
78615
78615
|
var com_graphicsvue_type_template_id_4b02d5a5_scoped_true_render = function render() {
|
|
78616
78616
|
var _vm = this,
|
|
78617
78617
|
_c = _vm._self._c;
|
|
@@ -106823,306 +106823,6 @@ function generateNode(mesh) {
|
|
|
106823
106823
|
return nodes;
|
|
106824
106824
|
}
|
|
106825
106825
|
|
|
106826
|
-
// CONCATENATED MODULE: ./node_modules/three/examples/jsm/loaders/FontLoader.js
|
|
106827
|
-
function FontLoader_typeof(o) { "@babel/helpers - typeof"; return FontLoader_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, FontLoader_typeof(o); }
|
|
106828
|
-
function FontLoader_toConsumableArray(r) { return FontLoader_arrayWithoutHoles(r) || FontLoader_iterableToArray(r) || FontLoader_unsupportedIterableToArray(r) || FontLoader_nonIterableSpread(); }
|
|
106829
|
-
function FontLoader_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
106830
|
-
function FontLoader_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return FontLoader_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? FontLoader_arrayLikeToArray(r, a) : void 0; } }
|
|
106831
|
-
function FontLoader_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
106832
|
-
function FontLoader_arrayWithoutHoles(r) { if (Array.isArray(r)) return FontLoader_arrayLikeToArray(r); }
|
|
106833
|
-
function FontLoader_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
106834
|
-
function FontLoader_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
106835
|
-
function FontLoader_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, FontLoader_toPropertyKey(o.key), o); } }
|
|
106836
|
-
function FontLoader_createClass(e, r, t) { return r && FontLoader_defineProperties(e.prototype, r), t && FontLoader_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
106837
|
-
function FontLoader_toPropertyKey(t) { var i = FontLoader_toPrimitive(t, "string"); return "symbol" == FontLoader_typeof(i) ? i : i + ""; }
|
|
106838
|
-
function FontLoader_toPrimitive(t, r) { if ("object" != FontLoader_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != FontLoader_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
106839
|
-
function FontLoader_callSuper(t, o, e) { return o = FontLoader_getPrototypeOf(o), FontLoader_possibleConstructorReturn(t, FontLoader_isNativeReflectConstruct() ? Reflect.construct(o, e || [], FontLoader_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
106840
|
-
function FontLoader_possibleConstructorReturn(t, e) { if (e && ("object" == FontLoader_typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return FontLoader_assertThisInitialized(t); }
|
|
106841
|
-
function FontLoader_assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
106842
|
-
function FontLoader_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (FontLoader_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
106843
|
-
function FontLoader_getPrototypeOf(t) { return FontLoader_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, FontLoader_getPrototypeOf(t); }
|
|
106844
|
-
function FontLoader_inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && FontLoader_setPrototypeOf(t, e); }
|
|
106845
|
-
function FontLoader_setPrototypeOf(t, e) { return FontLoader_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, FontLoader_setPrototypeOf(t, e); }
|
|
106846
|
-
|
|
106847
|
-
|
|
106848
|
-
/**
|
|
106849
|
-
* A loader for loading fonts.
|
|
106850
|
-
*
|
|
106851
|
-
* You can convert fonts online using [facetype.js]{@link https://gero3.github.io/facetype.js/}.
|
|
106852
|
-
*
|
|
106853
|
-
* ```js
|
|
106854
|
-
* const loader = new FontLoader();
|
|
106855
|
-
* const font = await loader.loadAsync( 'fonts/helvetiker_regular.typeface.json' );
|
|
106856
|
-
* ```
|
|
106857
|
-
*
|
|
106858
|
-
* @augments Loader
|
|
106859
|
-
* @three_import import { FontLoader } from 'three/addons/loaders/FontLoader.js';
|
|
106860
|
-
*/
|
|
106861
|
-
var FontLoader_FontLoader = /*#__PURE__*/function (_Loader) {
|
|
106862
|
-
/**
|
|
106863
|
-
* Constructs a new font loader.
|
|
106864
|
-
*
|
|
106865
|
-
* @param {LoadingManager} [manager] - The loading manager.
|
|
106866
|
-
*/
|
|
106867
|
-
function FontLoader(manager) {
|
|
106868
|
-
FontLoader_classCallCheck(this, FontLoader);
|
|
106869
|
-
return FontLoader_callSuper(this, FontLoader, [manager]);
|
|
106870
|
-
}
|
|
106871
|
-
|
|
106872
|
-
/**
|
|
106873
|
-
* Starts loading from the given URL and passes the loaded font
|
|
106874
|
-
* to the `onLoad()` callback.
|
|
106875
|
-
*
|
|
106876
|
-
* @param {string} url - The path/URL of the file to be loaded. This can also be a data URI.
|
|
106877
|
-
* @param {function(Font)} onLoad - Executed when the loading process has been finished.
|
|
106878
|
-
* @param {onProgressCallback} onProgress - Executed while the loading is in progress.
|
|
106879
|
-
* @param {onErrorCallback} onError - Executed when errors occur.
|
|
106880
|
-
*/
|
|
106881
|
-
FontLoader_inherits(FontLoader, _Loader);
|
|
106882
|
-
return FontLoader_createClass(FontLoader, [{
|
|
106883
|
-
key: "load",
|
|
106884
|
-
value: function load(url, onLoad, onProgress, onError) {
|
|
106885
|
-
var scope = this;
|
|
106886
|
-
var loader = new FileLoader(this.manager);
|
|
106887
|
-
loader.setPath(this.path);
|
|
106888
|
-
loader.setRequestHeader(this.requestHeader);
|
|
106889
|
-
loader.setWithCredentials(this.withCredentials);
|
|
106890
|
-
loader.load(url, function (text) {
|
|
106891
|
-
var font = scope.parse(JSON.parse(text));
|
|
106892
|
-
if (onLoad) onLoad(font);
|
|
106893
|
-
}, onProgress, onError);
|
|
106894
|
-
}
|
|
106895
|
-
|
|
106896
|
-
/**
|
|
106897
|
-
* Parses the given font data and returns the resulting font.
|
|
106898
|
-
*
|
|
106899
|
-
* @param {Object} json - The raw font data as a JSON object.
|
|
106900
|
-
* @return {Font} The font.
|
|
106901
|
-
*/
|
|
106902
|
-
}, {
|
|
106903
|
-
key: "parse",
|
|
106904
|
-
value: function parse(json) {
|
|
106905
|
-
return new Font(json);
|
|
106906
|
-
}
|
|
106907
|
-
}]);
|
|
106908
|
-
}(Loader);
|
|
106909
|
-
/**
|
|
106910
|
-
* Class representing a font.
|
|
106911
|
-
*/
|
|
106912
|
-
var Font = /*#__PURE__*/function () {
|
|
106913
|
-
/**
|
|
106914
|
-
* Constructs a new font.
|
|
106915
|
-
*
|
|
106916
|
-
* @param {Object} data - The font data as JSON.
|
|
106917
|
-
*/
|
|
106918
|
-
function Font(data) {
|
|
106919
|
-
FontLoader_classCallCheck(this, Font);
|
|
106920
|
-
/**
|
|
106921
|
-
* This flag can be used for type testing.
|
|
106922
|
-
*
|
|
106923
|
-
* @type {boolean}
|
|
106924
|
-
* @readonly
|
|
106925
|
-
* @default true
|
|
106926
|
-
*/
|
|
106927
|
-
this.isFont = true;
|
|
106928
|
-
this.type = 'Font';
|
|
106929
|
-
|
|
106930
|
-
/**
|
|
106931
|
-
* The font data as JSON.
|
|
106932
|
-
*
|
|
106933
|
-
* @type {Object}
|
|
106934
|
-
*/
|
|
106935
|
-
this.data = data;
|
|
106936
|
-
}
|
|
106937
|
-
|
|
106938
|
-
/**
|
|
106939
|
-
* Generates geometry shapes from the given text and size. The result of this method
|
|
106940
|
-
* should be used with {@link ShapeGeometry} to generate the actual geometry data.
|
|
106941
|
-
*
|
|
106942
|
-
* @param {string} text - The text.
|
|
106943
|
-
* @param {number} [size=100] - The text size.
|
|
106944
|
-
* @return {Array<Shape>} An array of shapes representing the text.
|
|
106945
|
-
*/
|
|
106946
|
-
return FontLoader_createClass(Font, [{
|
|
106947
|
-
key: "generateShapes",
|
|
106948
|
-
value: function generateShapes(text) {
|
|
106949
|
-
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100;
|
|
106950
|
-
var shapes = [];
|
|
106951
|
-
var paths = createPaths(text, size, this.data);
|
|
106952
|
-
for (var p = 0, pl = paths.length; p < pl; p++) {
|
|
106953
|
-
shapes.push.apply(shapes, FontLoader_toConsumableArray(paths[p].toShapes()));
|
|
106954
|
-
}
|
|
106955
|
-
return shapes;
|
|
106956
|
-
}
|
|
106957
|
-
}]);
|
|
106958
|
-
}();
|
|
106959
|
-
function createPaths(text, size, data) {
|
|
106960
|
-
var chars = Array.from(text);
|
|
106961
|
-
var scale = size / data.resolution;
|
|
106962
|
-
var line_height = (data.boundingBox.yMax - data.boundingBox.yMin + data.underlineThickness) * scale;
|
|
106963
|
-
var paths = [];
|
|
106964
|
-
var offsetX = 0,
|
|
106965
|
-
offsetY = 0;
|
|
106966
|
-
for (var i = 0; i < chars.length; i++) {
|
|
106967
|
-
var char = chars[i];
|
|
106968
|
-
if (char === '\n') {
|
|
106969
|
-
offsetX = 0;
|
|
106970
|
-
offsetY -= line_height;
|
|
106971
|
-
} else {
|
|
106972
|
-
var ret = createPath(char, scale, offsetX, offsetY, data);
|
|
106973
|
-
offsetX += ret.offsetX;
|
|
106974
|
-
paths.push(ret.path);
|
|
106975
|
-
}
|
|
106976
|
-
}
|
|
106977
|
-
return paths;
|
|
106978
|
-
}
|
|
106979
|
-
function createPath(char, scale, offsetX, offsetY, data) {
|
|
106980
|
-
var glyph = data.glyphs[char] || data.glyphs['?'];
|
|
106981
|
-
if (!glyph) {
|
|
106982
|
-
console.error('THREE.Font: character "' + char + '" does not exists in font family ' + data.familyName + '.');
|
|
106983
|
-
return;
|
|
106984
|
-
}
|
|
106985
|
-
var path = new ShapePath();
|
|
106986
|
-
var x, y, cpx, cpy, cpx1, cpy1, cpx2, cpy2;
|
|
106987
|
-
if (glyph.o) {
|
|
106988
|
-
var outline = glyph._cachedOutline || (glyph._cachedOutline = glyph.o.split(' '));
|
|
106989
|
-
for (var i = 0, l = outline.length; i < l;) {
|
|
106990
|
-
var action = outline[i++];
|
|
106991
|
-
switch (action) {
|
|
106992
|
-
case 'm':
|
|
106993
|
-
// moveTo
|
|
106994
|
-
|
|
106995
|
-
x = outline[i++] * scale + offsetX;
|
|
106996
|
-
y = outline[i++] * scale + offsetY;
|
|
106997
|
-
path.moveTo(x, y);
|
|
106998
|
-
break;
|
|
106999
|
-
case 'l':
|
|
107000
|
-
// lineTo
|
|
107001
|
-
|
|
107002
|
-
x = outline[i++] * scale + offsetX;
|
|
107003
|
-
y = outline[i++] * scale + offsetY;
|
|
107004
|
-
path.lineTo(x, y);
|
|
107005
|
-
break;
|
|
107006
|
-
case 'q':
|
|
107007
|
-
// quadraticCurveTo
|
|
107008
|
-
|
|
107009
|
-
cpx = outline[i++] * scale + offsetX;
|
|
107010
|
-
cpy = outline[i++] * scale + offsetY;
|
|
107011
|
-
cpx1 = outline[i++] * scale + offsetX;
|
|
107012
|
-
cpy1 = outline[i++] * scale + offsetY;
|
|
107013
|
-
path.quadraticCurveTo(cpx1, cpy1, cpx, cpy);
|
|
107014
|
-
break;
|
|
107015
|
-
case 'b':
|
|
107016
|
-
// bezierCurveTo
|
|
107017
|
-
|
|
107018
|
-
cpx = outline[i++] * scale + offsetX;
|
|
107019
|
-
cpy = outline[i++] * scale + offsetY;
|
|
107020
|
-
cpx1 = outline[i++] * scale + offsetX;
|
|
107021
|
-
cpy1 = outline[i++] * scale + offsetY;
|
|
107022
|
-
cpx2 = outline[i++] * scale + offsetX;
|
|
107023
|
-
cpy2 = outline[i++] * scale + offsetY;
|
|
107024
|
-
path.bezierCurveTo(cpx1, cpy1, cpx2, cpy2, cpx, cpy);
|
|
107025
|
-
break;
|
|
107026
|
-
}
|
|
107027
|
-
}
|
|
107028
|
-
}
|
|
107029
|
-
return {
|
|
107030
|
-
offsetX: glyph.ha * scale,
|
|
107031
|
-
path: path
|
|
107032
|
-
};
|
|
107033
|
-
}
|
|
107034
|
-
|
|
107035
|
-
// CONCATENATED MODULE: ./node_modules/three/examples/jsm/geometries/TextGeometry.js
|
|
107036
|
-
function TextGeometry_typeof(o) { "@babel/helpers - typeof"; return TextGeometry_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, TextGeometry_typeof(o); }
|
|
107037
|
-
function TextGeometry_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, TextGeometry_toPropertyKey(o.key), o); } }
|
|
107038
|
-
function TextGeometry_createClass(e, r, t) { return r && TextGeometry_defineProperties(e.prototype, r), t && TextGeometry_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
107039
|
-
function TextGeometry_toPropertyKey(t) { var i = TextGeometry_toPrimitive(t, "string"); return "symbol" == TextGeometry_typeof(i) ? i : i + ""; }
|
|
107040
|
-
function TextGeometry_toPrimitive(t, r) { if ("object" != TextGeometry_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != TextGeometry_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
107041
|
-
function TextGeometry_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
107042
|
-
function TextGeometry_callSuper(t, o, e) { return o = TextGeometry_getPrototypeOf(o), TextGeometry_possibleConstructorReturn(t, TextGeometry_isNativeReflectConstruct() ? Reflect.construct(o, e || [], TextGeometry_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
107043
|
-
function TextGeometry_possibleConstructorReturn(t, e) { if (e && ("object" == TextGeometry_typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return TextGeometry_assertThisInitialized(t); }
|
|
107044
|
-
function TextGeometry_assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
107045
|
-
function TextGeometry_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (TextGeometry_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
107046
|
-
function TextGeometry_getPrototypeOf(t) { return TextGeometry_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, TextGeometry_getPrototypeOf(t); }
|
|
107047
|
-
function TextGeometry_inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && TextGeometry_setPrototypeOf(t, e); }
|
|
107048
|
-
function TextGeometry_setPrototypeOf(t, e) { return TextGeometry_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, TextGeometry_setPrototypeOf(t, e); }
|
|
107049
|
-
|
|
107050
|
-
|
|
107051
|
-
/**
|
|
107052
|
-
* A class for generating text as a single geometry. It is constructed by providing a string of text, and a set of
|
|
107053
|
-
* parameters consisting of a loaded font and extrude settings.
|
|
107054
|
-
*
|
|
107055
|
-
* See the {@link FontLoader} page for additional details.
|
|
107056
|
-
*
|
|
107057
|
-
* `TextGeometry` uses [typeface.json]{@link http://gero3.github.io/facetype.js/} generated fonts.
|
|
107058
|
-
* Some existing fonts can be found located in `/examples/fonts`.
|
|
107059
|
-
*
|
|
107060
|
-
* ```js
|
|
107061
|
-
* const loader = new FontLoader();
|
|
107062
|
-
* const font = await loader.loadAsync( 'fonts/helvetiker_regular.typeface.json' );
|
|
107063
|
-
* const geometry = new TextGeometry( 'Hello three.js!', {
|
|
107064
|
-
* font: font,
|
|
107065
|
-
* size: 80,
|
|
107066
|
-
* depth: 5,
|
|
107067
|
-
* curveSegments: 12
|
|
107068
|
-
* } );
|
|
107069
|
-
* ```
|
|
107070
|
-
*
|
|
107071
|
-
* @augments ExtrudeGeometry
|
|
107072
|
-
* @three_import import { TextGeometry } from 'three/addons/geometries/TextGeometry.js';
|
|
107073
|
-
*/
|
|
107074
|
-
var TextGeometry = /*#__PURE__*/function (_ExtrudeGeometry) {
|
|
107075
|
-
/**
|
|
107076
|
-
* Constructs a new text geometry.
|
|
107077
|
-
*
|
|
107078
|
-
* @param {string} text - The text that should be transformed into a geometry.
|
|
107079
|
-
* @param {TextGeometry~Options} [parameters] - The text settings.
|
|
107080
|
-
*/
|
|
107081
|
-
function TextGeometry(text) {
|
|
107082
|
-
var _this;
|
|
107083
|
-
var parameters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
107084
|
-
TextGeometry_classCallCheck(this, TextGeometry);
|
|
107085
|
-
var font = parameters.font;
|
|
107086
|
-
if (font === undefined) {
|
|
107087
|
-
_this = TextGeometry_callSuper(this, TextGeometry); // generate default extrude geometry
|
|
107088
|
-
} else {
|
|
107089
|
-
var shapes = font.generateShapes(text, parameters.size);
|
|
107090
|
-
|
|
107091
|
-
// defaults
|
|
107092
|
-
|
|
107093
|
-
if (parameters.depth === undefined) parameters.depth = 50;
|
|
107094
|
-
if (parameters.bevelThickness === undefined) parameters.bevelThickness = 10;
|
|
107095
|
-
if (parameters.bevelSize === undefined) parameters.bevelSize = 8;
|
|
107096
|
-
if (parameters.bevelEnabled === undefined) parameters.bevelEnabled = false;
|
|
107097
|
-
_this = TextGeometry_callSuper(this, TextGeometry, [shapes, parameters]);
|
|
107098
|
-
}
|
|
107099
|
-
_this.type = 'TextGeometry';
|
|
107100
|
-
return TextGeometry_assertThisInitialized(_this);
|
|
107101
|
-
}
|
|
107102
|
-
TextGeometry_inherits(TextGeometry, _ExtrudeGeometry);
|
|
107103
|
-
return TextGeometry_createClass(TextGeometry);
|
|
107104
|
-
}(ExtrudeGeometry);
|
|
107105
|
-
/**
|
|
107106
|
-
* Represents the `options` type of the geometry's constructor.
|
|
107107
|
-
*
|
|
107108
|
-
* @typedef {Object} TextGeometry~Options
|
|
107109
|
-
* @property {Font} [font] - The font.
|
|
107110
|
-
* @property {number} [size=100] - The text size.
|
|
107111
|
-
* @property {number} [depth=50] - Depth to extrude the shape.
|
|
107112
|
-
* @property {number} [curveSegments=12] - Number of points on the curves.
|
|
107113
|
-
* @property {number} [steps=1] - Number of points used for subdividing segments along the depth of the extruded spline.
|
|
107114
|
-
* @property {boolean} [bevelEnabled=false] - Whether to beveling to the shape or not.
|
|
107115
|
-
* @property {number} [bevelThickness=10] - How deep into the original shape the bevel goes.
|
|
107116
|
-
* @property {number} [bevelSize=8] - Distance from the shape outline that the bevel extends.
|
|
107117
|
-
* @property {number} [bevelOffset=0] - Distance from the shape outline that the bevel starts.
|
|
107118
|
-
* @property {number} [bevelSegments=3] - Number of bevel layers.
|
|
107119
|
-
* @property {?Curve} [extrudePath=null] - A 3D spline path along which the shape should be extruded. Bevels not supported for path extrusion.
|
|
107120
|
-
* @property {Object} [UVGenerator] - An object that provides UV generator functions for custom UV generation.
|
|
107121
|
-
**/
|
|
107122
|
-
|
|
107123
|
-
// EXTERNAL MODULE: ./node_modules/three/examples/fonts/helvetiker_regular.typeface.json
|
|
107124
|
-
var helvetiker_regular_typeface = __webpack_require__("7e1b");
|
|
107125
|
-
|
|
107126
106826
|
// CONCATENATED MODULE: ./node_modules/three/build/three.module.js
|
|
107127
106827
|
function three_module_regenerator(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var e,t,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",o=r.toStringTag||"@@toStringTag";function i(r,n,o,i){var c=n&&n.prototype instanceof Generator?n:Generator,u=Object.create(c.prototype);return three_module_regeneratorDefine2(u,"_invoke",function(r,n,o){var i,c,u,f=0,p=o||[],y=!1,G={p:0,n:0,v:e,a:d,f:d.bind(e,4),d:function d(t,r){return i=t,c=0,u=e,G.n=r,a;}};function d(r,n){for(c=r,u=n,t=0;!y&&f&&!o&&t<p.length;t++){var o,i=p[t],d=G.p,l=i[2];r>3?(o=l===n)&&(u=i[(c=i[4])?5:(c=3,3)],i[4]=i[5]=e):i[0]<=d&&((o=r<2&&d<i[1])?(c=0,G.v=n,G.n=i[1]):d<l&&(o=r<3||i[0]>n||n>l)&&(i[4]=r,i[5]=n,G.n=l,c=0));}if(o||r>1)return a;throw y=!0,n;}return function(o,p,l){if(f>1)throw TypeError("Generator is already running");for(y&&1===p&&d(p,l),c=p,u=l;(t=c<2?e:u)||!y;){i||(c?c<3?(c>1&&(G.n=-1),d(c,u)):G.n=u:G.v=u);try{if(f=2,i){if(c||(o="next"),t=i[o]){if(!(t=t.call(i,u)))throw TypeError("iterator result is not an object");if(!t.done)return t;u=t.value,c<2&&(c=0);}else 1===c&&(t=i.return)&&t.call(i),c<2&&(u=TypeError("The iterator does not provide a '"+o+"' method"),c=1);i=e;}else if((t=(y=G.n<0)?u:r.call(n,G))!==a)break;}catch(t){i=e,c=1,u=t;}finally{f=1;}}return{value:t,done:y};};}(r,o,i),!0),u;}var a={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}t=Object.getPrototypeOf;var c=[][n]?t(t([][n]())):(three_module_regeneratorDefine2(t={},n,function(){return this;}),t),u=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(c);function f(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,GeneratorFunctionPrototype):(e.__proto__=GeneratorFunctionPrototype,three_module_regeneratorDefine2(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e;}return GeneratorFunction.prototype=GeneratorFunctionPrototype,three_module_regeneratorDefine2(u,"constructor",GeneratorFunctionPrototype),three_module_regeneratorDefine2(GeneratorFunctionPrototype,"constructor",GeneratorFunction),GeneratorFunction.displayName="GeneratorFunction",three_module_regeneratorDefine2(GeneratorFunctionPrototype,o,"GeneratorFunction"),three_module_regeneratorDefine2(u),three_module_regeneratorDefine2(u,o,"Generator"),three_module_regeneratorDefine2(u,n,function(){return this;}),three_module_regeneratorDefine2(u,"toString",function(){return"[object Generator]";}),(three_module_regenerator=function _regenerator(){return{w:i,m:f};})();}function three_module_regeneratorDefine2(e,r,n,t){var i=Object.defineProperty;try{i({},"",{});}catch(e){i=0;}three_module_regeneratorDefine2=function _regeneratorDefine(e,r,n,t){function o(r,n){three_module_regeneratorDefine2(e,r,function(e){return this._invoke(r,n,e);});}r?i?i(e,r,{value:n,enumerable:!t,configurable:!t,writable:!t}):e[r]=n:(o("next",0),o("throw",1),o("return",2));},three_module_regeneratorDefine2(e,r,n,t);}function three_module_asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function three_module_asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){three_module_asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){three_module_asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}function three_module_callSuper(t,o,e){return o=three_module_getPrototypeOf(o),three_module_possibleConstructorReturn(t,three_module_isNativeReflectConstruct()?Reflect.construct(o,e||[],three_module_getPrototypeOf(t).constructor):o.apply(t,e));}function three_module_possibleConstructorReturn(t,e){if(e&&("object"==three_module_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return three_module_assertThisInitialized(t);}function three_module_assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function three_module_isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(three_module_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function three_module_getPrototypeOf(t){return three_module_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},three_module_getPrototypeOf(t);}function three_module_inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&three_module_setPrototypeOf(t,e);}function three_module_setPrototypeOf(t,e){return three_module_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},three_module_setPrototypeOf(t,e);}function three_module_defineProperty(e,r,t){return(r=three_module_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function three_module_createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=three_module_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]};},e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t.return||t.return();}finally{if(u)throw o;}}};}function three_module_unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return three_module_arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?three_module_arrayLikeToArray(r,a):void 0;}}function three_module_arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function three_module_typeof(o){"@babel/helpers - typeof";return three_module_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},three_module_typeof(o);}function three_module_classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function three_module_defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,three_module_toPropertyKey(o.key),o);}}function three_module_createClass(e,r,t){return r&&three_module_defineProperties(e.prototype,r),t&&three_module_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function three_module_toPropertyKey(t){var i=three_module_toPrimitive(t,"string");return"symbol"==three_module_typeof(i)?i:i+"";}function three_module_toPrimitive(t,r){if("object"!=three_module_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=three_module_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}/**
|
|
107128
106828
|
* @license
|
|
@@ -108402,6 +108102,306 @@ warnOnce('WebGLRenderer: copyTextureToTexture3D function has been deprecated. Us
|
|
|
108402
108102
|
* @type {SRGBColorSpace|LinearSRGBColorSpace}
|
|
108403
108103
|
* @default SRGBColorSpace
|
|
108404
108104
|
*/},{key:"outputColorSpace",get:function get(){return this._outputColorSpace;},set:function set(colorSpace){this._outputColorSpace=colorSpace;var gl=this.getContext();gl.drawingBufferColorSpace=ColorManagement._getDrawingBufferColorSpace(colorSpace);gl.unpackColorSpace=ColorManagement._getUnpackColorSpace();}}]);}();
|
|
108105
|
+
// CONCATENATED MODULE: ./node_modules/three/examples/jsm/loaders/FontLoader.js
|
|
108106
|
+
function FontLoader_typeof(o) { "@babel/helpers - typeof"; return FontLoader_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, FontLoader_typeof(o); }
|
|
108107
|
+
function FontLoader_toConsumableArray(r) { return FontLoader_arrayWithoutHoles(r) || FontLoader_iterableToArray(r) || FontLoader_unsupportedIterableToArray(r) || FontLoader_nonIterableSpread(); }
|
|
108108
|
+
function FontLoader_nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
108109
|
+
function FontLoader_unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return FontLoader_arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? FontLoader_arrayLikeToArray(r, a) : void 0; } }
|
|
108110
|
+
function FontLoader_iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
108111
|
+
function FontLoader_arrayWithoutHoles(r) { if (Array.isArray(r)) return FontLoader_arrayLikeToArray(r); }
|
|
108112
|
+
function FontLoader_arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
108113
|
+
function FontLoader_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
108114
|
+
function FontLoader_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, FontLoader_toPropertyKey(o.key), o); } }
|
|
108115
|
+
function FontLoader_createClass(e, r, t) { return r && FontLoader_defineProperties(e.prototype, r), t && FontLoader_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
108116
|
+
function FontLoader_toPropertyKey(t) { var i = FontLoader_toPrimitive(t, "string"); return "symbol" == FontLoader_typeof(i) ? i : i + ""; }
|
|
108117
|
+
function FontLoader_toPrimitive(t, r) { if ("object" != FontLoader_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != FontLoader_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
108118
|
+
function FontLoader_callSuper(t, o, e) { return o = FontLoader_getPrototypeOf(o), FontLoader_possibleConstructorReturn(t, FontLoader_isNativeReflectConstruct() ? Reflect.construct(o, e || [], FontLoader_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
108119
|
+
function FontLoader_possibleConstructorReturn(t, e) { if (e && ("object" == FontLoader_typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return FontLoader_assertThisInitialized(t); }
|
|
108120
|
+
function FontLoader_assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
108121
|
+
function FontLoader_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (FontLoader_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
108122
|
+
function FontLoader_getPrototypeOf(t) { return FontLoader_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, FontLoader_getPrototypeOf(t); }
|
|
108123
|
+
function FontLoader_inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && FontLoader_setPrototypeOf(t, e); }
|
|
108124
|
+
function FontLoader_setPrototypeOf(t, e) { return FontLoader_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, FontLoader_setPrototypeOf(t, e); }
|
|
108125
|
+
|
|
108126
|
+
|
|
108127
|
+
/**
|
|
108128
|
+
* A loader for loading fonts.
|
|
108129
|
+
*
|
|
108130
|
+
* You can convert fonts online using [facetype.js]{@link https://gero3.github.io/facetype.js/}.
|
|
108131
|
+
*
|
|
108132
|
+
* ```js
|
|
108133
|
+
* const loader = new FontLoader();
|
|
108134
|
+
* const font = await loader.loadAsync( 'fonts/helvetiker_regular.typeface.json' );
|
|
108135
|
+
* ```
|
|
108136
|
+
*
|
|
108137
|
+
* @augments Loader
|
|
108138
|
+
* @three_import import { FontLoader } from 'three/addons/loaders/FontLoader.js';
|
|
108139
|
+
*/
|
|
108140
|
+
var FontLoader_FontLoader = /*#__PURE__*/function (_Loader) {
|
|
108141
|
+
/**
|
|
108142
|
+
* Constructs a new font loader.
|
|
108143
|
+
*
|
|
108144
|
+
* @param {LoadingManager} [manager] - The loading manager.
|
|
108145
|
+
*/
|
|
108146
|
+
function FontLoader(manager) {
|
|
108147
|
+
FontLoader_classCallCheck(this, FontLoader);
|
|
108148
|
+
return FontLoader_callSuper(this, FontLoader, [manager]);
|
|
108149
|
+
}
|
|
108150
|
+
|
|
108151
|
+
/**
|
|
108152
|
+
* Starts loading from the given URL and passes the loaded font
|
|
108153
|
+
* to the `onLoad()` callback.
|
|
108154
|
+
*
|
|
108155
|
+
* @param {string} url - The path/URL of the file to be loaded. This can also be a data URI.
|
|
108156
|
+
* @param {function(Font)} onLoad - Executed when the loading process has been finished.
|
|
108157
|
+
* @param {onProgressCallback} onProgress - Executed while the loading is in progress.
|
|
108158
|
+
* @param {onErrorCallback} onError - Executed when errors occur.
|
|
108159
|
+
*/
|
|
108160
|
+
FontLoader_inherits(FontLoader, _Loader);
|
|
108161
|
+
return FontLoader_createClass(FontLoader, [{
|
|
108162
|
+
key: "load",
|
|
108163
|
+
value: function load(url, onLoad, onProgress, onError) {
|
|
108164
|
+
var scope = this;
|
|
108165
|
+
var loader = new FileLoader(this.manager);
|
|
108166
|
+
loader.setPath(this.path);
|
|
108167
|
+
loader.setRequestHeader(this.requestHeader);
|
|
108168
|
+
loader.setWithCredentials(this.withCredentials);
|
|
108169
|
+
loader.load(url, function (text) {
|
|
108170
|
+
var font = scope.parse(JSON.parse(text));
|
|
108171
|
+
if (onLoad) onLoad(font);
|
|
108172
|
+
}, onProgress, onError);
|
|
108173
|
+
}
|
|
108174
|
+
|
|
108175
|
+
/**
|
|
108176
|
+
* Parses the given font data and returns the resulting font.
|
|
108177
|
+
*
|
|
108178
|
+
* @param {Object} json - The raw font data as a JSON object.
|
|
108179
|
+
* @return {Font} The font.
|
|
108180
|
+
*/
|
|
108181
|
+
}, {
|
|
108182
|
+
key: "parse",
|
|
108183
|
+
value: function parse(json) {
|
|
108184
|
+
return new Font(json);
|
|
108185
|
+
}
|
|
108186
|
+
}]);
|
|
108187
|
+
}(Loader);
|
|
108188
|
+
/**
|
|
108189
|
+
* Class representing a font.
|
|
108190
|
+
*/
|
|
108191
|
+
var Font = /*#__PURE__*/function () {
|
|
108192
|
+
/**
|
|
108193
|
+
* Constructs a new font.
|
|
108194
|
+
*
|
|
108195
|
+
* @param {Object} data - The font data as JSON.
|
|
108196
|
+
*/
|
|
108197
|
+
function Font(data) {
|
|
108198
|
+
FontLoader_classCallCheck(this, Font);
|
|
108199
|
+
/**
|
|
108200
|
+
* This flag can be used for type testing.
|
|
108201
|
+
*
|
|
108202
|
+
* @type {boolean}
|
|
108203
|
+
* @readonly
|
|
108204
|
+
* @default true
|
|
108205
|
+
*/
|
|
108206
|
+
this.isFont = true;
|
|
108207
|
+
this.type = 'Font';
|
|
108208
|
+
|
|
108209
|
+
/**
|
|
108210
|
+
* The font data as JSON.
|
|
108211
|
+
*
|
|
108212
|
+
* @type {Object}
|
|
108213
|
+
*/
|
|
108214
|
+
this.data = data;
|
|
108215
|
+
}
|
|
108216
|
+
|
|
108217
|
+
/**
|
|
108218
|
+
* Generates geometry shapes from the given text and size. The result of this method
|
|
108219
|
+
* should be used with {@link ShapeGeometry} to generate the actual geometry data.
|
|
108220
|
+
*
|
|
108221
|
+
* @param {string} text - The text.
|
|
108222
|
+
* @param {number} [size=100] - The text size.
|
|
108223
|
+
* @return {Array<Shape>} An array of shapes representing the text.
|
|
108224
|
+
*/
|
|
108225
|
+
return FontLoader_createClass(Font, [{
|
|
108226
|
+
key: "generateShapes",
|
|
108227
|
+
value: function generateShapes(text) {
|
|
108228
|
+
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 100;
|
|
108229
|
+
var shapes = [];
|
|
108230
|
+
var paths = createPaths(text, size, this.data);
|
|
108231
|
+
for (var p = 0, pl = paths.length; p < pl; p++) {
|
|
108232
|
+
shapes.push.apply(shapes, FontLoader_toConsumableArray(paths[p].toShapes()));
|
|
108233
|
+
}
|
|
108234
|
+
return shapes;
|
|
108235
|
+
}
|
|
108236
|
+
}]);
|
|
108237
|
+
}();
|
|
108238
|
+
function createPaths(text, size, data) {
|
|
108239
|
+
var chars = Array.from(text);
|
|
108240
|
+
var scale = size / data.resolution;
|
|
108241
|
+
var line_height = (data.boundingBox.yMax - data.boundingBox.yMin + data.underlineThickness) * scale;
|
|
108242
|
+
var paths = [];
|
|
108243
|
+
var offsetX = 0,
|
|
108244
|
+
offsetY = 0;
|
|
108245
|
+
for (var i = 0; i < chars.length; i++) {
|
|
108246
|
+
var char = chars[i];
|
|
108247
|
+
if (char === '\n') {
|
|
108248
|
+
offsetX = 0;
|
|
108249
|
+
offsetY -= line_height;
|
|
108250
|
+
} else {
|
|
108251
|
+
var ret = createPath(char, scale, offsetX, offsetY, data);
|
|
108252
|
+
offsetX += ret.offsetX;
|
|
108253
|
+
paths.push(ret.path);
|
|
108254
|
+
}
|
|
108255
|
+
}
|
|
108256
|
+
return paths;
|
|
108257
|
+
}
|
|
108258
|
+
function createPath(char, scale, offsetX, offsetY, data) {
|
|
108259
|
+
var glyph = data.glyphs[char] || data.glyphs['?'];
|
|
108260
|
+
if (!glyph) {
|
|
108261
|
+
console.error('THREE.Font: character "' + char + '" does not exists in font family ' + data.familyName + '.');
|
|
108262
|
+
return;
|
|
108263
|
+
}
|
|
108264
|
+
var path = new ShapePath();
|
|
108265
|
+
var x, y, cpx, cpy, cpx1, cpy1, cpx2, cpy2;
|
|
108266
|
+
if (glyph.o) {
|
|
108267
|
+
var outline = glyph._cachedOutline || (glyph._cachedOutline = glyph.o.split(' '));
|
|
108268
|
+
for (var i = 0, l = outline.length; i < l;) {
|
|
108269
|
+
var action = outline[i++];
|
|
108270
|
+
switch (action) {
|
|
108271
|
+
case 'm':
|
|
108272
|
+
// moveTo
|
|
108273
|
+
|
|
108274
|
+
x = outline[i++] * scale + offsetX;
|
|
108275
|
+
y = outline[i++] * scale + offsetY;
|
|
108276
|
+
path.moveTo(x, y);
|
|
108277
|
+
break;
|
|
108278
|
+
case 'l':
|
|
108279
|
+
// lineTo
|
|
108280
|
+
|
|
108281
|
+
x = outline[i++] * scale + offsetX;
|
|
108282
|
+
y = outline[i++] * scale + offsetY;
|
|
108283
|
+
path.lineTo(x, y);
|
|
108284
|
+
break;
|
|
108285
|
+
case 'q':
|
|
108286
|
+
// quadraticCurveTo
|
|
108287
|
+
|
|
108288
|
+
cpx = outline[i++] * scale + offsetX;
|
|
108289
|
+
cpy = outline[i++] * scale + offsetY;
|
|
108290
|
+
cpx1 = outline[i++] * scale + offsetX;
|
|
108291
|
+
cpy1 = outline[i++] * scale + offsetY;
|
|
108292
|
+
path.quadraticCurveTo(cpx1, cpy1, cpx, cpy);
|
|
108293
|
+
break;
|
|
108294
|
+
case 'b':
|
|
108295
|
+
// bezierCurveTo
|
|
108296
|
+
|
|
108297
|
+
cpx = outline[i++] * scale + offsetX;
|
|
108298
|
+
cpy = outline[i++] * scale + offsetY;
|
|
108299
|
+
cpx1 = outline[i++] * scale + offsetX;
|
|
108300
|
+
cpy1 = outline[i++] * scale + offsetY;
|
|
108301
|
+
cpx2 = outline[i++] * scale + offsetX;
|
|
108302
|
+
cpy2 = outline[i++] * scale + offsetY;
|
|
108303
|
+
path.bezierCurveTo(cpx1, cpy1, cpx2, cpy2, cpx, cpy);
|
|
108304
|
+
break;
|
|
108305
|
+
}
|
|
108306
|
+
}
|
|
108307
|
+
}
|
|
108308
|
+
return {
|
|
108309
|
+
offsetX: glyph.ha * scale,
|
|
108310
|
+
path: path
|
|
108311
|
+
};
|
|
108312
|
+
}
|
|
108313
|
+
|
|
108314
|
+
// CONCATENATED MODULE: ./node_modules/three/examples/jsm/geometries/TextGeometry.js
|
|
108315
|
+
function TextGeometry_typeof(o) { "@babel/helpers - typeof"; return TextGeometry_typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, TextGeometry_typeof(o); }
|
|
108316
|
+
function TextGeometry_defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, TextGeometry_toPropertyKey(o.key), o); } }
|
|
108317
|
+
function TextGeometry_createClass(e, r, t) { return r && TextGeometry_defineProperties(e.prototype, r), t && TextGeometry_defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
108318
|
+
function TextGeometry_toPropertyKey(t) { var i = TextGeometry_toPrimitive(t, "string"); return "symbol" == TextGeometry_typeof(i) ? i : i + ""; }
|
|
108319
|
+
function TextGeometry_toPrimitive(t, r) { if ("object" != TextGeometry_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != TextGeometry_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
108320
|
+
function TextGeometry_classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
108321
|
+
function TextGeometry_callSuper(t, o, e) { return o = TextGeometry_getPrototypeOf(o), TextGeometry_possibleConstructorReturn(t, TextGeometry_isNativeReflectConstruct() ? Reflect.construct(o, e || [], TextGeometry_getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
108322
|
+
function TextGeometry_possibleConstructorReturn(t, e) { if (e && ("object" == TextGeometry_typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return TextGeometry_assertThisInitialized(t); }
|
|
108323
|
+
function TextGeometry_assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
108324
|
+
function TextGeometry_isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (TextGeometry_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
108325
|
+
function TextGeometry_getPrototypeOf(t) { return TextGeometry_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, TextGeometry_getPrototypeOf(t); }
|
|
108326
|
+
function TextGeometry_inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && TextGeometry_setPrototypeOf(t, e); }
|
|
108327
|
+
function TextGeometry_setPrototypeOf(t, e) { return TextGeometry_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, TextGeometry_setPrototypeOf(t, e); }
|
|
108328
|
+
|
|
108329
|
+
|
|
108330
|
+
/**
|
|
108331
|
+
* A class for generating text as a single geometry. It is constructed by providing a string of text, and a set of
|
|
108332
|
+
* parameters consisting of a loaded font and extrude settings.
|
|
108333
|
+
*
|
|
108334
|
+
* See the {@link FontLoader} page for additional details.
|
|
108335
|
+
*
|
|
108336
|
+
* `TextGeometry` uses [typeface.json]{@link http://gero3.github.io/facetype.js/} generated fonts.
|
|
108337
|
+
* Some existing fonts can be found located in `/examples/fonts`.
|
|
108338
|
+
*
|
|
108339
|
+
* ```js
|
|
108340
|
+
* const loader = new FontLoader();
|
|
108341
|
+
* const font = await loader.loadAsync( 'fonts/helvetiker_regular.typeface.json' );
|
|
108342
|
+
* const geometry = new TextGeometry( 'Hello three.js!', {
|
|
108343
|
+
* font: font,
|
|
108344
|
+
* size: 80,
|
|
108345
|
+
* depth: 5,
|
|
108346
|
+
* curveSegments: 12
|
|
108347
|
+
* } );
|
|
108348
|
+
* ```
|
|
108349
|
+
*
|
|
108350
|
+
* @augments ExtrudeGeometry
|
|
108351
|
+
* @three_import import { TextGeometry } from 'three/addons/geometries/TextGeometry.js';
|
|
108352
|
+
*/
|
|
108353
|
+
var TextGeometry = /*#__PURE__*/function (_ExtrudeGeometry) {
|
|
108354
|
+
/**
|
|
108355
|
+
* Constructs a new text geometry.
|
|
108356
|
+
*
|
|
108357
|
+
* @param {string} text - The text that should be transformed into a geometry.
|
|
108358
|
+
* @param {TextGeometry~Options} [parameters] - The text settings.
|
|
108359
|
+
*/
|
|
108360
|
+
function TextGeometry(text) {
|
|
108361
|
+
var _this;
|
|
108362
|
+
var parameters = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
108363
|
+
TextGeometry_classCallCheck(this, TextGeometry);
|
|
108364
|
+
var font = parameters.font;
|
|
108365
|
+
if (font === undefined) {
|
|
108366
|
+
_this = TextGeometry_callSuper(this, TextGeometry); // generate default extrude geometry
|
|
108367
|
+
} else {
|
|
108368
|
+
var shapes = font.generateShapes(text, parameters.size);
|
|
108369
|
+
|
|
108370
|
+
// defaults
|
|
108371
|
+
|
|
108372
|
+
if (parameters.depth === undefined) parameters.depth = 50;
|
|
108373
|
+
if (parameters.bevelThickness === undefined) parameters.bevelThickness = 10;
|
|
108374
|
+
if (parameters.bevelSize === undefined) parameters.bevelSize = 8;
|
|
108375
|
+
if (parameters.bevelEnabled === undefined) parameters.bevelEnabled = false;
|
|
108376
|
+
_this = TextGeometry_callSuper(this, TextGeometry, [shapes, parameters]);
|
|
108377
|
+
}
|
|
108378
|
+
_this.type = 'TextGeometry';
|
|
108379
|
+
return TextGeometry_assertThisInitialized(_this);
|
|
108380
|
+
}
|
|
108381
|
+
TextGeometry_inherits(TextGeometry, _ExtrudeGeometry);
|
|
108382
|
+
return TextGeometry_createClass(TextGeometry);
|
|
108383
|
+
}(ExtrudeGeometry);
|
|
108384
|
+
/**
|
|
108385
|
+
* Represents the `options` type of the geometry's constructor.
|
|
108386
|
+
*
|
|
108387
|
+
* @typedef {Object} TextGeometry~Options
|
|
108388
|
+
* @property {Font} [font] - The font.
|
|
108389
|
+
* @property {number} [size=100] - The text size.
|
|
108390
|
+
* @property {number} [depth=50] - Depth to extrude the shape.
|
|
108391
|
+
* @property {number} [curveSegments=12] - Number of points on the curves.
|
|
108392
|
+
* @property {number} [steps=1] - Number of points used for subdividing segments along the depth of the extruded spline.
|
|
108393
|
+
* @property {boolean} [bevelEnabled=false] - Whether to beveling to the shape or not.
|
|
108394
|
+
* @property {number} [bevelThickness=10] - How deep into the original shape the bevel goes.
|
|
108395
|
+
* @property {number} [bevelSize=8] - Distance from the shape outline that the bevel extends.
|
|
108396
|
+
* @property {number} [bevelOffset=0] - Distance from the shape outline that the bevel starts.
|
|
108397
|
+
* @property {number} [bevelSegments=3] - Number of bevel layers.
|
|
108398
|
+
* @property {?Curve} [extrudePath=null] - A 3D spline path along which the shape should be extruded. Bevels not supported for path extrusion.
|
|
108399
|
+
* @property {Object} [UVGenerator] - An object that provides UV generator functions for custom UV generation.
|
|
108400
|
+
**/
|
|
108401
|
+
|
|
108402
|
+
// EXTERNAL MODULE: ./node_modules/three/examples/fonts/helvetiker_regular.typeface.json
|
|
108403
|
+
var helvetiker_regular_typeface = __webpack_require__("7e1b");
|
|
108404
|
+
|
|
108405
108405
|
// CONCATENATED MODULE: ./node_modules/meshline/dist/index.js
|
|
108406
108406
|
function dist_ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
108407
108407
|
function dist_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? dist_ownKeys(Object(t), !0).forEach(function (r) { dist_defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : dist_ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
@@ -109115,6 +109115,10 @@ function requestInstancedMapping(instances, drawObjs) {
|
|
|
109115
109115
|
});
|
|
109116
109116
|
});
|
|
109117
109117
|
}
|
|
109118
|
+
function getInstanceNormalSign(matrix) {
|
|
109119
|
+
if (!matrix || typeof matrix.determinant !== 'function') return 1;
|
|
109120
|
+
return matrix.determinant() < 0 ? -1 : 1;
|
|
109121
|
+
}
|
|
109118
109122
|
|
|
109119
109123
|
/**
|
|
109120
109124
|
* 重置处理状态,用于新的批量加载会话
|
|
@@ -109472,6 +109476,10 @@ function setInstanceMatricesAndColors(model, drawObj, mesh, meshName, customColo
|
|
|
109472
109476
|
}
|
|
109473
109477
|
m4.multiplyMatrices(meshMatrix, geomMatrix);
|
|
109474
109478
|
model.setMatrixAt(index, m4);
|
|
109479
|
+
var _normalSignAttr = model.geometry && model.geometry.getAttribute('instanceNormalSign');
|
|
109480
|
+
if (_normalSignAttr && _normalSignAttr.array && index < _normalSignAttr.array.length) {
|
|
109481
|
+
_normalSignAttr.array[index] = getInstanceNormalSign(m4);
|
|
109482
|
+
}
|
|
109475
109483
|
var copyMatrix = new Matrix4().copy(m4);
|
|
109476
109484
|
model.userData.copyMatrix = copyMatrix;
|
|
109477
109485
|
var temp = model.userData.instancesMap.get(item.instanceId);
|
|
@@ -109489,6 +109497,10 @@ function setInstanceMatricesAndColors(model, drawObj, mesh, meshName, customColo
|
|
|
109489
109497
|
if (model.instanceColor) {
|
|
109490
109498
|
model.instanceColor.needsUpdate = true;
|
|
109491
109499
|
}
|
|
109500
|
+
var normalSignAttr = model.geometry && model.geometry.getAttribute('instanceNormalSign');
|
|
109501
|
+
if (normalSignAttr) {
|
|
109502
|
+
normalSignAttr.needsUpdate = true;
|
|
109503
|
+
}
|
|
109492
109504
|
if (Array.isArray(instances)) {
|
|
109493
109505
|
var capacity = model.instanceMatrix && typeof model.instanceMatrix.count === 'number' ? model.instanceMatrix.count : model.count;
|
|
109494
109506
|
model.count = Math.min(instances.length, capacity);
|
|
@@ -109546,6 +109558,11 @@ function appendInstanceToInstancedMesh(model, drawObj, mesh, instance, customCol
|
|
|
109546
109558
|
m4.multiplyMatrices(meshMatrix, geomMatrix);
|
|
109547
109559
|
model.setMatrixAt(currentCount, m4);
|
|
109548
109560
|
if (model.instanceMatrix) model.instanceMatrix.needsUpdate = true;
|
|
109561
|
+
var normalSignAttr = model.geometry && model.geometry.getAttribute('instanceNormalSign');
|
|
109562
|
+
if (normalSignAttr && normalSignAttr.array && currentCount < normalSignAttr.array.length) {
|
|
109563
|
+
normalSignAttr.array[currentCount] = getInstanceNormalSign(m4);
|
|
109564
|
+
normalSignAttr.needsUpdate = true;
|
|
109565
|
+
}
|
|
109549
109566
|
var copyMatrix = new Matrix4().copy(m4);
|
|
109550
109567
|
model.userData.copyMatrix = copyMatrix;
|
|
109551
109568
|
var instanceProps = {
|
|
@@ -109900,14 +109917,21 @@ function draw3Dmodel(geom, instanceName, instanceCount, nColor, nOpacity) {
|
|
|
109900
109917
|
}));
|
|
109901
109918
|
var activeInstanceCount = Math.max(0, Math.min(instanceCount, typeof options.activeInstanceCount === 'number' ? options.activeInstanceCount : instanceCount));
|
|
109902
109919
|
var opacities = new Float32Array(instanceCount);
|
|
109920
|
+
var instanceNormalSigns = new Float32Array(instanceCount);
|
|
109903
109921
|
for (var i = 0; i < instanceCount; i++) {
|
|
109904
109922
|
opacities[i] = opacity;
|
|
109923
|
+
instanceNormalSigns[i] = 1;
|
|
109905
109924
|
}
|
|
109906
109925
|
geometry.setAttribute('opacity', new InstancedBufferAttribute(opacities, 1));
|
|
109926
|
+
geometry.setAttribute('instanceNormalSign', new InstancedBufferAttribute(instanceNormalSigns, 1));
|
|
109907
109927
|
if (!customMaterial) {
|
|
109908
109928
|
material.onBeforeCompile = function (shader) {
|
|
109909
|
-
|
|
109910
|
-
shader.
|
|
109929
|
+
var normalFragmentBegin = ShaderChunk.normal_fragment_begin.replace('float faceDirection = gl_FrontFacing ? 1.0 : - 1.0;', 'float faceDirection = (gl_FrontFacing ? 1.0 : - 1.0) * vInstanceNormalSign;');
|
|
109930
|
+
shader.vertexShader = "\n attribute float opacity; // \u5B9E\u4F8B\u900F\u660E\u5EA6\u5C5E\u6027\n attribute float instanceNormalSign; // \u955C\u50CF\u77E9\u9635\u6CD5\u7EBF\u4FEE\u6B63\n varying float vAlpha;\n varying float vInstanceNormalSign;\n ".concat(shader.vertexShader, "\n ").replace('#include <begin_vertex>', "\n #include <begin_vertex>\n vAlpha = opacity; // \u4F20\u9012\u900F\u660E\u5EA6\u5230\u7247\u6BB5\u7740\u8272\u5668\n vInstanceNormalSign = instanceNormalSign;\n ");
|
|
109931
|
+
shader.fragmentShader = "\n varying float vAlpha;\n varying float vInstanceNormalSign;\n ".concat(shader.fragmentShader, "\n ").replace('#include <normal_fragment_begin>', normalFragmentBegin).replace('#include <alphatest_fragment>', "\n #include <alphatest_fragment>\n diffuseColor.a *= vAlpha; // \u5E94\u7528\u5B9E\u4F8B\u900F\u660E\u5EA6\n ");
|
|
109932
|
+
};
|
|
109933
|
+
material.customProgramCacheKey = function () {
|
|
109934
|
+
return 'instance-opacity-normal-sign-v2';
|
|
109911
109935
|
};
|
|
109912
109936
|
}
|
|
109913
109937
|
|
|
@@ -120015,7 +120039,7 @@ var component = normalizeComponent(
|
|
|
120015
120039
|
)
|
|
120016
120040
|
|
|
120017
120041
|
/* harmony default export */ var com_graphics = (component.exports);
|
|
120018
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
120042
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2fafb909-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/com-flcanvas/index.vue?vue&type=template&id=58f9d282&scoped=true
|
|
120019
120043
|
var com_flcanvasvue_type_template_id_58f9d282_scoped_true_render = function render() {
|
|
120020
120044
|
var _vm = this,
|
|
120021
120045
|
_c = _vm._self._c;
|
|
@@ -123802,7 +123826,7 @@ var com_flcanvas_component = normalizeComponent(
|
|
|
123802
123826
|
)
|
|
123803
123827
|
|
|
123804
123828
|
/* harmony default export */ var com_flcanvas = (com_flcanvas_component.exports);
|
|
123805
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
123829
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2fafb909-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/com-graphics/per-control.vue?vue&type=template&id=f547d5c6&scoped=true
|
|
123806
123830
|
var per_controlvue_type_template_id_f547d5c6_scoped_true_render = function render() {
|
|
123807
123831
|
var _vm = this,
|
|
123808
123832
|
_c = _vm._self._c;
|
|
@@ -123910,7 +123934,7 @@ var per_control_component = normalizeComponent(
|
|
|
123910
123934
|
)
|
|
123911
123935
|
|
|
123912
123936
|
/* harmony default export */ var per_control = (per_control_component.exports);
|
|
123913
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
123937
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2fafb909-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/com-graphics/pid.vue?vue&type=template&id=2572c0e2&scoped=true
|
|
123914
123938
|
var pidvue_type_template_id_2572c0e2_scoped_true_render = function render() {
|
|
123915
123939
|
var _vm = this,
|
|
123916
123940
|
_c = _vm._self._c;
|
|
@@ -123957,7 +123981,7 @@ var browserify_default = /*#__PURE__*/__webpack_require__.n(browserify);
|
|
|
123957
123981
|
var html2canvas = __webpack_require__("c0e9");
|
|
123958
123982
|
var html2canvas_default = /*#__PURE__*/__webpack_require__.n(html2canvas);
|
|
123959
123983
|
|
|
123960
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
123984
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2fafb909-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/com-graphics/component/ann-tool.vue?vue&type=template&id=4b17bce0&scoped=true
|
|
123961
123985
|
var ann_toolvue_type_template_id_4b17bce0_scoped_true_render = function render() {
|
|
123962
123986
|
var _vm = this,
|
|
123963
123987
|
_c = _vm._self._c;
|
|
@@ -124928,7 +124952,7 @@ var pid_component = normalizeComponent(
|
|
|
124928
124952
|
)
|
|
124929
124953
|
|
|
124930
124954
|
/* harmony default export */ var pid = (pid_component.exports);
|
|
124931
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
124955
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2fafb909-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/components/com-tiles/index.vue?vue&type=template&id=717610b8&scoped=true
|
|
124932
124956
|
var com_tilesvue_type_template_id_717610b8_scoped_true_render = function render() {
|
|
124933
124957
|
var _vm = this,
|
|
124934
124958
|
_c = _vm._self._c;
|