sv-arcgis 1.4.0-next.1 β†’ 1.4.1-next.1

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.
@@ -406,12 +406,12 @@ if (demo.DEMO === true) {
406
406
  import { env } from "$env/dynamic/public";
407
407
 
408
408
  // variables
409
- let mapWrap: HTMLDivElement | null = $state(null);
409
+ let mapView: HTMLArcgisMapElement | null = $state(null);
410
410
 
411
411
  onMount(() => {
412
412
  console.log("env", env);
413
413
  console.log("config", config);
414
- console.log("mapWrap", mapWrap);
414
+ console.log("mapView", mapView);
415
415
  });
416
416
 
417
417
  if (browser) {
@@ -441,8 +441,8 @@ if (demo.DEMO === true) {
441
441
  <div class="e-demo-header">
442
442
  <h1>πŸ—ΊοΈ SV + ArcGIS Demo</h1>
443
443
  </div>
444
- <div class="e-demo-map-wrap" bind:this={mapWrap}>
445
- <arcgis-map item-id="05e015c5f0314db9a487a9b46cb37eca">
444
+ <div class="e-demo-map-wrap">
445
+ <arcgis-map bind:this={mapView} item-id="05e015c5f0314db9a487a9b46cb37eca">
446
446
  <arcgis-zoom position="top-left"></arcgis-zoom>
447
447
  </arcgis-map>
448
448
  {#if config.calcite}
@@ -471,6 +471,10 @@ if (demo.DEMO === true) {
471
471
 
472
472
  :global(body.calcite-mode-dark) {
473
473
  background: #212121;
474
+
475
+ & .e-demo-header {
476
+ color: #fff;
477
+ }
474
478
  }
475
479
 
476
480
  .e-demo {
@@ -583,11 +587,11 @@ if (demo.DEMO === true) {
583
587
  import { onMount } from "svelte";
584
588
 
585
589
  // variables
586
- let mapWrap = $state(null);
590
+ let mapView = $state(null);
587
591
 
588
592
  onMount(() => {
589
593
  console.log("config", config);
590
- console.log("mapWrap", mapWrap);
594
+ console.log("mapView", mapView);
591
595
  });
592
596
 
593
597
  import("@arcgis/map-components/dist/loader").then(
@@ -615,8 +619,8 @@ if (demo.DEMO === true) {
615
619
  <div class="e-demo-header">
616
620
  <h1>πŸ—ΊοΈ SV + ArcGIS Demo</h1>
617
621
  </div>
618
- <div class="e-demo-map-wrap" bind:this={mapWrap}>
619
- <arcgis-map item-id="05e015c5f0314db9a487a9b46cb37eca">
622
+ <div class="e-demo-map-wrap">
623
+ <arcgis-map bind:this={mapView} item-id="05e015c5f0314db9a487a9b46cb37eca">
620
624
  <arcgis-zoom position="top-left"></arcgis-zoom>
621
625
  </arcgis-map>
622
626
  {#if config.calcite}
@@ -636,7 +640,6 @@ if (demo.DEMO === true) {
636
640
  </main>
637
641
 
638
642
  <style>
639
-
640
643
  :global(body:has(.e-demo)) {
641
644
  margin: 0;
642
645
  padding: 0;
@@ -646,6 +649,10 @@ if (demo.DEMO === true) {
646
649
 
647
650
  :global(body.calcite-mode-dark) {
648
651
  background: #212121;
652
+
653
+ & .e-demo-header {
654
+ color: #fff;
655
+ }
649
656
  }
650
657
 
651
658
  .e-demo {
@@ -960,7 +967,7 @@ try {
960
967
  } else {
961
968
  execSync(
962
969
  "npm install --save-dev chalk@5.4.1 prompts@2.4.2 cross-env@10.0.0",
963
- { stdio: "inherit" }
970
+ { stdio: "inherit" },
964
971
  );
965
972
  }
966
973
  console.log("βœ… Dependencies installed successfully");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sv-arcgis",
3
- "version": "1.4.0-next.1",
3
+ "version": "1.4.1-next.1",
4
4
  "main": "index.js",
5
5
  "bin": {
6
6
  "sv-arcgis": "./bin/sv-arcgis-setup.js"