@anov/3d 0.0.13 → 0.0.15
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/factory/3d.d.ts +23 -14
- package/dist/factory/3d.js +143 -55
- package/dist/factory/3d.js.map +1 -1
- package/dist/factory/regionData.d.ts +8 -0
- package/dist/factory/regionData.js +59 -6
- package/dist/factory/regionData.js.map +1 -1
- package/dist/factory/unit/CameraPoi.d.ts +52 -4
- package/dist/factory/unit/CameraPoi.js +701 -55
- package/dist/factory/unit/CameraPoi.js.map +1 -1
- package/dist/factory/unit/glsl/heat/frag.d.ts +2 -0
- package/dist/factory/unit/glsl/heat/frag.glsl +37 -0
- package/dist/factory/unit/glsl/heat/frag.js +3 -0
- package/dist/factory/unit/glsl/heat/frag.js.map +1 -0
- package/dist/factory/unit/glsl/heat/ver.d.ts +2 -0
- package/dist/factory/unit/glsl/heat/ver.glsl +15 -0
- package/dist/factory/unit/glsl/heat/ver.js +3 -0
- package/dist/factory/unit/glsl/heat/ver.js.map +1 -0
- package/dist/factory/unit/handle.d.ts +4 -0
- package/dist/factory/unit/handle.js +20 -14
- package/dist/factory/unit/handle.js.map +1 -1
- package/dist/factory/unit/index.js +23 -13
- package/dist/factory/unit/index.js.map +1 -1
- package/dist/factory/unit/inspection/InspectionObject.d.ts +26 -0
- package/dist/factory/unit/{inspection.js → inspection/InspectionObject.js} +275 -133
- package/dist/factory/unit/inspection/InspectionObject.js.map +1 -0
- package/dist/factory/unit/{inspection.d.ts → inspection/index.d.ts} +8 -9
- package/dist/factory/unit/inspection/index.js +160 -0
- package/dist/factory/unit/inspection/index.js.map +1 -0
- package/dist/factory/unit/inspection/lineData.d.ts +21 -0
- package/dist/factory/unit/inspection/lineData.js +32 -0
- package/dist/factory/unit/inspection/lineData.js.map +1 -0
- package/dist/factory/unit/poi.d.ts +1 -0
- package/dist/factory/unit/poi.js +28 -14
- package/dist/factory/unit/poi.js.map +1 -1
- package/dist/factory/utils/constant.d.ts +0 -1
- package/dist/factory/utils/constant.js +0 -1
- package/dist/factory/utils/constant.js.map +1 -1
- package/dist/factory/utils/finirMaterial.d.ts +1 -0
- package/dist/factory/utils/finirMaterial.js +19 -1
- package/dist/factory/utils/finirMaterial.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/module/environment/time/index.d.ts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +4 -3
- package/dist/factory/unit/inspection.js.map +0 -1
- package/dist/factory/unit/poi copy.d.ts +0 -15
- package/dist/factory/unit/poi copy.js +0 -144
- package/dist/factory/unit/poi copy.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["CatmullRomCurve3","Color","CurvePath","LineCurve3","ModelLoader","PerspectiveCamera","Vector3","lib","use","utils","Line2","LineGeometry","LineMaterial","modelLoader","linePosition","InspectionObject","inspection","loadGLTF","glb","model","scene","scale","set","gobal","add","curve","loadModel","control","moveWithLine","increaseSpeed","recoverSpeed","targetPosition","Inspection","inspectionObject","generateInspectionPath","startInspection","hide","reduce","prev","current","curves","push","fromArray","currentPoints","getPoints","lastCurve","geometry","linePoints","forEach","point","x","y","z","setPositions","line","color","getHex","linewidth","minCamera","cutoutCamera","cutoutArea","width","height","useframe","car","position","rotation","Math","PI","startMove","setInspectionCamera","gotoTarget","cutout","visible","cutMain","renderer","check"],"sources":["../../../src/factory/unit/inspection.ts"],"sourcesContent":["import type { Object3D } from '@anov/3d-core'\nimport { CatmullRomCurve3, Color, CurvePath, LineCurve3, ModelLoader, PerspectiveCamera, Vector3, lib, use, utils } from '@anov/3d-core'\nimport type Factory3D from '../3d'\n\nconst { Line2, LineGeometry, LineMaterial } = lib\nconst modelLoader = new ModelLoader()\n\nconst linePosition = [\n [-487.02, 0, -53.20],\n [-145.39, 0, -50.51],\n [-146.27, 0, 119.63],\n [21.13, 0, 125.23],\n [24.59, 0, -53.50],\n [321.58, 0, -50.13],\n [331.35, 0, 228.17],\n]\n\nclass InspectionObject {\n private model\n private inspection\n private control\n\n constructor(inspection) {\n this.inspection = inspection\n }\n\n async loadModel() {\n const glb = await (await modelLoader.loadGLTF('./car.glb'))\n this.model = glb.scene\n\n glb.scene.scale.set(15, 15, 15)\n\n this.inspection.gobal.scene.add(this.model)\n }\n\n async startMove(curve) {\n if (!this.model)\n await this.loadModel()\n\n this.control = utils.moveWithLine(this.model, curve, 1000)\n }\n\n stop() {\n this.control.increaseSpeed(0)\n }\n\n contineMove() {\n this.control.recoverSpeed()\n }\n\n gotoTarget(targetPosition: Vector3) {}\n}\n\nclass Inspection {\n private gobal: Factory3D\n private inspectionObject\n private curve\n private line: lib.Line2\n minCamera: PerspectiveCamera\n\n InspectionPathObject: Object3D\n\n constructor(gobal: Factory3D) {\n this.gobal = gobal\n this.inspectionObject = new InspectionObject(this)\n this.generateInspectionPath(linePosition)\n this.startInspection(this.curve)\n this.hide()\n }\n\n /**\n * generate inspection path\n * @param linePosition\n */\n private generateInspectionPath(linePosition: number[][]) {\n const curve = new CurvePath()\n\n linePosition.reduce((prev, current) => {\n curve.curves.push(new LineCurve3(new Vector3().fromArray(prev), new Vector3().fromArray(current)))\n return current\n }, linePosition[0])\n const currentPoints = curve.getPoints() as Vector3[]\n const lastCurve = new CatmullRomCurve3([\n ...currentPoints,\n ], false, 'catmullrom', 0)\n\n this.curve = lastCurve\n\n const geometry = new LineGeometry()\n const linePoints = []\n\n currentPoints.forEach((point) => {\n linePoints.push(point.x, point.y, point.z)\n })\n\n geometry.setPositions(linePoints)\n\n const line = new Line2(geometry,\n new LineMaterial({\n color: new Color('yellow').getHex(),\n linewidth: 0.005,\n }))\n\n this.line = line\n\n const minCamera = new PerspectiveCamera(90, 1, 0.1, 1000)\n this.gobal.scene.cutoutCamera = minCamera\n this.minCamera = minCamera\n this.gobal.scene.cutoutArea = { x: 0, y: 0, width: 200, height: 200 }\n this.gobal.scene.add(minCamera)\n this.gobal.scene.add(line)\n }\n\n /**\n * open inspection camera\n */\n setInspectionCamera() {\n const minCamera = new PerspectiveCamera(90, 1, 0.1, 1000)\n this.gobal.scene.cutoutCamera = minCamera\n this.gobal.scene.cutoutArea = { x: 0, y: 0, width: 200, height: 200 }\n this.gobal.scene.add(minCamera)\n\n use.useframe(() => {\n const car = this.inspectionObject.model\n car && minCamera.position.set(car.position.x, car.position.y + 30, car.position.z)\n car && minCamera.rotation.set(car.rotation.x, car.rotation.y + Math.PI, car.rotation.z)\n })\n }\n\n /**\n * start inspection\n * @param line\n */\n startInspection(line) {\n this.inspectionObject.startMove(line)\n this.setInspectionCamera()\n }\n\n goToInspectionTarget(targetPosition: Vector3) {\n this.inspectionObject.gotoTarget(targetPosition)\n }\n\n show() {\n this.gobal.scene.cutout = true\n this.line.visible = true\n this.inspectionObject.model && (this.inspectionObject.model.visible = true)\n }\n\n hide() {\n this.gobal.scene.cutout = false\n this.gobal.scene.cutMain(this.gobal.scene.renderer)\n this.line.visible = false\n\n const check = use.useframe(() => {\n if (this.inspectionObject.model) {\n this.inspectionObject.model.visible = false\n check()\n }\n })\n }\n}\n\nexport default Inspection"],"mappings":";;;;;;;+CACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAASA,gBAAgB,EAAEC,KAAK,EAAEC,SAAS,EAAEC,UAAU,EAAEC,WAAW,EAAEC,iBAAiB,EAAEC,OAAO,EAAEC,GAAG,EAAEC,GAAG,EAAEC,KAAK,QAAQ,eAAe;AAGxI,IAAQC,KAAK,GAAiCH,GAAG,CAAzCG,KAAK;EAAEC,YAAY,GAAmBJ,GAAG,CAAlCI,YAAY;EAAEC,YAAY,GAAKL,GAAG,CAApBK,YAAY;AACzC,IAAMC,WAAW,GAAG,IAAIT,WAAW,EAAE;AAErC,IAAMU,YAAY,GAAG,CACnB,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,EACpB,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,EACp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AAC;IAAA;IAAA,OAED,gBAAO;MAAA;MACL,IAAI,CAAClD,KAAK,CAACH,KAAK,CAACoD,MAAM,GAAG,KAAK;MAC/B,IAAI,CAACjD,KAAK,CAACH,KAAK,CAACsD,OAAO,CAAC,IAAI,CAACnD,KAAK,CAACH,KAAK,CAACuD,QAAQ,CAAC;MACnD,IAAI,CAACrB,IAAI,CAACmB,OAAO,GAAG,KAAK;MAEzB,IAAMG,KAAK,GAAGpE,GAAG,CAACuD,QAAQ,CAAC,YAAM;QAC/B,IAAI,MAAI,CAAC9B,gBAAgB,CAACd,KAAK,EAAE;UAC/B,MAAI,CAACc,gBAAgB,CAACd,KAAK,CAACsD,OAAO,GAAG,KAAK;UAC3CG,KAAK,EAAE;QACT;MACF,CAAC,CAAC;IACJ;EAAC;EAAA;AAAA;AAGH,eAAe5C,UAAU"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { Object3D } from '@anov/3d-core';
|
|
2
|
-
declare class PoiManage {
|
|
3
|
-
private gobal;
|
|
4
|
-
private scene;
|
|
5
|
-
private dialogPoi;
|
|
6
|
-
readonly poiMesh: Map<string, Object3D>;
|
|
7
|
-
private wallManage;
|
|
8
|
-
private interactionManager;
|
|
9
|
-
constructor(gobal: any);
|
|
10
|
-
generatePoi(): void;
|
|
11
|
-
setVisible(visible?: boolean): void;
|
|
12
|
-
reset(): void;
|
|
13
|
-
private addDialogPanel;
|
|
14
|
-
}
|
|
15
|
-
export default PoiManage;
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
6
|
-
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
7
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
8
|
-
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); } }
|
|
9
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
10
|
-
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; }
|
|
11
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
12
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
13
|
-
import { Mesh, MeshBasicMaterial, PlaneGeometry, Vector3, utils } from '@anov/3d-core';
|
|
14
|
-
import { EPoiType, Poi } from '@anov/3d-ability';
|
|
15
|
-
import { regionMap } from "../regionData";
|
|
16
|
-
var PoiManage = /*#__PURE__*/function () {
|
|
17
|
-
function PoiManage(gobal) {
|
|
18
|
-
_classCallCheck(this, PoiManage);
|
|
19
|
-
_defineProperty(this, "gobal", void 0);
|
|
20
|
-
_defineProperty(this, "scene", void 0);
|
|
21
|
-
_defineProperty(this, "dialogPoi", void 0);
|
|
22
|
-
_defineProperty(this, "poiMesh", new Map());
|
|
23
|
-
_defineProperty(this, "wallManage", void 0);
|
|
24
|
-
_defineProperty(this, "interactionManager", void 0);
|
|
25
|
-
this.gobal = gobal;
|
|
26
|
-
this.scene = gobal.scene.scene;
|
|
27
|
-
this.wallManage = gobal.wall;
|
|
28
|
-
this.interactionManager = utils.storeManagement.get('interactionManager');
|
|
29
|
-
}
|
|
30
|
-
_createClass(PoiManage, [{
|
|
31
|
-
key: "generatePoi",
|
|
32
|
-
value: function generatePoi() {
|
|
33
|
-
var _this = this;
|
|
34
|
-
Object.keys(regionMap).forEach( /*#__PURE__*/function () {
|
|
35
|
-
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(key) {
|
|
36
|
-
var region, option, geometry, material, plane, poi, sprite, changeWallState;
|
|
37
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
38
|
-
while (1) switch (_context.prev = _context.next) {
|
|
39
|
-
case 0:
|
|
40
|
-
region = regionMap[key];
|
|
41
|
-
option = _objectSpread({
|
|
42
|
-
scale: 80
|
|
43
|
-
}, (region.id === '4' || region.id === '5') && {
|
|
44
|
-
width: 260,
|
|
45
|
-
height: 260,
|
|
46
|
-
img: './poi_big.png'
|
|
47
|
-
});
|
|
48
|
-
geometry = new PlaneGeometry(1, 1);
|
|
49
|
-
material = new MeshBasicMaterial({
|
|
50
|
-
color: 0xFFFF00,
|
|
51
|
-
side: THREE.DoubleSide
|
|
52
|
-
});
|
|
53
|
-
plane = new Mesh(geometry, material);
|
|
54
|
-
poi = new Poi(EPoiType.Line);
|
|
55
|
-
sprite = poi.create(region.title, option);
|
|
56
|
-
sprite.position.copy(new Vector3().fromArray(region.poi.position));
|
|
57
|
-
_this.scene.add(sprite);
|
|
58
|
-
_this.poiMesh.set(region.poi.id, sprite);
|
|
59
|
-
|
|
60
|
-
// 绑定事件
|
|
61
|
-
_this.interactionManager.add(sprite);
|
|
62
|
-
changeWallState = function changeWallState(show) {
|
|
63
|
-
var _this$dialogPoi;
|
|
64
|
-
if ((_this$dialogPoi = _this.dialogPoi) !== null && _this$dialogPoi !== void 0 && _this$dialogPoi.visible) return;
|
|
65
|
-
// 光墙
|
|
66
|
-
var wall = _this.wallManage.wallMesh.get(region.id);
|
|
67
|
-
wall.visible = show;
|
|
68
|
-
};
|
|
69
|
-
sprite.addEventListener('mouseover', function () {
|
|
70
|
-
changeWallState(true);
|
|
71
|
-
});
|
|
72
|
-
sprite.addEventListener('mouseout', function () {
|
|
73
|
-
changeWallState(false);
|
|
74
|
-
});
|
|
75
|
-
sprite.addEventListener('click', function (event) {
|
|
76
|
-
if (!sprite.visible) return;
|
|
77
|
-
_this.reset();
|
|
78
|
-
// 光墙
|
|
79
|
-
var wall = _this.wallManage.wallMesh.get(region.id);
|
|
80
|
-
wall.visible = true;
|
|
81
|
-
// 隐藏当前POI点
|
|
82
|
-
sprite.visible = false;
|
|
83
|
-
_this.addDialogPanel(region, event.point, sprite);
|
|
84
|
-
});
|
|
85
|
-
case 15:
|
|
86
|
-
case "end":
|
|
87
|
-
return _context.stop();
|
|
88
|
-
}
|
|
89
|
-
}, _callee);
|
|
90
|
-
}));
|
|
91
|
-
return function (_x) {
|
|
92
|
-
return _ref.apply(this, arguments);
|
|
93
|
-
};
|
|
94
|
-
}());
|
|
95
|
-
}
|
|
96
|
-
}, {
|
|
97
|
-
key: "setVisible",
|
|
98
|
-
value: function setVisible() {
|
|
99
|
-
var visible = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
100
|
-
// 控制POI点的隐藏、显示
|
|
101
|
-
this.poiMesh.forEach(function (poi) {
|
|
102
|
-
poi.visible = visible;
|
|
103
|
-
});
|
|
104
|
-
// 移除面板
|
|
105
|
-
if (this.dialogPoi) this.dialogPoi.removeFromParent();
|
|
106
|
-
}
|
|
107
|
-
}, {
|
|
108
|
-
key: "reset",
|
|
109
|
-
value: function reset() {
|
|
110
|
-
var _this$wallManage;
|
|
111
|
-
// 控制POI点的隐藏、显示
|
|
112
|
-
this.setVisible(true);
|
|
113
|
-
// 控制光墙的隐藏、显示
|
|
114
|
-
(_this$wallManage = this.wallManage) === null || _this$wallManage === void 0 ? void 0 : _this$wallManage.wallMesh.forEach(function (wall) {
|
|
115
|
-
wall.visible = false;
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
}, {
|
|
119
|
-
key: "addDialogPanel",
|
|
120
|
-
value: function addDialogPanel(data, position) {
|
|
121
|
-
var _this2 = this;
|
|
122
|
-
// 添加面板
|
|
123
|
-
var poi = new Poi(EPoiType.Panel);
|
|
124
|
-
this.dialogPoi = poi.create({
|
|
125
|
-
title: data.title,
|
|
126
|
-
content: data.poi.content
|
|
127
|
-
}, {
|
|
128
|
-
print: true
|
|
129
|
-
});
|
|
130
|
-
this.dialogPoi.position.copy(position.clone().add(new Vector3(-30, 30, 0)));
|
|
131
|
-
this.scene.add(this.dialogPoi);
|
|
132
|
-
this.interactionManager.add(this.dialogPoi);
|
|
133
|
-
this.dialogPoi.addEventListener('click', function (event) {
|
|
134
|
-
_this2.dialogPoi.remove();
|
|
135
|
-
_this2.dialogPoi.removeFromParent();
|
|
136
|
-
_this2.dialogPoi = null;
|
|
137
|
-
_this2.reset();
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
}]);
|
|
141
|
-
return PoiManage;
|
|
142
|
-
}();
|
|
143
|
-
export default PoiManage;
|
|
144
|
-
//# sourceMappingURL=poi copy.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Mesh","MeshBasicMaterial","PlaneGeometry","Vector3","utils","EPoiType","Poi","regionMap","PoiManage","gobal","Map","scene","wallManage","wall","interactionManager","storeManagement","get","Object","keys","forEach","key","region","option","scale","id","width","height","img","geometry","material","color","side","THREE","DoubleSide","plane","poi","Line","sprite","create","title","position","copy","fromArray","add","poiMesh","set","changeWallState","show","dialogPoi","visible","wallMesh","addEventListener","event","reset","addDialogPanel","point","removeFromParent","setVisible","data","Panel","content","print","clone","remove"],"sources":["../../../src/factory/unit/poi copy.ts"],"sourcesContent":["import type { InteractionManager, Object3D, Scene, Sprite } from '@anov/3d-core'\nimport { Mesh, MeshBasicMaterial, PlaneGeometry, Vector3, utils } from '@anov/3d-core'\nimport { EPoiType, Poi } from '@anov/3d-ability'\nimport type Factory3D from '../3d'\nimport { regionMap } from '../regionData'\nimport type WallManage from './wall'\n\nclass PoiManage {\n private gobal: Factory3D\n private scene: Scene\n private dialogPoi: Object3D\n readonly poiMesh: Map<string, Object3D> = new Map()\n private wallManage: WallManage\n private interactionManager\n\n constructor(gobal) {\n this.gobal = gobal\n this.scene = gobal.scene.scene\n this.wallManage = gobal.wall\n this.interactionManager = utils.storeManagement.get<InteractionManager>('interactionManager')\n }\n\n generatePoi() {\n Object.keys(regionMap).forEach(async (key: string) => {\n const region = regionMap[key]\n const option = {\n scale: 80,\n ...((region.id === '4' || region.id === '5') && {\n width: 260,\n height: 260,\n img: './poi_big.png',\n }),\n }\n const geometry = new PlaneGeometry(1, 1)\n const material = new MeshBasicMaterial({ color: 0xFFFF00, side: THREE.DoubleSide })\n const plane = new Mesh(geometry, material)\n const poi = new Poi(EPoiType.Line)\n const sprite = poi.create(region.title, option) as Sprite\n sprite.position.copy(new Vector3().fromArray(region.poi.position))\n\n this.scene.add(sprite)\n this.poiMesh.set(region.poi.id, sprite)\n\n // 绑定事件\n this.interactionManager.add(sprite)\n const changeWallState = (show) => {\n if (this.dialogPoi?.visible)\n return\n // 光墙\n const wall = this.wallManage.wallMesh.get(region.id)\n wall.visible = show\n }\n\n sprite.addEventListener('mouseover', () => {\n changeWallState(true)\n })\n sprite.addEventListener('mouseout', () => {\n changeWallState(false)\n })\n sprite.addEventListener('click', (event) => {\n if (!sprite.visible)\n return\n this.reset()\n // 光墙\n const wall = this.wallManage.wallMesh.get(region.id)\n wall.visible = true\n // 隐藏当前POI点\n sprite.visible = false\n this.addDialogPanel(region, event.point, sprite)\n })\n })\n }\n\n setVisible(visible = true) {\n // 控制POI点的隐藏、显示\n this.poiMesh.forEach((poi) => {\n poi.visible = visible\n })\n // 移除面板\n if (this.dialogPoi)\n this.dialogPoi.removeFromParent()\n }\n\n reset() {\n // 控制POI点的隐藏、显示\n this.setVisible(true)\n // 控制光墙的隐藏、显示\n this.wallManage?.wallMesh.forEach((wall) => {\n wall.visible = false\n })\n }\n\n private addDialogPanel(data, position) {\n // 添加面板\n const poi = new Poi(EPoiType.Panel)\n this.dialogPoi = poi.create({ title: data.title, content: data.poi.content }, { print: true })\n this.dialogPoi.position.copy(position.clone().add(new Vector3(-30, 30, 0)))\n this.scene.add(this.dialogPoi)\n\n this.interactionManager.add(this.dialogPoi)\n this.dialogPoi.addEventListener('click', (event) => {\n this.dialogPoi.remove()\n this.dialogPoi.removeFromParent()\n this.dialogPoi = null\n this.reset()\n })\n }\n}\n\nexport default PoiManage"],"mappings":";+CACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,SAASA,IAAI,EAAEC,iBAAiB,EAAEC,aAAa,EAAEC,OAAO,EAAEC,KAAK,QAAQ,eAAe;AACtF,SAASC,QAAQ,EAAEC,GAAG,QAAQ,kBAAkB;AAEhD,SAASC,SAAS;AAAuB,IAGnCC,SAAS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