vis-core 0.30.0-beta.70 → 0.30.0-beta.72

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/index.d.ts CHANGED
@@ -1721,7 +1721,7 @@ declare class Tube extends BaseObject {
1721
1721
 
1722
1722
  export { TWEEN }
1723
1723
 
1724
- export declare const VERSION = "0.30.0-beta.70";
1724
+ export declare const VERSION = "0.30.0-beta.72";
1725
1725
 
1726
1726
  declare class Viewport {
1727
1727
  editor: Editor;
package/dist/index.js CHANGED
@@ -13,7 +13,7 @@ import { continentsCountriesIso2 as y9 } from "geojson-cn";
13
13
  Array.prototype.at || (Array.prototype.at = function(r) {
14
14
  return r < 0 && (r = this.length + r), this[r];
15
15
  });
16
- const O2 = "0.30.0-beta.70";
16
+ const O2 = "0.30.0-beta.72";
17
17
  var Ci = Object.freeze({
18
18
  Linear: Object.freeze({
19
19
  None: function(r) {
@@ -41117,11 +41117,10 @@ const Lx = {
41117
41117
  SphereShadow: Px,
41118
41118
  Countries: j7
41119
41119
  }, Ix = (r) => {
41120
- r.loaderAdd = function() {
41121
- const { loader: e } = this;
41122
- e.add(["/image/earth2/basic.jpg", "/image/earth2/NormalMap.jpg"]);
41120
+ r.loaderAdd = () => {
41121
+ r.pencil.loader.add(["/image/earth2/basic.jpg", "/image/earth2/NormalMap.jpg"]);
41123
41122
  }, r.initMaterial = async function() {
41124
- const e = this.loader, t = e.getAsset("/image/earth2/basic.jpg"), i = e.getAsset("/image/earth2/NormalMap.jpg"), n = new Tt({
41123
+ const e = r.pencil.loader, t = e.getAsset("/image/earth2/basic.jpg"), i = e.getAsset("/image/earth2/NormalMap.jpg"), n = new Tt({
41125
41124
  name: "地球材质",
41126
41125
  map: t,
41127
41126
  metalness: 0.1,
@@ -41153,9 +41152,8 @@ const Lx = {
41153
41152
  otherMapDepth: () => r.options.otherMapDepth,
41154
41153
  copyChinaPlane: r.options.copyChinaPlane,
41155
41154
  mergeSide: () => r.options.mergeSide
41156
- }, r.loaderAdd = function() {
41157
- const { loader: e } = this;
41158
- e.add([
41155
+ }, r.loaderAdd = () => {
41156
+ r.pencil.loader.add([
41159
41157
  "/image/earth/basic.webp",
41160
41158
  "/image/earth/chinaBorder.png",
41161
41159
  "/image/earth/flyline.png",
@@ -41240,7 +41238,7 @@ const Lx = {
41240
41238
  !1
41241
41239
  ), await this.pencil.controls.dollyTo(99.11560932366835, !1);
41242
41240
  }, r.initMaterial = async function() {
41243
- const e = this.loader, t = new Tt({
41241
+ const e = r.pencil.loader, t = new Tt({
41244
41242
  side: At,
41245
41243
  name: "顶面",
41246
41244
  color: new q("#0d8a8c"),
@@ -41963,11 +41961,11 @@ const ny = (r) => {
41963
41961
  ${r}
41964
41962
  `, e;
41965
41963
  }, sy = (r) => {
41966
- r.loaderAdd = function() {
41967
- const e = this.loader;
41964
+ r.loaderAdd = () => {
41965
+ const e = r.pencil.loader;
41968
41966
  e.add(["/image/map/jianbian.webp"]), e.add(["/image/map/hp2.webp", "/image/map/fx2.webp"]);
41969
41967
  }, r.initMaterial = async function() {
41970
- const e = this.loader, t = this.mList, i = (() => {
41968
+ const e = r.pencil.loader, t = this.mList, i = (() => {
41971
41969
  const n = e.getAsset("/image/map/hp2.webp");
41972
41970
  n.center.set(0.5, 0.5), n.repeat.set(0.97, 1.01);
41973
41971
  const s = new Tt({
@@ -42038,13 +42036,13 @@ const ny = (r) => {
42038
42036
  };
42039
42037
  }, ay = (r) => {
42040
42038
  r.options.lineOffset = 5e-3, r.loaderAdd = async function() {
42041
- this.loader.add([
42039
+ r.pencil.loader.add([
42042
42040
  "/image/map/jianbian.webp",
42043
42041
  "/image/map/hp.webp",
42044
42042
  "/image/map/shuchu2.webp"
42045
42043
  ]), this.loaderAddBg();
42046
42044
  }, r.initMaterial = async function() {
42047
- const e = this.loader, t = (() => {
42045
+ const e = r.pencil.loader, t = (() => {
42048
42046
  const i = new Tt({
42049
42047
  name: "顶面",
42050
42048
  map: e.getAsset("/image/map/hp.webp"),
@@ -42076,9 +42074,9 @@ const ny = (r) => {
42076
42074
  };
42077
42075
  }, oy = (r) => {
42078
42076
  r.loaderAdd = async function() {
42079
- this.loader.add(["/image/map/jianbian.webp"]), this.loaderAddBg();
42077
+ r.pencil.loader.add(["/image/map/jianbian.webp"]), this.loaderAddBg();
42080
42078
  }, r.initMaterial = async function() {
42081
- const e = this.loader, t = (() => {
42079
+ const e = r.pencil.loader, t = (() => {
42082
42080
  const i = new Fe({
42083
42081
  name: "顶面",
42084
42082
  color: new q("#0d2425")
@@ -42129,7 +42127,7 @@ const ny = (r) => {
42129
42127
  }, r.options.parentBg && (r.extendsOptions.parentBgDepth = () => r.options.parentBgDepth), r.loaderAdd = function() {
42130
42128
  this.pencil.loader.add(["/image/map2/side.png"]);
42131
42129
  }, r.initMaterial = async function() {
42132
- const t = this.loader, i = (() => {
42130
+ const t = r.pencil.loader, i = (() => {
42133
42131
  const n = new Fe({
42134
42132
  name: "板块顶面",
42135
42133
  color: "#094253"
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.30.0-beta.70",
3
+ "version": "0.30.0-beta.72",
4
4
  "scripts": {
5
- "start": "npm run version && vite preview",
5
+ "start": "npm run version && vite",
6
6
  "build:site": "npm run version && vite build",
7
7
  "build:lib": "npm run version && BUILD_MODE=lib vite build",
8
8
  "version": "node ./scripts/generate-version",