File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
## [ 0.8.0] - 2022-xx-xx
8
8
### Added
9
9
- impl ` Clone ` , ` Serialize ` and ` PartialEq ` for ` Plot `
10
+ - impl ` Clone ` +/- ` Copy ` for color types
10
11
- Support for [ configuration options] ( https://plotly.com/javascript/configuration-options/ )
11
12
- Support for layout templates and pre-defined themes
12
13
- Support for WASM environments
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ pub trait Color {
25
25
fn to_color ( & self ) -> ColorWrapper ;
26
26
}
27
27
28
- #[ derive( Debug ) ]
28
+ #[ derive( Debug , Clone , Copy ) ]
29
29
pub struct Rgb {
30
30
r : u8 ,
31
31
g : u8 ,
@@ -44,7 +44,7 @@ impl Color for Rgb {
44
44
}
45
45
}
46
46
47
- #[ derive( Debug ) ]
47
+ #[ derive( Debug , Clone , Copy ) ]
48
48
pub struct Rgba {
49
49
r : u8 ,
50
50
g : u8 ,
@@ -68,7 +68,7 @@ impl Color for Rgba {
68
68
}
69
69
70
70
// https://www.w3.org/TR/css-color-3/#svg-color
71
- #[ derive( Debug ) ]
71
+ #[ derive( Debug , Clone , Copy ) ]
72
72
pub enum NamedColor {
73
73
AliceBlue ,
74
74
AntiqueWhite ,
You can’t perform that action at this time.
0 commit comments