0001-Modify-SVGs-to-not-have-view-boxes-that-can-scale-ba.patch
text/plain
Filename: 0001-Modify-SVGs-to-not-have-view-boxes-that-can-scale-ba.patch
Type: text/plain
Part: 0
Message:
Responsive images in pgweb docs
Patch
Format: format-patch
Series: patch 0001
Subject: Modify SVGs to not have view boxes that can scale based on viewing container.
| File | + | − |
|---|---|---|
| doc/src/sgml/images/gin.svg | 1 | 2 |
| doc/src/sgml/images/pagelayout.svg | 4 | 4 |
From b4f94ee3b62d4eeec45cfa4fbba5375810d8ae59 Mon Sep 17 00:00:00 2001
From: "Jonathan S. Katz" <jonathan.katz@excoventures.com>
Date: Sun, 31 Mar 2019 10:16:26 -0400
Subject: [PATCH] Modify SVGs to not have view boxes that can scale based on
viewing container.
This allows for responsive image viewing, particularly on the web.
---
doc/src/sgml/images/gin.svg | 3 +--
doc/src/sgml/images/pagelayout.svg | 8 ++++----
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/doc/src/sgml/images/gin.svg b/doc/src/sgml/images/gin.svg
index eacb5c8c16..493f0ffa76 100644
--- a/doc/src/sgml/images/gin.svg
+++ b/doc/src/sgml/images/gin.svg
@@ -4,8 +4,7 @@
<!-- Generated by graphviz version 2.40.1 (20161225.0304)
-->
<!-- Title: gin Pages: 1 -->
-<svg width="836pt" height="432pt"
- viewBox="0.00 0.00 836.00 432.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+<svg viewBox="0.00 0.00 836.00 432.00" preserveAspectRatio="xMinYMin meet" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 428)">
<title>gin</title>
<polygon fill="#ffffff" stroke="transparent" points="-4,4 -4,-428 832,-428 832,4 -4,4"/>
diff --git a/doc/src/sgml/images/pagelayout.svg b/doc/src/sgml/images/pagelayout.svg
index 6b819a553e..95711c541f 100644
--- a/doc/src/sgml/images/pagelayout.svg
+++ b/doc/src/sgml/images/pagelayout.svg
@@ -1,8 +1,8 @@
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
-<svg
+<svg
xmlns='http://www.w3.org/2000/svg'
- width='610'
- height='210'
+ viewBox="0.00 0.00 610.00 210.00"
+ preserveAspectRatio="xMinYMin meet"
shape-rendering='geometricPrecision'
version='1.0'>
<defs>
@@ -37,4 +37,4 @@
<text x='324' y='166' font-family='Courier' font-size='15' stroke='none' fill='#000000' ><![CDATA[Item]]></text>
<text x='509' y='166' font-family='Courier' font-size='15' stroke='none' fill='#000000' ><![CDATA[Special]]></text>
</g>
-</svg>
\ No newline at end of file
+</svg>
--
2.14.3 (Apple Git-98)