| 1 | // Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing |
| 2 | |
| 3 | exports[`ReactARTComponents should generate a <Shape> where top radius is 0 if the sum of the top radius is greater than width 1`] = ` |
| 4 | <Shape |
| 5 | d={ |
| 6 | { |
| 7 | "_pivotX": 0, |
| 8 | "_pivotY": 0, |
| 9 | "path": [ |
| 10 | [Function], |
| 11 | [Function], |
| 12 | [Function], |
| 13 | [Function], |
| 14 | [Function], |
| 15 | ], |
| 16 | "penDownX": 0, |
| 17 | "penDownY": 0, |
| 18 | "penX": 0, |
| 19 | "penY": 0, |
| 20 | } |
| 21 | } |
| 22 | height={40} |
| 23 | radiusTopLeft={26} |
| 24 | radiusTopRight={25} |
| 25 | width={50} |
| 26 | /> |
| 27 | `; |
| 28 | |
| 29 | exports[`ReactARTComponents should generate a <Shape> with a radius property of 0 when bottom left radius prop is negative 1`] = ` |
| 30 | <Shape |
| 31 | d={ |
| 32 | { |
| 33 | "_pivotX": 0, |
| 34 | "_pivotY": 0, |
| 35 | "path": [ |
| 36 | [Function], |
| 37 | [Function], |
| 38 | [Function], |
| 39 | [Function], |
| 40 | [Function], |
| 41 | ], |
| 42 | "penDownX": 0, |
| 43 | "penDownY": 0, |
| 44 | "penX": 0, |
| 45 | "penY": 0, |
| 46 | } |
| 47 | } |
| 48 | height={50} |
| 49 | radiusBottomLeft={-25} |
| 50 | width={50} |
| 51 | /> |
| 52 | `; |
| 53 | |
| 54 | exports[`ReactARTComponents should generate a <Shape> with a radius property of 0 when bottom right radius prop is negative 1`] = ` |
| 55 | <Shape |
| 56 | d={ |
| 57 | { |
| 58 | "_pivotX": 0, |
| 59 | "_pivotY": 0, |
| 60 | "path": [ |
| 61 | [Function], |
| 62 | [Function], |
| 63 | [Function], |
| 64 | [Function], |
| 65 | [Function], |
| 66 | ], |
| 67 | "penDownX": 0, |
| 68 | "penDownY": 0, |
| 69 | "penX": 0, |
| 70 | "penY": 0, |
| 71 | } |
| 72 | } |
| 73 | height={50} |
| 74 | radiusBottomRight={-30} |
| 75 | width={50} |
| 76 | /> |
| 77 | `; |
| 78 | |
| 79 | exports[`ReactARTComponents should generate a <Shape> with a radius property of 0 when top left radius prop is negative 1`] = ` |
| 80 | <Shape |
| 81 | d={ |
| 82 | { |
| 83 | "_pivotX": 0, |
| 84 | "_pivotY": 0, |
| 85 | "path": [ |
| 86 | [Function], |
| 87 | [Function], |
| 88 | [Function], |
| 89 | [Function], |
| 90 | [Function], |
| 91 | ], |
| 92 | "penDownX": 0, |
| 93 | "penDownY": 0, |
| 94 | "penX": 0, |
| 95 | "penY": 0, |
| 96 | } |
| 97 | } |
| 98 | height={50} |
| 99 | radiusTopLeft={-25} |
| 100 | width={50} |
| 101 | /> |
| 102 | `; |
| 103 | |
| 104 | exports[`ReactARTComponents should generate a <Shape> with a radius property of 0 when top right radius prop is negative 1`] = ` |
| 105 | <Shape |
| 106 | d={ |
| 107 | { |
| 108 | "_pivotX": 0, |
| 109 | "_pivotY": 0, |
| 110 | "path": [ |
| 111 | [Function], |
| 112 | [Function], |
| 113 | [Function], |
| 114 | [Function], |
| 115 | [Function], |
| 116 | ], |
| 117 | "penDownX": 0, |
| 118 | "penDownY": 0, |
| 119 | "penX": 0, |
| 120 | "penY": 0, |
| 121 | } |
| 122 | } |
| 123 | height={50} |
| 124 | radiusTopRight={-25} |
| 125 | width={50} |
| 126 | /> |
| 127 | `; |
| 128 | |
| 129 | exports[`ReactARTComponents should generate a <Shape> with positive height when height prop is negative 1`] = ` |
| 130 | <Shape |
| 131 | d={ |
| 132 | { |
| 133 | "_pivotX": 0, |
| 134 | "_pivotY": -50, |
| 135 | "path": [ |
| 136 | [Function], |
| 137 | [Function], |
| 138 | [Function], |
| 139 | [Function], |
| 140 | [Function], |
| 141 | [Function], |
| 142 | ], |
| 143 | "penDownX": 0, |
| 144 | "penDownY": -50, |
| 145 | "penX": 0, |
| 146 | "penY": -50, |
| 147 | } |
| 148 | } |
| 149 | height={-50} |
| 150 | width={50} |
| 151 | /> |
| 152 | `; |
| 153 | |
| 154 | exports[`ReactARTComponents should generate a <Shape> with positive width when width prop is negative 1`] = ` |
| 155 | <Shape |
| 156 | d={ |
| 157 | { |
| 158 | "_pivotX": -50, |
| 159 | "_pivotY": 0, |
| 160 | "path": [ |
| 161 | [Function], |
| 162 | [Function], |
| 163 | [Function], |
| 164 | [Function], |
| 165 | [Function], |
| 166 | [Function], |
| 167 | ], |
| 168 | "penDownX": -50, |
| 169 | "penDownY": 0, |
| 170 | "penX": -50, |
| 171 | "penY": 0, |
| 172 | } |
| 173 | } |
| 174 | height={50} |
| 175 | width={-50} |
| 176 | /> |
| 177 | `; |
| 178 | |
| 179 | exports[`ReactARTComponents should generate a <Shape> with props for drawing the Circle 1`] = ` |
| 180 | <Shape |
| 181 | d={ |
| 182 | { |
| 183 | "_pivotX": 0, |
| 184 | "_pivotY": -10, |
| 185 | "path": [ |
| 186 | [Function], |
| 187 | [Function], |
| 188 | [Function], |
| 189 | [Function], |
| 190 | ], |
| 191 | "penDownX": null, |
| 192 | "penDownY": -10, |
| 193 | "penX": 0, |
| 194 | "penY": -10, |
| 195 | } |
| 196 | } |
| 197 | fill="blue" |
| 198 | radius={10} |
| 199 | stroke="green" |
| 200 | strokeWidth={3} |
| 201 | /> |
| 202 | `; |
| 203 | |
| 204 | exports[`ReactARTComponents should generate a <Shape> with props for drawing the Rectangle 1`] = ` |
| 205 | <Shape |
| 206 | d={ |
| 207 | { |
| 208 | "_pivotX": 0, |
| 209 | "_pivotY": 0, |
| 210 | "path": [ |
| 211 | [Function], |
| 212 | [Function], |
| 213 | [Function], |
| 214 | [Function], |
| 215 | [Function], |
| 216 | ], |
| 217 | "penDownX": 0, |
| 218 | "penDownY": 0, |
| 219 | "penX": 0, |
| 220 | "penY": 0, |
| 221 | } |
| 222 | } |
| 223 | fill="blue" |
| 224 | height={50} |
| 225 | stroke="green" |
| 226 | width={50} |
| 227 | /> |
| 228 | `; |
| 229 | |
| 230 | exports[`ReactARTComponents should generate a <Shape> with props for drawing the Wedge 1`] = ` |
| 231 | <Shape |
| 232 | d={ |
| 233 | { |
| 234 | "_pivotX": 0, |
| 235 | "_pivotY": 50, |
| 236 | "path": [ |
| 237 | [Function], |
| 238 | [Function], |
| 239 | [Function], |
| 240 | [Function], |
| 241 | ], |
| 242 | "penDownX": null, |
| 243 | "penDownY": 50, |
| 244 | "penX": 0, |
| 245 | "penY": 50, |
| 246 | } |
| 247 | } |
| 248 | endAngle={360} |
| 249 | fill="blue" |
| 250 | outerRadius={50} |
| 251 | startAngle={0} |
| 252 | /> |
| 253 | `; |