Browse Source

try to fix scroll bug in docs svg viewer

Thomas Buck 10 months ago
parent
commit
56ddcb29a2
4 changed files with 4 additions and 4 deletions
  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 View File

1
 [submodule "docs/svg-pan-zoom"]
1
 [submodule "docs/svg-pan-zoom"]
2
 	path = docs/svg-pan-zoom
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
 [submodule "docs/modelview"]
4
 [submodule "docs/modelview"]
5
 	path = docs/modelview
5
 	path = docs/modelview
6
 	url = https://github.com/jschobben/modelview
6
 	url = https://github.com/jschobben/modelview

+ 1
- 1
docs/generate_docs.sh View File

45
     echo "<embed type=\"image/svg+xml\" src=\"$file\" id=\"pz_$name\" style=\"width:100%;\"/>" >> src/inc_dispensy_sch.md
45
     echo "<embed type=\"image/svg+xml\" src=\"$file\" id=\"pz_$name\" style=\"width:100%;\"/>" >> src/inc_dispensy_sch.md
46
     echo "<script>" >> src/inc_dispensy_sch.md
46
     echo "<script>" >> src/inc_dispensy_sch.md
47
     echo "document.getElementById('pz_$name').addEventListener('load', function(){" >> src/inc_dispensy_sch.md
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
     echo "})" >> src/inc_dispensy_sch.md
49
     echo "})" >> src/inc_dispensy_sch.md
50
     echo "</script>" >> src/inc_dispensy_sch.md
50
     echo "</script>" >> src/inc_dispensy_sch.md
51
     echo "</div>" >> src/inc_dispensy_sch.md
51
     echo "</div>" >> src/inc_dispensy_sch.md

+ 1
- 1
docs/src/main_board_pcb.md View File

11
     <embed type="image/svg+xml" src="./plot/dispensy_pcb.svg" id="pz_dispensy" style="width: 100%;"/>
11
     <embed type="image/svg+xml" src="./plot/dispensy_pcb.svg" id="pz_dispensy" style="width: 100%;"/>
12
     <script>
12
     <script>
13
         document.getElementById('pz_dispensy').addEventListener('load', function(){
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
     </script>
16
     </script>
17
 </div>
17
 </div>

+ 1
- 1
docs/svg-pan-zoom

1
-Subproject commit 632c04b408854926087266022aff7557a363e1ba
1
+Subproject commit d9b9a55ef386c6fb04a82881ee233642d61e99cf

Loading…
Cancel
Save