vis-core 0.30.0-beta.49 → 0.30.0-beta.50

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.
@@ -63,7 +63,7 @@ import { continentsCountriesIso2 } from "geojson-cn";
63
63
  Array.prototype.at || (Array.prototype.at = function(le) {
64
64
  return le < 0 && (le = this.length + le), this[le];
65
65
  });
66
- const version = "0.30.0-beta.49", publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUEyTG1aVVQzVG9LZEVRRUdrdUU1QQo3dnlYTzRMM1Z6NDA5RFF2a2xzRHZ2SytNM2M2OGl4ZEVhZDZFcnZGS2FKQ1QrNTZNdU1XSXhUTnlDZDVQSkFGCjVYdzI4cW1iVkVCR3FGdXVIZTltSm5GUmRXN1NpK1Z1cTZvRWxwQkRkeEFIQ0dsWVVpU1R3WmhBbjJaVXJLSUYKd1J2c1k1bi9uWWNhZnl5QW9tRjhmNVRsTkpwS1JtbDU3WlRSWjBMdzdQRDFSeHFIbmJ0YWFETkpiSDV5eFd6cQpaVTBwQWhxMFNkNHdlOW1DUTJWWXc5czhtUERLbW4rU083eGovSUsrR1ZEaEJNOUpaZ3VIcGFZUGt3bWd5UkdwCkx6V0tHMkZULzJRalZUT1dRT09mRFVtVitDSVlsN1hVVlh1Q0toYWFNQ0ZVa1JQOHg4aEZucmNFeklHQ1JpM3IKK3dJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0t", accessToken = {
66
+ const version = "0.30.0-beta.50", publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUEyTG1aVVQzVG9LZEVRRUdrdUU1QQo3dnlYTzRMM1Z6NDA5RFF2a2xzRHZ2SytNM2M2OGl4ZEVhZDZFcnZGS2FKQ1QrNTZNdU1XSXhUTnlDZDVQSkFGCjVYdzI4cW1iVkVCR3FGdXVIZTltSm5GUmRXN1NpK1Z1cTZvRWxwQkRkeEFIQ0dsWVVpU1R3WmhBbjJaVXJLSUYKd1J2c1k1bi9uWWNhZnl5QW9tRjhmNVRsTkpwS1JtbDU3WlRSWjBMdzdQRDFSeHFIbmJ0YWFETkpiSDV5eFd6cQpaVTBwQWhxMFNkNHdlOW1DUTJWWXc5czhtUERLbW4rU083eGovSUsrR1ZEaEJNOUpaZ3VIcGFZUGt3bWd5UkdwCkx6V0tHMkZULzJRalZUT1dRT09mRFVtVitDSVlsN1hVVlh1Q0toYWFNQ0ZVa1JQOHg4aEZucmNFeklHQ1JpM3IKK3dJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0t", accessToken = {
67
67
  token: void 0,
68
68
  getInfo() {
69
69
  if (!this.token)
@@ -57422,13 +57422,14 @@ class ei {
57422
57422
  );
57423
57423
  }
57424
57424
  processIntersection(e, n, r) {
57425
- const fe = this.objCallbackMap, Ce = e.index || -1;
57426
- let ze = e.object;
57427
- for (; ze; ) {
57428
- const Ae = this.pencil.lead.objMap.get(ze);
57429
- Ae && Ae.visible && (this.activeObject || (this.activeObject = Ae), fe.has(Ae) && this.activeObjects.add(Ae)), ze = ze.parent;
57425
+ var fe;
57426
+ const Ce = this.objCallbackMap, ze = (fe = e.index) != null ? fe : -1;
57427
+ let Ae = e.object;
57428
+ for (; Ae; ) {
57429
+ const Fe = this.pencil.lead.objMap.get(Ae);
57430
+ Fe && Fe.visible && (this.activeObject || (this.activeObject = Fe), Ce.has(Fe) && this.activeObjects.add(Fe)), Ae = Ae.parent;
57430
57431
  }
57431
- r === "move" ? this.handleLeaveEvents(n) : r === "down" && this.handleDownOutside(n), this.processObjectHierarchy(n, r, Ce);
57432
+ r === "move" ? this.handleLeaveEvents(n) : r === "down" && this.handleDownOutside(n), this.processObjectHierarchy(n, r, ze);
57432
57433
  }
57433
57434
  processObjectHierarchy(e, n, r) {
57434
57435
  const fe = this.objCallbackMap;
@@ -140042,15 +140043,15 @@ class Hooks {
140042
140043
  this.source !== n && (this.source = n, this.editor.emit("scriptsChanged"));
140043
140044
  }
140044
140045
  fromJSON(e) {
140045
- if (!e)
140046
- this.source = "";
140047
- else
140046
+ if (e)
140048
140047
  try {
140049
140048
  const n = new Function(`return ${e}()`)();
140050
140049
  this.addEvents(n), this.source = e;
140051
140050
  } catch (n) {
140052
140051
  console.error(n);
140053
140052
  }
140053
+ else
140054
+ return;
140054
140055
  this.editor.emit("scriptsChanged");
140055
140056
  }
140056
140057
  toJSON() {
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.30.0-beta.49";
1
+ declare const _default: "0.30.0-beta.50";
2
2
  export default _default;
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.30.0-beta.49",
3
+ "version": "0.30.0-beta.50",
4
4
  "scripts": {
5
- "start": "npm run version && PORT=5173 bundler-dev",
5
+ "start": "npm run version && PORT=5174 bundler-dev",
6
6
  "build:site": "npm run version && PUBLIC_EXCLUDE=true bundler",
7
7
  "build:lib": "npm run version && PUBLIC_EXCLUDE=true BUILD_LIBRARY=src/sdk/index.ts CSS_EXTRACT=false bundler && npm run build:type",
8
8
  "build:type": "BUILD_LIBRARY=src/sdk/index.ts bundler-type",
@@ -64,7 +64,7 @@
64
64
  "esus-lite": "^0.2.8",
65
65
  "events": "^3.3.0",
66
66
  "geojson-cn": "^0.2.5",
67
- "gl-draw": "0.17.0-beta.34",
67
+ "gl-draw": "0.17.0-beta.35",
68
68
  "jsrsasign": "^11.1.0",
69
69
  "lodash-es": "^4.17.21"
70
70
  },