ino-cesium 0.0.22 → 0.0.23-beta.0

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.
@@ -2526,7 +2526,7 @@ declare class RadereScanPrimitive extends BasePrimitive<any> {
2526
2526
  private options;
2527
2527
  constructor(options: IRaderScanPrimitiveOptions);
2528
2528
  getGeometry(): Cesium.CircleGeometry;
2529
- getPrimitive(): Cesium.GroundPolylinePrimitive | Cesium.PrimitiveCollection | Cesium.Primitive | Cesium.GroundPrimitive | Cesium.PointPrimitiveCollection | Cesium.LabelCollection | undefined;
2529
+ getPrimitive(): Cesium.Primitive | Cesium.GroundPrimitive | Cesium.PointPrimitiveCollection | Cesium.GroundPolylinePrimitive | Cesium.LabelCollection | Cesium.PrimitiveCollection | undefined;
2530
2530
  setAppearance(appearance?: Cesium.Appearance): void;
2531
2531
  }
2532
2532
 
@@ -2656,7 +2656,7 @@ declare class CircleAperturePrimitive extends BasePrimitive<any> {
2656
2656
  private options;
2657
2657
  constructor(options: ICircleAperturePrimitiveOptions);
2658
2658
  getGeometry(): Cesium.CircleGeometry;
2659
- getPrimitive(): Cesium.GroundPolylinePrimitive | Cesium.PrimitiveCollection | Cesium.Primitive | Cesium.GroundPrimitive | Cesium.PointPrimitiveCollection | Cesium.LabelCollection | undefined;
2659
+ getPrimitive(): Cesium.Primitive | Cesium.GroundPrimitive | Cesium.PointPrimitiveCollection | Cesium.GroundPolylinePrimitive | Cesium.LabelCollection | Cesium.PrimitiveCollection | undefined;
2660
2660
  setAppearance(appearance?: Cesium.Appearance): void;
2661
2661
  }
2662
2662
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ino-cesium",
3
3
  "type": "module",
4
- "version": "0.0.22",
4
+ "version": "0.0.23-beta.0",
5
5
  "author": "koino",
6
6
  "keywords": [
7
7
  "cesium",
@@ -28,13 +28,13 @@
28
28
  ],
29
29
  "dependencies": {
30
30
  "vite-plugin-static-copy": "^3.1.0",
31
- "@ino-cesium/analysis": "0.0.22",
32
- "@ino-cesium/effects": "0.0.22",
33
- "@ino-cesium/common": "0.0.22",
34
- "@ino-cesium/material": "0.0.22",
35
- "@ino-cesium/layers": "0.0.22",
36
- "@ino-cesium/primitive": "0.0.22",
37
- "@ino-cesium/draw": "0.0.22"
31
+ "@ino-cesium/analysis": "0.0.23-beta.0",
32
+ "@ino-cesium/common": "0.0.23-beta.0",
33
+ "@ino-cesium/layers": "0.0.23-beta.0",
34
+ "@ino-cesium/effects": "0.0.23-beta.0",
35
+ "@ino-cesium/draw": "0.0.23-beta.0",
36
+ "@ino-cesium/material": "0.0.23-beta.0",
37
+ "@ino-cesium/primitive": "0.0.23-beta.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "cesium": "1.134.0"
package/vite/index.d.ts CHANGED
@@ -5,6 +5,12 @@ declare function inoCesiumVitePlugin(options?: {
5
5
  * 打包时是否复制js和dts等, 默认值只复制assets静态资源
6
6
  */
7
7
  copyJs?: boolean
8
+ /**
9
+ * 静态资源打包输出目录
10
+ * 默认值 '' 项目打包根目录
11
+ * 上级目录outDir: '../build/',
12
+ */
13
+ outDir?: string
8
14
  }): (vite.Plugin<any> | vite.Plugin<any>[])[]
9
15
 
10
16
  export {
package/vite/index.js CHANGED
@@ -39,11 +39,12 @@ const inoCesiumBaseUrl = () => {
39
39
 
40
40
  const inoCesiumStatic = (options) => {
41
41
  let targets = []
42
+ const outDir = options.outDir || ''
42
43
  if (options.copyJs) {
43
44
  targets = [
44
45
  {
45
46
  src: `node_modules/ino-cesium/dist/*`,
46
- dest: `ino-cesium/`,
47
+ dest: `${outDir}ino-cesium/`,
47
48
  },
48
49
  ]
49
50
  }
@@ -51,7 +52,7 @@ const inoCesiumStatic = (options) => {
51
52
  targets = [
52
53
  {
53
54
  src: `node_modules/ino-cesium/dist/assets/*`,
54
- dest: `ino-cesium/assets/`,
55
+ dest: `${outDir}ino-cesium/assets/`,
55
56
  },
56
57
  ]
57
58
  }