@soonspacejs/plugin-heat-cloud 2.13.7 → 2.13.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,17 +1,17 @@
1
- # @soonspacejs/plugin-heat-cloud
2
-
3
- > Haet-cloud plugin for SoonSpace.js
4
-
5
- Document: [http://www.xwbuilders.com:8800/plugin/heat-cloud.html](http://www.xwbuilders.com:8800/plugin/heat-cloud.html)
6
-
7
- ## 热力云插件功能列表:
8
-
9
- - 梯度立体材质
10
-
11
- - 热力云
12
- - 线性热力
13
- - 图片热力
14
-
15
- - 切片
16
- - canvas dom 切片
17
- - mesh
1
+ # @soonspacejs/plugin-heat-cloud
2
+
3
+ > Haet-cloud plugin for SoonSpace.js
4
+
5
+ Document: [http://www.xwbuilders.com:8800/plugin/heat-cloud.html](http://www.xwbuilders.com:8800/plugin/heat-cloud.html)
6
+
7
+ ## 热力云插件功能列表:
8
+
9
+ - 梯度立体材质
10
+
11
+ - 热力云
12
+ - 线性热力
13
+ - 图片热力
14
+
15
+ - 切片
16
+ - canvas dom 切片
17
+ - mesh
package/dist/demo.d.ts ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,26 @@
1
+ import { ColorGradient, CreateImageData3DTextureFromGradientOptions, GradientVolumeMaterialOptions, HeatData3DOptions, HeatParticleVolumeFeaturePoint, ImageData3DTextureSlice, ParticleVolumeFeaturePoint, SliceMaterialOptions, SliceMesh, VolumeMaterial, VolumeMesh } from '@three3d/volume';
2
+ export * from '@three3d/volume';
3
+ import SoonSpace from 'soonspacejs';
4
+ import { CreatLineHeatOptions, CreateHeatCloudOptions, CreateHeatOptions, CreateImageExtrusionOptions } from './types';
5
+ import { Texture3D, createLinearGradientTexture } from '@three3d/tools';
6
+ export { Texture3D, createLinearGradientTexture, };
7
+ export declare class HeatMapPlugin {
8
+ readonly ssp: SoonSpace;
9
+ constructor(ssp: SoonSpace);
10
+ defaultColorGradient: ColorGradient;
11
+ defaultGradientVolumeMaterialOptions: GradientVolumeMaterialOptions;
12
+ protected _createTexture(points: HeatData3DOptions['points'], options: CreateHeatOptions, isLine?: boolean): VolumeMesh;
13
+ /**
14
+ * 创建热力云
15
+ * return material
16
+ */
17
+ createHeatCloud(points: HeatParticleVolumeFeaturePoint[], options?: CreateHeatCloudOptions): VolumeMesh;
18
+ createLineHeat(points: ParticleVolumeFeaturePoint[], options: CreatLineHeatOptions): VolumeMesh;
19
+ createImageExtrusion(imageUrl: string, options?: CreateImageExtrusionOptions & {
20
+ depth?: number;
21
+ }): Promise<VolumeMesh>;
22
+ createSliceMesh(material: VolumeMaterial, options?: SliceMaterialOptions & CreateImageData3DTextureFromGradientOptions): SliceMesh | undefined;
23
+ createImageSlice(material: VolumeMaterial, options?: CreateImageData3DTextureFromGradientOptions): ImageData3DTextureSlice | undefined;
24
+ }
25
+ export * from './types';
26
+ export default HeatMapPlugin;