@cutting/svg 4.42.0 → 4.43.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/.turbo/turbo-build.log +21 -22
  2. package/CHANGELOG.md +13 -411
  3. package/cutting-svg-4.43.2.tgz +0 -0
  4. package/dist/cjs/svg.cjs.development.js +61 -71
  5. package/dist/cjs/svg.cjs.development.js.map +1 -1
  6. package/dist/cjs/svg.cjs.production.min.js +1 -1
  7. package/dist/cjs/svg.cjs.production.min.js.map +1 -1
  8. package/dist/esm/index.js +1 -1
  9. package/dist/esm/index.js.map +1 -1
  10. package/dist/umd/index.js +1 -1
  11. package/dist/umd/index.js.map +1 -1
  12. package/package.json +17 -18
  13. package/.coverage/clover.xml +0 -81
  14. package/.coverage/coverage-final.json +0 -5
  15. package/.coverage/lcov-report/Group/Group.tsx.html +0 -193
  16. package/.coverage/lcov-report/Group/index.html +0 -116
  17. package/.coverage/lcov-report/Line/Line.tsx.html +0 -196
  18. package/.coverage/lcov-report/Line/index.html +0 -116
  19. package/.coverage/lcov-report/ParentsizeSVG/ParentsizeSVG.tsx.html +0 -262
  20. package/.coverage/lcov-report/ParentsizeSVG/index.html +0 -116
  21. package/.coverage/lcov-report/ResponsiveSVG/ResponsiveSVG.tsx.html +0 -244
  22. package/.coverage/lcov-report/ResponsiveSVG/index.html +0 -116
  23. package/.coverage/lcov-report/base.css +0 -224
  24. package/.coverage/lcov-report/block-navigation.js +0 -87
  25. package/.coverage/lcov-report/favicon.png +0 -0
  26. package/.coverage/lcov-report/index.html +0 -161
  27. package/.coverage/lcov-report/prettify.css +0 -1
  28. package/.coverage/lcov-report/prettify.js +0 -2
  29. package/.coverage/lcov-report/sort-arrow-sprite.png +0 -0
  30. package/.coverage/lcov-report/sorter.js +0 -196
  31. package/.coverage/lcov.info +0 -130
  32. package/.turbo/turbo-lint.log +0 -5
  33. package/.turbo/turbo-test.log +0 -34
@@ -1,22 +1,21 @@
1
- @cutting/svg:build: cache hit, replaying output 4f5e69d225bd4526
2
- @cutting/svg:build: 
3
- @cutting/svg:build: > @cutting/svg@4.41.3 build /Users/paulcowan/projects/cuttingedge/packages/svg
4
- @cutting/svg:build: > NODE_ENV=production devtools rollup
5
- @cutting/svg:build: 
6
- @cutting/svg:build:  DEBUG using tsconfig.dist.json
7
- @cutting/svg:build:  WARNING emptying dist /Users/paulcowan/projects/cuttingedge/packages/svg/dist
8
- @cutting/svg:build:  START using input file index.ts for @cutting/svg
9
- @cutting/svg:build: 
10
- @cutting/svg:build:  INFO Generating @cutting/svg bundle.
11
- @cutting/svg:build:  INFO writing svg.cjs.development.js for @cutting/svg
12
- @cutting/svg:build:  INFO writing svg.cjs.production.min.js for @cutting/svg
13
- @cutting/svg:build:  INFO writing index.js for @cutting/svg
14
- @cutting/svg:build:  INFO writing index.js for @cutting/svg
15
- @cutting/svg:build: No name was provided for external module 'react/jsx-runtime' in output.globals – guessing 'jsxRuntime'
16
- @cutting/svg:build: No name was provided for external module '@babel/runtime/helpers/slicedToArray' in output.globals – guessing '_slicedToArray'
17
- @cutting/svg:build: No name was provided for external module '@babel/runtime/helpers/objectSpread2' in output.globals – guessing '_objectSpread'
18
- @cutting/svg:build: No name was provided for external module '@babel/runtime/helpers/objectWithoutProperties' in output.globals – guessing '_objectWithoutProperties'
19
- @cutting/svg:build: No name was provided for external module '@cutting/use-get-parent-size' in output.globals – guessing 'useGetParentSize'
20
- @cutting/svg:build: No name was provided for external module 'classnames' in output.globals – guessing 'cx'
21
- @cutting/svg:build:  DONE finished building
22
- @cutting/svg:build: 
1
+ @cutting/svg:build: cache hit, replaying output 44131cf86c0430f3
2
+ @cutting/svg:build:
3
+ @cutting/svg:build: > @cutting/svg@4.43.2 build /home/runner/work/cuttingedge/cuttingedge/packages/svg
4
+ @cutting/svg:build: > NODE_ENV=production devtools rollup
5
+ @cutting/svg:build:
6
+ @cutting/svg:build: DEBUG using tsconfig.dist.json
7
+ @cutting/svg:build: WARNING emptying dist /home/runner/work/cuttingedge/cuttingedge/packages/svg/dist
8
+ @cutting/svg:build: START using input file index.ts for @cutting/svg
9
+ @cutting/svg:build:
10
+ @cutting/svg:build: INFO Generating @cutting/svg bundle.
11
+ @cutting/svg:build: INFO writing svg.cjs.development.js for @cutting/svg
12
+ @cutting/svg:build: INFO writing svg.cjs.production.min.js for @cutting/svg
13
+ @cutting/svg:build: INFO writing index.js for @cutting/svg
14
+ @cutting/svg:build: INFO writing index.js for @cutting/svg
15
+ @cutting/svg:build: No name was provided for external module 'react/jsx-runtime' in output.globals – guessing 'jsxRuntime'
16
+ @cutting/svg:build: No name was provided for external module '@babel/runtime/helpers/objectSpread2' in output.globals – guessing '_objectSpread'
17
+ @cutting/svg:build: No name was provided for external module '@babel/runtime/helpers/objectWithoutProperties' in output.globals – guessing '_objectWithoutProperties'
18
+ @cutting/svg:build: No name was provided for external module '@cutting/use-get-parent-size' in output.globals – guessing 'useGetParentSize'
19
+ @cutting/svg:build: No name was provided for external module 'classnames' in output.globals – guessing 'cx'
20
+ @cutting/svg:build: DONE finished building
21
+ @cutting/svg:build:
package/CHANGELOG.md CHANGED
@@ -1,427 +1,29 @@
1
1
  # @cutting/svg
2
2
 
3
- ## 4.42.0
4
-
5
- ### Minor Changes
6
-
7
- - 899bd8abb: help
8
-
9
- ### Patch Changes
10
-
11
- - Updated dependencies [899bd8abb]
12
- - @cutting/use-get-parent-size@1.16.0
13
- - @cutting/util@4.44.0
14
-
15
- ## 4.41.3
3
+ ## 4.43.2
16
4
 
17
5
  ### Patch Changes
18
6
 
19
- - Updated dependencies [244b74e5]
20
- - @cutting/util@4.43.0
21
- - @cutting/use-get-parent-size@1.15.3
22
-
23
- ## 4.41.2
24
-
25
- ### Patch Changes
26
-
27
- - Updated dependencies [b7c32b0d]
28
- - @cutting/util@4.42.0
29
- - @cutting/use-get-parent-size@1.15.2
30
-
31
- ## 4.41.1
32
-
33
- ### Patch Changes
34
-
35
- - Updated dependencies [bdc75fe3]
36
- - @cutting/util@4.41.0
37
- - @cutting/use-get-parent-size@1.15.1
38
-
39
- ## 4.41.0
40
-
41
- ### Minor Changes
42
-
43
- - d542ad8f: version
44
-
45
- ### Patch Changes
46
-
47
- - Updated dependencies [d542ad8f]
48
- - @cutting/use-get-parent-size@1.15.0
49
- - @cutting/util@4.40.0
50
-
51
- ## 4.40.1
52
-
53
- ### Patch Changes
54
-
55
- - Updated dependencies [22996a38]
56
- - @cutting/use-get-parent-size@1.14.1
57
-
58
- ## 4.40.0
59
-
60
- ### Minor Changes
61
-
62
- - is not well
63
-
64
- ### Patch Changes
65
-
66
- - Updated dependencies
67
- - @cutting/use-get-parent-size@1.14.0
68
- - @cutting/util@4.39.0
69
-
70
- ## 4.39.1
71
-
72
- ### Patch Changes
73
-
74
- - Updated dependencies [92d64693]
75
- - @cutting/util@4.38.1
76
- - @cutting/use-get-parent-size@1.13.1
77
-
78
- ## 4.39.0
79
-
80
- ### Minor Changes
81
-
82
- - aaa
83
-
84
- ### Patch Changes
85
-
86
- - Updated dependencies
87
- - @cutting/use-get-parent-size@1.13.0
88
- - @cutting/util@4.38.0
89
-
90
- ## 4.38.0
91
-
92
- ### Minor Changes
93
-
94
- - e08c3939: again
95
-
96
- ### Patch Changes
97
-
98
- - Updated dependencies [e08c3939]
99
- - @cutting/use-get-parent-size@1.12.0
100
- - @cutting/util@4.37.0
101
-
102
- ## 4.37.2
103
-
104
- ### Patch Changes
105
-
106
- - Updated dependencies [578d0a1a]
107
- - @cutting/util@4.36.0
108
- - @cutting/use-get-parent-size@1.11.2
109
-
110
- ## 4.37.1
111
-
112
- ### Patch Changes
113
-
114
- - dfb5f7bd: prefer workspace packages
115
- - Updated dependencies [dfb5f7bd]
116
- - @cutting/use-get-parent-size@1.11.1
117
- - @cutting/util@4.35.0
118
-
119
- ## 4.37.0
120
-
121
- ### Minor Changes
122
-
123
- - 72d1169e: run changesets
124
-
125
- ### Patch Changes
126
-
127
- - Updated dependencies [72d1169e]
128
- - @cutting/use-get-parent-size@1.11.0
129
- - @cutting/util@4.34.0
130
-
131
- ## 4.36.0
132
-
133
- ### Minor Changes
134
-
135
- - 11095849: component-library fixes
136
-
137
- ### Patch Changes
138
-
139
- - Updated dependencies [11095849]
140
- - @cutting/use-get-parent-size@1.10.0
141
- - @cutting/util@4.33.0
142
-
143
- ## 4.35.0
144
-
145
- ### Minor Changes
146
-
147
- - fe4c8c00: run pnpm -r update
148
-
149
- ### Patch Changes
150
-
151
- - Updated dependencies [fe4c8c00]
152
- - @cutting/use-get-parent-size@1.9.0
153
- - @cutting/util@4.32.0
154
-
155
- ## 4.34.1
156
-
157
- ### Patch Changes
158
-
159
- - e0188472: run changesets
160
- - Updated dependencies [e0188472]
161
- - @cutting/use-get-parent-size@1.8.1
162
- - @cutting/util@4.31.2
163
-
164
- ## 4.34.0
165
-
166
- ### Minor Changes
167
-
168
- - 8c139b38: rename elementRef parentRef
169
-
170
- ### Patch Changes
171
-
172
- - Updated dependencies [8c139b38]
173
- - @cutting/use-get-parent-size@1.8.0
174
-
175
- ## 4.33.0
176
-
177
- ### Minor Changes
178
-
179
- - 96855ac9: rename elementRef parentRef
180
-
181
- ### Patch Changes
182
-
183
- - Updated dependencies [96855ac9]
184
- - @cutting/use-get-parent-size@1.7.0
185
-
186
- ## 4.32.1
187
-
188
- ### Patch Changes
189
-
190
- - 0f3d2133: changesets fixes
191
- - Updated dependencies [0f3d2133]
192
- - @cutting/use-get-parent-size@1.6.11
193
- - @cutting/util@4.31.1
194
-
195
- ## 4.32.0
196
-
197
- ### Minor Changes
198
-
199
- - 3413251c: build in production
200
-
201
- ### Patch Changes
202
-
203
- - Updated dependencies [3413251c]
204
- - @cutting/util@4.31.0
205
- - @cutting/use-get-parent-size@1.6.10
206
-
207
- ## 4.31.9
208
-
209
- ### Patch Changes
210
-
211
- - Updated dependencies [e6a06fa0]
212
- - @cutting/util@4.30.0
213
- - @cutting/use-get-parent-size@1.6.9
214
-
215
- ## 4.31.8
216
-
217
- ### Patch Changes
218
-
219
- - 128579ea: fix changesets
220
- - Updated dependencies [128579ea]
221
- - @cutting/use-get-parent-size@1.6.8
222
- - @cutting/util@4.29.8
223
-
224
- ## 4.31.7
225
-
226
- ### Patch Changes
227
-
228
- - 565b42ff: yes
229
- - Updated dependencies [565b42ff]
230
- - @cutting/use-get-parent-size@1.6.7
231
- - @cutting/util@4.29.7
232
-
233
- ## 4.31.6
234
-
235
- ### Patch Changes
236
-
237
- - 0bdf3e9d: yarn.lock
238
- - 3bfd4f40: remove ignored packages
239
- - Updated dependencies [0bdf3e9d]
240
- - Updated dependencies [3bfd4f40]
241
- - @cutting/use-get-parent-size@1.6.6
242
- - @cutting/util@4.29.6
243
-
244
- ## 4.31.5
245
-
246
- ### Patch Changes
247
-
248
- - Updated dependencies [fe3eba28]
249
- - @cutting/util@4.29.5
250
- - @cutting/use-get-parent-size@1.6.5
251
-
252
- ## 4.31.4
253
-
254
- ### Patch Changes
255
-
256
- - 7262245f: consolidate versioning changes
257
- - Updated dependencies [7262245f]
258
- - @cutting/use-get-parent-size@1.6.4
259
- - @cutting/util@4.29.4
260
-
261
- ## 4.31.3
262
-
263
- ### Patch Changes
264
-
265
- - e8934df2: Add <Aliert />
266
- - 7262245f: consolidate versioning changes
267
- - Updated dependencies [e8934df2]
268
- - Updated dependencies [7262245f]
269
- - @cutting/use-get-parent-size@1.6.3
270
- - @cutting/util@4.29.3
271
-
272
- ## 4.31.2
273
-
274
- ### Patch Changes
275
-
276
- - 68080fa3: more
277
- - Updated dependencies [68080fa3]
278
- - @cutting/use-get-parent-size@1.6.2
279
- - @cutting/util@4.29.2
280
-
281
- ## 4.31.1
282
-
283
- ### Patch Changes
284
-
285
- - 8a44b1b8: add @cutting/vercel-wait-for-preview-url
286
- - Updated dependencies [8a44b1b8]
287
- - @cutting/use-get-parent-size@1.6.1
288
- - @cutting/util@4.29.1
289
-
290
- ## 4.31.0
291
-
292
- ### Minor Changes
293
-
294
- - 7edd9a89: upgrade to typescript 4.5
295
-
296
- ### Patch Changes
297
-
298
- - Updated dependencies [7edd9a89]
299
- - @cutting/use-get-parent-size@1.6.0
300
- - @cutting/util@4.29.0
301
-
302
- ## 4.30.1
303
-
304
- ### Patch Changes
305
-
306
- - Updated dependencies
307
- - @cutting/util@4.28.2
308
- - @cutting/use-get-parent-size@1.5.2
309
-
310
- ## 4.30.0
311
-
312
- ### Minor Changes
313
-
314
- - Make innerRef Ref
315
-
316
- ## 4.29.1
317
-
318
- ### Patch Changes
319
-
320
- - publish onBlur for component library
321
- - Updated dependencies
322
- - @cutting/use-get-parent-size@1.5.1
323
- - @cutting/util@4.28.1
324
-
325
- ## 4.29.0
326
-
327
- ### Minor Changes
328
-
329
- - clear vulnearabilities and upgrade effection
330
-
331
- ### Patch Changes
332
-
333
- - Updated dependencies
334
- - @cutting/use-get-parent-size@1.5.0
335
- - @cutting/util@4.28.0
336
-
337
- ## 4.28.2
338
-
339
- ### Patch Changes
340
-
341
- - eslint peerDependencies
342
- - Updated dependencies
343
- - @cutting/use-get-parent-size@1.4.2
344
- - @cutting/util@4.27.2
345
-
346
- ## 4.28.1
347
-
348
- ### Patch Changes
349
-
350
- - upgrade to webpack 5
351
- - Updated dependencies
352
- - @cutting/use-get-parent-size@1.4.1
353
- - @cutting/util@4.27.1
354
-
355
- ## 4.28.0
356
-
357
- ### Minor Changes
358
-
359
- - upgrade to new exports
360
-
361
- ### Patch Changes
362
-
363
- - Updated dependencies
364
- - @cutting/use-get-parent-size@1.4.0
365
- - @cutting/util@4.27.0
366
-
367
- ## 4.27.1
368
-
369
- ### Patch Changes
370
-
371
- - Updated dependencies [96c1f3d4fabbdad9315c8325a5951a9bcca2b0d8]
372
- - @cutting/util@4.26.0
373
- - @cutting/use-get-parent-size@1.3.1
374
-
375
- ## 4.26.1
376
-
377
- ### Patch Changes
378
-
379
- - fix postcss vulnerabilities
380
- - Updated dependencies
381
- - @cutting/use-get-parent-size@1.2.1
382
- - @cutting/util@4.24.2
383
-
384
- ## 4.26.0
385
-
386
- ### Minor Changes
387
-
388
- - use-parent-get-size
389
-
390
- ### Patch Changes
391
-
392
- - Updated dependencies
393
- - @cutting/use-get-parent-size@1.2.0
394
-
395
- ## 4.25.1
396
-
397
- ### Patch Changes
398
-
399
- - Updated dependencies
400
- - @cutting/use-get-parent-size@1.1.0
401
-
402
- ## 4.25.0
403
-
404
- ### Minor Changes
405
-
406
- - Add Point type
7
+ - Updated dependencies [1edcec38]
8
+ - @cutting/util@4.48.0
9
+ - @cutting/use-get-parent-size@1.17.2
407
10
 
408
- ## 4.24.1
11
+ ## 4.43.1
409
12
 
410
13
  ### Patch Changes
411
14
 
412
- - Fix babel issues and include a umd build for browser
413
- - Updated dependencies
414
- - @cutting/hooks@4.24.2
415
- - @cutting/util@4.24.1
15
+ - Updated dependencies [20164c54]
16
+ - @cutting/util@4.47.0
17
+ - @cutting/use-get-parent-size@1.17.1
416
18
 
417
- ## 4.24.0
19
+ ## 4.43.0
418
20
 
419
21
  ### Minor Changes
420
22
 
421
- - Add nested Mathax svg support
23
+ - d98dd7d1: use browserlistrc and remove babel targets
422
24
 
423
25
  ### Patch Changes
424
26
 
425
- - Updated dependencies
426
- - @cutting/util@4.24.0
427
- - @cutting/hooks@4.24.1
27
+ - Updated dependencies [d98dd7d1]
28
+ - @cutting/use-get-parent-size@1.17.0
29
+ - @cutting/util@4.46.0
Binary file
@@ -3,7 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
- var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
7
6
  var _objectSpread = require('@babel/runtime/helpers/objectSpread2');
8
7
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
9
8
  var react = require('react');
@@ -12,26 +11,25 @@ var cx = require('classnames');
12
11
 
13
12
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
14
13
 
15
- var _slicedToArray__default = /*#__PURE__*/_interopDefault(_slicedToArray);
16
14
  var _objectSpread__default = /*#__PURE__*/_interopDefault(_objectSpread);
17
15
  var _objectWithoutProperties__default = /*#__PURE__*/_interopDefault(_objectWithoutProperties);
18
16
  var cx__default = /*#__PURE__*/_interopDefault(cx);
19
17
 
20
18
  function ResponsiveSVG(_ref) {
21
- var height = _ref.height,
22
- width = _ref.width,
23
- children = _ref.children,
24
- _ref$origin = _ref.origin,
25
- origin = _ref$origin === void 0 ? {
26
- x: 0,
27
- y: 0
28
- } : _ref$origin,
29
- _ref$preserveAspectRa = _ref.preserveAspectRatio,
30
- preserveAspectRatio = _ref$preserveAspectRa === void 0 ? 'xMaxYMid meet' : _ref$preserveAspectRa,
31
- innerRef = _ref.innerRef,
32
- className = _ref.className;
33
- var aspect = width / height;
34
- var adjustedHeight = Math.ceil(width / aspect);
19
+ let {
20
+ height,
21
+ width,
22
+ children,
23
+ origin = {
24
+ x: 0,
25
+ y: 0
26
+ },
27
+ preserveAspectRatio = 'xMaxYMid meet',
28
+ innerRef,
29
+ className
30
+ } = _ref;
31
+ const aspect = width / height;
32
+ const adjustedHeight = Math.ceil(width / aspect);
35
33
  return jsxRuntime.jsx("div", {
36
34
  "data-selector": "cutting-svg-container",
37
35
  style: {
@@ -52,9 +50,9 @@ function ResponsiveSVG(_ref) {
52
50
  });
53
51
  }
54
52
 
55
- var _excluded$2 = ["debounceDelay"],
56
- _excluded2 = ["parentRef", "children", "style", "scale", "align", "options"];
57
- var DefaultStyle = {
53
+ const _excluded$2 = ["debounceDelay"],
54
+ _excluded2 = ["parentRef", "children", "style", "scale", "align", "options"];
55
+ const DefaultStyle = {
58
56
  display: 'flex',
59
57
  flexDirection: 'column',
60
58
  flexGrow: 1,
@@ -63,43 +61,36 @@ var DefaultStyle = {
63
61
  overflow: 'hidden'
64
62
  };
65
63
  function ParentsizeSVG(_ref) {
66
- var parentRef = _ref.parentRef,
67
- children = _ref.children,
68
- _ref$style = _ref.style,
69
- style = _ref$style === void 0 ? DefaultStyle : _ref$style,
70
- _ref$scale = _ref.scale,
71
- scale = _ref$scale === void 0 ? 1 : _ref$scale,
72
- _ref$align = _ref.align,
73
- align = _ref$align === void 0 ? 'none' : _ref$align,
74
- _ref$options = _ref.options;
75
- _ref$options = _ref$options === void 0 ? {} : _ref$options;
76
-
77
- var _ref$options$debounce = _ref$options.debounceDelay,
78
- debounceDelay = _ref$options$debounce === void 0 ? 50 : _ref$options$debounce,
79
- optionsRest = _objectWithoutProperties__default["default"](_ref$options, _excluded$2),
64
+ let {
65
+ parentRef,
66
+ children,
67
+ style = DefaultStyle,
68
+ scale = 1,
69
+ align = 'none',
70
+ options: {
71
+ debounceDelay = 50
72
+ } = {}
73
+ } = _ref,
74
+ optionsRest = _objectWithoutProperties__default["default"](_ref.options, _excluded$2),
80
75
  rest = _objectWithoutProperties__default["default"](_ref, _excluded2);
81
76
 
82
- var _useParentSize = useGetParentSize.useParentSize(parentRef, _objectSpread__default["default"]({
83
- debounceDelay: debounceDelay
84
- }, optionsRest)),
85
- width = _useParentSize.width,
86
- height = _useParentSize.height;
87
-
88
- react.useEffect(function () {
77
+ const {
78
+ width,
79
+ height
80
+ } = useGetParentSize.useParentSize(parentRef, _objectSpread__default["default"]({
81
+ debounceDelay
82
+ }, optionsRest));
83
+ react.useEffect(() => {
89
84
  if (!parentRef.current) {
90
85
  return;
91
86
  }
92
87
 
93
- for (var _i = 0, _Object$entries = Object.entries(style); _i < _Object$entries.length; _i++) {
94
- var _Object$entries$_i = _slicedToArray__default["default"](_Object$entries[_i], 2),
95
- key = _Object$entries$_i[0],
96
- value = _Object$entries$_i[1];
97
-
88
+ for (const [key, value] of Object.entries(style)) {
98
89
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
99
90
  parentRef.current.style[key] = value;
100
91
  }
101
92
  }, [parentRef, style]);
102
- var transform = align === 'center' ? "translate(".concat(width / 2, ",").concat(height / 2 - 20, ") scale(").concat(scale, ")") : "translate(0,0) scale(".concat(scale, ")");
93
+ const transform = align === 'center' ? "translate(".concat(width / 2, ",").concat(height / 2 - 20, ") scale(").concat(scale, ")") : "translate(0,0) scale(".concat(scale, ")");
103
94
  return jsxRuntime.jsx(ResponsiveSVG, _objectSpread__default["default"](_objectSpread__default["default"]({
104
95
  width: width,
105
96
  height: height
@@ -111,16 +102,16 @@ function ParentsizeSVG(_ref) {
111
102
  }));
112
103
  }
113
104
 
114
- var _excluded$1 = ["y", "x", "transform", "className", "children", "innerRef"];
105
+ const _excluded$1 = ["y", "x", "transform", "className", "children", "innerRef"];
115
106
  function Group(_ref) {
116
- var _ref$y = _ref.y,
117
- y = _ref$y === void 0 ? 0 : _ref$y,
118
- _ref$x = _ref.x,
119
- x = _ref$x === void 0 ? 0 : _ref$x,
120
- transform = _ref.transform,
121
- className = _ref.className,
122
- children = _ref.children,
123
- innerRef = _ref.innerRef,
107
+ let {
108
+ y = 0,
109
+ x = 0,
110
+ transform,
111
+ className,
112
+ children,
113
+ innerRef
114
+ } = _ref,
124
115
  restProps = _objectWithoutProperties__default["default"](_ref, _excluded$1);
125
116
 
126
117
  return jsxRuntime.jsx("g", _objectSpread__default["default"](_objectSpread__default["default"]({
@@ -132,25 +123,24 @@ function Group(_ref) {
132
123
  }));
133
124
  }
134
125
 
135
- var _excluded = ["from", "to", "fill", "className", "innerRef"];
126
+ const _excluded = ["from", "to", "fill", "className", "innerRef"];
136
127
  function Line(_ref) {
137
- var _ref$from = _ref.from,
138
- from = _ref$from === void 0 ? {
139
- x: 0,
140
- y: 0
141
- } : _ref$from,
142
- _ref$to = _ref.to,
143
- to = _ref$to === void 0 ? {
144
- x: 1,
145
- y: 1
146
- } : _ref$to,
147
- _ref$fill = _ref.fill,
148
- fill = _ref$fill === void 0 ? 'transparent' : _ref$fill,
149
- className = _ref.className,
150
- innerRef = _ref.innerRef,
128
+ let {
129
+ from = {
130
+ x: 0,
131
+ y: 0
132
+ },
133
+ to = {
134
+ x: 1,
135
+ y: 1
136
+ },
137
+ fill = 'transparent',
138
+ className,
139
+ innerRef
140
+ } = _ref,
151
141
  restProps = _objectWithoutProperties__default["default"](_ref, _excluded);
152
142
 
153
- var isRectilinear = from.x === to.x || from.y === to.y;
143
+ const isRectilinear = from.x === to.x || from.y === to.y;
154
144
  return jsxRuntime.jsx("line", _objectSpread__default["default"]({
155
145
  ref: innerRef,
156
146
  className: cx__default["default"]('visx-line', className),