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
pub use sauron_vdom::builder::attr;
use sauron_vdom::builder::Attribute;
use sauron_vdom::Value;

// svg attributes
declare_attributes! {
    x;
    y;
    cx;
    cy;
    r;
    x1;
    y1;
    x2;
    y2;
    xmlns;
    offset;
    stroke;
    fill;
    transform;
    transition;
}
// attributes that has dash
declare_attributes! {

    #[allow(non_snake_case)]
    strokeWidth => "stroke-width";

    #[allow(non_snake_case)]
    stopColor => "stop-color";

    #[allow(non_snake_case)]
    stopOpacity => "stop-opacity";

    #[allow(non_snake_case)]
    strokeLinecap => "stroke-linecap";

    #[allow(non_snake_case)]
    strokeDasharray => "stroke-dasharray";

    #[allow(non_snake_case)]
    strokeDashoffset => "stroke-dashoffset";

    #[allow(non_snake_case)]
    transformOrigin => "transform-origin";

    #[allow(non_snake_case)]
    strokeOpacity => "stroke-opacity";
}