Bladeren bron

try to fix scroll bug in docs svg viewer

Thomas Buck 10 maanden geleden
bovenliggende
commit
56ddcb29a2
4 gewijzigde bestanden met toevoegingen van 4 en 4 verwijderingen
  1. 1
    1
      .gitmodules
  2. 1
    1
      docs/generate_docs.sh
  3. 1
    1
      docs/src/main_board_pcb.md
  4. 1
    1
      docs/svg-pan-zoom

+ 1
- 1
.gitmodules Bestand weergeven

@@ -1,6 +1,6 @@
1 1
 [submodule "docs/svg-pan-zoom"]
2 2
 	path = docs/svg-pan-zoom
3
-	url = https://github.com/bumbu/svg-pan-zoom
3
+	url = https://github.com/WebSVG/svg-pan-zoom
4 4
 [submodule "docs/modelview"]
5 5
 	path = docs/modelview
6 6
 	url = https://github.com/jschobben/modelview

+ 1
- 1
docs/generate_docs.sh Bestand weergeven

@@ -45,7 +45,7 @@ for f in `ls src/plot/dispensy_sch.svg/*.svg | sort -r`; do
45 45
     echo "<embed type=\"image/svg+xml\" src=\"$file\" id=\"pz_$name\" style=\"width:100%;\"/>" >> src/inc_dispensy_sch.md
46 46
     echo "<script>" >> src/inc_dispensy_sch.md
47 47
     echo "document.getElementById('pz_$name').addEventListener('load', function(){" >> src/inc_dispensy_sch.md
48
-    echo "svgPanZoom(document.getElementById('pz_$name'), {controlIconsEnabled: true});" >> src/inc_dispensy_sch.md
48
+    echo "svgPanZoom(document.getElementById('pz_$name'), {controlIconsEnabled: true, minZoom: 1.0});" >> src/inc_dispensy_sch.md
49 49
     echo "})" >> src/inc_dispensy_sch.md
50 50
     echo "</script>" >> src/inc_dispensy_sch.md
51 51
     echo "</div>" >> src/inc_dispensy_sch.md

+ 1
- 1
docs/src/main_board_pcb.md Bestand weergeven

@@ -11,7 +11,7 @@ You can also view the [Main-Board PCB layout as PDF](./plot/dispensy_pcb.pdf).
11 11
     <embed type="image/svg+xml" src="./plot/dispensy_pcb.svg" id="pz_dispensy" style="width: 100%;"/>
12 12
     <script>
13 13
         document.getElementById('pz_dispensy').addEventListener('load', function(){
14
-            svgPanZoom(document.getElementById('pz_dispensy'), {controlIconsEnabled: true});
14
+            svgPanZoom(document.getElementById('pz_dispensy'), {controlIconsEnabled: true, minZoom: 1.0});
15 15
         })
16 16
     </script>
17 17
 </div>

+ 1
- 1
docs/svg-pan-zoom

@@ -1 +1 @@
1
-Subproject commit 632c04b408854926087266022aff7557a363e1ba
1
+Subproject commit d9b9a55ef386c6fb04a82881ee233642d61e99cf

Laden…
Annuleren
Opslaan