]> gitweb.factorcode.org Git - factor.git/commitdiff
ui.gadgets.charts.axes: initial import
authorAlexander Iljin <ajsoft@yandex.ru>
Wed, 1 Feb 2017 21:54:09 +0000 (00:54 +0300)
committerJohn Benediktsson <mrjbq7@gmail.com>
Mon, 17 Apr 2017 20:54:51 +0000 (13:54 -0700)
extra/ui/gadgets/charts/axes/authors.txt [new file with mode: 0644]
extra/ui/gadgets/charts/axes/axes.factor [new file with mode: 0644]

diff --git a/extra/ui/gadgets/charts/axes/authors.txt b/extra/ui/gadgets/charts/axes/authors.txt
new file mode 100644 (file)
index 0000000..8e1955f
--- /dev/null
@@ -0,0 +1 @@
+Alexander Ilin
diff --git a/extra/ui/gadgets/charts/axes/axes.factor b/extra/ui/gadgets/charts/axes/axes.factor
new file mode 100644 (file)
index 0000000..34248b9
--- /dev/null
@@ -0,0 +1,11 @@
+! Copyright (C) 2017 Alexander Ilin.
+! See http://factorcode.org/license.txt for BSD license.
+USING: accessors kernel locals ui.gadgets ui.gadgets.charts
+ui.render ;
+IN: ui.gadgets.charts.axes
+
+TUPLE: axis < gadget vertical? ;
+
+M: axis draw-gadget*
+    dup parent>> dup chart? [| axis chart |
+    ] [ 2drop ] if ;