vis-core 0.30.0-beta.20 → 0.30.0-beta.21
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 +1 -1
- package/dist/index.js +2 -2
- package/dist/index.module.js +17 -13
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.module.js
CHANGED
|
@@ -63,7 +63,7 @@ import { continentsCountriesIso2 } from "geojson-cn";
|
|
|
63
63
|
Array.prototype.at || (Array.prototype.at = function(v) {
|
|
64
64
|
return v < 0 && (v = this.length + v), this[v];
|
|
65
65
|
});
|
|
66
|
-
const version = "0.30.0-beta.
|
|
66
|
+
const version = "0.30.0-beta.21", publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUEyTG1aVVQzVG9LZEVRRUdrdUU1QQo3dnlYTzRMM1Z6NDA5RFF2a2xzRHZ2SytNM2M2OGl4ZEVhZDZFcnZGS2FKQ1QrNTZNdU1XSXhUTnlDZDVQSkFGCjVYdzI4cW1iVkVCR3FGdXVIZTltSm5GUmRXN1NpK1Z1cTZvRWxwQkRkeEFIQ0dsWVVpU1R3WmhBbjJaVXJLSUYKd1J2c1k1bi9uWWNhZnl5QW9tRjhmNVRsTkpwS1JtbDU3WlRSWjBMdzdQRDFSeHFIbmJ0YWFETkpiSDV5eFd6cQpaVTBwQWhxMFNkNHdlOW1DUTJWWXc5czhtUERLbW4rU083eGovSUsrR1ZEaEJNOUpaZ3VIcGFZUGt3bWd5UkdwCkx6V0tHMkZULzJRalZUT1dRT09mRFVtVitDSVlsN1hVVlh1Q0toYWFNQ0ZVa1JQOHg4aEZucmNFeklHQ1JpM3IKK3dJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0t", accessToken = {
|
|
67
67
|
token: void 0,
|
|
68
68
|
getInfo() {
|
|
69
69
|
if (!this.token)
|
|
@@ -140348,22 +140348,23 @@ class Editor {
|
|
|
140348
140348
|
return this._mListOptionsMaps[o].get(r);
|
|
140349
140349
|
}
|
|
140350
140350
|
changeMListOptions() {
|
|
140351
|
-
|
|
140351
|
+
var r;
|
|
140352
|
+
if (!((r = this.pencil) != null && r.mList))
|
|
140352
140353
|
return [];
|
|
140353
140354
|
this._mListOptionsMaps.key.clear(), this._mListOptionsMaps.material = /* @__PURE__ */ new WeakMap(), this._mListOptionsMaps.object = /* @__PURE__ */ new WeakMap();
|
|
140354
140355
|
const e = Array.from(this.pencil.mList.fixBaseObjects.entries());
|
|
140355
140356
|
this.mListOptions = new Array(e.length);
|
|
140356
|
-
for (let
|
|
140357
|
-
const [
|
|
140358
|
-
key:
|
|
140359
|
-
name:
|
|
140360
|
-
type:
|
|
140361
|
-
object:
|
|
140362
|
-
baseObject:
|
|
140363
|
-
material:
|
|
140364
|
-
use: this.pencil.mList.getBaseObjectMap(
|
|
140357
|
+
for (let o = 0; o < e.length; o++) {
|
|
140358
|
+
const [V, O] = e[o], j = this.pencil.mList.get(V), le = O.object3d, fe = {
|
|
140359
|
+
key: V,
|
|
140360
|
+
name: j.name,
|
|
140361
|
+
type: j.type,
|
|
140362
|
+
object: le,
|
|
140363
|
+
baseObject: O,
|
|
140364
|
+
material: j,
|
|
140365
|
+
use: this.pencil.mList.getBaseObjectMap(j).size
|
|
140365
140366
|
};
|
|
140366
|
-
this.mListOptions[
|
|
140367
|
+
this.mListOptions[o] = fe, this._mListOptionsMaps.key.set(V, fe), this._mListOptionsMaps.material.set(j, fe), this._mListOptionsMaps.object.set(le, fe);
|
|
140367
140368
|
}
|
|
140368
140369
|
this.emit("mListGraphChanged");
|
|
140369
140370
|
}
|
|
@@ -140401,7 +140402,10 @@ class Editor {
|
|
|
140401
140402
|
const fe = parseTexture(le.v.bg.texture);
|
|
140402
140403
|
fe.colorSpace = SRGBColorSpace, this.viewport.vis.pencil.scene.background = fe;
|
|
140403
140404
|
}
|
|
140404
|
-
return this.hooks.dispatch("beforeShow"), (O = this.viewport.vis) == null || O.show(), this.hooks.dispatch("afterShow"), (j = this.pencil.controls) == null || j.saveState(), this.select(null),
|
|
140405
|
+
return this.hooks.dispatch("beforeShow"), (O = this.viewport.vis) == null || O.show(), this.hooks.dispatch("afterShow"), (j = this.pencil.controls) == null || j.saveState(), this.select(null), window.requestIdleCallback(() => {
|
|
140406
|
+
var fe;
|
|
140407
|
+
(fe = this.viewport.vis) == null || fe.worker.dispose();
|
|
140408
|
+
}), this.hooks.dispatch("afterFromJSON"), le;
|
|
140405
140409
|
} catch (le) {
|
|
140406
140410
|
throw this.hooks.dispatch("errorFromJSON"), new Error("fromJSON error:" + le);
|
|
140407
140411
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "0.30.0-beta.
|
|
1
|
+
declare const _default: "0.30.0-beta.21";
|
|
2
2
|
export default _default;
|