vis-core 0.14.6 → 0.14.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/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.14.6";
1
+ declare const _default: "0.14.8";
2
2
  export default _default;
@@ -5,6 +5,7 @@ export default class MaterialList {
5
5
  pencil: Pencil;
6
6
  materialList: Map<string, {
7
7
  material: THREE.Material;
8
+ selectHide?: boolean;
8
9
  }>;
9
10
  showMaterialList: Map<string, string | string[]>;
10
11
  showMaterialListTitle: Map<string, string>;
@@ -13,7 +14,9 @@ export default class MaterialList {
13
14
  meta?: any;
14
15
  }>;
15
16
  install(pencil: Pencil): void;
16
- setMaterial(name: string, material: THREE.Material): void;
17
+ setMaterial(name: string, material: THREE.Material, options?: {
18
+ selectHide?: boolean;
19
+ }): void;
17
20
  setMaterialObj(name: string, obj: Record<string, THREE.Material>): void;
18
21
  getMaterial(name: string): THREE.Material | undefined;
19
22
  getMaterialObj(name: string): Record<string, THREE.Material> | undefined;
@@ -15,6 +15,7 @@ export default class extends BaseObject {
15
15
  constructor(options: LightOptions);
16
16
  create(): void;
17
17
  render(): void;
18
+ update(): void;
18
19
  dispose(): void;
19
20
  }
20
21
  export {};
@@ -5,6 +5,7 @@ export default class extends Earth {
5
5
  drawController: DrawController<{
6
6
  Earth: typeof import("../earth/objects/earth").default;
7
7
  Countries: typeof import("./objects/countries").default;
8
+ SphereShadow: typeof import("./objects/SphereShadow").default;
8
9
  Plane: typeof import("../all/objects/Plane").default;
9
10
  Ring: typeof import("../all/objects/Ring").default;
10
11
  Sphere: typeof import("../all/objects/Sphere").default;
@@ -0,0 +1,10 @@
1
+ import { BaseObject } from 'gl-draw';
2
+ interface Options {
3
+ radius?: number;
4
+ }
5
+ export default class SphereShadow extends BaseObject {
6
+ options: Required<Options>;
7
+ constructor(options: Options);
8
+ create(): Promise<void>;
9
+ }
10
+ export {};
@@ -1,9 +1,11 @@
1
1
  import { Draw as DrawController } from 'gl-draw/dist/plugins';
2
2
  import Earth from "../../earth/objects/earth";
3
+ import SphereShadow from './SphereShadow';
3
4
  import Countries from './countries';
4
5
  declare const objs: {
5
6
  Earth: typeof Earth;
6
7
  Countries: typeof Countries;
8
+ SphereShadow: typeof SphereShadow;
7
9
  Plane: typeof import("../../all/objects/Plane").default;
8
10
  Ring: typeof import("../../all/objects/Ring").default;
9
11
  Sphere: typeof import("../../all/objects/Sphere").default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.14.6",
3
+ "version": "0.14.8",
4
4
  "scripts": {
5
5
  "start": "npm run version && PORT=5173 bundler-dev",
6
6
  "build:site": "npm run version &&PUBLIC_EXCLUDE=public/city bundler",
@@ -38,7 +38,7 @@
38
38
  "@types/geojson": "^7946.0.10",
39
39
  "@types/lodash-es": "^4.17.9",
40
40
  "@types/node": "^20.6.0",
41
- "@types/three": "^0.165.0",
41
+ "@types/three": "^0.166.0",
42
42
  "ant-design-vue": "^4.2.3",
43
43
  "archiver": "^7.0.1",
44
44
  "codemirror": "^6.0.1",
@@ -46,13 +46,13 @@
46
46
  "eslint-config-bundler": "^0.4.2",
47
47
  "esus": "^0.4.27",
48
48
  "fs-extra": "^11.1.1",
49
- "gl-draw": "0.9.3",
49
+ "gl-draw": "0.9.8",
50
50
  "idb-keyval": "^6.2.1",
51
51
  "pinia": "^2.1.7",
52
52
  "prettier-config-bundler": "^0.4.3",
53
53
  "stylelint-config-bundler": "^0.4.5",
54
54
  "tailwind-config-bundler": "^0.4.3",
55
- "three": "0.165.0",
55
+ "three": "0.166.1",
56
56
  "vite-plugin-markdown": "^2.2.0",
57
57
  "vue": "^3.4.27",
58
58
  "vue-bundler": "^0.4.4",