vis-core 0.30.0-beta.22 → 0.30.0-beta.23
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 +19 -19
- 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.23", publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUEyTG1aVVQzVG9LZEVRRUdrdUU1QQo3dnlYTzRMM1Z6NDA5RFF2a2xzRHZ2SytNM2M2OGl4ZEVhZDZFcnZGS2FKQ1QrNTZNdU1XSXhUTnlDZDVQSkFGCjVYdzI4cW1iVkVCR3FGdXVIZTltSm5GUmRXN1NpK1Z1cTZvRWxwQkRkeEFIQ0dsWVVpU1R3WmhBbjJaVXJLSUYKd1J2c1k1bi9uWWNhZnl5QW9tRjhmNVRsTkpwS1JtbDU3WlRSWjBMdzdQRDFSeHFIbmJ0YWFETkpiSDV5eFd6cQpaVTBwQWhxMFNkNHdlOW1DUTJWWXc5czhtUERLbW4rU083eGovSUsrR1ZEaEJNOUpaZ3VIcGFZUGt3bWd5UkdwCkx6V0tHMkZULzJRalZUT1dRT09mRFVtVitDSVlsN1hVVlh1Q0toYWFNQ0ZVa1JQOHg4aEZucmNFeklHQ1JpM3IKK3dJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0t", accessToken = {
|
|
67
67
|
token: void 0,
|
|
68
68
|
getInfo() {
|
|
69
69
|
if (!this.token)
|
|
@@ -140012,10 +140012,10 @@ class Viewport {
|
|
|
140012
140012
|
this.editor.changeSelectOption(), this.editor.emit("visShow", !0);
|
|
140013
140013
|
}), yield this.vis.init();
|
|
140014
140014
|
const { pencil: O } = this.vis;
|
|
140015
|
-
O.userData.EditorEnv = !this.editor.playing, this.editor.pencil = O, this.editor.changeSelectOption(), this.editor.changeMListOptions(), V.__template && this.editor.config.setConfig("__template", V.__template), this.editor.playing || (this.initEvent(), this.editor.emit("visChanged", this.vis)), this.editor.on("baseObjectListChange", () => {
|
|
140015
|
+
O.userData.EditorEnv = !this.editor.playing, this.editor.pencil = O, this.editor.changeSelectOption(), console.log("setVis 111"), this.editor.changeMListOptions(), V.__template && this.editor.config.setConfig("__template", V.__template), this.editor.playing || (this.initEvent(), this.editor.emit("visChanged", this.vis)), this.editor.on("baseObjectListChange", () => {
|
|
140016
140016
|
this.editor.changeSelectOption();
|
|
140017
140017
|
}), this.editor.on("mListChange", () => {
|
|
140018
|
-
this.editor.changeMListOptions();
|
|
140018
|
+
console.log("mListChange"), this.editor.changeMListOptions();
|
|
140019
140019
|
}), O.event.on("lead.updateKey", () => {
|
|
140020
140020
|
this.editor.emit("baseObjectListChange");
|
|
140021
140021
|
}), O.event.on("lead.draw", () => {
|
|
@@ -140023,13 +140023,13 @@ class Viewport {
|
|
|
140023
140023
|
}), O.event.on("lead.erase", () => {
|
|
140024
140024
|
this.editor.emit("baseObjectListChange");
|
|
140025
140025
|
}), O.event.on("mList.add", () => {
|
|
140026
|
-
this.editor.emit("mListChange");
|
|
140026
|
+
console.log("mList add event"), this.editor.emit("mListChange");
|
|
140027
140027
|
}), O.event.on("mList.remove", () => {
|
|
140028
|
-
this.editor.emit("mListChange");
|
|
140028
|
+
console.log("mList remove event"), this.editor.emit("mListChange");
|
|
140029
140029
|
}), O.event.on("mList.addBaseObjectMap", () => {
|
|
140030
|
-
this.editor.emit("mListChange");
|
|
140030
|
+
console.log("mList addBaseObjectMap event"), this.editor.emit("mListChange");
|
|
140031
140031
|
}), O.event.on("mList.rmBaseObjectMap", () => {
|
|
140032
|
-
this.editor.emit("mListChange");
|
|
140032
|
+
console.log("mList rmBaseObjectMap event"), this.editor.emit("mListChange");
|
|
140033
140033
|
});
|
|
140034
140034
|
});
|
|
140035
140035
|
}
|
|
@@ -140348,28 +140348,28 @@ class Editor {
|
|
|
140348
140348
|
return this._mListOptionsMaps[o].get(r);
|
|
140349
140349
|
}
|
|
140350
140350
|
changeMListOptions() {
|
|
140351
|
-
var r, o, V;
|
|
140351
|
+
var r, o, V, O;
|
|
140352
140352
|
if (!((r = this.pencil) != null && r.mList))
|
|
140353
140353
|
return console.log({
|
|
140354
140354
|
_dispose: this._dispose,
|
|
140355
140355
|
//@ts-ignore
|
|
140356
140356
|
minDisabledLayer: (o = this.pencil) == null ? void 0 : o.pages.getMinDisabledLayer(),
|
|
140357
|
-
|
|
140357
|
+
pencil: (O = (V = this.viewport) == null ? void 0 : V.vis) == null ? void 0 : O.pencil
|
|
140358
140358
|
}), [];
|
|
140359
140359
|
this._mListOptionsMaps.key.clear(), this._mListOptionsMaps.material = /* @__PURE__ */ new WeakMap(), this._mListOptionsMaps.object = /* @__PURE__ */ new WeakMap();
|
|
140360
140360
|
const e = Array.from(this.pencil.mList.fixBaseObjects.entries());
|
|
140361
140361
|
this.mListOptions = new Array(e.length);
|
|
140362
|
-
for (let
|
|
140363
|
-
const [
|
|
140364
|
-
key:
|
|
140365
|
-
name:
|
|
140366
|
-
type:
|
|
140367
|
-
object:
|
|
140368
|
-
baseObject:
|
|
140369
|
-
material:
|
|
140370
|
-
use: this.pencil.mList.getBaseObjectMap(
|
|
140362
|
+
for (let j = 0; j < e.length; j++) {
|
|
140363
|
+
const [le, fe] = e[j], Se = this.pencil.mList.get(le), Ce = fe.object3d, Re = {
|
|
140364
|
+
key: le,
|
|
140365
|
+
name: Se.name,
|
|
140366
|
+
type: Se.type,
|
|
140367
|
+
object: Ce,
|
|
140368
|
+
baseObject: fe,
|
|
140369
|
+
material: Se,
|
|
140370
|
+
use: this.pencil.mList.getBaseObjectMap(Se).size
|
|
140371
140371
|
};
|
|
140372
|
-
this.mListOptions[
|
|
140372
|
+
this.mListOptions[j] = Re, this._mListOptionsMaps.key.set(le, Re), this._mListOptionsMaps.material.set(Se, Re), this._mListOptionsMaps.object.set(Ce, Re);
|
|
140373
140373
|
}
|
|
140374
140374
|
this.emit("mListGraphChanged");
|
|
140375
140375
|
}
|
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.23";
|
|
2
2
|
export default _default;
|