-
Notifications
You must be signed in to change notification settings - Fork 0
/
SVGRect.cljs
74 lines (57 loc) · 1.83 KB
/
SVGRect.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
(ns web.svg.SVGRect
"The SVGRect represents a rectangle. Rectangles consist of an
and y coordinate pair identifying a minimum x value, a minimum
value, and a width and height, which are constrained to be non-negative."
(:refer-clojure :exclude []))
(defn x
"Property.
The exact effect of this coordinate depends on each element.
the attribute is not specified, the effect is as if a value of
were specified."
[this]
(-> this (.-x)))
(defn set-x!
"Property.
The exact effect of this coordinate depends on each element.
the attribute is not specified, the effect is as if a value of
were specified."
[this val]
(aset this "x" val))
(defn y
"Property.
The exact effect of this coordinate depends on each element.If
attribute is not specified, the effect is as if a value of 0
specified."
[this]
(-> this (.-y)))
(defn set-y!
"Property.
The exact effect of this coordinate depends on each element.If
attribute is not specified, the effect is as if a value of 0
specified."
[this val]
(aset this "y" val))
(defn width
"Property.
This represents the width of the rectangle.A value that is negative
to an error. A value of zero disables rendering of the element"
[this]
(-> this (.-width)))
(defn set-width!
"Property.
This represents the width of the rectangle.A value that is negative
to an error. A value of zero disables rendering of the element"
[this val]
(aset this "width" val))
(defn height
"Property.
This represents the height of the rectangle.A value that is negative
to an error.A value of zero disables rendering of the element."
[this]
(-> this (.-height)))
(defn set-height!
"Property.
This represents the height of the rectangle.A value that is negative
to an error.A value of zero disables rendering of the element."
[this val]
(aset this "height" val))