UNPKG

@thingjs-x4/xplugin-bundle

Version:

xplugin-bundle ThingJS-X 插件描述文件

1 lines 15.7 kB
var e=self,t=()=>(()=>{"use strict";var n={824:(x,e,t)=>{t.d(e,{default:()=>I});var u=t(671),o=t(144),e=t(942),s=t(916),l=t(793),c=t(261),h=t(326),f=t(136),p=t(963),y=t(120);function r(e,t,n){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}var a=new WeakMap,Z=new WeakMap,d=new WeakMap,v=new WeakMap,g=new WeakMap,w=new WeakMap,B=function(){function i(e){var t,n;if((0,u.Z)(this,i),r(this,a,{writable:!0,value:void 0}),r(this,Z,{writable:!0,value:void 0}),r(this,d,{writable:!0,value:void 0}),r(this,v,{writable:!0,value:"北京优锘科技有限公司 版权所有"}),r(this,g,{writable:!0,value:(new Date).toLocaleString()}),r(this,w,{writable:!0,value:(t=new WeakMap,n=new WeakMap,new(function(){function e(){(0,u.Z)(this,e),r(this,t,{writable:!0,value:void 0}),r(this,n,{writable:!0,value:void 0})}return(0,o.Z)(e,[{key:"setRTypeGroup",value:function(e){return(0,l.Z)(this,t,e),this}},{key:"setRType",value:function(e){return(0,l.Z)(this,n,e),this}},{key:"rTypeGroup",get:function(){return(0,s.Z)(this,t)}},{key:"rType",get:function(){return(0,s.Z)(this,n)}},{key:"toJSON",get:function(){return{rTypeGroup:this.rTypeGroup,rType:this.rType}}}]),e}()))}),""===e||null==e)throw new EvalError("resources bundle initialization failed, missing necessary information [bundle:: pluginType]");(0,l.Z)(this,a,e)}return(0,o.Z)(i,[{key:"setPluginType",value:function(e){return(0,l.Z)(this,a,e),this}},{key:"setTheme",value:function(e){return(0,l.Z)(this,Z,e),this}},{key:"setThemePath",value:function(e){return(0,l.Z)(this,d,e),this}},{key:"setLicense",value:function(e){return(0,l.Z)(this,v,e),this}},{key:"pluginType",get:function(){return(0,s.Z)(this,a)}},{key:"theme",get:function(){return(0,s.Z)(this,Z)}},{key:"themePath",get:function(){return(0,s.Z)(this,d)}},{key:"license",get:function(){return(0,s.Z)(this,v)}},{key:"date",get:function(){return(0,s.Z)(this,g)}},{key:"extend",get:function(){return(0,s.Z)(this,w)}}]),i}();function n(e,t,n){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}var i=new WeakMap,b=new WeakMap,k=new WeakMap,E=new WeakMap,m=new WeakMap,_=function(){function t(e){(0,u.Z)(this,t),n(this,i,{writable:!0,value:void 0}),n(this,b,{writable:!0,value:new Set}),n(this,k,{writable:!0,value:void 0}),n(this,E,{writable:!0,value:"Revision"}),n(this,m,{writable:!0,value:"./resources/preview.png"}),e&&(0,l.Z)(this,k,new B(e)),(0,l.Z)(this,i,"0"),(0,s.Z)(this,b).add("frame.js")}return(0,o.Z)(t,[{key:"setUseStandard",value:function(e){return(0,l.Z)(this,i,e),this}},{key:"setPreview",value:function(e){return null!=e&&e.includes("preview")?(0,l.Z)(this,m,"./resources/".concat(e)):(console.warn("参数无效,预览图文件名称必须以 preview 开始,格式为: preview*.*"),(0,l.Z)(this,m,"./resources/preview.png")),this}},{key:"setThingjsX",value:function(e){return(0,l.Z)(this,k,e),this}},{key:"addEncryptFile",value:function(e){return e&&(0,s.Z)(this,b).add(e),(0,s.Z)(this,b)}},{key:"removeEncryptFile",value:function(e){return e&&(0,s.Z)(this,b).delete(e),(0,s.Z)(this,b)}},{key:"useStandard",get:function(){return(0,s.Z)(this,i)}},{key:"encryptFiles",get:function(){return Array.from((0,s.Z)(this,b))}},{key:"thingjsX",get:function(){return(0,s.Z)(this,k)}},{key:"standard",get:function(){return(0,s.Z)(this,E)}},{key:"preview",get:function(){return(0,s.Z)(this,m)}}]),t}(),W=t(555);function T(e,t,n){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object");t.set(e,n)}var A=new WeakMap,L=new WeakMap,O=new WeakMap,R=new WeakMap,S=new WeakMap,P=new WeakMap,N=new WeakMap,C=new WeakMap,H=function(){function r(e,t,n,i){if((0,u.Z)(this,r),T(this,A,{writable:!0,value:void 0}),T(this,L,{writable:!0,value:void 0}),T(this,O,{writable:!0,value:void 0}),T(this,R,{writable:!0,value:"1.0.0"}),T(this,S,{writable:!0,value:void 0}),T(this,P,{writable:!0,value:void 0}),T(this,N,{writable:!0,value:"frame.js"}),T(this,C,{writable:!0,value:(new Map).set("thingjs","1.2.7.17").set("dpdVersion",">1.0.2 <=2.3.4")}),""===e||null==e)throw new EvalError("resources bundle initialization failed, missing necessary information 『 bundle:: id 』");if(""===n||null==n)throw new EvalError("resources bundle initialization failed, missing necessary information 『 bundle:: type 』");(0,l.Z)(this,A,e),(0,l.Z)(this,L,t),(0,l.Z)(this,O,n),(0,l.Z)(this,S,i)}return(0,o.Z)(r,[{key:"addDependencies",value:function(e,t){if(e&&t)return(0,s.Z)(this,C).set(e,t),this;throw new EvalError("resources bundle addDependencies failed, missing necessary information [bundle:: @param libraryName , @param version]")}},{key:"setId",value:function(e){return(0,l.Z)(this,A,e),this}},{key:"setName",value:function(e){return(0,l.Z)(this,L,e),this}},{key:"setType",value:function(e){return(0,l.Z)(this,O,e),this}},{key:"setVersion",value:function(e){return(0,l.Z)(this,R,e),this}},{key:"setAuthor",value:function(e){return(0,l.Z)(this,S,e),this}},{key:"setDescription",value:function(e){return(0,l.Z)(this,P,e),this}},{key:"id",get:function(){return(0,s.Z)(this,A)}},{key:"name",get:function(){return(0,s.Z)(this,L)}},{key:"type",get:function(){return(0,s.Z)(this,O)}},{key:"version",get:function(){return(0,s.Z)(this,R)}},{key:"author",get:function(){return(0,s.Z)(this,S)}},{key:"main",get:function(){return(0,s.Z)(this,N)}},{key:"description",get:function(){return(0,s.Z)(this,P)}},{key:"dependencies",get:function(){return(0,s.Z)(this,C)}}]),r}(),j=new WeakMap,D=function(){(0,f.Z)(a,H);var n=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),r=function(){var e=(0,y.Z)(n),t=i?(t=(0,y.Z)(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments);return(0,p.Z)(this,t)};function a(e,t,n){(0,u.Z)(this,a);var e=r.call(this,e,t,W.default.PLUGIN),t=(0,h.Z)(e),i=j;if(i.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object");return i.set(t,{writable:!0,value:void 0}),(0,l.Z)((0,h.Z)(e),j,new _(n)),e}return(0,o.Z)(a,[{key:"external",get:function(){return(0,s.Z)(this,j)}},{key:"toJSON",value:function(){var n={};return this.dependencies.forEach(function(e,t){n[t]=e}),{name:this.name,type:this.type||"plugin",id:this.id,version:this.version,author:this.author,description:this.description,main:this.main,dependencies:n,external:{"use-standard":(0,s.Z)(this,j).useStandard,"encrypt-files":(0,s.Z)(this,j).encryptFiles,standard:(0,s.Z)(this,j).standard,preview:(0,s.Z)(this,j).preview,"thingjs-x":{"plugin-type":(0,s.Z)(this,j).thingjsX.pluginType,theme:(0,s.Z)(this,j).thingjsX.theme,"theme-path":(0,s.Z)(this,j).thingjsX.themePath,license:(0,s.Z)(this,j).thingjsX.license,date:(0,s.Z)(this,j).thingjsX.date,extend:(0,s.Z)(this,j).thingjsX.extend.toJSON}}}}}]),a}(),M=new WeakMap,I=function(){function a(e,t,n,i){(0,u.Z)(this,a);var r=M;if(r.has(this))throw new TypeError("Cannot initialize the same private elements twice on an object");r.set(this,{writable:!0,value:void 0}),(0,l.Z)(this,M,new D(e||"xxx",t||"xxx",c.default.SKIN)),(0,s.Z)(this,M).setAuthor(n||""),(0,s.Z)(this,M).setVersion(i||"1.0.0")}return(0,o.Z)(a,[{key:"bundle",get:function(){return(0,s.Z)(this,M)}},{key:"toJSON",value:function(){return(0,s.Z)(this,M).toJSON()}}]),a}();(0,e.Z)(I,"CLASSTYPE","BundlePluginAbstractSkin")},555:(e,t,n)=>{n.d(t,{default:()=>a});var i=n(671),r=n(144),t=n(942),a=function(){function e(){(0,i.Z)(this,e)}return(0,r.Z)(e,null,[{key:"getSceneLabel",value:function(){return this.map.get(e.SCENE)}},{key:"getEarthLabel",value:function(){return this.map.get(e.EARTH)}},{key:"getThemeLabel",value:function(){return this.map.get(e.THEME)}},{key:"getPrefabLabel",value:function(){return this.map.get(e.PREFAB)}},{key:"getPluginbLabel",value:function(){return this.map.get(e.PLUGIN)}},{key:"getAttachmentLabel",value:function(){return this.map.get(e.ATTACHMENT)}},{key:"getChartLabel",value:function(){return this.map.get(e.CHART)}},{key:"getDashboardLabel",value:function(){return this.map.get(e.DASHBOARD)}},{key:"getTopoLabel",value:function(){return this.map.get(e.TOPO)}},{key:"getMaterialLabel",value:function(){return this.map.get(e.MATERIAL)}}]),e}();(0,t.Z)(a,"SCENE","scene"),(0,t.Z)(a,"EARTH","earth"),(0,t.Z)(a,"THEME","theme"),(0,t.Z)(a,"PREFAB","prefab"),(0,t.Z)(a,"PLUGIN","plugin"),(0,t.Z)(a,"ATTACHMENT","attachment"),(0,t.Z)(a,"CHART","chart"),(0,t.Z)(a,"DASHBOARD","dashboard"),(0,t.Z)(a,"TOPO","topo"),(0,t.Z)(a,"MATERIAL","material"),(0,t.Z)(a,"map",(new Map).set(a.SCENE,"园区场景或普通场景").set(a.EARTH,"地球扩展的场景或地图").set(a.THEME,"效果模板").set(a.PREFAB,"预制件").set(a.PLUGIN,"插件").set(a.ATTACHMENT,"标记").set(a.CHART,"图表").set(a.DASHBOARD,"大屏").set(a.TOPO,"拓扑").set(a.MATERIAL,"素材"))},261:(e,t,n)=>{n.d(t,{default:()=>u});var i=n(671),r=n(144),a=n(942),u=function(){function e(){(0,i.Z)(this,e)}return(0,r.Z)(e,null,[{key:"getLayerLabel",value:function(){return this.map.get(e.LAYER)}},{key:"getBusinessLabel",value:function(){return this.map.get(e.BUSINESS)}},{key:"getActionLabel",value:function(){return this.map.get(e.ACTION)}},{key:"getPanelLabel",value:function(){return this.map.get(e.PANEL)}},{key:"getControlLabel",value:function(){return this.map.get(e.CONTROL)}},{key:"getCoreLabel",value:function(){return this.map.get(e.CORE)}},{key:"getSkinLabel",value:function(){return this.map.get(e.SKIN)}},{key:"getSkin",value:function(){return new(function(){return(0,r.Z)(function e(){(0,i.Z)(this,e),(0,a.Z)(this,"BUSINESS_VALUE","skinBusiness"),(0,a.Z)(this,"BUSINESS_LABEL","业务栏"),(0,a.Z)(this,"CHART_PANEL_VALUE","skinChartPanel"),(0,a.Z)(this,"CHART_PANEL_LABEL","图表面板"),(0,a.Z)(this,"LAYER_VALUE","skinLayer"),(0,a.Z)(this,"LAYER_LABEL","场景图层"),(0,a.Z)(this,"DIGITAL_TWIN_PANEL_VALUE","skinDigitalTwinPanel"),(0,a.Z)(this,"DIGITAL_TWIN_PANEL_LABEL","孪生体面板"),(0,a.Z)(this,"CONTROL_VALUE","skinControl"),(0,a.Z)(this,"CONTROL_LABEL","场景控制"),(0,a.Z)(this,"IMAGE_VALUE","skinImage"),(0,a.Z)(this,"IMAGE_LABEL","界面底图")})}())}},{key:"getExpandLabel",value:function(){return this.map.get(e.EXPAND)}},{key:"getPluginChartLabel",value:function(){return this.map.get(e.PLUGINCHART)}},{key:"getZeroChartLabel",value:function(){return this.map.get(e.ZEROCHART)}}]),e}();(0,a.Z)(u,"LAYER","layer"),(0,a.Z)(u,"BUSINESS","business"),(0,a.Z)(u,"ACTION","action"),(0,a.Z)(u,"PANEL","panel"),(0,a.Z)(u,"CONTROL","control"),(0,a.Z)(u,"CORE","core"),(0,a.Z)(u,"SKIN","skin"),(0,a.Z)(u,"EXPAND","expand"),(0,a.Z)(u,"PLUGINCHART","pluginChart"),(0,a.Z)(u,"ZEROCHART","zeroChart"),(0,a.Z)(u,"map",(new Map).set(u.LAYER,"场景图层插件").set(u.BUSINESS,"业务").set(u.ACTION,"操作原子").set(u.PANEL,"孪生体面板").set(u.CONTROL,"场景控制").set(u.CORE,"系统插件").set(u.SKIN,"界面模板").set(u.EXPAND,"扩展插件"))},326:(e,t,n)=>{n.d(t,{Z:()=>function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}})},983:(e,t,n)=>{n.d(t,{Z:()=>function(e,t){return t.get?t.get.call(e):t.value}})},11:(e,t,n)=>{n.d(t,{Z:()=>function(e,t,n){if(t.set)t.set.call(e,n);else{if(!t.writable)throw new TypeError("attempted to set read only private field");t.value=n}}})},671:(e,t,n)=>{n.d(t,{Z:()=>function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}})},519:(e,t,n)=>{n.d(t,{Z:()=>function(e,t,n){if(t.has(e))return t.get(e);throw new TypeError("attempted to "+n+" private field on non-instance")}})},916:(e,t,n)=>{n.d(t,{Z:()=>function(e,t){t=(0,r.Z)(e,t,"get");return(0,i.Z)(e,t)}});var i=n(983),r=n(519)},793:(e,t,n)=>{n.d(t,{Z:()=>function(e,t,n){t=(0,r.Z)(e,t,"set");return(0,i.Z)(e,t,n),n}});var i=n(11),r=n(519)},144:(e,t,n)=>{function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}n.d(t,{Z:()=>function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}})},942:(e,t,n)=>{n.d(t,{Z:()=>function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}})},120:(e,t,n)=>{function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,{Z:()=>i})},136:(e,t,n)=>{n.d(t,{Z:()=>function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,i.Z)(e,t)}});var i=n(611)},963:(e,t,n)=>{n.d(t,{Z:()=>function(e,t){if(t&&("object"===(0,i.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.Z)(e)}});var i=n(2),r=n(326)},611:(e,t,n)=>{function i(e,t){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{Z:()=>i})},2:(e,t,n)=>{function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{Z:()=>i})}},i={};function r(e){var t=i[e];return(void 0!==t?t:(t=i[e]={exports:{}},n[e](t,t.exports,r),t)).exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var u,t,o,s,l,c,e,h,f,p,a,y,Z,d={};function v(){return(v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,c.Z)(e)););return e}(e,t);if(i)return(i=Object.getOwnPropertyDescriptor(i,t)).get?i.get.call(arguments.length<3?e:n):i.value}).apply(this,arguments)}return r.d(d,{default:()=>Z}),u=r(671),t=r(144),o=r(326),s=r(136),l=r(963),c=r(120),e=r(942),h=r(916),f=r(793),p=r(261),a=r(824),y=new WeakMap,Z=function(e){(0,s.Z)(a,e);var n=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),r=function(){var e=(0,c.Z)(n),t=i?(t=(0,c.Z)(this).constructor,Reflect.construct(e,arguments,t)):e.apply(this,arguments);return(0,l.Z)(this,t)};function a(e,t,n,i){(0,u.Z)(this,a);e=r.call(this,e,t,n,i),t=(0,o.Z)(e),n=y;if(n.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object");return n.set(t,{writable:!0,value:void 0}),(0,f.Z)((0,o.Z)(e),y,v((i=(0,o.Z)(e),(0,c.Z)(a.prototype)),"bundle",i)),(0,h.Z)((0,o.Z)(e),y).external.thingjsX.extend.setRTypeGroup(p.default.getSkin().CONTROL_LABEL),(0,h.Z)((0,o.Z)(e),y).external.thingjsX.extend.setRType(p.default.getSkin().CONTROL_VALUE),e}return(0,t.Z)(a,[{key:"bundle",get:function(){return(0,h.Z)(this,y)}},{key:"toJSON",value:function(){return(0,h.Z)(this,y).toJSON()}}]),a}(a.default),(0,e.Z)(Z,"CLASSTYPE","BundlePluginSkinControl"),d.default})();"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["plugin/skin/BundlePluginSkinControl"]=t():e["plugin/skin/BundlePluginSkinControl"]=t();