[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/svg-lib 11bc5dc 28/32: Make stroke to be fully containe
From: |
ELPA Syncer |
Subject: |
[elpa] externals/svg-lib 11bc5dc 28/32: Make stroke to be fully contained inside the svg |
Date: |
Mon, 27 Sep 2021 16:57:51 -0400 (EDT) |
branch: externals/svg-lib
commit 11bc5dc99d8da846e7670d693ce5a8df6ddc8abd
Author: Nicolas P. Rougier <Nicolas.Rougier@inria.fr>
Commit: Nicolas P. Rougier <Nicolas.Rougier@inria.fr>
Make stroke to be fully contained inside the svg
---
svg-lib.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/svg-lib.el b/svg-lib.el
index 815f088..fd1e6aa 100644
--- a/svg-lib.el
+++ b/svg-lib.el
@@ -291,7 +291,7 @@ and style elements ARGS."
(cx (/ svg-width 2))
(cy (/ svg-height 2))
- (radius (/ tag-height 2))
+ (radius (- (/ tag-height 2) (/ stroke 2)))
(iradius (- radius stroke (/ padding 2)))
@@ -321,6 +321,7 @@ and style elements ARGS."
(svg-image svg :scale 1 :ascent 'center)))
+
;; Create a progress bar
;; ---------------------------------------------------------------------
(defun svg-lib-progress-bar (value &optional style &rest args)
- [elpa] externals/svg-lib 2cab1a0 29/32: Merge remote-tracking branch 'origin/master', (continued)
- [elpa] externals/svg-lib 2cab1a0 29/32: Merge remote-tracking branch 'origin/master', ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib f9e1bbb 32/32: Fix some warnings, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib 04fdd1a 08/32: Added svg-lib-concat function for org-mode demo, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib d9a49ac 14/32: Delete the redundant url checking, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib 6ceae83 16/32: Change `svg-lib-icons-dir` default value, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib f775af4 21/32: Merge pull request #5 from 404cn/master, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib 8427772 23/32: Merge remote-tracking branch 'origin/master', ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib 5c206f3 24/32: Remove hard coded image scaling factor, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib f0b2136 25/32: Merge pull request #7 from HyunggyuJang/remove-hard-image-scale, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib e0423a2 27/32: Merge pull request #8 from HyunggyuJang/fix-font-info-query-format, ELPA Syncer, 2021/09/27
- [elpa] externals/svg-lib 11bc5dc 28/32: Make stroke to be fully contained inside the svg,
ELPA Syncer <=
- [elpa] externals/svg-lib 5cb5865 31/32: Bug fix, ELPA Syncer, 2021/09/27