@anov/3d 0.0.289 → 0.0.291
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/dist/anov3d.js +43 -40
- package/dist/anov3d.js.map +1 -1
- package/dist/applicationApi.js +118 -94
- package/dist/applicationApi.js.map +1 -1
- package/dist/hooksManager.js +10 -10
- package/dist/hooksManager.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/messageStatus.js +3 -3
- package/dist/messageStatus.js.map +1 -1
- package/dist/module/animation/index.js +113 -61
- package/dist/module/animation/index.js.map +1 -1
- package/dist/module/animation/motion/index.js +91 -58
- package/dist/module/animation/motion/index.js.map +1 -1
- package/dist/module/animation/strategy.js +21 -7
- package/dist/module/animation/strategy.js.map +1 -1
- package/dist/module/camera/index.js +278 -216
- package/dist/module/camera/index.js.map +1 -1
- package/dist/module/develop/index.js +35 -27
- package/dist/module/develop/index.js.map +1 -1
- package/dist/module/entity/area/index.js +87 -29
- package/dist/module/entity/area/index.js.map +1 -1
- package/dist/module/entity/bar/index.js +24 -5
- package/dist/module/entity/bar/index.js.map +1 -1
- package/dist/module/entity/bar/style/bar_01.js +52 -13
- package/dist/module/entity/bar/style/bar_01.js.map +1 -1
- package/dist/module/entity/bar/style/index.js +21 -7
- package/dist/module/entity/bar/style/index.js.map +1 -1
- package/dist/module/entity/baseEntity.js +66 -43
- package/dist/module/entity/baseEntity.js.map +1 -1
- package/dist/module/entity/batch/index.js +168 -77
- package/dist/module/entity/batch/index.js.map +1 -1
- package/dist/module/entity/dispose.js +16 -14
- package/dist/module/entity/dispose.js.map +1 -1
- package/dist/module/entity/flyline/index.js +90 -34
- package/dist/module/entity/flyline/index.js.map +1 -1
- package/dist/module/entity/group/index.js +75 -59
- package/dist/module/entity/group/index.js.map +1 -1
- package/dist/module/entity/heatmap/index.js +79 -62
- package/dist/module/entity/heatmap/index.js.map +1 -1
- package/dist/module/entity/hybridList.js +67 -49
- package/dist/module/entity/hybridList.js.map +1 -1
- package/dist/module/entity/index.js +644 -442
- package/dist/module/entity/index.js.map +1 -1
- package/dist/module/entity/infoPanel/index.js +76 -23
- package/dist/module/entity/infoPanel/index.js.map +1 -1
- package/dist/module/entity/light/pointLight/index.js +84 -48
- package/dist/module/entity/light/pointLight/index.js.map +1 -1
- package/dist/module/entity/mark/index.js +101 -51
- package/dist/module/entity/mark/index.js.map +1 -1
- package/dist/module/entity/model/index.js +151 -108
- package/dist/module/entity/model/index.js.map +1 -1
- package/dist/module/entity/model/load/loadFbx.js +8 -8
- package/dist/module/entity/model/load/loadFbx.js.map +1 -1
- package/dist/module/entity/model/load/loadGlb.js +11 -13
- package/dist/module/entity/model/load/loadGlb.js.map +1 -1
- package/dist/module/entity/model/load.js +57 -19
- package/dist/module/entity/model/load.js.map +1 -1
- package/dist/module/entity/poi/index.js +90 -34
- package/dist/module/entity/poi/index.js.map +1 -1
- package/dist/module/entity/shape/index.js +136 -67
- package/dist/module/entity/shape/index.js.map +1 -1
- package/dist/module/entity/spline/index.js +75 -22
- package/dist/module/entity/spline/index.js.map +1 -1
- package/dist/module/entity/strategy.js +274 -92
- package/dist/module/entity/strategy.js.map +1 -1
- package/dist/module/entity/traffic/realismTraffic/index.js +88 -59
- package/dist/module/entity/traffic/realismTraffic/index.js.map +1 -1
- package/dist/module/entity/traffic/streamerTraffic/index.js +81 -50
- package/dist/module/entity/traffic/streamerTraffic/index.js.map +1 -1
- package/dist/module/entity/utils.js +13 -11
- package/dist/module/entity/utils.js.map +1 -1
- package/dist/module/entity/videoPanel/index.js +76 -23
- package/dist/module/entity/videoPanel/index.js.map +1 -1
- package/dist/module/environment/index.js +73 -54
- package/dist/module/environment/index.js.map +1 -1
- package/dist/module/environment/season/index.js +184 -342
- package/dist/module/environment/season/index.js.map +1 -1
- package/dist/module/eventBus/entityEvents.js +1 -1
- package/dist/module/eventBus/entityEvents.js.map +1 -1
- package/dist/module/eventBus/index.js +93 -79
- package/dist/module/eventBus/index.js.map +1 -1
- package/dist/module/material/index.js +334 -279
- package/dist/module/material/index.js.map +1 -1
- package/dist/module/scene/fileParse.js +369 -276
- package/dist/module/scene/fileParse.js.map +1 -1
- package/dist/module/scene/index.js +161 -106
- package/dist/module/scene/index.js.map +1 -1
- package/dist/module/tool/index.js +33 -26
- package/dist/module/tool/index.js.map +1 -1
- package/dist/sdkEntry.js +23 -2
- package/dist/sdkEntry.js.map +1 -1
- package/dist/utils/abstract.js +15 -12
- package/dist/utils/abstract.js.map +1 -1
- package/dist/utils/index.js +24 -23
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/messageFn.js +18 -17
- package/dist/utils/messageFn.js.map +1 -1
- package/package.json +3 -3
package/dist/sdkEntry.js
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _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; }, _typeof(o); }
|
|
1
2
|
var _dec, _class;
|
|
3
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
9
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
10
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
12
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
13
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
14
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
2
15
|
import Environment from "./module/environment";
|
|
3
16
|
import Camera from "./module/camera";
|
|
4
17
|
import { Scene } from "./module/scene";
|
|
@@ -9,7 +22,7 @@ import Entity from "./module/entity";
|
|
|
9
22
|
import AnimationManage from "./module/animation";
|
|
10
23
|
import MaterialManage from "./module/material";
|
|
11
24
|
import Tool from "./module/tool";
|
|
12
|
-
|
|
25
|
+
var App = (_dec = provide([{
|
|
13
26
|
name: 'camera',
|
|
14
27
|
module: Camera
|
|
15
28
|
}, {
|
|
@@ -33,6 +46,14 @@ let App = (_dec = provide([{
|
|
|
33
46
|
}, {
|
|
34
47
|
name: 'material',
|
|
35
48
|
module: MaterialManage
|
|
36
|
-
}]), _dec(_class =
|
|
49
|
+
}]), _dec(_class = /*#__PURE__*/function (_Anov3DCore) {
|
|
50
|
+
_inherits(App, _Anov3DCore);
|
|
51
|
+
var _super = _createSuper(App);
|
|
52
|
+
function App() {
|
|
53
|
+
_classCallCheck(this, App);
|
|
54
|
+
return _super.apply(this, arguments);
|
|
55
|
+
}
|
|
56
|
+
return _createClass(App);
|
|
57
|
+
}(Anov3DCore)) || _class);
|
|
37
58
|
export default App;
|
|
38
59
|
//# sourceMappingURL=sdkEntry.js.map
|
package/dist/sdkEntry.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Environment","Camera","Scene","provide","Anov3DCore","Develop","Entity","AnimationManage","MaterialManage","Tool","App","_dec","name","module","_class"],"sources":["../src/sdkEntry.ts"],"sourcesContent":["import Environment from './module/environment'\nimport Camera from './module/camera'\nimport { Scene } from './module/scene'\nimport { provide } from './utils/abstract'\nimport Anov3DCore from './anov3d'\nimport Develop from './module/develop'\nimport Entity from './module/entity'\nimport AnimationManage from './module/animation'\nimport MaterialManage from './module/material'\nimport Tool from './module/tool'\n\nexport type Override<P, S> = Omit<P, keyof S> & S\n\n@provide(\n [\n {\n name: 'camera',\n module: Camera,\n },\n {\n name: 'tool',\n module: Tool,\n },\n {\n name: 'environment',\n module: Environment,\n },\n {\n name: 'scene',\n module: Scene,\n },\n {\n name: 'develop',\n module: Develop,\n },\n {\n name: 'entity',\n module: Entity,\n },\n {\n name: 'animation',\n module: AnimationManage,\n },\n {\n name: 'material',\n module: MaterialManage,\n },\n ],\n)\nclass App extends Anov3DCore {}\n\nexport default App\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["Environment","Camera","Scene","provide","Anov3DCore","Develop","Entity","AnimationManage","MaterialManage","Tool","App","_dec","name","module","_class","_Anov3DCore","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass"],"sources":["../src/sdkEntry.ts"],"sourcesContent":["import Environment from './module/environment'\nimport Camera from './module/camera'\nimport { Scene } from './module/scene'\nimport { provide } from './utils/abstract'\nimport Anov3DCore from './anov3d'\nimport Develop from './module/develop'\nimport Entity from './module/entity'\nimport AnimationManage from './module/animation'\nimport MaterialManage from './module/material'\nimport Tool from './module/tool'\n\nexport type Override<P, S> = Omit<P, keyof S> & S\n\n@provide(\n [\n {\n name: 'camera',\n module: Camera,\n },\n {\n name: 'tool',\n module: Tool,\n },\n {\n name: 'environment',\n module: Environment,\n },\n {\n name: 'scene',\n module: Scene,\n },\n {\n name: 'develop',\n module: Develop,\n },\n {\n name: 'entity',\n module: Entity,\n },\n {\n name: 'animation',\n module: AnimationManage,\n },\n {\n name: 'material',\n module: MaterialManage,\n },\n ],\n)\nclass App extends Anov3DCore {}\n\nexport default App\n"],"mappings":";;;;;;;;;;;;;;AAAA,OAAOA,WAAW;AAClB,OAAOC,MAAM;AACb,SAASC,KAAK;AACd,SAASC,OAAO;AAChB,OAAOC,UAAU;AACjB,OAAOC,OAAO;AACd,OAAOC,MAAM;AACb,OAAOC,eAAe;AACtB,OAAOC,cAAc;AACrB,OAAOC,IAAI;AAAqB,IAwC1BC,GAAG,IAAAC,IAAA,GApCRR,OAAO,CACN,CACE;EACES,IAAI,EAAE,QAAQ;EACdC,MAAM,EAAEZ;AACV,CAAC,EACD;EACEW,IAAI,EAAE,MAAM;EACZC,MAAM,EAAEJ;AACV,CAAC,EACD;EACEG,IAAI,EAAE,aAAa;EACnBC,MAAM,EAAEb;AACV,CAAC,EACD;EACEY,IAAI,EAAE,OAAO;EACbC,MAAM,EAAEX;AACV,CAAC,EACD;EACEU,IAAI,EAAE,SAAS;EACfC,MAAM,EAAER;AACV,CAAC,EACD;EACEO,IAAI,EAAE,QAAQ;EACdC,MAAM,EAAEP;AACV,CAAC,EACD;EACEM,IAAI,EAAE,WAAW;EACjBC,MAAM,EAAEN;AACV,CAAC,EACD;EACEK,IAAI,EAAE,UAAU;EAChBC,MAAM,EAAEL;AACV,CAAC,CAEL,CAAC,EAAAG,IAAA,CAAAG,MAAA,0BAAAC,WAAA;EAAAC,SAAA,CAAAN,GAAA,EAAAK,WAAA;EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAR,GAAA;EAAA,SAAAA,IAAA;IAAAS,eAAA,OAAAT,GAAA;IAAA,OAAAO,MAAA,CAAAG,KAAA,OAAAC,SAAA;EAAA;EAAA,OAAAC,YAAA,CAAAZ,GAAA;AAAA,EACiBN,UAAU,MAAAU,MAAA;AAE5B,eAAeJ,GAAG"}
|
package/dist/utils/abstract.js
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _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; }, _typeof(o); }
|
|
2
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
3
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
1
5
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" ==
|
|
3
|
-
function _toPrimitive(t, r) { if ("object" !=
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
4
8
|
import { utils } from '@anov/3d-core';
|
|
5
|
-
export
|
|
6
|
-
return targetClass
|
|
7
|
-
utils.emitter.on('instantiation-completed', app
|
|
8
|
-
modules.forEach(module
|
|
9
|
+
export var provide = function provide(modules) {
|
|
10
|
+
return function (targetClass) {
|
|
11
|
+
utils.emitter.on('instantiation-completed', function (app) {
|
|
12
|
+
modules.forEach(function (module) {
|
|
9
13
|
// eslint-disable-next-line new-cap
|
|
10
14
|
targetClass.prototype[module.name] = new module.module(app);
|
|
11
15
|
});
|
|
12
16
|
});
|
|
13
17
|
};
|
|
14
18
|
};
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
19
|
+
export var BaseModule = /*#__PURE__*/_createClass(function BaseModule(app) {
|
|
20
|
+
_classCallCheck(this, BaseModule);
|
|
21
|
+
_defineProperty(this, "app", void 0);
|
|
22
|
+
this.app = app;
|
|
23
|
+
});
|
|
21
24
|
//# sourceMappingURL=abstract.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["utils","provide","modules","targetClass","emitter","on","app","forEach","module","prototype","name","BaseModule","
|
|
1
|
+
{"version":3,"names":["utils","provide","modules","targetClass","emitter","on","app","forEach","module","prototype","name","BaseModule","_createClass","_classCallCheck","_defineProperty"],"sources":["../../src/utils/abstract.ts"],"sourcesContent":["import { utils } from '@anov/3d-core'\nimport type Anov3D from '../sdkEntry'\n\nexport const provide = (modules: any): any => {\n return (targetClass: any) => {\n utils.emitter.on('instantiation-completed', (app) => {\n modules.forEach((module: any) => {\n // eslint-disable-next-line new-cap\n targetClass.prototype[module.name] = new module.module(app)\n })\n })\n }\n}\n\nexport class BaseModule {\n app: Anov3D\n constructor(app: Anov3D) {\n this.app = app\n }\n}\n"],"mappings":";;;;;;;AAAA,SAASA,KAAK,QAAQ,eAAe;AAGrC,OAAO,IAAMC,OAAO,GAAG,SAAVA,OAAOA,CAAIC,OAAY,EAAU;EAC5C,OAAO,UAACC,WAAgB,EAAK;IAC3BH,KAAK,CAACI,OAAO,CAACC,EAAE,CAAC,yBAAyB,EAAE,UAACC,GAAG,EAAK;MACnDJ,OAAO,CAACK,OAAO,CAAC,UAACC,MAAW,EAAK;QAC/B;QACAL,WAAW,CAACM,SAAS,CAACD,MAAM,CAACE,IAAI,CAAC,GAAG,IAAIF,MAAM,CAACA,MAAM,CAACF,GAAG,CAAC;MAC7D,CAAC,CAAC;IACJ,CAAC,CAAC;EACJ,CAAC;AACH,CAAC;AAED,WAAaK,UAAU,gBAAAC,YAAA,CAErB,SAAAD,WAAYL,GAAW,EAAE;EAAAO,eAAA,OAAAF,UAAA;EAAAG,eAAA;EACvB,IAAI,CAACR,GAAG,GAAGA,GAAG;AAChB,CAAC"}
|
package/dist/utils/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _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; }, _typeof(o); }
|
|
1
2
|
import { Vector3 } from '@anov/3d-core';
|
|
2
3
|
import { messageStatus } from "../messageStatus";
|
|
3
4
|
import { MessageType, sendToMessage } from "./messageFn";
|
|
@@ -7,13 +8,13 @@ import { MessageType, sendToMessage } from "./messageFn";
|
|
|
7
8
|
* @param obj
|
|
8
9
|
* @param key
|
|
9
10
|
*/
|
|
10
|
-
export
|
|
11
|
+
export var getValueByKey = function getValueByKey(obj, key) {
|
|
11
12
|
if (!key) return undefined;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
for (
|
|
15
|
-
|
|
16
|
-
if (
|
|
13
|
+
var keys = key.split('.');
|
|
14
|
+
var middleObj = obj;
|
|
15
|
+
for (var index = 0; index < keys.length; index++) {
|
|
16
|
+
var currentKey = keys[index];
|
|
17
|
+
if (_typeof(middleObj) === 'object') {
|
|
17
18
|
if (!(currentKey in middleObj)) return undefined;else middleObj = middleObj[currentKey];
|
|
18
19
|
} else {
|
|
19
20
|
return undefined;
|
|
@@ -27,20 +28,20 @@ export const getValueByKey = (obj, key) => {
|
|
|
27
28
|
* @param iEngine
|
|
28
29
|
* @param fnkey
|
|
29
30
|
*/
|
|
30
|
-
export
|
|
31
|
-
|
|
31
|
+
export var getFnByFnkey = function getFnByFnkey(iEngine, fnkey, id) {
|
|
32
|
+
var handleFunction = getValueByKey(iEngine, fnkey);
|
|
32
33
|
if (typeof handleFunction !== 'function') {
|
|
33
34
|
sendToMessage({
|
|
34
35
|
messageType: MessageType.Api,
|
|
35
36
|
messageName: fnkey,
|
|
36
37
|
status: messageStatus.ModuleNotRegister.code
|
|
37
38
|
}, {
|
|
38
|
-
id
|
|
39
|
+
id: id
|
|
39
40
|
});
|
|
40
41
|
throw new Error('this function is not exist');
|
|
41
42
|
}
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
var fnkeyArrary = fnkey.split('.');
|
|
44
|
+
var context = iEngine;
|
|
44
45
|
if (fnkeyArrary.length > 1) context = getValueByKey(iEngine, fnkeyArrary.slice(0, fnkeyArrary.length - 1).join('.'));
|
|
45
46
|
return handleFunction.bind(context);
|
|
46
47
|
};
|
|
@@ -50,19 +51,19 @@ export const getFnByFnkey = (iEngine, fnkey, id) => {
|
|
|
50
51
|
* @param scene
|
|
51
52
|
* @returns
|
|
52
53
|
*/
|
|
53
|
-
export
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
for (
|
|
58
|
-
|
|
59
|
-
object.traverseVisible(object
|
|
54
|
+
export var getSceneInfo = function getSceneInfo(scene) {
|
|
55
|
+
var objects = 0;
|
|
56
|
+
var vertices = 0;
|
|
57
|
+
var triangles = 0;
|
|
58
|
+
for (var i = 0, l = scene.children.length; i < l; i++) {
|
|
59
|
+
var object = scene.children[i];
|
|
60
|
+
object.traverseVisible(function (object) {
|
|
60
61
|
objects++;
|
|
61
62
|
|
|
62
63
|
// @ts-ignore
|
|
63
64
|
if (object.isMesh || object.isPoints) {
|
|
64
65
|
// @ts-ignore
|
|
65
|
-
|
|
66
|
+
var geometry = object.geometry;
|
|
66
67
|
if (geometry && geometry.attributes.position) {
|
|
67
68
|
vertices += geometry.attributes.position.count;
|
|
68
69
|
|
|
@@ -75,12 +76,12 @@ export const getSceneInfo = scene => {
|
|
|
75
76
|
});
|
|
76
77
|
}
|
|
77
78
|
return {
|
|
78
|
-
objects,
|
|
79
|
-
vertices,
|
|
80
|
-
triangles
|
|
79
|
+
objects: objects,
|
|
80
|
+
vertices: vertices,
|
|
81
|
+
triangles: triangles
|
|
81
82
|
};
|
|
82
83
|
};
|
|
83
|
-
export
|
|
84
|
+
export var object2Vector3 = function object2Vector3(obj) {
|
|
84
85
|
return new Vector3(obj.x, obj.y, obj.z);
|
|
85
86
|
};
|
|
86
87
|
//# sourceMappingURL=index.js.map
|
package/dist/utils/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Vector3","messageStatus","MessageType","sendToMessage","getValueByKey","obj","key","undefined","keys","split","middleObj","index","length","currentKey","getFnByFnkey","iEngine","fnkey","id","handleFunction","messageType","Api","messageName","status","ModuleNotRegister","code","Error","fnkeyArrary","context","slice","join","bind","getSceneInfo","scene","objects","vertices","triangles","i","l","children","object","traverseVisible","isMesh","isPoints","geometry","attributes","position","count","object2Vector3","x","y","z"],"sources":["../../src/utils/index.ts"],"sourcesContent":["import type { Scene } from '@anov/3d-core'\nimport { Vector3 } from '@anov/3d-core'\nimport type Anov3D from '..'\nimport { messageStatus } from '../messageStatus'\nimport { MessageType, sendToMessage } from './messageFn'\n\ninterface ObjectType {\n [key: string]: any\n\n}\n\n/**\n * get value by key\n * notic: to mark proxy, so need take it layer by layer\n * @param obj\n * @param key\n */\nexport const getValueByKey = <T extends ObjectType>(obj: T, key: string) => {\n if (!key)\n return undefined\n\n const keys = key.split('.')\n let middleObj = obj\n\n for (let index = 0; index < keys.length; index++) {\n const currentKey = keys[index]\n\n if (typeof middleObj === 'object') {\n if (!(currentKey in (middleObj)))\n return undefined\n else\n middleObj = middleObj[currentKey]\n }\n else {\n return undefined\n }\n }\n\n return middleObj\n}\n\n/**\n * getFnByFnkey\n * @param iEngine\n * @param fnkey\n */\nexport const getFnByFnkey = (iEngine: Anov3D, fnkey: string, id: string) => {\n const handleFunction = getValueByKey(iEngine, fnkey) as any\n\n if (typeof handleFunction !== 'function') {\n sendToMessage(\n {\n messageType: MessageType.Api,\n messageName: fnkey,\n status: messageStatus.ModuleNotRegister.code,\n },\n {\n id,\n },\n )\n throw new Error('this function is not exist')\n }\n\n const fnkeyArrary = fnkey.split('.')\n\n let context: any = iEngine\n\n if (fnkeyArrary.length > 1)\n context = getValueByKey(iEngine, fnkeyArrary.slice(0, fnkeyArrary.length - 1).join('.'))\n\n return handleFunction.bind(context)\n}\n\n/**\n * get scene object vertice and triangle\n * @param scene\n * @returns\n */\nexport const getSceneInfo = (scene: Scene) => {\n let objects = 0\n let vertices = 0\n let triangles = 0\n\n for (let i = 0, l = scene.children.length; i < l; i++) {\n const object = scene.children[i]\n\n object.traverseVisible((object) => {\n objects++\n\n // @ts-ignore\n if (object.isMesh || object.isPoints) {\n // @ts-ignore\n const geometry = object.geometry\n\n if (geometry && geometry.attributes.position) {\n vertices += geometry.attributes.position.count\n\n // @ts-ignore\n if (object.isMesh) {\n if (geometry.index !== null)\n\n triangles += geometry.index.count / 3\n\n else\n\n triangles += geometry.attributes.position.count / 3\n }\n }\n }\n })\n }\n\n return {\n objects,\n vertices,\n triangles,\n }\n}\n\nexport const object2Vector3 = (obj: { x: number; y: number; z: number }) => {\n return new Vector3(obj.x, obj.y, obj.z)\n}\n"],"mappings":"AACA,SAASA,OAAO,QAAQ,eAAe;AAEvC,SAASC,aAAa;AACtB,SAASC,WAAW,EAAEC,aAAa;AAOnC;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,
|
|
1
|
+
{"version":3,"names":["Vector3","messageStatus","MessageType","sendToMessage","getValueByKey","obj","key","undefined","keys","split","middleObj","index","length","currentKey","_typeof","getFnByFnkey","iEngine","fnkey","id","handleFunction","messageType","Api","messageName","status","ModuleNotRegister","code","Error","fnkeyArrary","context","slice","join","bind","getSceneInfo","scene","objects","vertices","triangles","i","l","children","object","traverseVisible","isMesh","isPoints","geometry","attributes","position","count","object2Vector3","x","y","z"],"sources":["../../src/utils/index.ts"],"sourcesContent":["import type { Scene } from '@anov/3d-core'\nimport { Vector3 } from '@anov/3d-core'\nimport type Anov3D from '..'\nimport { messageStatus } from '../messageStatus'\nimport { MessageType, sendToMessage } from './messageFn'\n\ninterface ObjectType {\n [key: string]: any\n\n}\n\n/**\n * get value by key\n * notic: to mark proxy, so need take it layer by layer\n * @param obj\n * @param key\n */\nexport const getValueByKey = <T extends ObjectType>(obj: T, key: string) => {\n if (!key)\n return undefined\n\n const keys = key.split('.')\n let middleObj = obj\n\n for (let index = 0; index < keys.length; index++) {\n const currentKey = keys[index]\n\n if (typeof middleObj === 'object') {\n if (!(currentKey in (middleObj)))\n return undefined\n else\n middleObj = middleObj[currentKey]\n }\n else {\n return undefined\n }\n }\n\n return middleObj\n}\n\n/**\n * getFnByFnkey\n * @param iEngine\n * @param fnkey\n */\nexport const getFnByFnkey = (iEngine: Anov3D, fnkey: string, id: string) => {\n const handleFunction = getValueByKey(iEngine, fnkey) as any\n\n if (typeof handleFunction !== 'function') {\n sendToMessage(\n {\n messageType: MessageType.Api,\n messageName: fnkey,\n status: messageStatus.ModuleNotRegister.code,\n },\n {\n id,\n },\n )\n throw new Error('this function is not exist')\n }\n\n const fnkeyArrary = fnkey.split('.')\n\n let context: any = iEngine\n\n if (fnkeyArrary.length > 1)\n context = getValueByKey(iEngine, fnkeyArrary.slice(0, fnkeyArrary.length - 1).join('.'))\n\n return handleFunction.bind(context)\n}\n\n/**\n * get scene object vertice and triangle\n * @param scene\n * @returns\n */\nexport const getSceneInfo = (scene: Scene) => {\n let objects = 0\n let vertices = 0\n let triangles = 0\n\n for (let i = 0, l = scene.children.length; i < l; i++) {\n const object = scene.children[i]\n\n object.traverseVisible((object) => {\n objects++\n\n // @ts-ignore\n if (object.isMesh || object.isPoints) {\n // @ts-ignore\n const geometry = object.geometry\n\n if (geometry && geometry.attributes.position) {\n vertices += geometry.attributes.position.count\n\n // @ts-ignore\n if (object.isMesh) {\n if (geometry.index !== null)\n\n triangles += geometry.index.count / 3\n\n else\n\n triangles += geometry.attributes.position.count / 3\n }\n }\n }\n })\n }\n\n return {\n objects,\n vertices,\n triangles,\n }\n}\n\nexport const object2Vector3 = (obj: { x: number; y: number; z: number }) => {\n return new Vector3(obj.x, obj.y, obj.z)\n}\n"],"mappings":";AACA,SAASA,OAAO,QAAQ,eAAe;AAEvC,SAASC,aAAa;AACtB,SAASC,WAAW,EAAEC,aAAa;AAOnC;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,IAAMC,aAAa,GAAG,SAAhBA,aAAaA,CAA0BC,GAAM,EAAEC,GAAW,EAAK;EAC1E,IAAI,CAACA,GAAG,EACN,OAAOC,SAAS;EAElB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,GAAwC,EAAK;EAC1E,OAAO,IAAIL,OAAO,CAACK,GAAG,CAAC4C,CAAC,EAAE5C,GAAG,CAAC6C,CAAC,EAAE7C,GAAG,CAAC8C,CAAC,CAAC;AACzC,CAAC"}
|
package/dist/utils/messageFn.js
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _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; }, _typeof(o); }
|
|
1
2
|
function 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; }
|
|
2
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
3
4
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" ==
|
|
5
|
-
function _toPrimitive(t, r) { if ("object" !=
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
7
|
import { v4 as uuidv4 } from 'uuid';
|
|
7
8
|
import { utils } from '@anov/3d-core';
|
|
8
9
|
import { EMessageStatus, codeMessageMap } from "../messageStatus";
|
|
9
|
-
export
|
|
10
|
+
export var MessageType = /*#__PURE__*/function (MessageType) {
|
|
10
11
|
MessageType[MessageType["Event"] = 0] = "Event";
|
|
11
12
|
MessageType[MessageType["Api"] = 1] = "Api";
|
|
12
13
|
return MessageType;
|
|
13
14
|
}({});
|
|
14
|
-
|
|
15
|
+
var getResponseMsg = function getResponseMsg(status) {
|
|
15
16
|
var _codeMessageMap$statu;
|
|
16
17
|
// @ts-ignore
|
|
17
18
|
return (_codeMessageMap$statu = codeMessageMap[status]) !== null && _codeMessageMap$statu !== void 0 ? _codeMessageMap$statu : '未知错误';
|
|
@@ -24,18 +25,18 @@ const getResponseMsg = status => {
|
|
|
24
25
|
* @param res
|
|
25
26
|
* @returns
|
|
26
27
|
*/
|
|
27
|
-
export
|
|
28
|
+
export var sendToMessage = function sendToMessage(messageBody, res) {
|
|
28
29
|
var _res$failMessage, _ref;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
status = EMessageStatus.Success,
|
|
33
|
-
id,
|
|
34
|
-
global =
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
30
|
+
var messageType = messageBody.messageType,
|
|
31
|
+
messageName = messageBody.messageName,
|
|
32
|
+
_messageBody$status = messageBody.status,
|
|
33
|
+
status = _messageBody$status === void 0 ? EMessageStatus.Success : _messageBody$status,
|
|
34
|
+
id = messageBody.id,
|
|
35
|
+
_messageBody$global = messageBody.global,
|
|
36
|
+
global = _messageBody$global === void 0 ? true : _messageBody$global;
|
|
37
|
+
var uid = uuidv4();
|
|
38
|
+
var responseMsg = getResponseMsg(status);
|
|
39
|
+
var response = {
|
|
39
40
|
id: id !== null && id !== void 0 ? id : uid,
|
|
40
41
|
name: messageName,
|
|
41
42
|
code: status,
|
|
@@ -44,8 +45,8 @@ export const sendToMessage = (messageBody, res) => {
|
|
|
44
45
|
result: _objectSpread({}, (_ref = res) !== null && _ref !== void 0 ? _ref : {})
|
|
45
46
|
};
|
|
46
47
|
if (messageType === MessageType.Api) utils.emitter.emit('message', response);else if (messageType === MessageType.Event) utils.emitter.emit('event', _objectSpread(_objectSpread({}, response), {}, {
|
|
47
|
-
name:
|
|
48
|
-
global
|
|
48
|
+
name: "".concat(response.name),
|
|
49
|
+
global: global
|
|
49
50
|
}));
|
|
50
51
|
};
|
|
51
52
|
//# sourceMappingURL=messageFn.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["v4","uuidv4","utils","EMessageStatus","codeMessageMap","MessageType","getResponseMsg","status","_codeMessageMap$statu","sendToMessage","messageBody","res","_res$failMessage","_ref","messageType","messageName","Success","id","global","uid","responseMsg","response","name","code","msg","failMessage","result","_objectSpread","Api","emitter","emit","Event"],"sources":["../../src/utils/messageFn.ts"],"sourcesContent":["import { v4 as uuidv4 } from 'uuid'\nimport { utils } from '@anov/3d-core'\nimport { EMessageStatus, codeMessageMap } from '../messageStatus'\n\nexport enum MessageType {\n Event,\n Api,\n}\n\ntype MessageDataType = {\n messageType: MessageType\n messageName: string\n status?: number\n id?: string\n global?: boolean // is global event, default is true, only for event\n}\n\nconst getResponseMsg = (status: number) => {\n // @ts-ignore\n return codeMessageMap[status] ?? '未知错误'\n}\n\n/**\n * sendToMessage\n * @param messageName\n * @param status\n * @param res\n * @returns\n */\nexport const sendToMessage = (messageBody: MessageDataType, res?: unknown) => {\n const { messageType, messageName, status = EMessageStatus.Success, id, global = true } = messageBody\n\n const uid = uuidv4()\n const responseMsg = getResponseMsg(status)\n\n const response = {\n id: id ?? uid,\n name: messageName,\n code: status,\n // @ts-ignore\n msg: res?.failMessage ?? responseMsg,\n result: {\n ...(res as any ?? {}),\n },\n }\n\n if (messageType === MessageType.Api)\n utils.emitter.emit('message', response)\n else if (messageType === MessageType.Event)\n utils.emitter.emit('event', { ...response, name: `${response.name}`, global })\n}"],"mappings":"
|
|
1
|
+
{"version":3,"names":["v4","uuidv4","utils","EMessageStatus","codeMessageMap","MessageType","getResponseMsg","status","_codeMessageMap$statu","sendToMessage","messageBody","res","_res$failMessage","_ref","messageType","messageName","_messageBody$status","Success","id","_messageBody$global","global","uid","responseMsg","response","name","code","msg","failMessage","result","_objectSpread","Api","emitter","emit","Event","concat"],"sources":["../../src/utils/messageFn.ts"],"sourcesContent":["import { v4 as uuidv4 } from 'uuid'\nimport { utils } from '@anov/3d-core'\nimport { EMessageStatus, codeMessageMap } from '../messageStatus'\n\nexport enum MessageType {\n Event,\n Api,\n}\n\ntype MessageDataType = {\n messageType: MessageType\n messageName: string\n status?: number\n id?: string\n global?: boolean // is global event, default is true, only for event\n}\n\nconst getResponseMsg = (status: number) => {\n // @ts-ignore\n return codeMessageMap[status] ?? '未知错误'\n}\n\n/**\n * sendToMessage\n * @param messageName\n * @param status\n * @param res\n * @returns\n */\nexport const sendToMessage = (messageBody: MessageDataType, res?: unknown) => {\n const { messageType, messageName, status = EMessageStatus.Success, id, global = true } = messageBody\n\n const uid = uuidv4()\n const responseMsg = getResponseMsg(status)\n\n const response = {\n id: id ?? uid,\n name: messageName,\n code: status,\n // @ts-ignore\n msg: res?.failMessage ?? responseMsg,\n result: {\n ...(res as any ?? {}),\n },\n }\n\n if (messageType === MessageType.Api)\n utils.emitter.emit('message', response)\n else if (messageType === MessageType.Event)\n utils.emitter.emit('event', { ...response, name: `${response.name}`, global })\n}"],"mappings":";;;;;;AAAA,SAASA,EAAE,IAAIC,MAAM,QAAQ,MAAM;AACnC,SAASC,KAAK,QAAQ,eAAe;AACrC,SAASC,cAAc,EAAEC,cAAc;AAEvC,WAAYC,WAAW,0BAAXA,WAAW;EAAXA,WAAW,CAAXA,WAAW;EAAXA,WAAW,CAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AAavB,IAAM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IAAI,CAAC,SAAS,EAAET,QAAQ,CAAC,MACpC,IAAIT,WAAW,KAAKT,WAAW,CAAC4B,KAAK,EACxC/B,KAAK,CAAC6B,OAAO,CAACC,IAAI,CAAC,OAAO,EAAAH,aAAA,CAAAA,aAAA,KAAON,QAAQ;IAAEC,IAAI,KAAAU,MAAA,CAAKX,QAAQ,CAACC,IAAI,CAAE;IAAEJ,MAAM,EAANA;EAAM,EAAE,CAAC;AAClF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anov/3d",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.291",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"rxjs": "7.8.1",
|
|
30
30
|
"three-mesh-bvh": "^0.9.0",
|
|
31
31
|
"uuid": "^9.0.1",
|
|
32
|
-
"@anov/3d-
|
|
33
|
-
"@anov/3d-
|
|
32
|
+
"@anov/3d-core": "^0.0.86",
|
|
33
|
+
"@anov/3d-ability": "^0.0.144"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/uuid": "^9.0.7",
|