mx3d 0.0.11 → 0.0.12
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/core/mx3d.dazzle.min.js +3 -3
- package/index.d.ts +6 -2
- package/lib/App.d.ts +1 -0
- package/lib/EffectControls.d.ts +42 -0
- package/lib/HeatMapMgr.d.ts +0 -21
- package/lib/components/AirFlowObject.d.ts +9 -0
- package/lib/components/IObject.d.ts +1 -0
- package/lib/components/Project.d.ts +2 -0
- package/mx3d.js +185 -61
- package/mx3d.min.js +3 -3
- package/package.json +1 -1
package/core/mx3d.dazzle.min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,
|
|
1
|
+
!function(e,i){"object"==typeof exports&&"object"==typeof module?module.exports=i(require("h337")):"function"==typeof define&&define.amd?define(["h337"],i):"object"==typeof exports?exports.Dazzle=i(require("h337")):e.Dazzle=i(e.h337)}(window,function(t){return n=[function(e,i){e.exports=t},function(e,i,t){"use strict";t.r(i);var n={};t.r(n),t.d(n,"SceneLoader",function(){return d}),t.d(n,"Global",function(){return s}),t.d(n,"Builder",function(){return o}),t.d(n,"IconFromMesh",function(){return l}),t.d(n,"Icon",function(){return c}),t.d(n,"GUID",function(){return r}),t.d(n,"HeatMap",function(){return u}),t.d(n,"Capacity",function(){return a});class r{static getGUID(e){var i,t,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),o=[],s=n.length;if(e)for(i=0;i<e;i++)o[i]=n[0|Math.random()*s];else for(o[8]=o[13]=o[18]=o[23]="-",o[14]="4",i=0;i<36;i++)o[i]||(t=0|16*Math.random(),o[i]=n[19==i?3&t|8:t]);return o.join("")}}class u{constructor(){this.id=r.getGUID(12),this.texts=new Array}isEnabled(e){}set displayValues(i){this.texts.forEach(e=>e.isVisible=i)}dispose(){this.scene.blockfreeActiveMeshesAndRenderingGroups=!0,this.mesh&&this.mesh.dispose();for(let e=0;e<this.texts.length;e++)this.texts[e].linkedMesh&&this.texts[e].linkedMesh.dispose(),this.texts[e].dispose();this.scene.blockfreeActiveMeshesAndRenderingGroups=!1}}var m=t(0);class a{constructor(e,i){this.anchor=e,this.ratio=i}dispose(){this.anchor.app.scene.blockfreeActiveMeshesAndRenderingGroups=!0,this.mesh&&this.mesh.dispose(),this.anchor.app.scene.blockfreeActiveMeshesAndRenderingGroups=!1}}class o{static createMatrixHeatMap(o){o.displayValues=null==o.displayValues||o.displayValues,o.isAlpha=null==o.isAlpha||o.isAlpha,o.isParticle=null==o.isParticle||o.isParticle,o.height=o.height||.5,o.radius=o.radius||2.8,o.isLevelRender=null==o.isLevelRender||o.isLevelRender,o.range=o.range||{max:30,min:16};let s;if(!(o.config||o.config.maxX||o.config.maxY||o.config.data||o.anchor))return s;o.anchor._scene.blockfreeActiveMeshesAndRenderingGroups=!0,s=new u;var r=o.anchor.getBoundingInfo();s.mesh=o.anchor.clone(s.id),s.mesh.position.y+=o.height;var a=r.maximum.x-r.minimum.x,c=a/(2*o.config.maxX),l=r.maximum.z-r.minimum.z,d=l/(2*o.config.maxY);let e=new Array;for(let n=0;n<2*o.config.maxX;n++)for(let t=0;t<2*o.config.maxY;t++){let i={x:n,y:t,value:o.range.min};for(let e=0;e<o.config.data.length;e++){var h=o.config.data[e];2*h.x+1==n&&2*h.y+1==t&&(i.value=h.value,h=new BABYLON.Vector3(r.boundingSphere.center.x-(a/2-c*n),s.mesh.position.y,r.boundingSphere.center.z-(l/2-d*t)),s.texts.push(this.createTempVlaue(i.value+"℃",h,o.anchor._scene,o.container)))}e.push(i)}s.displayValues=o.displayValues;let i=m.create({width:2*o.config.maxX,height:2*o.config.maxY,radius:o.radius});i.setData({min:o.range.min,max:o.range.max,data:e});let t=new BABYLON.StandardMaterial(s.id,o.anchor._scene);return t.diffuseTexture=new BABYLON.Texture(i.getDataURL(),o.anchor._scene,!1,!1),t.specularColor=new BABYLON.Color3(0,0,0),t.alpha=.5,o.isAlpha&&(t.diffuseTexture.hasAlpha=!0),o.isParticle&&(this._getMatrixParticleTex(o.rootUrl,o.FogTex,t.diffuseTexture,s.mesh,o.anchor._scene,o.isLevelRender),s.mesh.isVisible=!1),o.isLevelRender&&(s.mesh.renderingGroupId=1),s.mesh.material=t,s.mesh.alwaysSelectAsActiveMesh=!0,s.mesh.freezeWorldMatrix(),o.anchor._scene.blockfreeActiveMeshesAndRenderingGroups=!1,s}static _getMatrixParticleTex(e,i,t,n,o,s){let r;let a=i.clone(),c=n.getBoundingInfo().boundingBox;var l=(c.extendSizeWorld.x+c.extendSizeWorld.z)/9,d=1500*l*l,h=c.minimumWorld.subtract(new BABYLON.Vector3(-0,0,-0)),i=c.maximumWorld.subtract(new BABYLON.Vector3(0,0,0));r&&r.dispose(),r=new BABYLON.ParticleSystem("particles",d,o),r.manualEmitCount=r.getCapacity(),r.minEmitBox=h,r.maxEmitBox=i,r.particleTexture=a,r.emitter=n,s&&(r.renderingGroupId=1),r.isLocal=!0;let u=new BABYLON.NodeMaterial("nm_heatmapBox_"+n.id,o);u.loadAsync(e+"resources/horizontalNodeMat.json").then(()=>{u.build(!1),u.getBlockByName("boxTex").texture=t,u.getBlockByName("emitXMin").value=r.minEmitBox.x,u.getBlockByName("emitXMax").value=r.maxEmitBox.x,u.getBlockByName("emitYMin").value=r.minEmitBox.z,u.getBlockByName("emitYMax").value=r.maxEmitBox.z,u.createEffectForParticles(r)}),n.onDispose=()=>{r&&r.dispose()},r.onDispose=()=>{u&&u.dispose(),a&&a.dispose()},r.color1=new BABYLON.Color4(.8,.8,.8,.1),r.color2=new BABYLON.Color4(.95,.95,.95,.15),r.colorDead=new BABYLON.Color4(.9,.9,.9,.1),r.minSize=1.4,r.maxSize=2,r.minLifeTime=Number.MAX_SAFE_INTEGER,r.emitRate=5e4*l,r.blendMode=BABYLON.ParticleSystem.BLENDMODE_STANDARD,r.gravity=new BABYLON.Vector3(0,0,0),r.direction1=new BABYLON.Vector3(0,0,0),r.direction2=new BABYLON.Vector3(0,0,0),r.minAngularSpeed=-2,r.maxAngularSpeed=2,r.minEmitPower=.5,r.maxEmitPower=1,r.updateSpeed=.005,r.start()}static createColumnarHeatMap(o){if(o.displayValues=null==o.displayValues||o.displayValues,o.isAlpha=null==o.isAlpha||o.isAlpha,o.isParticle=null==o.isParticle||o.isParticle,o.radius=o.radius||4,o.isLevelRender=null==o.isLevelRender||o.isLevelRender,o.range=o.range||{max:30,min:16},!o.config&&o.config.length<1&&!o.anchor)return null;let i;o.anchor._scene.blockfreeActiveMeshesAndRenderingGroups=!0,i=new u;var e=o.anchor.getBoundingInfo(),t=.98*(e.maximum.y-e.minimum.y);i.mesh=BABYLON.MeshBuilder.CreatePlane(i.id,{width:(e.maximum.x-e.minimum.x)*o.anchor.scaling.x*.98,height:t,sideOrientation:2},o.anchor._scene),i.mesh.alwaysSelectAsActiveMesh=!0,i.mesh.enablePointerMoveEvents=!1,i.mesh.position=o.anchor.position.clone(),i.mesh.rotation.z=Math.PI,i.mesh.rotation.y=o.anchor.rotation.y,o.isLevelRender&&(i.mesh.renderingGroupId=1);let s=[];for(let n=0;n<4;n++)for(let t=0;t<3*o.config.length;t++){let i={x:n,y:t,value:o.range.min};for(let e=0;e<o.config.length;e++){var r=o.config[e];2==n&&3*e+2==t&&(i.value=r.value)}s.push(i)}var n=t/o.config.length;for(let e=0;e<o.config.length;e++){var a=new BABYLON.Vector3(i.mesh.position.x,t-n*e-n/2,i.mesh.position.z);i.texts.push(this.createTempVlaue(o.config[e].value+"℃",a,o.anchor._scene,o.container))}i.displayValues=o.displayValues;let c=m.create({width:4,height:3*o.config.length,radius:o.radius});c.setData({min:o.range.min,max:o.range.max,data:s});let l=new BABYLON.StandardMaterial(i.id,o.anchor._scene);return l.diffuseTexture=new BABYLON.Texture(c.getDataURL(),o.anchor._scene,!1,!1),l.specularColor=new BABYLON.Color3(0,0,0),l.alpha=.5,o.isAlpha&&(l.diffuseTexture.hasAlpha=!0),o.isParticle&&(this._getColumnarParticleTex(l.diffuseTexture,i.mesh,o.anchor._scene,o.FogTex,o.isLevelRender),i.mesh.isVisible=!1),i.mesh.material=l,o.anchor._scene.blockfreeActiveMeshesAndRenderingGroups=!1,i}static _getColumnarParticleTex(e,i,t,n,o){let s;let r=n.clone();n=i.getBoundingInfo().boundingBox,n.extendSizeWorld.x,n.extendSizeWorld.z;BABYLON.Effect.ShadersStore.particlesVertexShader=`
|
|
2
2
|
precision highp float;
|
|
3
3
|
in vec3 position;
|
|
4
4
|
in vec4 color;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
vUV=offset;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
`,BABYLON.Effect.ShadersStore[
|
|
44
|
+
`,BABYLON.Effect.ShadersStore[i.id+"myParticleFragmentShader"]=`
|
|
45
45
|
#ifdef GL_ES
|
|
46
46
|
precision highp float;
|
|
47
47
|
#endif
|
|
@@ -82,4 +82,4 @@
|
|
|
82
82
|
|
|
83
83
|
gl_FragColor = vec4(baseTex.xyz, resAlpha.a);
|
|
84
84
|
}
|
|
85
|
-
`;var
|
|
85
|
+
`;var a=t.getEngine().createEffectForParticles(i.id+"myParticle",["time","u_emitXMin","u_emitYMin","u_emitXMax","u_emitYMax","emitBox_WorldM"],["boxTexSampler"],"");return i.onAfterWorldMatrixUpdateObservable.add(()=>{a.setMatrix("emitBox_WorldM",i.getWorldMatrix())}),a.onCompileObservable.add(()=>{a.setMatrix("emitBox_WorldM",i.getWorldMatrix()),a.setFloat("u_emitXMin",s.minEmitBox.x),a.setFloat("u_emitYMin",s.minEmitBox.y),a.setFloat("u_emitXMax",s.maxEmitBox.x),a.setFloat("u_emitYMax",s.maxEmitBox.y)}),a.onBind=function(){a.setTexture("boxTexSampler",e)},s&&s.dispose(),s=new BABYLON.ParticleSystem("particles",200,t,a),s.manualEmitCount=s.getCapacity(),s.minEmitBox=n.minimum,s.maxEmitBox=n.maximum,i.onDispose=()=>{s&&s.dispose()},s.onDispose=()=>{r&&r.dispose()},s.particleTexture=r.clone(),s.emitter=i,o&&(s.renderingGroupId=1),s.isLocal=!0,s.color1=new BABYLON.Color4(.8,.8,.8,.1),s.color2=new BABYLON.Color4(.95,.95,.95,.15),s.colorDead=new BABYLON.Color4(.9,.9,.9,.1),s.minSize=.7,s.maxSize=1,s.minLifeTime=Number.MAX_SAFE_INTEGER,s.emitRate=50,s.blendMode=BABYLON.ParticleSystem.BLENDMODE_STANDARD,s.gravity=new BABYLON.Vector3(0,0,0),s.direction1=new BABYLON.Vector3(0,0,0),s.direction2=new BABYLON.Vector3(0,0,0),s.minAngularSpeed=-2,s.maxAngularSpeed=2,s.minEmitPower=.5,s.maxEmitPower=1,s.updateSpeed=.005,s.start(),s}static createTempVlaue(e,i,t,n){let o=new BABYLON.Mesh("temp_"+r.getGUID(12),t);o.position=i;let s=new BABYLON.GUI.TextBlock;return s.isPointerBlocker=!1,s.text="默认提示",s.color="white",s.resizeToFit=!0,s.fontSize=9,s.text=e,n.addControl(s),s.linkWithMesh(o),s}static createCapacity(e,i){let t=new a(e,i);t.anchor.app.scene.blockfreeActiveMeshesAndRenderingGroups=!0;var n=t.anchor.instance.getBoundingInfo();let o=t.anchor.instance.clone("RATIO_"+t.anchor.id);e=o.getBoundingInfo();o.alwaysSelectAsActiveMesh=!0,o.visibility=1,o.scaling=new BABYLON.Vector3(.98*(n.maximum.x-n.minimum.x-.05),.02,.98*(n.maximum.z-n.minimum.z-.05)),o.position=t.anchor.instance.position.clone(),o.position.y+=(e.maximum.y-e.minimum.y)/2,o.rotation=t.anchor.instance.rotation.clone();e=new BABYLON.Vector3(0,-.5,0);o.setPivotPoint(e);let s=new BABYLON.StandardMaterial(o.id,t.anchor.instance._scene);return s.diffuseColor=BABYLON.Color3.Green(),o.material=s,o.setParent(t.anchor.instance),BABYLON.Animation.CreateAndStartAnimation(o.id,o,"scaling.y",15,30,.02,i,0,null,()=>o.setParent(null)),t.anchor.app.scene.blockfreeActiveMeshesAndRenderingGroups=!1,t}}class s{}class c{constructor(e){this.textDics=new Array,this.id=e}set background(e){this.scene.blockfreeActiveMeshesAndRenderingGroups=!0,this._background&&this._background.dispose(),this._background=new BABYLON.GUI.Image(r.getGUID(12)+"_Image",e),this._background.width=this.size.width+"px",this._background.height=this.size.height+"px",this.rect.addControl(this._background),this.onPointerClick&&(this._background.isPointerBlocker=!1,this._background.onPointerClickObservable.add(()=>{this.onPointerClick()})),this.scene.blockfreeActiveMeshesAndRenderingGroups=!1}setTexts(t){this.scene.blockfreeActiveMeshesAndRenderingGroups=!0,this.textDics.forEach(e=>e.dispose());for(let i=this.textDics.length=0;i<t.length;i++){let e=new BABYLON.GUI.TextBlock;e.text=t[i].text,e.fontSize=t[i].fontSize||"20px",e.color=t[i].color||"white",e.top=t[i].top||0,e.left=t[i].left||0,this.rect.addControl(e),this.textDics.push(e)}this.scene.blockfreeActiveMeshesAndRenderingGroups=!1}line(e){this.scene.blockfreeActiveMeshesAndRenderingGroups=!0,this._line&&this._line.dispose(),this._line=new BABYLON.GUI.Line,this._line.lineWidth=e.width||1.5,this._line.color=e.color||"green",this._line.y2=this.size.height/2,this.container.addControl(this._line),this._line.linkWithMesh(this.pint),this._line.connectedControl=this.rect,this.scene.blockfreeActiveMeshesAndRenderingGroups=!1}dispose(){this.scene.blockfreeActiveMeshesAndRenderingGroups=!0,this.rect&&this.rect.dispose(),this._line&&this._line.dispose(),this.scene.blockfreeActiveMeshesAndRenderingGroups=!1}isEnabled(e){this.scene.blockfreeActiveMeshesAndRenderingGroups=!0,this.rect&&(this.rect.isVisible=e),this._line&&(this._line.isVisible=e),this.scene.blockfreeActiveMeshesAndRenderingGroups=!1}}class l{constructor(e,i,t,n,o,s){this.id=e,this.scene=s,this.anchor=i,this.url=t,this.scaling=n,this.scene.blockfreeActiveMeshesAndRenderingGroups=!0,this.instance=BABYLON.Mesh.CreatePlane(this.id,n,this.scene,!0,BABYLON.Mesh.DOUBLESIDE),this.instance.alwaysSelectAsActiveMesh=!0,this.instance.position=this.anchor.position.clone();n=this.anchor.getBoundingInfo();this.instance.position.y+=(n.maximum.y-n.minimum.y)/2+o,this.instance.billboardMode=BABYLON.Mesh.BILLBOARDMODE_Y;let r=new BABYLON.StandardMaterial("Mat_"+this.id,this.scene);r.diffuseColor=BABYLON.Color3.White(),r.emissiveColor=BABYLON.Color3.White(),this.instance.material=r}setBackground(){let t=new Image;t.src=this.url,t.onload=()=>{this.instance.scaling.y=this.scaling/(t.width/t.height)/this.scaling;let e=new BABYLON.DynamicTexture(this.id,{width:t.width,height:t.height},this.scene,!1);e.hasAlpha=!0,this.instance.material.diffuseTexture=e;let i=e.getContext();i.drawImage(t,0,0),e.update(),this.scene.blockfreeActiveMeshesAndRenderingGroups=!1}}setColor(e){this.scene.blockfreeActiveMeshesAndRenderingGroups=!0,this.instance.material.diffuseColor=BABYLON.Color3.FromHexString(e),this.instance.material.emissiveColor=BABYLON.Color3.FromHexString(e),this.scene.blockfreeActiveMeshesAndRenderingGroups=!1}setContents(t){this.scene.blockfreeActiveMeshesAndRenderingGroups=!0;let n=new Image;n.src=this.url,n.onload=()=>{this.instance.scaling.y=this.scaling/(n.width/n.height)/this.scaling;let i=new BABYLON.DynamicTexture(this.id,{width:n.width,height:n.height},this.scene,!1);i.hasAlpha=!0,this.instance.material.diffuseTexture=i;let e=i.getContext();e.drawImage(n,0,0),t.forEach(e=>i.drawText(e.text,e.left,e.top,"bold "+e.fontSize+" monospace",e.color||"#fffffb","",!0,!0)),i.update(),this.scene.blockfreeActiveMeshesAndRenderingGroups=!1}}dispose(){this.scene.blockfreeActiveMeshesAndRenderingGroups=!0,this.instance.dispose(),this.scene.blockfreeActiveMeshesAndRenderingGroups=!1}isEnabled(e){this.scene.blockfreeActiveMeshesAndRenderingGroups=!0,this.instance.setEnabled(e),this.scene.blockfreeActiveMeshesAndRenderingGroups=!1}}class d{static create(e){let i=new s;return i.canvas=document.createElement("canvas"),i.canvas.style.cssText="width: 100%;height: 100%;background-color: transparent;outline-width: 0;",e.appendChild(i.canvas),i.engine=new BABYLON.Engine(i.canvas,!0,{premultipliedAlpha:!0,preserveDrawingBuffer:!0,stencil:!0}),i.engine.enableOfflineSupport=!1,i.scene=new BABYLON.Scene(i.engine,{useGeometryUniqueIdsMap:!0,useClonedMeshMap:!0,useMaterialMeshMap:!0}),i.scene.useRightHandedSystem=!0,i.scene.getBoundingBoxRenderer().frontColor=BABYLON.Color3.Green(),i.scene.getBoundingBoxRenderer().showBackLines=!1,i}static load(){}}i.default=n}],s={},o.m=n,o.c=s,o.d=function(e,i,t){o.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:t})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(i,e){if(1&e&&(i=o(i)),8&e)return i;if(4&e&&"object"==typeof i&&i&&i.__esModule)return i;var t=Object.create(null);if(o.r(t),Object.defineProperty(t,"default",{enumerable:!0,value:i}),2&e&&"string"!=typeof i)for(var n in i)o.d(t,n,function(e){return i[e]}.bind(null,n));return t},o.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(i,"a",i),i},o.o=function(e,i){return Object.prototype.hasOwnProperty.call(e,i)},o.p="",o(o.s=1).default;function o(e){if(s[e])return s[e].exports;var i=s[e]={i:e,l:!1,exports:{}};return n[e].call(i.exports,i,i.exports,o),i.l=!0,i.exports}var n,s});
|
package/index.d.ts
CHANGED
|
@@ -9,14 +9,18 @@ import EffectMgr from "./lib/EffectMgr";
|
|
|
9
9
|
import { EffectType } from "./lib/EffectType";
|
|
10
10
|
import { EventType } from "./lib/EventType";
|
|
11
11
|
import Dictionary from "./lib/Dictionary";
|
|
12
|
-
import
|
|
12
|
+
import EffectControls from "./lib/EffectControls";
|
|
13
|
+
import UI from "./lib/UI";
|
|
14
|
+
import { ObjectType } from "./lib/components/ObjectType";
|
|
13
15
|
declare const MX3D: {
|
|
14
16
|
App: typeof App;
|
|
15
17
|
Tools: typeof Tools;
|
|
18
|
+
UI: typeof UI;
|
|
19
|
+
ObjectType: typeof ObjectType;
|
|
16
20
|
EffectMgr: EffectMgr;
|
|
17
21
|
EffectType: typeof EffectType;
|
|
18
22
|
EventType: typeof EventType;
|
|
19
|
-
|
|
23
|
+
EffectControls: typeof EffectControls;
|
|
20
24
|
Dictionary: typeof Dictionary;
|
|
21
25
|
};
|
|
22
26
|
export default MX3D;
|
package/lib/App.d.ts
CHANGED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import IObject from "./components/IObject";
|
|
2
|
+
import * as Dazzle from '../dazzle/Module';
|
|
3
|
+
export default class EffectControls {
|
|
4
|
+
static createCapacity(_object: IObject, RATIO: number): Dazzle.Capacity;
|
|
5
|
+
static createMatrixHeatMap(_anchor: IObject, //地板对象
|
|
6
|
+
_data: {
|
|
7
|
+
config: {
|
|
8
|
+
maxX: number;
|
|
9
|
+
maxY: number;
|
|
10
|
+
data: Array<{
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
value: number;
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
16
|
+
displayValues?: boolean;
|
|
17
|
+
height?: number;
|
|
18
|
+
isAlpha?: boolean;
|
|
19
|
+
isLevelRender?: boolean;
|
|
20
|
+
isParticle?: boolean;
|
|
21
|
+
radius?: number;
|
|
22
|
+
range: {
|
|
23
|
+
max: number;
|
|
24
|
+
min: number;
|
|
25
|
+
};
|
|
26
|
+
}): Dazzle.HeatMap;
|
|
27
|
+
static createColumnarHeatMap(_anchor: IObject, _data: {
|
|
28
|
+
config: Array<{
|
|
29
|
+
index: number;
|
|
30
|
+
value: number;
|
|
31
|
+
}>;
|
|
32
|
+
displayValues: boolean;
|
|
33
|
+
isAlpha: boolean;
|
|
34
|
+
isLevelRender?: boolean;
|
|
35
|
+
isParticle: boolean;
|
|
36
|
+
radius: number;
|
|
37
|
+
range: {
|
|
38
|
+
max: number;
|
|
39
|
+
min: number;
|
|
40
|
+
};
|
|
41
|
+
}): Dazzle.HeatMap;
|
|
42
|
+
}
|
package/lib/HeatMapMgr.d.ts
CHANGED
|
@@ -1,23 +1,2 @@
|
|
|
1
|
-
import * as Dazzle from '../dazzle/Module';
|
|
2
|
-
import IObject from './components/IObject';
|
|
3
1
|
export default class HeatMapMgr {
|
|
4
|
-
static createMatrixHeatMap(_anchor: IObject, _config: {
|
|
5
|
-
maxX: number;
|
|
6
|
-
maxY: number;
|
|
7
|
-
data: Array<{
|
|
8
|
-
x: number;
|
|
9
|
-
y: number;
|
|
10
|
-
value: number;
|
|
11
|
-
}>;
|
|
12
|
-
}, _displayValues?: boolean, _height?: number, _isAlpha?: boolean, _isParticle?: boolean, _radius?: number, _range?: {
|
|
13
|
-
max: number;
|
|
14
|
-
min: number;
|
|
15
|
-
}): Dazzle.HeatMap;
|
|
16
|
-
static createColumnarHeatMap(_anchor: IObject, _config: Array<{
|
|
17
|
-
index: number;
|
|
18
|
-
value: number;
|
|
19
|
-
}>, _displayValues?: boolean, _isAlpha?: boolean, _isParticle?: boolean, _radius?: number, _range?: {
|
|
20
|
-
max: number;
|
|
21
|
-
min: number;
|
|
22
|
-
}): Dazzle.HeatMap;
|
|
23
2
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import Dictionary from "../Dictionary";
|
|
2
2
|
import IObject from "./IObject";
|
|
3
3
|
import App from "../App";
|
|
4
|
+
import { ObjectType } from "./ObjectType";
|
|
4
5
|
export default class Project {
|
|
5
6
|
app: App;
|
|
6
7
|
id: string;
|
|
@@ -12,5 +13,6 @@ export default class Project {
|
|
|
12
13
|
optimization(): void;
|
|
13
14
|
getChildNodes(_id: string): IObject[];
|
|
14
15
|
find(_id: string): IObject;
|
|
16
|
+
findFormObjectType(_type: ObjectType, isCurent?: boolean): IObject[];
|
|
15
17
|
show(): void;
|
|
16
18
|
}
|