|
| 1 | +/* eslint-disable import/no-import-module-exports */ |
1 | 2 | /* eslint-disable @typescript-eslint/prefer-optional-chain */ |
2 | 3 | /* eslint-disable @typescript-eslint/no-unused-vars */ |
3 | 4 | /* eslint-disable @typescript-eslint/default-param-last */ |
@@ -107,7 +108,7 @@ const DEFAULTS = { |
107 | 108 | 'pointer-events': null, |
108 | 109 | }; |
109 | 110 |
|
110 | | -const getBackup = callOnce(() => { |
| 111 | +export const getBackup = callOnce(() => { |
111 | 112 | const backupContainer = domAdapter.createElement('div'); |
112 | 113 | const backupCounter = 0; |
113 | 114 | backupContainer.style.left = '-9999px'; |
@@ -1391,15 +1392,6 @@ function arcAnimate(params, options, complete) { |
1391 | 1392 | return baseAnimate(that, params, options, complete); |
1392 | 1393 | } |
1393 | 1394 |
|
1394 | | -/// #DEBUG |
1395 | | -export const DEBUG_removeBackupContainer = function () { |
1396 | | - if (getBackup().backupCounter) { |
1397 | | - getBackup().backupCounter = 0; |
1398 | | - domAdapter.getBody().removeChild(getBackup().backupContainer); |
1399 | | - } |
1400 | | -}; |
1401 | | -/// #ENDDEBUG |
1402 | | - |
1403 | 1395 | function buildLink(target, parameters) { |
1404 | 1396 | const obj = { is: false, name: parameters.name || parameters, after: parameters.after }; |
1405 | 1397 | if (target) { |
@@ -2351,23 +2343,31 @@ export const refreshPaths = function () { |
2351 | 2343 | }; |
2352 | 2344 |
|
2353 | 2345 | /// #DEBUG |
2354 | | -export const DEBUG_set_SvgElement = function (value) { |
| 2346 | +const DEBUG_set_SvgElement = function (value) { |
2355 | 2347 | SvgElement = value; |
2356 | 2348 | }; |
2357 | 2349 |
|
2358 | | -export const DEBUG_set_RectSvgElement = function (value) { |
| 2350 | +const DEBUG_set_RectSvgElement = function (value) { |
2359 | 2351 | RectSvgElement = value; |
2360 | 2352 | }; |
2361 | 2353 |
|
2362 | | -export const DEBUG_set_PathSvgElement = function (value) { |
| 2354 | +const DEBUG_set_PathSvgElement = function (value) { |
2363 | 2355 | PathSvgElement = value; |
2364 | 2356 | }; |
2365 | 2357 |
|
2366 | | -export const DEBUG_set_ArcSvgElement = function (value) { |
| 2358 | +const DEBUG_set_ArcSvgElement = function (value) { |
2367 | 2359 | ArcSvgElement = value; |
2368 | 2360 | }; |
2369 | 2361 |
|
2370 | | -export const DEBUG_set_TextSvgElement = function (value) { |
| 2362 | +const DEBUG_set_TextSvgElement = function (value) { |
2371 | 2363 | TextSvgElement = value; |
2372 | 2364 | }; |
2373 | 2365 | /// #ENDDEBUG |
| 2366 | + |
| 2367 | +/// #DEBUG |
| 2368 | +exports.DEBUG_set_ArcSvgElement = DEBUG_set_ArcSvgElement; |
| 2369 | +exports.DEBUG_set_PathSvgElement = DEBUG_set_PathSvgElement; |
| 2370 | +exports.DEBUG_set_RectSvgElement = DEBUG_set_RectSvgElement; |
| 2371 | +exports.DEBUG_set_SvgElement = DEBUG_set_SvgElement; |
| 2372 | +exports.DEBUG_set_TextSvgElement = DEBUG_set_TextSvgElement; |
| 2373 | +/// #ENDDEBUG |
0 commit comments