vis-core 0.30.0-beta.29 → 0.30.0-beta.30

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(v) {
64
64
  return v < 0 && (v = this.length + v), this[v];
65
65
  });
66
- const version = "0.30.0-beta.29", publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUEyTG1aVVQzVG9LZEVRRUdrdUU1QQo3dnlYTzRMM1Z6NDA5RFF2a2xzRHZ2SytNM2M2OGl4ZEVhZDZFcnZGS2FKQ1QrNTZNdU1XSXhUTnlDZDVQSkFGCjVYdzI4cW1iVkVCR3FGdXVIZTltSm5GUmRXN1NpK1Z1cTZvRWxwQkRkeEFIQ0dsWVVpU1R3WmhBbjJaVXJLSUYKd1J2c1k1bi9uWWNhZnl5QW9tRjhmNVRsTkpwS1JtbDU3WlRSWjBMdzdQRDFSeHFIbmJ0YWFETkpiSDV5eFd6cQpaVTBwQWhxMFNkNHdlOW1DUTJWWXc5czhtUERLbW4rU083eGovSUsrR1ZEaEJNOUpaZ3VIcGFZUGt3bWd5UkdwCkx6V0tHMkZULzJRalZUT1dRT09mRFVtVitDSVlsN1hVVlh1Q0toYWFNQ0ZVa1JQOHg4aEZucmNFeklHQ1JpM3IKK3dJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0t", accessToken = {
66
+ const version = "0.30.0-beta.30", publicKeyPEM = "LS0tLS1CRUdJTiBQVUJMSUMgS0VZLS0tLS0KTUlJQklqQU5CZ2txaGtpRzl3MEJBUUVGQUFPQ0FROEFNSUlCQ2dLQ0FRRUEyTG1aVVQzVG9LZEVRRUdrdUU1QQo3dnlYTzRMM1Z6NDA5RFF2a2xzRHZ2SytNM2M2OGl4ZEVhZDZFcnZGS2FKQ1QrNTZNdU1XSXhUTnlDZDVQSkFGCjVYdzI4cW1iVkVCR3FGdXVIZTltSm5GUmRXN1NpK1Z1cTZvRWxwQkRkeEFIQ0dsWVVpU1R3WmhBbjJaVXJLSUYKd1J2c1k1bi9uWWNhZnl5QW9tRjhmNVRsTkpwS1JtbDU3WlRSWjBMdzdQRDFSeHFIbmJ0YWFETkpiSDV5eFd6cQpaVTBwQWhxMFNkNHdlOW1DUTJWWXc5czhtUERLbW4rU083eGovSUsrR1ZEaEJNOUpaZ3VIcGFZUGt3bWd5UkdwCkx6V0tHMkZULzJRalZUT1dRT09mRFVtVitDSVlsN1hVVlh1Q0toYWFNQ0ZVa1JQOHg4aEZucmNFeklHQ1JpM3IKK3dJREFRQUIKLS0tLS1FTkQgUFVCTElDIEtFWS0tLS0t", accessToken = {
67
67
  token: void 0,
68
68
  getInfo() {
69
69
  if (!this.token)
@@ -140770,6 +140770,8 @@ class Base extends Camera {
140770
140770
  const r = gi({}, this.options.pencilConfig);
140771
140771
  if (this.options.css2DContainer && (r.css2DRendererParams = {
140772
140772
  container: this.options.css2DContainer
140773
+ }), this.options.controlsContainer && (r.controls = {
140774
+ domElement: this.options.controlsContainer
140773
140775
  }), this.options.pencil)
140774
140776
  this.pencil = this.options.pencil, this.pencil.stop(), this.sceneActive = this.pencil.addPage({
140775
140777
  cameraOptions: {
@@ -144320,7 +144322,7 @@ const getLabelElement = (v) => {
144320
144322
  else
144321
144323
  le = yield this.initCityVis(r);
144322
144324
  yield le == null ? void 0 : le.drawCityPlane(r, this.lead.group), this.pencil.camera.near = 1e-3, this.pencil.camera.far = 7, this.pencil.camera.updateProjectionMatrix();
144323
- } else if (o === "district" && (yield (yield this.initCityVis(r)).drawCityPlane(r, this.lead.group), this.options.nearbyCities)) {
144325
+ } else if (o === "district" && (yield (yield this.initCityVis(r)).drawCityPlane(r, this.lead.group), this.pencil.camera.near = 1e-3, this.pencil.camera.far = 7, this.pencil.camera.updateProjectionMatrix(), this.options.nearbyCities)) {
144324
144326
  const le = findAdcodeInfo(r).parent, fe = findAdcodeInfo(le).c;
144325
144327
  for (const Le of fe)
144326
144328
  (this.options.nearbyCities === "full" || Le !== r) && (yield this.initCityVis(Le, !0));
package/dist/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: "0.30.0-beta.29";
1
+ declare const _default: "0.30.0-beta.30";
2
2
  export default _default;
@@ -12,6 +12,7 @@ export interface BaseOptions {
12
12
  container: HTMLElement;
13
13
  assetsPrefix?: string;
14
14
  css2DContainer?: HTMLElement;
15
+ controlsContainer?: HTMLElement;
15
16
  pencil?: any;
16
17
  pencil2?: any;
17
18
  pencilConfig?: Record<string, any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vis-core",
3
- "version": "0.30.0-beta.29",
3
+ "version": "0.30.0-beta.30",
4
4
  "scripts": {
5
5
  "start": "npm run version && PORT=5173 bundler-dev",
6
6
  "build:site": "npm run version && PUBLIC_EXCLUDE=true bundler",