[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/sketch-mode 9eb86b8 31/38: Add comments and cleanup
From: |
ELPA Syncer |
Subject: |
[elpa] externals/sketch-mode 9eb86b8 31/38: Add comments and cleanup |
Date: |
Wed, 15 Sep 2021 16:57:39 -0400 (EDT) |
branch: externals/sketch-mode
commit 9eb86b85bc486ec3eafafca89d2a7c3777ae305a
Author: Daniel Nicolai <dalanicolai@gmail.com>
Commit: Daniel Nicolai <dalanicolai@gmail.com>
Add comments and cleanup
---
sketch-mode.el | 22 +++++++++++++++-------
1 file changed, 15 insertions(+), 7 deletions(-)
diff --git a/sketch-mode.el b/sketch-mode.el
index 62900ac..7c303d5 100644
--- a/sketch-mode.el
+++ b/sketch-mode.el
@@ -40,6 +40,8 @@
;; DONE(-partially) add functionality to modify objects (see
`add-object-modify-feature' branch)
+;; TODO add functionality to customize markers
+
;; TODO enable defining global svg settings (object properties)
;; TODO maybe transform relevant transient argument (strings) to variables
@@ -77,11 +79,13 @@
:group 'Applications)
(defcustom sketch-im-x-offset 7
- "Default grid line separation distance (integer)."
+ "Horizontal offset in pixels of image position within frame.
+Set this value to correct for cursor 'bias'."
:type 'integer)
(defcustom sketch-im-y-offset 1
- "Default grid line separation distance (integer)."
+ "Vertical offset in pixels of image position within frame.
+Set this value to correct for cursor 'bias'."
:type 'integer)
(defcustom sketch-default-image-size '(800 . 600)
@@ -705,8 +709,10 @@ values"
(object-type (transient-arg-value "--object=" args))
(command-and-coords (pcase object-type
("line" (list 'svg-line
- (car start-coords) (cdr
start-coords) (car end-coords) (cdr end-coords)))
- ("rectangle" `(svg-rectangle
,@(sketch--rectangle-coords start-coords end-coords)))
+ (car start-coords) (cdr
start-coords)
+ (car end-coords) (cdr
end-coords)))
+ ("rectangle" `(svg-rectangle
+ ,@(sketch--rectangle-coords
start-coords end-coords)))
("circle" (list 'svg-circle
(car start-coords) (cdr
start-coords)
(sketch--circle-radius
start-coords end-coords)))
@@ -738,17 +744,19 @@ values"
(sketch sketch-root))
(set-window-dedicated-p
(get-buffer-window
- (pop-to-buffer buffer '(display-buffer-in-side-window . ((side .
right) (window-width . 70)))))
+ (pop-to-buffer buffer
+ '(display-buffer-in-side-window . ((side . right)
(window-width . 70)))))
t)
(erase-buffer)
- (pp sketch buffer))
+ (with-current-buffer buffer
+ (dom-pp sketch)))
(emacs-lisp-mode)
(sketch-lisp-mode)))
(transient-define-suffix sketch-copy-definition ()
(interactive)
(with-temp-buffer
- (pp sketch-svg (current-buffer))
+ (dom-pp sketch-svg)
(kill-new (buffer-string)))
(message "SVG definition added to kill-ring"))
- [elpa] externals/sketch-mode 0f870a1 20/38: Implement load from definition buffer & modify object functionality, (continued)
- [elpa] externals/sketch-mode 0f870a1 20/38: Implement load from definition buffer & modify object functionality, ELPA Syncer, 2021/09/15
- [elpa] externals/sketch-mode fadc554 21/38: Add xml processing instruction and DOCTYPE element (see #4), ELPA Syncer, 2021/09/15
- [elpa] externals/sketch-mode 414ec7c 15/38: Don't print coordinates to message buffer, ELPA Syncer, 2021/09/15
- [elpa] externals/sketch-mode 87a0808 16/38: Fix file header, ELPA Syncer, 2021/09/15
- [elpa] externals/sketch-mode 7583fcb 17/38: Fix variable names and implement svg lisp togglable side window, ELPA Syncer, 2021/09/15
- [elpa] externals/sketch-mode 8b63796 19/38: First try: implement update for both type side-winows, ELPA Syncer, 2021/09/15
- [elpa] externals/sketch-mode ec35bb4 23/38: Add xml processing instruction and DOCTYPE element (see #4), ELPA Syncer, 2021/09/15
- [elpa] externals/sketch-mode 846f4a0 24/38: Implement layers (incl. reformat labels), ELPA Syncer, 2021/09/15
- [elpa] externals/sketch-mode 6433b20 30/38: Add circle/ellipse labels, ELPA Syncer, 2021/09/15
- [elpa] externals/sketch-mode 406f51d 25/38: Fix undo-redo (i.e. switch to use undo-tree-mode), ELPA Syncer, 2021/09/15
- [elpa] externals/sketch-mode 9eb86b8 31/38: Add comments and cleanup,
ELPA Syncer <=
- [elpa] externals/sketch-mode aaac04d 38/38: Fix indentation (simply auto indent complete file), ELPA Syncer, 2021/09/15
- [elpa] externals/sketch-mode 0005a3a 27/38: Add sketch-mapcons function (refactor sketch--circle-radius), ELPA Syncer, 2021/09/15
- [elpa] externals/sketch-mode bebba7b 37/38: Fix add layer mechanism, ELPA Syncer, 2021/09/15
- [elpa] externals/sketch-mode 19202c7 32/38: Implement first step for snippets/import, ELPA Syncer, 2021/09/15