@visactor/vgrammar-core 0.10.2 → 0.10.3

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 (139) hide show
  1. package/cjs/component/axis.js +1 -1
  2. package/cjs/component/axis.js.map +1 -1
  3. package/cjs/component/datazoom.js +23 -30
  4. package/cjs/component/datazoom.js.map +1 -1
  5. package/cjs/component/label.js +11 -11
  6. package/cjs/component/label.js.map +1 -1
  7. package/cjs/component/legend.js +4 -6
  8. package/cjs/component/legend.js.map +1 -1
  9. package/cjs/component/player.js +4 -12
  10. package/cjs/component/player.js.map +1 -1
  11. package/cjs/component/scrollbar.js +12 -24
  12. package/cjs/component/scrollbar.js.map +1 -1
  13. package/cjs/component/slider.js +1 -3
  14. package/cjs/component/slider.js.map +1 -1
  15. package/cjs/glyph/boxplot.js +34 -20
  16. package/cjs/glyph/boxplot.js.map +1 -1
  17. package/cjs/glyph/violin.js +18 -11
  18. package/cjs/glyph/violin.js.map +1 -1
  19. package/cjs/graph/animation/animation/clip.js +2 -2
  20. package/cjs/graph/animation/animation/clip.js.map +1 -1
  21. package/cjs/graph/animation/animation/grow-cartesian.js +11 -11
  22. package/cjs/graph/animation/animation/grow-cartesian.js.map +1 -1
  23. package/cjs/graph/animation/animation/grow-interval.js +18 -18
  24. package/cjs/graph/animation/animation/grow-interval.js.map +1 -1
  25. package/cjs/graph/animation/animation/grow-points.js +3 -3
  26. package/cjs/graph/animation/animation/grow-points.js.map +1 -1
  27. package/cjs/graph/animation/animation/grow-polar.js +8 -8
  28. package/cjs/graph/animation/animation/grow-polar.js.map +1 -1
  29. package/cjs/graph/animation/animation/move.js +12 -14
  30. package/cjs/graph/animation/animation/move.js.map +1 -1
  31. package/cjs/graph/animation/animation/update.js +1 -1
  32. package/cjs/graph/animation/animation/update.js.map +1 -1
  33. package/cjs/graph/animation/attribute.js +2 -2
  34. package/cjs/graph/animation/attribute.js.map +1 -1
  35. package/cjs/graph/attributes/helpers.js +9 -11
  36. package/cjs/graph/attributes/helpers.js.map +1 -1
  37. package/cjs/graph/attributes/transform.js +1 -1
  38. package/cjs/graph/attributes/transform.js.map +1 -1
  39. package/cjs/graph/element.js +1 -1
  40. package/cjs/graph/element.js.map +1 -1
  41. package/cjs/graph/layout/grid.js +1 -1
  42. package/cjs/graph/layout/grid.js.map +1 -1
  43. package/cjs/graph/mark/graphic.js +2 -2
  44. package/cjs/graph/mark/graphic.js.map +1 -1
  45. package/cjs/index.d.ts +1 -1
  46. package/cjs/index.js +1 -1
  47. package/cjs/index.js.map +1 -1
  48. package/cjs/interactions/brush-base.js +3 -5
  49. package/cjs/interactions/brush-base.js.map +1 -1
  50. package/cjs/interactions/view-navigation-base.js +3 -3
  51. package/cjs/interactions/view-navigation-base.js.map +1 -1
  52. package/cjs/interactions/view-roam.js +10 -10
  53. package/cjs/interactions/view-roam.js.map +1 -1
  54. package/cjs/interactions/view-scroll-mixin.js +1 -1
  55. package/cjs/interactions/view-scroll-mixin.js.map +1 -1
  56. package/cjs/interactions/view-zoom-mixin.js +2 -2
  57. package/cjs/interactions/view-zoom-mixin.js.map +1 -1
  58. package/cjs/parse/event.js +1 -2
  59. package/cjs/parse/event.js.map +1 -1
  60. package/cjs/parse/scale.js +5 -4
  61. package/cjs/parse/scale.js.map +1 -1
  62. package/cjs/parse/view.js +11 -10
  63. package/cjs/parse/view.js.map +1 -1
  64. package/cjs/view/View.js +12 -13
  65. package/cjs/view/View.js.map +1 -1
  66. package/cjs/view/animate.js +11 -11
  67. package/cjs/view/animate.js.map +1 -1
  68. package/cjs/view/mark.js +6 -10
  69. package/cjs/view/mark.js.map +1 -1
  70. package/es/component/axis.js +1 -1
  71. package/es/component/axis.js.map +1 -1
  72. package/es/component/datazoom.js +23 -26
  73. package/es/component/datazoom.js.map +1 -1
  74. package/es/component/label.js +11 -11
  75. package/es/component/label.js.map +1 -1
  76. package/es/component/legend.js +4 -6
  77. package/es/component/legend.js.map +1 -1
  78. package/es/component/player.js +4 -12
  79. package/es/component/player.js.map +1 -1
  80. package/es/component/scrollbar.js +7 -18
  81. package/es/component/scrollbar.js.map +1 -1
  82. package/es/component/slider.js +1 -3
  83. package/es/component/slider.js.map +1 -1
  84. package/es/glyph/boxplot.js +22 -19
  85. package/es/glyph/boxplot.js.map +1 -1
  86. package/es/glyph/violin.js +12 -10
  87. package/es/glyph/violin.js.map +1 -1
  88. package/es/graph/animation/animation/clip.js +2 -2
  89. package/es/graph/animation/animation/clip.js.map +1 -1
  90. package/es/graph/animation/animation/grow-cartesian.js +11 -11
  91. package/es/graph/animation/animation/grow-cartesian.js.map +1 -1
  92. package/es/graph/animation/animation/grow-interval.js +18 -18
  93. package/es/graph/animation/animation/grow-interval.js.map +1 -1
  94. package/es/graph/animation/animation/grow-points.js +3 -3
  95. package/es/graph/animation/animation/grow-points.js.map +1 -1
  96. package/es/graph/animation/animation/grow-polar.js +8 -8
  97. package/es/graph/animation/animation/grow-polar.js.map +1 -1
  98. package/es/graph/animation/animation/move.js +9 -9
  99. package/es/graph/animation/animation/move.js.map +1 -1
  100. package/es/graph/animation/animation/update.js +1 -1
  101. package/es/graph/animation/animation/update.js.map +1 -1
  102. package/es/graph/animation/attribute.js +2 -2
  103. package/es/graph/animation/attribute.js.map +1 -1
  104. package/es/graph/attributes/helpers.js +8 -11
  105. package/es/graph/attributes/helpers.js.map +1 -1
  106. package/es/graph/attributes/transform.js +1 -1
  107. package/es/graph/attributes/transform.js.map +1 -1
  108. package/es/graph/element.js +1 -1
  109. package/es/graph/element.js.map +1 -1
  110. package/es/graph/layout/grid.js +1 -1
  111. package/es/graph/layout/grid.js.map +1 -1
  112. package/es/graph/mark/graphic.js +2 -2
  113. package/es/graph/mark/graphic.js.map +1 -1
  114. package/es/index.d.ts +1 -1
  115. package/es/index.js +1 -1
  116. package/es/index.js.map +1 -1
  117. package/es/interactions/brush-base.js +3 -5
  118. package/es/interactions/brush-base.js.map +1 -1
  119. package/es/interactions/view-navigation-base.js +3 -3
  120. package/es/interactions/view-navigation-base.js.map +1 -1
  121. package/es/interactions/view-roam.js +10 -10
  122. package/es/interactions/view-roam.js.map +1 -1
  123. package/es/interactions/view-scroll-mixin.js +1 -1
  124. package/es/interactions/view-scroll-mixin.js.map +1 -1
  125. package/es/interactions/view-zoom-mixin.js +2 -2
  126. package/es/interactions/view-zoom-mixin.js.map +1 -1
  127. package/es/parse/event.js +1 -1
  128. package/es/parse/event.js.map +1 -1
  129. package/es/parse/scale.js +4 -4
  130. package/es/parse/scale.js.map +1 -1
  131. package/es/parse/view.js +11 -10
  132. package/es/parse/view.js.map +1 -1
  133. package/es/view/View.js +12 -13
  134. package/es/view/View.js.map +1 -1
  135. package/es/view/animate.js +11 -11
  136. package/es/view/animate.js.map +1 -1
  137. package/es/view/mark.js +6 -10
  138. package/es/view/mark.js.map +1 -1
  139. package/package.json +9 -9
@@ -114,7 +114,7 @@ export const growCenterOut = (element, options, animationParameters) => {
114
114
 
115
115
  function growWidthInIndividual(element, options, animationParameters) {
116
116
  const x = element.getGraphicAttribute("x", !1), x1 = element.getGraphicAttribute("x1", !1), width = element.getGraphicAttribute("width", !1);
117
- if ("negative" === (null == options ? void 0 : options.orient)) {
117
+ if (options && "negative" === options.orient) {
118
118
  const computedX1 = isValid(width) ? Math.max(x, x + width) : Math.max(x, x1);
119
119
  return {
120
120
  from: {
@@ -148,7 +148,7 @@ function growWidthInOverall(element, options, animationParameters) {
148
148
  var _a;
149
149
  const x = element.getGraphicAttribute("x", !1), x1 = element.getGraphicAttribute("x1", !1), width = element.getGraphicAttribute("width", !1);
150
150
  let overallValue;
151
- return "negative" === (null == options ? void 0 : options.orient) ? isNumber(null == options ? void 0 : options.overall) ? overallValue = options.overall : animationParameters.group ? (overallValue = null !== (_a = animationParameters.groupWidth) && void 0 !== _a ? _a : animationParameters.group.getBounds().width(),
151
+ return options && "negative" === options.orient ? isNumber(options.overall) ? overallValue = options.overall : animationParameters.group ? (overallValue = null !== (_a = animationParameters.groupWidth) && void 0 !== _a ? _a : animationParameters.group.getBounds().width(),
152
152
  animationParameters.groupWidth = overallValue) : overallValue = animationParameters.width : overallValue = isNumber(null == options ? void 0 : options.overall) ? null == options ? void 0 : options.overall : 0,
153
153
  {
154
154
  from: {
@@ -171,7 +171,7 @@ export const growWidthIn = (element, options, animationParameters) => {
171
171
 
172
172
  function growWidthOutIndividual(element, options, animationParameters) {
173
173
  const x = element.getGraphicAttribute("x", !1), x1 = element.getGraphicAttribute("x1", !1), width = element.getGraphicAttribute("width", !1);
174
- if ("negative" === (null == options ? void 0 : options.orient)) {
174
+ if (options && "negative" === options.orient) {
175
175
  const computedX1 = isValid(width) ? Math.max(x, x + width) : Math.max(x, x1);
176
176
  return {
177
177
  to: {
@@ -195,8 +195,8 @@ function growWidthOutOverall(element, options, animationParameters) {
195
195
  var _a;
196
196
  const x1 = element.getGraphicAttribute("x1", !1), width = element.getGraphicAttribute("width", !1);
197
197
  let overallValue;
198
- return "negative" === (null == options ? void 0 : options.orient) ? isNumber(null == options ? void 0 : options.overall) ? overallValue = options.overall : animationParameters.group ? (overallValue = null !== (_a = animationParameters.groupWidth) && void 0 !== _a ? _a : animationParameters.group.getBounds().width(),
199
- animationParameters.groupWidth = overallValue) : overallValue = animationParameters.width : overallValue = isNumber(null == options ? void 0 : options.overall) ? null == options ? void 0 : options.overall : 0,
198
+ return options && "negative" === options.orient ? isNumber(options.overall) ? overallValue = options.overall : animationParameters.group ? (overallValue = null !== (_a = animationParameters.groupWidth) && void 0 !== _a ? _a : animationParameters.group.getBounds().width(),
199
+ animationParameters.groupWidth = overallValue) : overallValue = animationParameters.width : overallValue = isNumber(null == options ? void 0 : options.overall) ? options.overall : 0,
200
200
  {
201
201
  to: {
202
202
  x: overallValue,
@@ -213,7 +213,7 @@ export const growWidthOut = (element, options, animationParameters) => {
213
213
 
214
214
  function growHeightInIndividual(element, options, animationParameters) {
215
215
  const y = element.getGraphicAttribute("y", !1), y1 = element.getGraphicAttribute("y1", !1), height = element.getGraphicAttribute("height", !1);
216
- if ("negative" === (null == options ? void 0 : options.orient)) {
216
+ if (options && "negative" === options.orient) {
217
217
  const computedY1 = isValid(height) ? Math.max(y, y + height) : Math.max(y, y1);
218
218
  return {
219
219
  from: {
@@ -247,8 +247,8 @@ function growHeightInOverall(element, options, animationParameters) {
247
247
  var _a;
248
248
  const y = element.getGraphicAttribute("y", !1), y1 = element.getGraphicAttribute("y1", !1), height = element.getGraphicAttribute("height", !1);
249
249
  let overallValue;
250
- return "negative" === (null == options ? void 0 : options.orient) ? isNumber(null == options ? void 0 : options.overall) ? overallValue = null == options ? void 0 : options.overall : animationParameters.group ? (overallValue = null !== (_a = animationParameters.groupHeight) && void 0 !== _a ? _a : animationParameters.group.getBounds().height(),
251
- animationParameters.groupHeight = overallValue) : overallValue = animationParameters.height : overallValue = isNumber(null == options ? void 0 : options.overall) ? null == options ? void 0 : options.overall : 0,
250
+ return options && "negative" === options.orient ? isNumber(options.overall) ? overallValue = options.overall : animationParameters.group ? (overallValue = null !== (_a = animationParameters.groupHeight) && void 0 !== _a ? _a : animationParameters.group.getBounds().height(),
251
+ animationParameters.groupHeight = overallValue) : overallValue = animationParameters.height : overallValue = isNumber(null == options ? void 0 : options.overall) ? options.overall : 0,
252
252
  {
253
253
  from: {
254
254
  y: overallValue,
@@ -270,7 +270,7 @@ export const growHeightIn = (element, options, animationParameters) => {
270
270
 
271
271
  function growHeightOutIndividual(element, options, animationParameters) {
272
272
  const y = element.getGraphicAttribute("y", !1), y1 = element.getGraphicAttribute("y1", !1), height = element.getGraphicAttribute("height", !1);
273
- if ("negative" === (null == options ? void 0 : options.orient)) {
273
+ if (options && "negative" === options.orient) {
274
274
  const computedY1 = isValid(height) ? Math.max(y, y + height) : Math.max(y, y1);
275
275
  return {
276
276
  to: {
@@ -294,8 +294,8 @@ function growHeightOutOverall(element, options, animationParameters) {
294
294
  var _a;
295
295
  const y1 = element.getGraphicAttribute("y1", !1), height = element.getGraphicAttribute("height", !1);
296
296
  let overallValue;
297
- return "negative" === (null == options ? void 0 : options.orient) ? isNumber(null == options ? void 0 : options.overall) ? overallValue = options.overall : animationParameters.group ? (overallValue = null !== (_a = animationParameters.groupHeight) && void 0 !== _a ? _a : animationParameters.group.getBounds().height(),
298
- animationParameters.groupHeight = overallValue) : overallValue = animationParameters.height : overallValue = isNumber(null == options ? void 0 : options.overall) ? null == options ? void 0 : options.overall : 0,
297
+ return options && "negative" === options.orient ? isNumber(options.overall) ? overallValue = options.overall : animationParameters.group ? (overallValue = null !== (_a = animationParameters.groupHeight) && void 0 !== _a ? _a : animationParameters.group.getBounds().height(),
298
+ animationParameters.groupHeight = overallValue) : overallValue = animationParameters.height : overallValue = isNumber(null == options ? void 0 : options.overall) ? options.overall : 0,
299
299
  {
300
300
  to: {
301
301
  y: overallValue,
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graph/animation/animation/grow-cartesian.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAI5D,MAAM,CAAC,MAAM,YAAY,GAA4B,CACnD,OAAiB,EACjB,OAAuC,EACvC,mBAAyC,EACzC,EAAE;IACF,QAAQ,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,EAAE;QAC1B,KAAK,GAAG,CAAC,CAAC;YACR,MAAM,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;YAClD,MAAM,EAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YACpD,MAAM,KAAK,GAAG,OAAO,CAAC,mBAAmB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;YAE1D,OAAO;gBACL,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC;oBAClB,CAAC,CAAC;wBACE,CAAC,EAAE,CAAC,GAAG,KAAK,GAAG,CAAC;wBAChB,EAAE,EAAE,SAAS;wBACb,KAAK,EAAE,CAAC;q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O,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,KAAK,CAAC,KAAK,KAAK;QAC1C,CAAC,CAAC,oBAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,mBAAmB,CAAC;QAC7D,CAAC,CAAC,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,mBAAmB,CAAC,CAAC;AACrE,CAAC,CAAC","file":"grow-cartesian.js","sourcesContent":["import { isNil, isNumber, isValid } from '@visactor/vutils';\nimport type { IGrowCartesianAnimationOptions, IAnimationParameters, IElement, TypeAnimation } from '../../../types';\n\n// grow center\nexport const growCenterIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n switch (options?.direction) {\n case 'x': {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const width = element.getGraphicAttribute('width', false);\n\n return {\n from: isValid(width)\n ? {\n x: x + width / 2,\n x1: undefined,\n width: 0\n }\n : {\n x: (x + x1) / 2,\n x1: (x + x1) / 2,\n width: undefined\n },\n to: { x, x1, width }\n };\n }\n case 'y': {\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const height = element.getGraphicAttribute('height', false);\n\n return {\n from: isValid(height)\n ? {\n y: y + height / 2,\n y1: undefined,\n height: 0\n }\n : {\n y: (y + y1) / 2,\n y1: (y + y1) / 2,\n height: undefined\n },\n to: { y, y1, height }\n };\n }\n case 'xy':\n default: {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const width = element.getGraphicAttribute('width', false);\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const height = element.getGraphicAttribute('height', false);\n const from: any = {};\n\n if (isValid(width)) {\n from.x = x + width / 2;\n from.width = 0;\n from.x1 = undefined;\n } else {\n from.x = (x + x1) / 2;\n from.x1 = (x + x1) / 2;\n from.width = undefined;\n }\n\n if (isValid(height)) {\n from.y = y + height / 2;\n from.height = 0;\n from.y1 = undefined;\n } else {\n from.y = (y + y1) / 2;\n from.y1 = (y + y1) / 2;\n from.height = undefined;\n }\n\n return {\n from,\n to: { x, y, x1, y1, width, height }\n };\n }\n }\n};\n\nexport const growCenterOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n switch (options?.direction) {\n case 'x': {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const width = element.getGraphicAttribute('width', false);\n\n return {\n to: isValid(width)\n ? {\n x: x + width / 2,\n x1: undefined,\n width: 0\n }\n : {\n x: (x + x1) / 2,\n x1: (x + x1) / 2,\n width: undefined\n }\n };\n }\n case 'y': {\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const height = element.getGraphicAttribute('height', false);\n\n return {\n to: isValid(height)\n ? {\n y: y + height / 2,\n y1: undefined,\n height: 0\n }\n : {\n y: (y + y1) / 2,\n y1: (y + y1) / 2,\n height: undefined\n }\n };\n }\n case 'xy':\n default: {\n const x = element.getGraphicAttribute('x', false);\n const y = element.getGraphicAttribute('y', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const width = element.getGraphicAttribute('width', false);\n const height = element.getGraphicAttribute('height', false);\n const to: any = {};\n\n if (isValid(width)) {\n to.x = x + width / 2;\n to.width = 0;\n to.x1 = undefined;\n } else {\n to.x = (x + x1) / 2;\n to.x1 = (x + x1) / 2;\n to.width = undefined;\n }\n\n if (isValid(height)) {\n to.y = y + height / 2;\n to.height = 0;\n to.y1 = undefined;\n } else {\n to.y = (y + y1) / 2;\n to.y1 = (y + y1) / 2;\n to.height = undefined;\n }\n\n return {\n to\n };\n }\n }\n};\n\n// grow width\nfunction growWidthInIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const width = element.getGraphicAttribute('width', false);\n\n if (options?.orient === 'negative') {\n const computedX1 = isValid(width) ? Math.max(x, x + width) : Math.max(x, x1);\n\n return {\n from: { x: computedX1, x1: isNil(x1) ? undefined : computedX1, width: isNil(width) ? undefined : 0 },\n to: { x: x, x1: x1, width: width }\n };\n }\n\n const computedX = isValid(width) ? Math.min(x, x + width) : Math.min(x, x1);\n return {\n from: { x: computedX, x1: isNil(x1) ? undefined : computedX, width: isNil(width) ? undefined : 0 },\n to: { x: x, x1: x1, width: width }\n };\n}\n\nfunction growWidthInOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n // no need to handle the situation where x > x1\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const width = element.getGraphicAttribute('width', false);\n let overallValue: number;\n if (options?.orient === 'negative') {\n if (isNumber(options?.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupWidth ?? animationParameters.group.getBounds().width();\n\n (animationParameters as any).groupWidth = overallValue;\n } else {\n overallValue = animationParameters.width;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options?.overall : 0;\n }\n return {\n from: { x: overallValue, x1: isNil(x1) ? undefined : overallValue, width: isNil(width) ? undefined : 0 },\n to: { x: x, x1: x1, width: width }\n };\n}\n\nexport const growWidthIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growWidthInOverall(element, options, animationParameters)\n : growWidthInIndividual(element, options, animationParameters);\n};\n\nfunction growWidthOutIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const width = element.getGraphicAttribute('width', false);\n\n if (options?.orient === 'negative') {\n const computedX1 = isValid(width) ? Math.max(x, x + width) : Math.max(x, x1);\n\n return {\n to: { x: computedX1, x1: isNil(x1) ? undefined : computedX1, width: isNil(width) ? undefined : 0 }\n };\n }\n\n const computedX = isValid(width) ? Math.min(x, x + width) : Math.min(x, x1);\n return {\n to: { x: computedX, x1: isNil(x1) ? undefined : computedX, width: isNil(width) ? undefined : 0 }\n };\n}\n\nfunction growWidthOutOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const x1 = element.getGraphicAttribute('x1', false);\n const width = element.getGraphicAttribute('width', false);\n\n let overallValue: number;\n if (options?.orient === 'negative') {\n if (isNumber(options?.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupWidth ?? animationParameters.group.getBounds().width();\n\n (animationParameters as any).groupWidth = overallValue;\n } else {\n overallValue = animationParameters.width;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options?.overall : 0;\n }\n return {\n to: { x: overallValue, x1: isNil(x1) ? undefined : overallValue, width: isNil(width) ? undefined : 0 }\n };\n}\n\nexport const growWidthOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growWidthOutOverall(element, options, animationParameters)\n : growWidthOutIndividual(element, options, animationParameters);\n};\n\n// grow height\n\nfunction growHeightInIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const height = element.getGraphicAttribute('height', false);\n\n if (options?.orient === 'negative') {\n const computedY1 = isValid(height) ? Math.max(y, y + height) : Math.max(y, y1);\n return {\n from: { y: computedY1, y1: isNil(y1) ? undefined : computedY1, height: isNil(height) ? undefined : 0 },\n to: { y: y, y1: y1, height: height }\n };\n }\n\n const computedY = isValid(height) ? Math.min(y, y + height) : Math.min(y, y1);\n return {\n from: { y: computedY, y1: isNil(y1) ? undefined : computedY, height: isNil(height) ? undefined : 0 },\n to: { y: y, y1: y1, height: height }\n };\n}\n\nfunction growHeightInOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const height = element.getGraphicAttribute('height', false);\n\n let overallValue: number;\n if (options?.orient === 'negative') {\n if (isNumber(options?.overall)) {\n overallValue = options?.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupHeight ?? animationParameters.group.getBounds().height();\n\n (animationParameters as any).groupHeight = overallValue;\n } else {\n overallValue = animationParameters.height;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options?.overall : 0;\n }\n return {\n from: { y: overallValue, y1: isNil(y1) ? undefined : overallValue, height: isNil(height) ? undefined : 0 },\n to: { y: y, y1: y1, height: height }\n };\n}\n\nexport const growHeightIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growHeightInOverall(element, options, animationParameters)\n : growHeightInIndividual(element, options, animationParameters);\n};\n\nfunction growHeightOutIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const height = element.getGraphicAttribute('height', false);\n\n if (options?.orient === 'negative') {\n const computedY1 = isValid(height) ? Math.max(y, y + height) : Math.max(y, y1);\n\n return {\n to: { y: computedY1, y1: isNil(y1) ? undefined : computedY1, height: isNil(height) ? undefined : 0 }\n };\n }\n\n const computedY = isValid(height) ? Math.min(y, y + height) : Math.min(y, y1);\n return {\n to: { y: computedY, y1: isNil(y1) ? undefined : computedY, height: isNil(height) ? undefined : 0 }\n };\n}\n\nfunction growHeightOutOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const y1 = element.getGraphicAttribute('y1', false);\n const height = element.getGraphicAttribute('height', false);\n\n let overallValue: number;\n if (options?.orient === 'negative') {\n if (isNumber(options?.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupHeight ?? animationParameters.group.getBounds().height();\n\n (animationParameters as any).groupHeight = overallValue;\n } else {\n overallValue = animationParameters.height;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options?.overall : 0;\n }\n return {\n to: { y: overallValue, y1: isNil(y1) ? undefined : overallValue, height: isNil(height) ? undefined : 0 }\n };\n}\n\nexport const growHeightOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growHeightOutOverall(element, options, animationParameters)\n : growHeightOutIndividual(element, options, animationParameters);\n};\n"]}
1
+ {"version":3,"sources":["../src/graph/animation/animation/grow-cartesian.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAI5D,MAAM,CAAC,MAAM,YAAY,GAA4B,CACnD,OAAiB,EACjB,OAAuC,EACvC,mBAAyC,EACzC,EAAE;IACF,QAAQ,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,EAAE;QAC1B,KAAK,GAAG,CAAC,CAAC;YACR,MAAM,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;YAClD,MAAM,EAAE,GAAG,OAAO,CAAC,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;YACpD,MAAM,KAAK,GAAG,OAAO,CAAC,mBAAmB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;YAE1D,OAAO;gBACL,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC;oBAClB,CAAC,CAAC;wBACE,CAAC,EAAE,CAAC,GAAG,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isValid } from '@visactor/vutils';\nimport type { IGrowCartesianAnimationOptions, IAnimationParameters, IElement, TypeAnimation } from '../../../types';\n\n// grow center\nexport const growCenterIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n switch (options?.direction) {\n case 'x': {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const width = element.getGraphicAttribute('width', false);\n\n return {\n from: isValid(width)\n ? {\n x: x + width / 2,\n x1: undefined,\n width: 0\n }\n : {\n x: (x + x1) / 2,\n x1: (x + x1) / 2,\n width: undefined\n },\n to: { x, x1, width }\n };\n }\n case 'y': {\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const height = element.getGraphicAttribute('height', false);\n\n return {\n from: isValid(height)\n ? {\n y: y + height / 2,\n y1: undefined,\n height: 0\n }\n : {\n y: (y + y1) / 2,\n y1: (y + y1) / 2,\n height: undefined\n },\n to: { y, y1, height }\n };\n }\n case 'xy':\n default: {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const width = element.getGraphicAttribute('width', false);\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const height = element.getGraphicAttribute('height', false);\n const from: any = {};\n\n if (isValid(width)) {\n from.x = x + width / 2;\n from.width = 0;\n from.x1 = undefined;\n } else {\n from.x = (x + x1) / 2;\n from.x1 = (x + x1) / 2;\n from.width = undefined;\n }\n\n if (isValid(height)) {\n from.y = y + height / 2;\n from.height = 0;\n from.y1 = undefined;\n } else {\n from.y = (y + y1) / 2;\n from.y1 = (y + y1) / 2;\n from.height = undefined;\n }\n\n return {\n from,\n to: { x, y, x1, y1, width, height }\n };\n }\n }\n};\n\nexport const growCenterOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n switch (options?.direction) {\n case 'x': {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const width = element.getGraphicAttribute('width', false);\n\n return {\n to: isValid(width)\n ? {\n x: x + width / 2,\n x1: undefined,\n width: 0\n }\n : {\n x: (x + x1) / 2,\n x1: (x + x1) / 2,\n width: undefined\n }\n };\n }\n case 'y': {\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const height = element.getGraphicAttribute('height', false);\n\n return {\n to: isValid(height)\n ? {\n y: y + height / 2,\n y1: undefined,\n height: 0\n }\n : {\n y: (y + y1) / 2,\n y1: (y + y1) / 2,\n height: undefined\n }\n };\n }\n case 'xy':\n default: {\n const x = element.getGraphicAttribute('x', false);\n const y = element.getGraphicAttribute('y', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const width = element.getGraphicAttribute('width', false);\n const height = element.getGraphicAttribute('height', false);\n const to: any = {};\n\n if (isValid(width)) {\n to.x = x + width / 2;\n to.width = 0;\n to.x1 = undefined;\n } else {\n to.x = (x + x1) / 2;\n to.x1 = (x + x1) / 2;\n to.width = undefined;\n }\n\n if (isValid(height)) {\n to.y = y + height / 2;\n to.height = 0;\n to.y1 = undefined;\n } else {\n to.y = (y + y1) / 2;\n to.y1 = (y + y1) / 2;\n to.height = undefined;\n }\n\n return {\n to\n };\n }\n }\n};\n\n// grow width\nfunction growWidthInIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const width = element.getGraphicAttribute('width', false);\n\n if (options && options.orient === 'negative') {\n const computedX1 = isValid(width) ? Math.max(x, x + width) : Math.max(x, x1);\n\n return {\n from: { x: computedX1, x1: isNil(x1) ? undefined : computedX1, width: isNil(width) ? undefined : 0 },\n to: { x: x, x1: x1, width: width }\n };\n }\n\n const computedX = isValid(width) ? Math.min(x, x + width) : Math.min(x, x1);\n return {\n from: { x: computedX, x1: isNil(x1) ? undefined : computedX, width: isNil(width) ? undefined : 0 },\n to: { x: x, x1: x1, width: width }\n };\n}\n\nfunction growWidthInOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n // no need to handle the situation where x > x1\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const width = element.getGraphicAttribute('width', false);\n let overallValue: number;\n if (options && options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupWidth ?? animationParameters.group.getBounds().width();\n\n (animationParameters as any).groupWidth = overallValue;\n } else {\n overallValue = animationParameters.width;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options?.overall : 0;\n }\n return {\n from: { x: overallValue, x1: isNil(x1) ? undefined : overallValue, width: isNil(width) ? undefined : 0 },\n to: { x: x, x1: x1, width: width }\n };\n}\n\nexport const growWidthIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growWidthInOverall(element, options, animationParameters)\n : growWidthInIndividual(element, options, animationParameters);\n};\n\nfunction growWidthOutIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const width = element.getGraphicAttribute('width', false);\n\n if (options && options.orient === 'negative') {\n const computedX1 = isValid(width) ? Math.max(x, x + width) : Math.max(x, x1);\n\n return {\n to: { x: computedX1, x1: isNil(x1) ? undefined : computedX1, width: isNil(width) ? undefined : 0 }\n };\n }\n\n const computedX = isValid(width) ? Math.min(x, x + width) : Math.min(x, x1);\n return {\n to: { x: computedX, x1: isNil(x1) ? undefined : computedX, width: isNil(width) ? undefined : 0 }\n };\n}\n\nfunction growWidthOutOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const x1 = element.getGraphicAttribute('x1', false);\n const width = element.getGraphicAttribute('width', false);\n\n let overallValue: number;\n if (options && options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupWidth ?? animationParameters.group.getBounds().width();\n\n (animationParameters as any).groupWidth = overallValue;\n } else {\n overallValue = animationParameters.width;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options.overall : 0;\n }\n return {\n to: { x: overallValue, x1: isNil(x1) ? undefined : overallValue, width: isNil(width) ? undefined : 0 }\n };\n}\n\nexport const growWidthOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growWidthOutOverall(element, options, animationParameters)\n : growWidthOutIndividual(element, options, animationParameters);\n};\n\n// grow height\n\nfunction growHeightInIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const height = element.getGraphicAttribute('height', false);\n\n if (options && options.orient === 'negative') {\n const computedY1 = isValid(height) ? Math.max(y, y + height) : Math.max(y, y1);\n return {\n from: { y: computedY1, y1: isNil(y1) ? undefined : computedY1, height: isNil(height) ? undefined : 0 },\n to: { y: y, y1: y1, height: height }\n };\n }\n\n const computedY = isValid(height) ? Math.min(y, y + height) : Math.min(y, y1);\n return {\n from: { y: computedY, y1: isNil(y1) ? undefined : computedY, height: isNil(height) ? undefined : 0 },\n to: { y: y, y1: y1, height: height }\n };\n}\n\nfunction growHeightInOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const height = element.getGraphicAttribute('height', false);\n\n let overallValue: number;\n if (options && options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupHeight ?? animationParameters.group.getBounds().height();\n\n (animationParameters as any).groupHeight = overallValue;\n } else {\n overallValue = animationParameters.height;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options.overall : 0;\n }\n return {\n from: { y: overallValue, y1: isNil(y1) ? undefined : overallValue, height: isNil(height) ? undefined : 0 },\n to: { y: y, y1: y1, height: height }\n };\n}\n\nexport const growHeightIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growHeightInOverall(element, options, animationParameters)\n : growHeightInIndividual(element, options, animationParameters);\n};\n\nfunction growHeightOutIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const height = element.getGraphicAttribute('height', false);\n\n if (options && options.orient === 'negative') {\n const computedY1 = isValid(height) ? Math.max(y, y + height) : Math.max(y, y1);\n\n return {\n to: { y: computedY1, y1: isNil(y1) ? undefined : computedY1, height: isNil(height) ? undefined : 0 }\n };\n }\n\n const computedY = isValid(height) ? Math.min(y, y + height) : Math.min(y, y1);\n return {\n to: { y: computedY, y1: isNil(y1) ? undefined : computedY, height: isNil(height) ? undefined : 0 }\n };\n}\n\nfunction growHeightOutOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n const y1 = element.getGraphicAttribute('y1', false);\n const height = element.getGraphicAttribute('height', false);\n\n let overallValue: number;\n if (options && options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupHeight ?? animationParameters.group.getBounds().height();\n\n (animationParameters as any).groupHeight = overallValue;\n } else {\n overallValue = animationParameters.height;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options.overall : 0;\n }\n return {\n to: { y: overallValue, y1: isNil(y1) ? undefined : overallValue, height: isNil(height) ? undefined : 0 }\n };\n}\n\nexport const growHeightOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growHeightOutOverall(element, options, animationParameters)\n : growHeightOutIndividual(element, options, animationParameters);\n};\n"]}
@@ -1,9 +1,9 @@
1
1
  import { isNumber } from "@visactor/vutils";
2
2
 
3
3
  function growIntervalInIndividual(element, options, animationParameters) {
4
- if ("x" === (null == options ? void 0 : options.direction)) {
4
+ if (options && "x" === options.direction) {
5
5
  const x = element.getGraphicAttribute("x", !1), x1 = element.getGraphicAttribute("x1", !1);
6
- return "negative" === (null == options ? void 0 : options.orient) ? {
6
+ return "negative" === options.orient ? {
7
7
  from: {
8
8
  x: x1,
9
9
  x1: x1
@@ -24,7 +24,7 @@ function growIntervalInIndividual(element, options, animationParameters) {
24
24
  };
25
25
  }
26
26
  const y = element.getGraphicAttribute("y", !1), y1 = element.getGraphicAttribute("y1", !1);
27
- return "negative" === (null == options ? void 0 : options.orient) ? {
27
+ return options && "negative" === options.orient ? {
28
28
  from: {
29
29
  y: y1,
30
30
  y1: y1
@@ -47,11 +47,11 @@ function growIntervalInIndividual(element, options, animationParameters) {
47
47
 
48
48
  function growIntervalInOverall(element, options, animationParameters) {
49
49
  var _a, _b;
50
- if ("x" === (null == options ? void 0 : options.direction)) {
50
+ if (options && "x" === options.direction) {
51
51
  const x = element.getGraphicAttribute("x", !1), x1 = element.getGraphicAttribute("x1", !1);
52
52
  let overallValue;
53
- return "negative" === (null == options ? void 0 : options.orient) ? isNumber(null == options ? void 0 : options.overall) ? overallValue = options.overall : animationParameters.group ? (overallValue = null !== (_a = animationParameters.groupWidth) && void 0 !== _a ? _a : animationParameters.group.getBounds().width(),
54
- animationParameters.groupWidth = overallValue) : overallValue = animationParameters.width : overallValue = isNumber(null == options ? void 0 : options.overall) ? null == options ? void 0 : options.overall : 0,
53
+ return "negative" === options.orient ? isNumber(options.overall) ? overallValue = options.overall : animationParameters.group ? (overallValue = null !== (_a = animationParameters.groupWidth) && void 0 !== _a ? _a : animationParameters.group.getBounds().width(),
54
+ animationParameters.groupWidth = overallValue) : overallValue = animationParameters.width : overallValue = isNumber(null == options ? void 0 : options.overall) ? options.overall : 0,
55
55
  {
56
56
  from: {
57
57
  x: overallValue,
@@ -65,8 +65,8 @@ function growIntervalInOverall(element, options, animationParameters) {
65
65
  }
66
66
  const y = element.getGraphicAttribute("y", !1), y1 = element.getGraphicAttribute("y1", !1);
67
67
  let overallValue;
68
- return "negative" === (null == options ? void 0 : options.orient) ? isNumber(null == options ? void 0 : options.overall) ? overallValue = null == options ? void 0 : options.overall : animationParameters.group ? (overallValue = null !== (_b = animationParameters.groupHeight) && void 0 !== _b ? _b : animationParameters.group.getBounds().height(),
69
- animationParameters.groupHeight = overallValue) : overallValue = animationParameters.height : overallValue = isNumber(null == options ? void 0 : options.overall) ? null == options ? void 0 : options.overall : 0,
68
+ return options && "negative" === options.orient ? isNumber(options.overall) ? overallValue = options.overall : animationParameters.group ? (overallValue = null !== (_b = animationParameters.groupHeight) && void 0 !== _b ? _b : animationParameters.group.getBounds().height(),
69
+ animationParameters.groupHeight = overallValue) : overallValue = animationParameters.height : overallValue = isNumber(null == options ? void 0 : options.overall) ? options.overall : 0,
70
70
  {
71
71
  from: {
72
72
  y: overallValue,
@@ -85,13 +85,13 @@ export const growIntervalIn = (element, options, animationParameters) => {
85
85
  orient: "negative",
86
86
  direction: isTransposed && !isPolar ? "x" : "y"
87
87
  };
88
- return !0 !== (null == options ? void 0 : options.overall) ? growIntervalInIndividual(element, newOptions, animationParameters) : growIntervalInOverall(element, newOptions, animationParameters);
88
+ return options && !0 !== options.overall ? growIntervalInIndividual(element, newOptions, animationParameters) : growIntervalInOverall(element, newOptions, animationParameters);
89
89
  };
90
90
 
91
91
  function growIntervalOutIndividual(element, options, animationParameters) {
92
- if ("x" === options.direction) {
92
+ if (options && "x" === options.direction) {
93
93
  const x = element.getGraphicAttribute("x", !1), x1 = element.getGraphicAttribute("x1", !1), prevX = element.getGraphicAttribute("x", !0), prevX1 = element.getGraphicAttribute("x1", !0);
94
- return "negative" === (null == options ? void 0 : options.orient) ? {
94
+ return "negative" === options.orient ? {
95
95
  from: {
96
96
  x: prevX,
97
97
  x1: prevX1
@@ -112,7 +112,7 @@ function growIntervalOutIndividual(element, options, animationParameters) {
112
112
  };
113
113
  }
114
114
  const y = element.getGraphicAttribute("y", !1), y1 = element.getGraphicAttribute("y1", !1), prevY = element.getGraphicAttribute("y", !0), prevY1 = element.getGraphicAttribute("y1", !0);
115
- return "negative" === (null == options ? void 0 : options.orient) ? {
115
+ return options && "negative" === options.orient ? {
116
116
  from: {
117
117
  y: prevY,
118
118
  y1: prevY1
@@ -135,11 +135,11 @@ function growIntervalOutIndividual(element, options, animationParameters) {
135
135
 
136
136
  function growIntervalOutOverall(element, options, animationParameters) {
137
137
  var _a, _b;
138
- if ("x" === (null == options ? void 0 : options.direction)) {
138
+ if (options && "x" === options.direction) {
139
139
  const prevX = element.getGraphicAttribute("x", !0), prevX1 = element.getGraphicAttribute("x1", !0);
140
140
  let overallValue;
141
- return "negative" === (null == options ? void 0 : options.orient) ? isNumber(null == options ? void 0 : options.overall) ? overallValue = options.overall : animationParameters.group ? (overallValue = null !== (_a = animationParameters.groupWidth) && void 0 !== _a ? _a : animationParameters.group.getBounds().width(),
142
- animationParameters.groupWidth = overallValue) : overallValue = animationParameters.width : overallValue = isNumber(null == options ? void 0 : options.overall) ? null == options ? void 0 : options.overall : 0,
141
+ return "negative" === options.orient ? isNumber(options.overall) ? overallValue = options.overall : animationParameters.group ? (overallValue = null !== (_a = animationParameters.groupWidth) && void 0 !== _a ? _a : animationParameters.group.getBounds().width(),
142
+ animationParameters.groupWidth = overallValue) : overallValue = animationParameters.width : overallValue = isNumber(null == options ? void 0 : options.overall) ? options.overall : 0,
143
143
  {
144
144
  from: {
145
145
  x: prevX,
@@ -153,8 +153,8 @@ function growIntervalOutOverall(element, options, animationParameters) {
153
153
  }
154
154
  const prevY = element.getGraphicAttribute("y", !0), prevY1 = element.getGraphicAttribute("y1", !0);
155
155
  let overallValue;
156
- return "negative" === (null == options ? void 0 : options.orient) ? isNumber(null == options ? void 0 : options.overall) ? overallValue = null == options ? void 0 : options.overall : animationParameters.group ? (overallValue = null !== (_b = animationParameters.groupHeight) && void 0 !== _b ? _b : animationParameters.group.getBounds().height(),
157
- animationParameters.groupHeight = overallValue) : overallValue = animationParameters.height : overallValue = isNumber(null == options ? void 0 : options.overall) ? null == options ? void 0 : options.overall : 0,
156
+ return options && "negative" === options.orient ? isNumber(options.overall) ? overallValue = options.overall : animationParameters.group ? (overallValue = null !== (_b = animationParameters.groupHeight) && void 0 !== _b ? _b : animationParameters.group.getBounds().height(),
157
+ animationParameters.groupHeight = overallValue) : overallValue = animationParameters.height : overallValue = isNumber(null == options ? void 0 : options.overall) ? options.overall : 0,
158
158
  {
159
159
  from: {
160
160
  y: prevY,
@@ -173,6 +173,6 @@ export const growIntervalOut = (element, options, animationParameters) => {
173
173
  orient: "negative",
174
174
  direction: isTransposed && !isPolar ? "x" : "y"
175
175
  };
176
- return !0 !== (null == options ? void 0 : options.overall) ? growIntervalOutIndividual(element, newOptions, animationParameters) : growIntervalOutOverall(element, newOptions, animationParameters);
176
+ return options && !0 !== options.overall ? growIntervalOutIndividual(element, newOptions, animationParameters) : growIntervalOutOverall(element, newOptions, animationParameters);
177
177
  };
178
178
  //# sourceMappingURL=grow-interval.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graph/animation/animation/grow-interval.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,SAAS,wBAAwB,CAC/B,OAAiB,EACjB,OAAuC,EACvC,mBAAyC;IAEzC,IAAI,CAAA,OAAO,aAAP,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B,CAAC,CAAC;AACvE,CAAC,CAAC","file":"grow-interval.js","sourcesContent":["/**\n * this animtion is only used for interval mark\n */\nimport type { IGrowCartesianAnimationOptions, IAnimationParameters, IElement, TypeAnimation } from '../../../types';\nimport { isNumber } from '@visactor/vutils';\n\nfunction growIntervalInIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n if (options?.direction === 'x') {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n if (options?.orient === 'negative') {\n return {\n from: { x: x1, x1: x1 },\n to: { x: x, x1: x1 }\n };\n }\n return {\n from: { x: x, x1: x },\n to: { x: x, y1: x1 }\n };\n }\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n if (options?.orient === 'negative') {\n return {\n from: { y: y1, y1: y1 },\n to: { y: y, y1: y1 }\n };\n }\n return {\n from: { y: y, y1: y },\n to: { y: y, y1: y1 }\n };\n}\n\nfunction growIntervalInOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n if (options?.direction === 'x') {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n let overallValue: number;\n if (options?.orient === 'negative') {\n if (isNumber(options?.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupWidth ?? animationParameters.group.getBounds().width();\n\n (animationParameters as any).groupWidth = overallValue;\n } else {\n overallValue = animationParameters.width;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options?.overall : 0;\n }\n return {\n from: { x: overallValue, x1: overallValue },\n to: { x: x, y1: x1 }\n };\n }\n\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n let overallValue: number;\n if (options?.orient === 'negative') {\n if (isNumber(options?.overall)) {\n overallValue = options?.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupHeight ?? animationParameters.group.getBounds().height();\n\n (animationParameters as any).groupHeight = overallValue;\n } else {\n overallValue = animationParameters.height;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options?.overall : 0;\n }\n return {\n from: { y: overallValue, y1: overallValue },\n to: { y: y, y1: y1 }\n };\n}\n\nexport const growIntervalIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n const coord = element.mark?.coord?.output();\n const isTransposed = coord.isTransposed();\n const isPolar = coord.type === 'polar';\n const newOptions: IGrowCartesianAnimationOptions = {\n orient: 'negative',\n direction: isTransposed && !isPolar ? 'x' : 'y'\n };\n\n return options?.overall !== true\n ? growIntervalInIndividual(element, newOptions, animationParameters)\n : growIntervalInOverall(element, newOptions, animationParameters);\n};\n\nfunction growIntervalOutIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n if (options.direction === 'x') {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const prevX = element.getGraphicAttribute('x', true);\n const prevX1 = element.getGraphicAttribute('x1', true);\n if (options?.orient === 'negative') {\n return {\n from: { x: prevX, x1: prevX1 },\n to: { x: x1, x1: x1 }\n };\n }\n return {\n from: { x: prevX, x1: prevX1 },\n to: { x: x, x1: x }\n };\n }\n\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const prevY = element.getGraphicAttribute('y', true);\n const prevY1 = element.getGraphicAttribute('y1', true);\n if (options?.orient === 'negative') {\n return {\n from: { y: prevY, y1: prevY1 },\n to: { y: y1, y1: y1 }\n };\n }\n return {\n from: { y: prevY, y1: prevY1 },\n to: { y: y, y1: y }\n };\n}\n\nfunction growIntervalOutOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n if (options?.direction === 'x') {\n const prevX = element.getGraphicAttribute('x', true);\n const prevX1 = element.getGraphicAttribute('x1', true);\n let overallValue: number;\n if (options?.orient === 'negative') {\n if (isNumber(options?.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupWidth ?? animationParameters.group.getBounds().width();\n\n (animationParameters as any).groupWidth = overallValue;\n } else {\n overallValue = animationParameters.width;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options?.overall : 0;\n }\n return {\n from: { x: prevX, x1: prevX1 },\n to: { x: overallValue, x1: overallValue }\n };\n }\n\n const prevY = element.getGraphicAttribute('y', true);\n const prevY1 = element.getGraphicAttribute('y1', true);\n let overallValue: number;\n if (options?.orient === 'negative') {\n if (isNumber(options?.overall)) {\n overallValue = options?.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupHeight ?? animationParameters.group.getBounds().height();\n\n (animationParameters as any).groupHeight = overallValue;\n } else {\n overallValue = animationParameters.height;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options?.overall : 0;\n }\n return {\n from: { y: prevY, y1: prevY1 },\n to: { y: overallValue, y1: overallValue }\n };\n}\n\nexport const growIntervalOut: TypeAnimation<IElement> = (\n element: IElement,\n options: Pick<IGrowCartesianAnimationOptions, 'overall'>,\n animationParameters: IAnimationParameters\n) => {\n const coord = element.mark?.coord?.output();\n const isTransposed = coord.isTransposed();\n const isPolar = coord.type === 'polar';\n const newOptions: IGrowCartesianAnimationOptions = {\n orient: 'negative',\n direction: isTransposed && !isPolar ? 'x' : 'y'\n };\n\n return options?.overall !== true\n ? growIntervalOutIndividual(element, newOptions, animationParameters)\n : growIntervalOutOverall(element, newOptions, animationParameters);\n};\n"]}
1
+ {"version":3,"sources":["../src/graph/animation/animation/grow-interval.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,SAAS,wBAAwB,CAC/B,OAAiB,EACjB,OAAuC,EACvC,mBAAyC;IAEzC,IAAI,OAAO,IAAI,OAAO,CAAC,SAAS,KAAK,GAAG,EAAE;QACxC,MAAM,CAAC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CAAC;AAED,MAAM,CAAC,MAAM,eAAe,GAA4B,CACtD,OAAiB,EACjB,OAAwD,EACxD,mBAAyC,EACzC,EAAE;;IACF,MAAM,KAAK,GAAG,MAAA,MAAA,OAAO,CAAC,IAAI,0CAAE,KAAK,0CAAE,MAAM,EAAE,CAAC;IAC5C,MAAM,YAAY,GAAG,KAAK,CAAC,YAAY,EAAE,CAAC;IAC1C,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,KAAK,OAAO,CAAC;IACvC,MAAM,UAAU,GAAmC;QACjD,MAAM,EAAE,UAAU;QAClB,SAAS,EAAE,YAAY,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG;KAChD,CAAC;IAEF,OAAO,OAAO,IAAI,OAAO,CAAC,OAAO,KAAK,IAAI;QACxC,CAAC,CAAC,yBAAyB,CAAC,OAAO,EAAE,UAAU,EAAE,mBAAmB,CAAC;QACrE,CAAC,CAAC,sBAAsB,CAAC,OAAO,EAAE,UAAU,EAAE,mBAAmB,CAAC,CAAC;AACvE,CAAC,CAAC","file":"grow-interval.js","sourcesContent":["/**\n * this animtion is only used for interval mark\n */\nimport type { IGrowCartesianAnimationOptions, IAnimationParameters, IElement, TypeAnimation } from '../../../types';\nimport { isNumber } from '@visactor/vutils';\n\nfunction growIntervalInIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n if (options && options.direction === 'x') {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n if (options.orient === 'negative') {\n return {\n from: { x: x1, x1: x1 },\n to: { x: x, x1: x1 }\n };\n }\n return {\n from: { x: x, x1: x },\n to: { x: x, y1: x1 }\n };\n }\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n if (options && options.orient === 'negative') {\n return {\n from: { y: y1, y1: y1 },\n to: { y: y, y1: y1 }\n };\n }\n return {\n from: { y: y, y1: y },\n to: { y: y, y1: y1 }\n };\n}\n\nfunction growIntervalInOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n if (options && options.direction === 'x') {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n let overallValue: number;\n if (options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupWidth ?? animationParameters.group.getBounds().width();\n\n (animationParameters as any).groupWidth = overallValue;\n } else {\n overallValue = animationParameters.width;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options.overall : 0;\n }\n return {\n from: { x: overallValue, x1: overallValue },\n to: { x: x, y1: x1 }\n };\n }\n\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n let overallValue: number;\n if (options && options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupHeight ?? animationParameters.group.getBounds().height();\n\n (animationParameters as any).groupHeight = overallValue;\n } else {\n overallValue = animationParameters.height;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options.overall : 0;\n }\n return {\n from: { y: overallValue, y1: overallValue },\n to: { y: y, y1: y1 }\n };\n}\n\nexport const growIntervalIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n const coord = element.mark?.coord?.output();\n const isTransposed = coord.isTransposed();\n const isPolar = coord.type === 'polar';\n const newOptions: IGrowCartesianAnimationOptions = {\n orient: 'negative',\n direction: isTransposed && !isPolar ? 'x' : 'y'\n };\n\n return options && options.overall !== true\n ? growIntervalInIndividual(element, newOptions, animationParameters)\n : growIntervalInOverall(element, newOptions, animationParameters);\n};\n\nfunction growIntervalOutIndividual(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n if (options && options.direction === 'x') {\n const x = element.getGraphicAttribute('x', false);\n const x1 = element.getGraphicAttribute('x1', false);\n const prevX = element.getGraphicAttribute('x', true);\n const prevX1 = element.getGraphicAttribute('x1', true);\n if (options.orient === 'negative') {\n return {\n from: { x: prevX, x1: prevX1 },\n to: { x: x1, x1: x1 }\n };\n }\n return {\n from: { x: prevX, x1: prevX1 },\n to: { x: x, x1: x }\n };\n }\n\n const y = element.getGraphicAttribute('y', false);\n const y1 = element.getGraphicAttribute('y1', false);\n const prevY = element.getGraphicAttribute('y', true);\n const prevY1 = element.getGraphicAttribute('y1', true);\n if (options && options.orient === 'negative') {\n return {\n from: { y: prevY, y1: prevY1 },\n to: { y: y1, y1: y1 }\n };\n }\n return {\n from: { y: prevY, y1: prevY1 },\n to: { y: y, y1: y }\n };\n}\n\nfunction growIntervalOutOverall(\n element: IElement,\n options: IGrowCartesianAnimationOptions,\n animationParameters: IAnimationParameters\n) {\n if (options && options.direction === 'x') {\n const prevX = element.getGraphicAttribute('x', true);\n const prevX1 = element.getGraphicAttribute('x1', true);\n let overallValue: number;\n if (options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupWidth ?? animationParameters.group.getBounds().width();\n\n (animationParameters as any).groupWidth = overallValue;\n } else {\n overallValue = animationParameters.width;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options.overall : 0;\n }\n return {\n from: { x: prevX, x1: prevX1 },\n to: { x: overallValue, x1: overallValue }\n };\n }\n\n const prevY = element.getGraphicAttribute('y', true);\n const prevY1 = element.getGraphicAttribute('y1', true);\n let overallValue: number;\n if (options && options.orient === 'negative') {\n if (isNumber(options.overall)) {\n overallValue = options.overall;\n } else if (animationParameters.group) {\n overallValue = (animationParameters as any).groupHeight ?? animationParameters.group.getBounds().height();\n\n (animationParameters as any).groupHeight = overallValue;\n } else {\n overallValue = animationParameters.height;\n }\n } else {\n overallValue = isNumber(options?.overall) ? options.overall : 0;\n }\n return {\n from: { y: prevY, y1: prevY1 },\n to: { y: overallValue, y1: overallValue }\n };\n}\n\nexport const growIntervalOut: TypeAnimation<IElement> = (\n element: IElement,\n options: Pick<IGrowCartesianAnimationOptions, 'overall'>,\n animationParameters: IAnimationParameters\n) => {\n const coord = element.mark?.coord?.output();\n const isTransposed = coord.isTransposed();\n const isPolar = coord.type === 'polar';\n const newOptions: IGrowCartesianAnimationOptions = {\n orient: 'negative',\n direction: isTransposed && !isPolar ? 'x' : 'y'\n };\n\n return options && options.overall !== true\n ? growIntervalOutIndividual(element, newOptions, animationParameters)\n : growIntervalOutOverall(element, newOptions, animationParameters);\n};\n"]}
@@ -7,7 +7,7 @@ const getCenterPoints = (element, options, animationParameters) => {
7
7
  };
8
8
  return points.forEach((point => {
9
9
  center.x += point.x, center.y += point.y;
10
- })), center.x /= points.length, center.y /= points.length, (null == options ? void 0 : options.center) && (isValidNumber(options.center.x) && (center.x = options.center.x),
10
+ })), center.x /= points.length, center.y /= points.length, options && options.center && (isValidNumber(options.center.x) && (center.x = options.center.x),
11
11
  isValidNumber(options.center.y) && (center.y = options.center.y)), points.map((() => Object.assign(center)));
12
12
  };
13
13
 
@@ -31,7 +31,7 @@ export const growPointsOut = (element, options, animationParameters) => ({
31
31
 
32
32
  const changePointsX = (element, options, animationParameters) => element.getGraphicAttribute("points", !1).map((point => {
33
33
  var _a;
34
- if ("negative" === (null == options ? void 0 : options.orient)) {
34
+ if (options && "negative" === options.orient) {
35
35
  let groupRight = animationParameters.width;
36
36
  return animationParameters.group && (groupRight = null !== (_a = animationParameters.groupWidth) && void 0 !== _a ? _a : animationParameters.group.getBounds().width(),
37
37
  animationParameters.groupWidth = groupRight), {
@@ -71,7 +71,7 @@ export const growPointsXOut = (element, options, animationParameters) => ({
71
71
 
72
72
  const changePointsY = (element, options, animationParameters) => element.getGraphicAttribute("points", !1).map((point => {
73
73
  var _a;
74
- if ("negative" === (null == options ? void 0 : options.orient)) {
74
+ if (options && "negative" === options.orient) {
75
75
  let groupBottom = animationParameters.height;
76
76
  return animationParameters.group && (groupBottom = null !== (_a = animationParameters.groupHeight) && void 0 !== _a ? _a : animationParameters.group.getBounds().height(),
77
77
  animationParameters.groupHeight = groupBottom), {
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graph/animation/animation/grow-points.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AASjD,MAAM,eAAe,GAAG,CACtB,OAAiB,EACjB,OAA2C,EAC3C,mBAAyC,EACzC,EAAE;IACF,MAAM,MAAM,GAAiB,OAAO,CAAC,mBAAmB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC1E,MAAM,MAAM,GAAe,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;IAC1C,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACrB,MAAM,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC;QACpB,MAAM,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC;IACtB,CAAC,CAAC,CAAC;IACH,MAAM,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC;IAC1B,MAAM,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC;IAE1B,IAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,EAAE;QACnB,IAAI,aAAa,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;YACnC,MAAM,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;SAC7B;QACD,IAAI,aAAa,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;YACnC,MAAM,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;SAC7B;KACF;IAED,OAAO,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;AACjD,C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E,MAAM,EAAE,OAAO,CAAC,mBAAmB,CAAC,QAAQ,EAAE,IAAI,CAAC,EAAE;QAC7D,EAAE,EAAE,EAAE,MAAM,EAAE,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,mBAAmB,CAAC,EAAE;KACrE,CAAC;AACJ,CAAC,CAAC","file":"grow-points.js","sourcesContent":["import type { IPointLike } from '@visactor/vutils';\n// eslint-disable-next-line no-duplicate-imports\nimport { isValidNumber } from '@visactor/vutils';\nimport type {\n IElement,\n IGrowPointsOverallAnimationOptions,\n IAnimationParameters,\n IGrowPointsAnimationOptions,\n TypeAnimation\n} from '../../../types';\n\nconst getCenterPoints = (\n element: IElement,\n options: IGrowPointsOverallAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n const points: IPointLike[] = element.getGraphicAttribute('points', false);\n const center: IPointLike = { x: 0, y: 0 };\n points.forEach(point => {\n center.x += point.x;\n center.y += point.y;\n });\n center.x /= points.length;\n center.y /= points.length;\n\n if (options?.center) {\n if (isValidNumber(options.center.x)) {\n center.x = options.center.x;\n }\n if (isValidNumber(options.center.y)) {\n center.y = options.center.y;\n }\n }\n\n return points.map(() => Object.assign(center));\n};\n\nexport const growPointsIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsOverallAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: getCenterPoints(element, options, animationParameters) },\n to: { points: element.getGraphicAttribute('points', false) }\n };\n};\n\nexport const growPointsOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsOverallAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: element.getGraphicAttribute('points', true) },\n to: { points: getCenterPoints(element, options, animationParameters) }\n };\n};\n\n// grow points x\n\nconst changePointsX = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n const points = element.getGraphicAttribute('points', false);\n return points.map((point: IPointLike) => {\n if (options?.orient === 'negative') {\n let groupRight = animationParameters.width;\n\n if (animationParameters.group) {\n groupRight = (animationParameters as any).groupWidth ?? animationParameters.group.getBounds().width();\n\n (animationParameters as any).groupWidth = groupRight;\n }\n\n return {\n x: groupRight,\n y: point.y,\n x1: groupRight,\n y1: point.y1,\n defined: point.defined !== false\n } as IPointLike;\n }\n return {\n x: 0,\n y: point.y,\n x1: 0,\n y1: point.y1,\n defined: point.defined !== false\n } as IPointLike;\n });\n};\n\nexport const growPointsXIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: changePointsX(element, options, animationParameters) },\n to: { points: element.getGraphicAttribute('points', false) }\n };\n};\n\nexport const growPointsXOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: element.getGraphicAttribute('points', true) },\n to: { points: changePointsX(element, options, animationParameters) }\n };\n};\n\n// grow points y\n\nconst changePointsY = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n const points = element.getGraphicAttribute('points', false);\n return points.map((point: IPointLike) => {\n if (options?.orient === 'negative') {\n let groupBottom = animationParameters.height;\n\n if (animationParameters.group) {\n groupBottom = (animationParameters as any).groupHeight ?? animationParameters.group.getBounds().height();\n\n (animationParameters as any).groupHeight = groupBottom;\n }\n\n return {\n x: point.x,\n y: groupBottom,\n x1: point.x1,\n y1: groupBottom,\n defined: point.defined !== false\n } as IPointLike;\n }\n return {\n x: point.x,\n y: 0,\n x1: point.x1,\n y1: 0,\n defined: point.defined !== false\n } as IPointLike;\n });\n};\n\nexport const growPointsYIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: changePointsY(element, options, animationParameters) },\n to: { points: element.getGraphicAttribute('points', false) }\n };\n};\n\nexport const growPointsYOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: element.getGraphicAttribute('points', true) },\n to: { points: changePointsY(element, options, animationParameters) }\n };\n};\n"]}
1
+ {"version":3,"sources":["../src/graph/animation/animation/grow-points.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AASjD,MAAM,eAAe,GAAG,CACtB,OAAiB,EACjB,OAA2C,EAC3C,mBAAyC,EACzC,EAAE;IACF,MAAM,MAAM,GAAiB,OAAO,CAAC,mBAAmB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IAC1E,MAAM,MAAM,GAAe,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;IAC1C,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;QACrB,MAAM,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC;QACpB,MAAM,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC;IACtB,CAAC,CAAC,CAAC;IACH,MAAM,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC;IAC1B,MAAM,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC;IAE1B,IAAI,OAAO,IAAI,OAAO,CAAC,MAAM,EAAE;QAC7B,IAAI,aAAa,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;YACnC,MAAM,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;SAC7B;QACD,IAAI,aAAa,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;YACnC,MAAM,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;SAC7B;KACF;IAED,OAAO,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;AACjD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,Y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QAC7D,EAAE,EAAE,EAAE,MAAM,EAAE,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,mBAAmB,CAAC,EAAE;KACrE,CAAC;AACJ,CAAC,CAAC","file":"grow-points.js","sourcesContent":["import type { IPointLike } from '@visactor/vutils';\n// eslint-disable-next-line no-duplicate-imports\nimport { isValidNumber } from '@visactor/vutils';\nimport type {\n IElement,\n IGrowPointsOverallAnimationOptions,\n IAnimationParameters,\n IGrowPointsAnimationOptions,\n TypeAnimation\n} from '../../../types';\n\nconst getCenterPoints = (\n element: IElement,\n options: IGrowPointsOverallAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n const points: IPointLike[] = element.getGraphicAttribute('points', false);\n const center: IPointLike = { x: 0, y: 0 };\n points.forEach(point => {\n center.x += point.x;\n center.y += point.y;\n });\n center.x /= points.length;\n center.y /= points.length;\n\n if (options && options.center) {\n if (isValidNumber(options.center.x)) {\n center.x = options.center.x;\n }\n if (isValidNumber(options.center.y)) {\n center.y = options.center.y;\n }\n }\n\n return points.map(() => Object.assign(center));\n};\n\nexport const growPointsIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsOverallAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: getCenterPoints(element, options, animationParameters) },\n to: { points: element.getGraphicAttribute('points', false) }\n };\n};\n\nexport const growPointsOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsOverallAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: element.getGraphicAttribute('points', true) },\n to: { points: getCenterPoints(element, options, animationParameters) }\n };\n};\n\n// grow points x\n\nconst changePointsX = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n const points = element.getGraphicAttribute('points', false);\n return points.map((point: IPointLike) => {\n if (options && options.orient === 'negative') {\n let groupRight = animationParameters.width;\n\n if (animationParameters.group) {\n groupRight = (animationParameters as any).groupWidth ?? animationParameters.group.getBounds().width();\n\n (animationParameters as any).groupWidth = groupRight;\n }\n\n return {\n x: groupRight,\n y: point.y,\n x1: groupRight,\n y1: point.y1,\n defined: point.defined !== false\n } as IPointLike;\n }\n return {\n x: 0,\n y: point.y,\n x1: 0,\n y1: point.y1,\n defined: point.defined !== false\n } as IPointLike;\n });\n};\n\nexport const growPointsXIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: changePointsX(element, options, animationParameters) },\n to: { points: element.getGraphicAttribute('points', false) }\n };\n};\n\nexport const growPointsXOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: element.getGraphicAttribute('points', true) },\n to: { points: changePointsX(element, options, animationParameters) }\n };\n};\n\n// grow points y\n\nconst changePointsY = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n const points = element.getGraphicAttribute('points', false);\n return points.map((point: IPointLike) => {\n if (options && options.orient === 'negative') {\n let groupBottom = animationParameters.height;\n\n if (animationParameters.group) {\n groupBottom = (animationParameters as any).groupHeight ?? animationParameters.group.getBounds().height();\n\n (animationParameters as any).groupHeight = groupBottom;\n }\n\n return {\n x: point.x,\n y: groupBottom,\n x1: point.x1,\n y1: groupBottom,\n defined: point.defined !== false\n } as IPointLike;\n }\n return {\n x: point.x,\n y: 0,\n x1: point.x1,\n y1: 0,\n defined: point.defined !== false\n } as IPointLike;\n });\n};\n\nexport const growPointsYIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: changePointsY(element, options, animationParameters) },\n to: { points: element.getGraphicAttribute('points', false) }\n };\n};\n\nexport const growPointsYOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowPointsAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return {\n from: { points: element.getGraphicAttribute('points', true) },\n to: { points: changePointsY(element, options, animationParameters) }\n };\n};\n"]}
@@ -1,6 +1,6 @@
1
1
  import { isNumber } from "@visactor/vutils";
2
2
 
3
- const growAngleInIndividual = (element, options, animationParameters) => "anticlockwise" === (null == options ? void 0 : options.orient) ? {
3
+ const growAngleInIndividual = (element, options, animationParameters) => options && "anticlockwise" === options.orient ? {
4
4
  from: {
5
5
  startAngle: element.getGraphicAttribute("endAngle", !1)
6
6
  },
@@ -15,8 +15,8 @@ const growAngleInIndividual = (element, options, animationParameters) => "anticl
15
15
  endAngle: element.getGraphicAttribute("endAngle", !1)
16
16
  }
17
17
  }, growAngleInOverall = (element, options, animationParameters) => {
18
- if ("anticlockwise" === (null == options ? void 0 : options.orient)) {
19
- const overallValue = isNumber(null == options ? void 0 : options.overall) ? options.overall : 2 * Math.PI;
18
+ if (options && "anticlockwise" === options.orient) {
19
+ const overallValue = isNumber(options.overall) ? options.overall : 2 * Math.PI;
20
20
  return {
21
21
  from: {
22
22
  startAngle: overallValue,
@@ -46,7 +46,7 @@ export const growAngleIn = (element, options, animationParameters) => {
46
46
  return !1 !== (null !== (_a = null == options ? void 0 : options.overall) && void 0 !== _a && _a) ? growAngleInOverall(element, options) : growAngleInIndividual(element, options);
47
47
  };
48
48
 
49
- const growAngleOutIndividual = (element, options, animationParameters) => "anticlockwise" === (null == options ? void 0 : options.orient) ? {
49
+ const growAngleOutIndividual = (element, options, animationParameters) => options && "anticlockwise" === options.orient ? {
50
50
  from: {
51
51
  startAngle: element.getGraphicAttribute("startAngle", !0)
52
52
  },
@@ -61,8 +61,8 @@ const growAngleOutIndividual = (element, options, animationParameters) => "antic
61
61
  endAngle: element.getGraphicAttribute("startAngle", !1)
62
62
  }
63
63
  }, growAngleOutOverall = (element, options, animationParameters) => {
64
- if ("anticlockwise" === (null == options ? void 0 : options.orient)) {
65
- const overallValue = isNumber(null == options ? void 0 : options.overall) ? options.overall : 2 * Math.PI;
64
+ if (options && "anticlockwise" === options.orient) {
65
+ const overallValue = isNumber(options.overall) ? options.overall : 2 * Math.PI;
66
66
  return {
67
67
  from: {
68
68
  startAngle: element.getGraphicAttribute("startAngle", !0),
@@ -92,7 +92,7 @@ export const growAngleOut = (element, options, animationParameters) => {
92
92
  return !1 !== (null !== (_a = null == options ? void 0 : options.overall) && void 0 !== _a && _a) ? growAngleOutOverall(element, options) : growAngleOutIndividual(element, options);
93
93
  };
94
94
 
95
- const growRadiusInIndividual = (element, options, animationParameters) => "inside" === (null == options ? void 0 : options.orient) ? {
95
+ const growRadiusInIndividual = (element, options, animationParameters) => options && "inside" === options.orient ? {
96
96
  from: {
97
97
  innerRadius: element.getGraphicAttribute("outerRadius", !1)
98
98
  },
@@ -125,7 +125,7 @@ export const growRadiusIn = (element, options, animationParameters) => {
125
125
  return !1 !== (null !== (_a = null == options ? void 0 : options.overall) && void 0 !== _a && _a) ? growRadiusInOverall(element, options) : growRadiusInIndividual(element, options);
126
126
  };
127
127
 
128
- const growRadiusOutIndividual = (element, options, animationParameters) => "inside" === (null == options ? void 0 : options.orient) ? {
128
+ const growRadiusOutIndividual = (element, options, animationParameters) => options && "inside" === options.orient ? {
129
129
  from: {
130
130
  innerRadius: element.getGraphicAttribute("innerRadius", !0)
131
131
  },
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/graph/animation/animation/grow-polar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAW5C,MAAM,qBAAqB,GAAG,CAC5B,OAAiB,EACjB,OAAmC,EACnC,mBAAyC,EACzC,EAAE;IACF,IAAI,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,MAAK,eAAe,EAAE;QACvC,OAAO;YACL,IAAI,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,mBAAmB,CAAC,UAAU,EAAE,KAAK,CAAC,EAAE;YACpE,EAAE,EAAE,EAAE,UAAU,EAAE,OAAO,CAAC,mBAAmB,CAAC,YAAY,EAAE,KAAK,CAAC,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CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAA4B,CACpD,OAAiB,EACjB,OAAoC,EACpC,mBAAyC,EACzC,EAAE;;IACF,OAAO,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,KAAK,CAAC,KAAK,KAAK;QAC1C,CAAC,CAAC,oBAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,mBAAmB,CAAC;QAC7D,CAAC,CAAC,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,mBAAmB,CAAC,CAAC;AACrE,CAAC,CAAC","file":"grow-polar.js","sourcesContent":["import { isNumber } from '@visactor/vutils';\nimport type {\n IElement,\n IGrowAngleAnimationOptions,\n IAnimationParameters,\n IGrowRadiusAnimationOptions,\n TypeAnimation\n} from '../../../types';\n\n// grow angle\n\nconst growAngleInIndividual = (\n element: IElement,\n options: IGrowAngleAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n if (options?.orient === 'anticlockwise') {\n return {\n from: { startAngle: element.getGraphicAttribute('endAngle', false) },\n to: { startAngle: element.getGraphicAttribute('startAngle', false) }\n };\n }\n return {\n from: { endAngle: element.getGraphicAttribute('startAngle', false) },\n to: { endAngle: element.getGraphicAttribute('endAngle', false) }\n };\n};\n\nconst growAngleInOverall = (\n element: IElement,\n options: IGrowAngleAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n if (options?.orient === 'anticlockwise') {\n const overallValue = isNumber(options?.overall) ? options.overall : Math.PI * 2;\n return {\n from: {\n startAngle: overallValue,\n endAngle: overallValue\n },\n to: {\n startAngle: element.getGraphicAttribute('startAngle', false),\n endAngle: element.getGraphicAttribute('endAngle', false)\n }\n };\n }\n const overallValue = isNumber(options?.overall) ? options.overall : 0;\n return {\n from: {\n startAngle: overallValue,\n endAngle: overallValue\n },\n to: {\n startAngle: element.getGraphicAttribute('startAngle', false),\n endAngle: element.getGraphicAttribute('endAngle', false)\n }\n };\n};\n\nexport const growAngleIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowAngleAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growAngleInOverall(element, options, animationParameters)\n : growAngleInIndividual(element, options, animationParameters);\n};\n\nconst growAngleOutIndividual = (\n element: IElement,\n options: IGrowAngleAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n if (options?.orient === 'anticlockwise') {\n return {\n from: { startAngle: element.getGraphicAttribute('startAngle', true) },\n to: { startAngle: element.getGraphicAttribute('endAngle', false) }\n };\n }\n return {\n from: { endAngle: element.getGraphicAttribute('endAngle', true) },\n to: { endAngle: element.getGraphicAttribute('startAngle', false) }\n };\n};\n\nconst growAngleOutOverall = (\n element: IElement,\n options: IGrowAngleAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n if (options?.orient === 'anticlockwise') {\n const overallValue = isNumber(options?.overall) ? options.overall : Math.PI * 2;\n return {\n from: {\n startAngle: element.getGraphicAttribute('startAngle', true),\n endAngle: element.getGraphicAttribute('endAngle', true)\n },\n to: {\n startAngle: overallValue,\n endAngle: overallValue\n }\n };\n }\n const overallValue = isNumber(options?.overall) ? options.overall : 0;\n return {\n from: {\n startAngle: element.getGraphicAttribute('startAngle', true),\n endAngle: element.getGraphicAttribute('endAngle', true)\n },\n to: {\n startAngle: overallValue,\n endAngle: overallValue\n }\n };\n};\n\nexport const growAngleOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowAngleAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growAngleOutOverall(element, options, animationParameters)\n : growAngleOutIndividual(element, options, animationParameters);\n};\n\n// grow radius\n\nconst growRadiusInIndividual = (\n element: IElement,\n options: IGrowRadiusAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n if (options?.orient === 'inside') {\n return {\n from: { innerRadius: element.getGraphicAttribute('outerRadius', false) },\n to: { innerRadius: element.getGraphicAttribute('innerRadius', false) }\n };\n }\n return {\n from: { outerRadius: element.getGraphicAttribute('innerRadius', false) },\n to: { outerRadius: element.getGraphicAttribute('outerRadius', false) }\n };\n};\n\nconst growRadiusInOverall = (\n element: IElement,\n options: IGrowRadiusAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n const overallValue = isNumber(options?.overall) ? options.overall : 0;\n return {\n from: {\n innerRadius: overallValue,\n outerRadius: overallValue\n },\n to: {\n innerRadius: element.getGraphicAttribute('innerRadius', false),\n outerRadius: element.getGraphicAttribute('outerRadius', false)\n }\n };\n};\n\nexport const growRadiusIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowRadiusAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growRadiusInOverall(element, options, animationParameters)\n : growRadiusInIndividual(element, options, animationParameters);\n};\n\nconst growRadiusOutIndividual = (\n element: IElement,\n options: IGrowRadiusAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n if (options?.orient === 'inside') {\n return {\n from: { innerRadius: element.getGraphicAttribute('innerRadius', true) },\n to: { innerRadius: element.getGraphicAttribute('outerRadius', false) }\n };\n }\n return {\n from: { outerRadius: element.getGraphicAttribute('outerRadius', true) },\n to: { outerRadius: element.getGraphicAttribute('innerRadius', false) }\n };\n};\n\nconst growRadiusOutOverall = (\n element: IElement,\n options: IGrowRadiusAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n const overallValue = isNumber(options?.overall) ? options.overall : 0;\n return {\n from: {\n innerRadius: element.getGraphicAttribute('innerRadius', true),\n outerRadius: element.getGraphicAttribute('outerRadius', true)\n },\n to: {\n innerRadius: overallValue,\n outerRadius: overallValue\n }\n };\n};\n\nexport const growRadiusOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowRadiusAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growRadiusOutOverall(element, options, animationParameters)\n : growRadiusOutIndividual(element, options, animationParameters);\n};\n"]}
1
+ {"version":3,"sources":["../src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AC,CAAC,CAAC,CAAC,CAAC;IACtE,OAAO;QACL,IAAI,EAAE;YACJ,WAAW,EAAE,OAAO,CAAC,mBAAmB,CAAC,aAAa,EAAE,IAAI,CAAC;YAC7D,WAAW,EAAE,OAAO,CAAC,mBAAmB,CAAC,aAAa,EAAE,IAAI,CAAC;SAC9D;QACD,EAAE,EAAE;YACF,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,YAAY;SAC1B;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAA4B,CACpD,OAAiB,EACjB,OAAoC,EACpC,mBAAyC,EACzC,EAAE;;IACF,OAAO,CAAC,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,mCAAI,KAAK,CAAC,KAAK,KAAK;QAC1C,CAAC,CAAC,oBAAoB,CAAC,OAAO,EAAE,OAAO,EAAE,mBAAmB,CAAC;QAC7D,CAAC,CAAC,uBAAuB,CAAC,OAAO,EAAE,OAAO,EAAE,mBAAmB,CAAC,CAAC;AACrE,CAAC,CAAC","file":"grow-polar.js","sourcesContent":["import { isNumber } from '@visactor/vutils';\nimport type {\n IElement,\n IGrowAngleAnimationOptions,\n IAnimationParameters,\n IGrowRadiusAnimationOptions,\n TypeAnimation\n} from '../../../types';\n\n// grow angle\n\nconst growAngleInIndividual = (\n element: IElement,\n options: IGrowAngleAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n if (options && options.orient === 'anticlockwise') {\n return {\n from: { startAngle: element.getGraphicAttribute('endAngle', false) },\n to: { startAngle: element.getGraphicAttribute('startAngle', false) }\n };\n }\n return {\n from: { endAngle: element.getGraphicAttribute('startAngle', false) },\n to: { endAngle: element.getGraphicAttribute('endAngle', false) }\n };\n};\n\nconst growAngleInOverall = (\n element: IElement,\n options: IGrowAngleAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n if (options && options.orient === 'anticlockwise') {\n const overallValue = isNumber(options.overall) ? options.overall : Math.PI * 2;\n return {\n from: {\n startAngle: overallValue,\n endAngle: overallValue\n },\n to: {\n startAngle: element.getGraphicAttribute('startAngle', false),\n endAngle: element.getGraphicAttribute('endAngle', false)\n }\n };\n }\n const overallValue = isNumber(options?.overall) ? options.overall : 0;\n return {\n from: {\n startAngle: overallValue,\n endAngle: overallValue\n },\n to: {\n startAngle: element.getGraphicAttribute('startAngle', false),\n endAngle: element.getGraphicAttribute('endAngle', false)\n }\n };\n};\n\nexport const growAngleIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowAngleAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growAngleInOverall(element, options, animationParameters)\n : growAngleInIndividual(element, options, animationParameters);\n};\n\nconst growAngleOutIndividual = (\n element: IElement,\n options: IGrowAngleAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n if (options && options.orient === 'anticlockwise') {\n return {\n from: { startAngle: element.getGraphicAttribute('startAngle', true) },\n to: { startAngle: element.getGraphicAttribute('endAngle', false) }\n };\n }\n return {\n from: { endAngle: element.getGraphicAttribute('endAngle', true) },\n to: { endAngle: element.getGraphicAttribute('startAngle', false) }\n };\n};\n\nconst growAngleOutOverall = (\n element: IElement,\n options: IGrowAngleAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n if (options && options.orient === 'anticlockwise') {\n const overallValue = isNumber(options.overall) ? options.overall : Math.PI * 2;\n return {\n from: {\n startAngle: element.getGraphicAttribute('startAngle', true),\n endAngle: element.getGraphicAttribute('endAngle', true)\n },\n to: {\n startAngle: overallValue,\n endAngle: overallValue\n }\n };\n }\n const overallValue = isNumber(options?.overall) ? options.overall : 0;\n return {\n from: {\n startAngle: element.getGraphicAttribute('startAngle', true),\n endAngle: element.getGraphicAttribute('endAngle', true)\n },\n to: {\n startAngle: overallValue,\n endAngle: overallValue\n }\n };\n};\n\nexport const growAngleOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowAngleAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growAngleOutOverall(element, options, animationParameters)\n : growAngleOutIndividual(element, options, animationParameters);\n};\n\n// grow radius\n\nconst growRadiusInIndividual = (\n element: IElement,\n options: IGrowRadiusAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n if (options && options.orient === 'inside') {\n return {\n from: { innerRadius: element.getGraphicAttribute('outerRadius', false) },\n to: { innerRadius: element.getGraphicAttribute('innerRadius', false) }\n };\n }\n return {\n from: { outerRadius: element.getGraphicAttribute('innerRadius', false) },\n to: { outerRadius: element.getGraphicAttribute('outerRadius', false) }\n };\n};\n\nconst growRadiusInOverall = (\n element: IElement,\n options: IGrowRadiusAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n const overallValue = isNumber(options?.overall) ? options.overall : 0;\n return {\n from: {\n innerRadius: overallValue,\n outerRadius: overallValue\n },\n to: {\n innerRadius: element.getGraphicAttribute('innerRadius', false),\n outerRadius: element.getGraphicAttribute('outerRadius', false)\n }\n };\n};\n\nexport const growRadiusIn: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowRadiusAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growRadiusInOverall(element, options, animationParameters)\n : growRadiusInIndividual(element, options, animationParameters);\n};\n\nconst growRadiusOutIndividual = (\n element: IElement,\n options: IGrowRadiusAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n if (options && options.orient === 'inside') {\n return {\n from: { innerRadius: element.getGraphicAttribute('innerRadius', true) },\n to: { innerRadius: element.getGraphicAttribute('outerRadius', false) }\n };\n }\n return {\n from: { outerRadius: element.getGraphicAttribute('outerRadius', true) },\n to: { outerRadius: element.getGraphicAttribute('innerRadius', false) }\n };\n};\n\nconst growRadiusOutOverall = (\n element: IElement,\n options: IGrowRadiusAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n const overallValue = isNumber(options?.overall) ? options.overall : 0;\n return {\n from: {\n innerRadius: element.getGraphicAttribute('innerRadius', true),\n outerRadius: element.getGraphicAttribute('outerRadius', true)\n },\n to: {\n innerRadius: overallValue,\n outerRadius: overallValue\n }\n };\n};\n\nexport const growRadiusOut: TypeAnimation<IElement> = (\n element: IElement,\n options: IGrowRadiusAnimationOptions,\n animationParameters: IAnimationParameters\n) => {\n return (options?.overall ?? false) !== false\n ? growRadiusOutOverall(element, options, animationParameters)\n : growRadiusOutIndividual(element, options, animationParameters);\n};\n"]}