[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 86cf401: Revert "Copy svg--def to manipulate the DOM direc
From: |
Lars Ingebrigtsen |
Subject: |
[elpa] master 86cf401: Revert "Copy svg--def to manipulate the DOM directly from svg-clock.el" |
Date: |
Tue, 18 Aug 2020 08:50:27 -0400 (EDT) |
branch: master
commit 86cf401d7483885c550bc84468ec5b267d685a06
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Revert "Copy svg--def to manipulate the DOM directly from svg-clock.el"
This reverts commit 1f7c74037d3adadc86c72c9736308a24107ad964.
This had already been fixed in almost the same way.
---
packages/svg-clock/svg-clock.el | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)
diff --git a/packages/svg-clock/svg-clock.el b/packages/svg-clock/svg-clock.el
index c99de15..454c66b 100644
--- a/packages/svg-clock/svg-clock.el
+++ b/packages/svg-clock/svg-clock.el
@@ -117,15 +117,6 @@ and `hour-hand'. The clock-face has a size of 1x1."
'rotate angle .5 .5)))
(number-sequence 0 354 6)))))))
-(defun svg-clock--def (svg def)
- (dom-append-child
- (or (dom-by-tag svg 'defs)
- (let ((node (dom-node 'defs)))
- (dom-add-child-before svg node)
- node))
- def)
- svg)
-
(defun svg-clock--create-svg (time size foreground background
no-seconds no-face)
"Return an SVG element displaying an analog clock.
@@ -156,8 +147,8 @@ its colors are FOREGROUND and BACKGROUND."
'rotate
(+ (* hours 30) (/ minutes 2.0))
.5 .5))))))
- (dolist (def defs) (svg-clock--def svg def))
- (svg-clock--def svg clock)
+ (dolist (def defs) (svg-clock-def svg def))
+ (svg-clock-def svg clock)
(dom-append-child svg
(svg-clock-use 'clock
(svg-clock-transform 'scale size size)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] master 86cf401: Revert "Copy svg--def to manipulate the DOM directly from svg-clock.el",
Lars Ingebrigtsen <=