@@ -44,15 +44,15 @@ extension DOM {
4444
4545 class Element { }
4646
47- class GraphicsElement : Element , ElementAttributes {
47+ class GraphicsElement : Element , ElementAttributes , @ unchecked Sendable {
4848 var id : String ?
4949 var `class` : String ?
5050
5151 var attributes = PresentationAttributes ( )
5252 var style = PresentationAttributes ( )
5353 }
5454
55- final class Line : GraphicsElement {
55+ final class Line : GraphicsElement , @ unchecked Sendable {
5656 var x1 : Coordinate
5757 var y1 : Coordinate
5858 var x2 : Coordinate
@@ -67,7 +67,7 @@ extension DOM {
6767 }
6868 }
6969
70- final class Circle : GraphicsElement {
70+ final class Circle : GraphicsElement , @ unchecked Sendable {
7171 var cx : Coordinate ?
7272 var cy : Coordinate ?
7373 var r : Coordinate
@@ -80,7 +80,7 @@ extension DOM {
8080 }
8181 }
8282
83- final class Ellipse : GraphicsElement {
83+ final class Ellipse : GraphicsElement , @ unchecked Sendable {
8484 var cx : Coordinate ?
8585 var cy : Coordinate ?
8686 var rx : Coordinate
@@ -95,7 +95,7 @@ extension DOM {
9595 }
9696 }
9797
98- final class Rect : GraphicsElement {
98+ final class Rect : GraphicsElement , @ unchecked Sendable {
9999 var x : Coordinate ?
100100 var y : Coordinate ?
101101 var width : Coordinate
@@ -113,7 +113,7 @@ extension DOM {
113113 }
114114 }
115115
116- final class Polyline : GraphicsElement {
116+ final class Polyline : GraphicsElement , @ unchecked Sendable {
117117 var points : [ Point ]
118118
119119 init ( points: [ Point ] ) {
@@ -122,7 +122,7 @@ extension DOM {
122122 }
123123 }
124124
125- final class Polygon : GraphicsElement {
125+ final class Polygon : GraphicsElement , @ unchecked Sendable {
126126 var points : [ Point ]
127127
128128 init ( points: [ Point ] ) {
@@ -131,7 +131,7 @@ extension DOM {
131131 }
132132 }
133133
134- final class Group : GraphicsElement , ContainerElement {
134+ final class Group : GraphicsElement , ContainerElement , @ unchecked Sendable {
135135 var childElements = [ GraphicsElement] ( )
136136 }
137137}
0 commit comments