@visactor/vchart 1.4.1-alpha.0 → 1.4.1

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 (181) hide show
  1. package/build/es5/index.js +1 -1
  2. package/build/index.js +126 -137
  3. package/build/index.min.js +1 -1
  4. package/build/tsconfig.tsbuildinfo +1 -1
  5. package/cjs/chart/base-chart.d.ts +4 -4
  6. package/cjs/chart/base-chart.js +9 -9
  7. package/cjs/chart/base-chart.js.map +1 -1
  8. package/cjs/chart/interface/chart.d.ts +1 -1
  9. package/cjs/chart/interface/chart.js.map +1 -1
  10. package/cjs/chart/rose/rose.js +1 -1
  11. package/cjs/chart/rose/rose.js.map +1 -1
  12. package/cjs/component/axis/cartesian/band-axis.js +2 -2
  13. package/cjs/component/axis/cartesian/band-axis.js.map +1 -1
  14. package/cjs/component/axis/cartesian/config.d.ts +1 -0
  15. package/cjs/component/axis/cartesian/config.js +3 -2
  16. package/cjs/component/axis/cartesian/config.js.map +1 -1
  17. package/cjs/component/axis/interface.d.ts +1 -0
  18. package/cjs/component/axis/interface.js.map +1 -1
  19. package/cjs/component/axis/polar/axis.js +5 -4
  20. package/cjs/component/axis/polar/axis.js.map +1 -1
  21. package/cjs/component/axis/polar/band-axis.d.ts +2 -2
  22. package/cjs/component/axis/polar/band-axis.js +4 -3
  23. package/cjs/component/axis/polar/band-axis.js.map +1 -1
  24. package/cjs/component/axis/polar/config.d.ts +1 -0
  25. package/cjs/component/axis/polar/config.js +3 -2
  26. package/cjs/component/axis/polar/config.js.map +1 -1
  27. package/cjs/component/data-zoom/data-zoom/data-zoom.js +1 -1
  28. package/cjs/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
  29. package/cjs/component/marker/interface.d.ts +5 -2
  30. package/cjs/component/marker/interface.js.map +1 -1
  31. package/cjs/component/marker/mark-area/interface/theme.d.ts +2 -2
  32. package/cjs/component/marker/mark-area/interface/theme.js.map +1 -1
  33. package/cjs/component/marker/mark-area/mark-area.js.map +1 -1
  34. package/cjs/core/index.d.ts +1 -1
  35. package/cjs/core/index.js +1 -1
  36. package/cjs/core/index.js.map +1 -1
  37. package/cjs/core/vchart.js +2 -1
  38. package/cjs/core/vchart.js.map +1 -1
  39. package/cjs/model/base-model.d.ts +1 -0
  40. package/cjs/model/base-model.js +3 -0
  41. package/cjs/model/base-model.js.map +1 -1
  42. package/cjs/model/interface.d.ts +1 -0
  43. package/cjs/model/interface.js.map +1 -1
  44. package/cjs/series/cartesian/cartesian.js.map +1 -1
  45. package/cjs/series/rose/rose.js +2 -2
  46. package/cjs/series/rose/rose.js.map +1 -1
  47. package/cjs/series/word-cloud/base.js +39 -35
  48. package/cjs/series/word-cloud/base.js.map +1 -1
  49. package/cjs/series/word-cloud/word-cloud-3d.js +39 -35
  50. package/cjs/series/word-cloud/word-cloud-3d.js.map +1 -1
  51. package/cjs/theme/builtin/common/component/axis/common-axis.js +0 -2
  52. package/cjs/theme/builtin/common/component/axis/common-axis.js.map +1 -1
  53. package/cjs/theme/builtin/common/component/crosshair.js +1 -2
  54. package/cjs/theme/builtin/common/component/crosshair.js.map +1 -1
  55. package/cjs/theme/builtin/common/component/data-zoom.js +0 -2
  56. package/cjs/theme/builtin/common/component/data-zoom.js.map +1 -1
  57. package/cjs/theme/builtin/common/component/indicator.js +0 -2
  58. package/cjs/theme/builtin/common/component/indicator.js.map +1 -1
  59. package/cjs/theme/builtin/common/component/legend/continuous.js +0 -4
  60. package/cjs/theme/builtin/common/component/legend/continuous.js.map +1 -1
  61. package/cjs/theme/builtin/common/component/legend/discrete-legend.js +0 -2
  62. package/cjs/theme/builtin/common/component/legend/discrete-legend.js.map +1 -1
  63. package/cjs/theme/builtin/common/component/map-label.js +2 -4
  64. package/cjs/theme/builtin/common/component/map-label.js.map +1 -1
  65. package/cjs/theme/builtin/common/component/mark-area.js +0 -1
  66. package/cjs/theme/builtin/common/component/mark-area.js.map +1 -1
  67. package/cjs/theme/builtin/common/component/mark-line.js +0 -1
  68. package/cjs/theme/builtin/common/component/mark-line.js.map +1 -1
  69. package/cjs/theme/builtin/common/component/poptip.js +0 -2
  70. package/cjs/theme/builtin/common/component/poptip.js.map +1 -1
  71. package/cjs/theme/builtin/common/component/title.js +0 -2
  72. package/cjs/theme/builtin/common/component/title.js.map +1 -1
  73. package/cjs/theme/builtin/common/component/tooltip.js +0 -3
  74. package/cjs/theme/builtin/common/component/tooltip.js.map +1 -1
  75. package/cjs/theme/builtin/common/component/total-label.js +0 -1
  76. package/cjs/theme/builtin/common/component/total-label.js.map +1 -1
  77. package/cjs/theme/builtin/common/mark.js +0 -2
  78. package/cjs/theme/builtin/common/mark.js.map +1 -1
  79. package/cjs/theme/builtin/common/series/circle-packing.js +1 -2
  80. package/cjs/theme/builtin/common/series/circle-packing.js.map +1 -1
  81. package/cjs/theme/builtin/common/series/dot.js +2 -4
  82. package/cjs/theme/builtin/common/series/dot.js.map +1 -1
  83. package/cjs/theme/builtin/common/series/funnel.js +0 -2
  84. package/cjs/theme/builtin/common/series/funnel.js.map +1 -1
  85. package/cjs/theme/builtin/common/series/funnel3d.js +0 -2
  86. package/cjs/theme/builtin/common/series/funnel3d.js.map +1 -1
  87. package/cjs/theme/builtin/common/series/sunburst.js +1 -2
  88. package/cjs/theme/builtin/common/series/sunburst.js.map +1 -1
  89. package/cjs/theme/builtin/common/series/treemap.js +1 -3
  90. package/cjs/theme/builtin/common/series/treemap.js.map +1 -1
  91. package/cjs/theme/builtin/common/series/waterfall.js +1 -2
  92. package/cjs/theme/builtin/common/series/waterfall.js.map +1 -1
  93. package/esm/chart/base-chart.d.ts +4 -4
  94. package/esm/chart/base-chart.js +9 -9
  95. package/esm/chart/base-chart.js.map +1 -1
  96. package/esm/chart/interface/chart.d.ts +1 -1
  97. package/esm/chart/interface/chart.js.map +1 -1
  98. package/esm/chart/rose/rose.js +2 -2
  99. package/esm/chart/rose/rose.js.map +1 -1
  100. package/esm/component/axis/cartesian/band-axis.js +3 -3
  101. package/esm/component/axis/cartesian/band-axis.js.map +1 -1
  102. package/esm/component/axis/cartesian/config.d.ts +1 -0
  103. package/esm/component/axis/cartesian/config.js +2 -0
  104. package/esm/component/axis/cartesian/config.js.map +1 -1
  105. package/esm/component/axis/interface.d.ts +1 -0
  106. package/esm/component/axis/interface.js.map +1 -1
  107. package/esm/component/axis/polar/axis.js +6 -3
  108. package/esm/component/axis/polar/axis.js.map +1 -1
  109. package/esm/component/axis/polar/band-axis.d.ts +2 -2
  110. package/esm/component/axis/polar/band-axis.js +5 -4
  111. package/esm/component/axis/polar/band-axis.js.map +1 -1
  112. package/esm/component/axis/polar/config.d.ts +1 -0
  113. package/esm/component/axis/polar/config.js +2 -0
  114. package/esm/component/axis/polar/config.js.map +1 -1
  115. package/esm/component/data-zoom/data-zoom/data-zoom.js +1 -1
  116. package/esm/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
  117. package/esm/component/marker/interface.d.ts +5 -2
  118. package/esm/component/marker/interface.js.map +1 -1
  119. package/esm/component/marker/mark-area/interface/theme.d.ts +2 -2
  120. package/esm/component/marker/mark-area/interface/theme.js.map +1 -1
  121. package/esm/component/marker/mark-area/mark-area.js.map +1 -1
  122. package/esm/core/index.d.ts +1 -1
  123. package/esm/core/index.js +1 -1
  124. package/esm/core/index.js.map +1 -1
  125. package/esm/core/vchart.js +3 -2
  126. package/esm/core/vchart.js.map +1 -1
  127. package/esm/model/base-model.d.ts +1 -0
  128. package/esm/model/base-model.js +3 -0
  129. package/esm/model/base-model.js.map +1 -1
  130. package/esm/model/interface.d.ts +1 -0
  131. package/esm/model/interface.js.map +1 -1
  132. package/esm/series/cartesian/cartesian.js.map +1 -1
  133. package/esm/series/rose/rose.js +2 -2
  134. package/esm/series/rose/rose.js.map +1 -1
  135. package/esm/series/word-cloud/base.js +38 -34
  136. package/esm/series/word-cloud/base.js.map +1 -1
  137. package/esm/series/word-cloud/word-cloud-3d.js +38 -34
  138. package/esm/series/word-cloud/word-cloud-3d.js.map +1 -1
  139. package/esm/theme/builtin/common/component/axis/common-axis.js +0 -2
  140. package/esm/theme/builtin/common/component/axis/common-axis.js.map +1 -1
  141. package/esm/theme/builtin/common/component/crosshair.js +1 -2
  142. package/esm/theme/builtin/common/component/crosshair.js.map +1 -1
  143. package/esm/theme/builtin/common/component/data-zoom.js +0 -2
  144. package/esm/theme/builtin/common/component/data-zoom.js.map +1 -1
  145. package/esm/theme/builtin/common/component/indicator.js +0 -2
  146. package/esm/theme/builtin/common/component/indicator.js.map +1 -1
  147. package/esm/theme/builtin/common/component/legend/continuous.js +0 -4
  148. package/esm/theme/builtin/common/component/legend/continuous.js.map +1 -1
  149. package/esm/theme/builtin/common/component/legend/discrete-legend.js +0 -2
  150. package/esm/theme/builtin/common/component/legend/discrete-legend.js.map +1 -1
  151. package/esm/theme/builtin/common/component/map-label.js +2 -4
  152. package/esm/theme/builtin/common/component/map-label.js.map +1 -1
  153. package/esm/theme/builtin/common/component/mark-area.js +0 -1
  154. package/esm/theme/builtin/common/component/mark-area.js.map +1 -1
  155. package/esm/theme/builtin/common/component/mark-line.js +0 -1
  156. package/esm/theme/builtin/common/component/mark-line.js.map +1 -1
  157. package/esm/theme/builtin/common/component/poptip.js +0 -2
  158. package/esm/theme/builtin/common/component/poptip.js.map +1 -1
  159. package/esm/theme/builtin/common/component/title.js +0 -2
  160. package/esm/theme/builtin/common/component/title.js.map +1 -1
  161. package/esm/theme/builtin/common/component/tooltip.js +0 -3
  162. package/esm/theme/builtin/common/component/tooltip.js.map +1 -1
  163. package/esm/theme/builtin/common/component/total-label.js +0 -1
  164. package/esm/theme/builtin/common/component/total-label.js.map +1 -1
  165. package/esm/theme/builtin/common/mark.js +0 -2
  166. package/esm/theme/builtin/common/mark.js.map +1 -1
  167. package/esm/theme/builtin/common/series/circle-packing.js +1 -2
  168. package/esm/theme/builtin/common/series/circle-packing.js.map +1 -1
  169. package/esm/theme/builtin/common/series/dot.js +2 -4
  170. package/esm/theme/builtin/common/series/dot.js.map +1 -1
  171. package/esm/theme/builtin/common/series/funnel.js +0 -2
  172. package/esm/theme/builtin/common/series/funnel.js.map +1 -1
  173. package/esm/theme/builtin/common/series/funnel3d.js +0 -2
  174. package/esm/theme/builtin/common/series/funnel3d.js.map +1 -1
  175. package/esm/theme/builtin/common/series/sunburst.js +1 -2
  176. package/esm/theme/builtin/common/series/sunburst.js.map +1 -1
  177. package/esm/theme/builtin/common/series/treemap.js +1 -3
  178. package/esm/theme/builtin/common/series/treemap.js.map +1 -1
  179. package/esm/theme/builtin/common/series/waterfall.js +1 -2
  180. package/esm/theme/builtin/common/series/waterfall.js.map +1 -1
  181. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/series/word-cloud/base.ts"],"names":[],"mappings":";;;AAEA,6CAA0D;AAC1D,6CAA2C;AAC3C,6CAA6F;AAG7F,4CAAuD;AACvD,qCAA2C;AAC3C,qCAWkB;AAOlB,qEAA2E;AAC3E,iFAAsF;AAEtF,mDAAgE;AAChE,iDAA6E;AAC7E,6CAA+C;AAC/C,2DAAiD;AACjD,0DAKmC;AACnC,wDAA8D;AAE9D,qDAAiD;AACjD,yEAAoE;AACpE,8CAA2C;AAC3C,0CAA2C;AAC3C,yCAAiD;AAGjD,eAAM,CAAC,OAAO,CAAC,CAAC,eAAQ,CAAC,CAAC,CAAC;AAE3B,IAAA,gDAA2B,GAAE,CAAC;AAC9B,IAAA,2DAAgC,GAAE,CAAC;AAInC,MAAa,mBAAmF,SAAQ,wBAAa;IAArH;;QAoBY,mBAAc,GAAsB,CAAC,8BAAqB,EAAE,8BAAqB,CAAC,CAAC;QAUnF,sBAAiB,GAAY,KAAK,CAAC;IA4W/C,CAAC;IArYC,aAAa,CAAC,KAAa;QACzB,IAAI,IAAA,gBAAO,EAAC,KAAK,CAAC,EAAE;YAClB,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;SAC1B;IACH,CAAC;IAYD,gBAAgB,CAAC,aAA+B;QAC9C,IAAI,IAAA,gBAAO,EAAC,aAAa,CAAC,E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,GAAQ;QAClB,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QACvB,IAAI,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC;;AAzYH,kDA0YC;AAzYiB,wBAAI,GAAkB,8BAAmB,CAAC","file":"base.js","sourcesContent":["/* eslint-disable no-duplicate-imports */\nimport type { IPadding } from '@visactor/vutils';\nimport { isEqual, isValidNumber } from '@visactor/vutils';\nimport { isValid } from '@visactor/vutils';\nimport { AttributeLevel, DEFAULT_DATA_KEY, DEFAULT_DATA_SERIES_FIELD } from '../../constant';\nimport type { ITextMark } from '../../mark/text';\nimport type { SeriesMarkMap } from '../interface';\nimport { SeriesMarkNameEnum } from '../interface/type';\nimport { isTrueBrowser } from '../../util';\nimport {\n DEFAULT_DRAW_OUT_OF_BOUND,\n DEFAULT_FONTSIZE_RANGE,\n DEFAULT_FONT_PADDING,\n DEFAULT_FONT_WEIGHT_RANGE,\n DEFAULT_MASK_SHAPE,\n DEFAULT_MIN_FONT_SIZE,\n DEFAULT_RANDOM,\n DEFAULT_ROTATE_ANGLES,\n DEFAULT_ZOOM_TO_FIT,\n SHAPE_TYPE\n} from './config';\nimport type {\n IWordCloudSeriesSpec,\n WordCloudConfigType,\n WordCloudShapeConfigType,\n WordCloudShapeType\n} from './interface';\nimport { registerWordCloudTransforms } from '@visactor/vgrammar-wordcloud';\nimport { registerWordCloudShapeTransforms } from '@visactor/vgrammar-wordcloud-shape';\nimport type { Datum, IPoint } from '../../typings';\nimport { DEFAULT_MARK_ANIMATION } from '../../animation/config';\nimport { animationConfig, userAnimationConfig } from '../../animation/utils';\nimport { LinearScale } from '@visactor/vscale';\nimport { extent } from '@visactor/vgrammar-util';\nimport {\n WORD_CLOUD_ANGLE,\n WORD_CLOUD_FILLING_ANGLE,\n WORD_CLOUD_TEXT,\n WORD_CLOUD_WEIGHT\n} from '../../constant/word-cloud';\nimport { getDataScheme } from '../../theme/color-scheme/util';\nimport type { ICompilableMark } from '../../compile/mark';\nimport { BaseSeries } from '../base/base-series';\nimport { ColorOrdinalScale } from '../../scale/color-ordinal-scale';\nimport { VChart } from '../../core/vchart';\nimport { TextMark } from '../../mark/text';\nimport { wordCloudSeriesMark } from './constant';\nimport type { IStateAnimateSpec } from '../../animation/spec';\n\nVChart.useMark([TextMark]);\n\nregisterWordCloudTransforms();\nregisterWordCloudShapeTransforms();\n\nexport type IBaseWordCloudSeriesSpec = Omit<IWordCloudSeriesSpec, 'type'> & { type: string };\n\nexport class BaseWordCloudSeries<T extends IBaseWordCloudSeriesSpec = IBaseWordCloudSeriesSpec> extends BaseSeries<T> {\n static readonly mark: SeriesMarkMap = wordCloudSeriesMark;\n\n protected _nameField: string;\n protected _valueField?: string;\n setValueField(field: string) {\n if (isValid(field)) {\n this._valueField = field;\n }\n }\n\n protected _fontFamilyField: string;\n protected _fontWeightField: string;\n protected _fontStyleField: string;\n protected _colorHexField: string;\n protected _colorMode: 'linear' | 'ordinal';\n protected _colorList: string[];\n protected _rotateAngles?: number[];\n protected _fontWeightRange?: [number, number];\n\n protected _fontSizeRange?: [number, number] = [DEFAULT_MIN_FONT_SIZE, DEFAULT_MIN_FONT_SIZE];\n setFontSizeRange(fontSizeRange: [number, number]) {\n if (isValid(fontSizeRange)) {\n this._fontSizeRange = fontSizeRange;\n } else {\n this._fontSizeRange = DEFAULT_FONTSIZE_RANGE;\n }\n }\n\n protected _maskShape?: string | WordCloudShapeType;\n protected _isWordCloudShape: boolean = false;\n\n protected _keepAspect?: boolean;\n protected _random?: boolean;\n protected _fontPadding?: number;\n protected _fillingFontPadding?: number;\n protected _wordCloudConfig?: WordCloudConfigType;\n protected _wordCloudShapeConfig?: WordCloudShapeConfigType;\n\n protected _padding?: IPadding;\n\n /**\n * @override\n */\n setAttrFromSpec() {\n super.setAttrFromSpec();\n // series布局相关\n this._padding = this._option.getChart().padding;\n\n // 普通词云 & 形状词云 共有spec相关\n this._nameField = this._spec.nameField;\n this._fontFamilyField = this._spec.fontFamilyField;\n this._fontWeightField = this._spec.fontWeightField;\n this._fontStyleField = this._spec.fontStyleField;\n this._colorHexField = this._spec.colorHexField;\n this._colorMode = this._spec.colorMode ?? 'ordinal';\n this._colorList = this._spec.colorList;\n this.setValueField(this._spec.valueField);\n this._fontWeightRange = this._spec.fontWeightRange ?? DEFAULT_FONT_WEIGHT_RANGE;\n this._rotateAngles = this._spec.rotateAngles ?? DEFAULT_ROTATE_ANGLES;\n this.setFontSizeRange(this._spec.fontSizeRange);\n this._maskShape = this._spec.maskShape ?? DEFAULT_MASK_SHAPE;\n this._keepAspect = this._spec.keepAspect;\n this._random = this._spec.random ?? DEFAULT_RANDOM;\n this._fontPadding = this._spec?.word?.padding ?? this._theme?.wordCloud?.word?.padding ?? DEFAULT_FONT_PADDING;\n\n // 普通词云spec相关\n this._wordCloudConfig = {\n drawOutOfBound: DEFAULT_DRAW_OUT_OF_BOUND,\n layoutMode: 'default',\n zoomToFit: DEFAULT_ZOOM_TO_FIT,\n ...this._spec.wordCloudConfig\n };\n\n // 形状词云spec相关\n this._wordCloudShapeConfig = {\n fillingSeriesField: this.getSeriesField(),\n fillingRotateAngles: DEFAULT_ROTATE_ANGLES,\n layoutMode: 'default',\n ...this._spec?.wordCloudShapeConfig\n };\n this._fillingFontPadding =\n this._spec?.fillingWord?.padding ?? this._theme?.wordCloud?.fillingWord?.padding ?? DEFAULT_FONT_PADDING;\n\n this._isWordCloudShape = !SHAPE_TYPE.includes(this._maskShape);\n }\n\n protected _wordMark: ITextMark;\n protected _fillingWordMark: ITextMark;\n initMark(): void {\n this._wordMark = this._createMark(BaseWordCloudSeries.mark.word, {\n defaultMorphElementKey: this._seriesField,\n groupKey: this._seriesField,\n isSeriesMark: true\n }) as ITextMark;\n if (this._isWordCloudShape) {\n this._fillingWordMark = this._createMark(BaseWordCloudSeries.mark.fillingWord) as ITextMark;\n }\n }\n\n initMarkStyle() {\n const wordMark = this._wordMark;\n const fillingWordMark = this._fillingWordMark;\n const textField = this._spec.word?.formatMethod ? WORD_CLOUD_TEXT : this._nameField;\n if (wordMark) {\n this.setMarkStyle(\n wordMark,\n {\n fill: this._colorHexField\n ? (datum: Datum) => datum[this._colorHexField]\n : this.getWordColorAttribute(this._seriesField, false),\n text: (datum: Datum) => datum[textField],\n x: (datum: Datum) => datum.x,\n y: (datum: Datum) => datum.y,\n fontFamily: (datum: Datum) => datum.fontFamily,\n fontSize: (datum: Datum) => datum.fontSize,\n fontStyle: (datum: Datum) => datum.fontStyle,\n fontWeight: (datum: Datum) => datum.fontWeight,\n angle: (datum: Datum) => datum.angle,\n visible: (datum: Datum) => !datum.isFillingWord\n },\n 'normal',\n AttributeLevel.Series\n );\n }\n if (fillingWordMark) {\n this.setMarkStyle(\n fillingWordMark,\n {\n fill: this._wordCloudShapeConfig.fillingColorHexField\n ? (datum: Datum) => datum[this._wordCloudShapeConfig.fillingColorHexField]\n : this.getWordColorAttribute(this._wordCloudShapeConfig.fillingSeriesField, true),\n text: (datum: Datum) => datum[textField],\n x: (datum: Datum) => datum.x,\n y: (datum: Datum) => datum.y,\n fontFamily: (datum: Datum) => datum.fontFamily,\n fontSize: (datum: Datum) => datum.fontSize,\n fontStyle: (datum: Datum) => datum.fontStyle,\n fontWeight: (datum: Datum) => datum.fontWeight,\n angle: (datum: Datum) => datum.angle,\n visible: (datum: Datum) => datum.isFillingWord\n },\n 'normal',\n AttributeLevel.Series\n );\n }\n this._trigger.registerMark(wordMark);\n this._tooltipHelper?.activeTriggerSet.mark.add(wordMark);\n this._trigger.registerMark(fillingWordMark);\n this._tooltipHelper?.activeTriggerSet.mark.add(fillingWordMark);\n }\n\n initAnimation() {\n [this._wordMark, this._fillingWordMark].forEach(mark => {\n if (mark) {\n const appearPreset = (this._spec?.animationAppear as IStateAnimateSpec<any>)?.preset;\n const params = {\n animationConfig: () => mark.getAnimationConfig()?.appear?.[0]\n };\n mark.setAnimationConfig(\n animationConfig(\n DEFAULT_MARK_ANIMATION.wordCloud(params, appearPreset),\n userAnimationConfig(SeriesMarkNameEnum.word, this._spec)\n )\n );\n }\n });\n }\n\n protected getWordOrdinalColorScale(field: string, isFillingWord: boolean) {\n const colorList = isFillingWord ? this._wordCloudShapeConfig.fillingColorList : this._colorList;\n const colorDomain = field ? this.getViewData()?.latestData.map((datum: Datum) => datum[field]) : [];\n const colorRange =\n colorList ??\n this._option.globalScale.getScale('color')?.range() ??\n getDataScheme(this._option.getTheme().colorScheme, this.type as any);\n return new ColorOrdinalScale().domain(colorDomain).range?.(colorRange);\n }\n\n getWordColorAttribute(field: string, isFillingWord: boolean) {\n if (this._colorMode === 'ordinal') {\n return {\n scale: this.getWordOrdinalColorScale(field, isFillingWord),\n field: this._seriesField ?? DEFAULT_DATA_SERIES_FIELD\n };\n }\n // const valueScale = new LinearScale()\n // .domain(extent(this.getViewData()?.latestData.map((datum: Datum) => datum[field])), true)\n // .range([0, 1]);\n let colorList =\n (isFillingWord ? this._colorList : this._wordCloudShapeConfig.fillingColorList) ??\n this._option.globalScale.getScale('color').range();\n // 如果用户只输入了一个 color,无法构成 colorRange,则进行兜底\n if (colorList.length === 1) {\n colorList = [colorList[0], colorList[0]];\n }\n // 颜色插值 todo@chensiji\n // const interpolate = interpolateColors(colorList)\n // return (datum: Datum) => interpolate(valueScale.scale(datum[field]))\n return (datum: Datum) => colorList[0];\n }\n\n compile(): void {\n super.compile();\n const { width, height } = this._region.getLayoutRect();\n // 非正常尺寸下不进行布局\n if (!isValidNumber(width) || !isValidNumber(height) || !(height > 0 && width > 0)) {\n return;\n }\n\n const wordCloudTransforms: any[] = [];\n const valueField = this._valueField;\n const valueScale = new LinearScale();\n const fontWeightRange = this._fontWeightRange;\n const rotateAngles = this._rotateAngles;\n const fontWeightField = this._fontWeightField;\n const fillingRotateAngles = this._wordCloudShapeConfig.fillingRotateAngles;\n\n // fontWeight处理\n if (valueField) {\n const [minValue, maxValue] = extent(this.getViewData()?.latestData.map((datum: any) => +datum[valueField]));\n valueScale.domain([minValue, maxValue], true).range(fontWeightRange);\n wordCloudTransforms.push({\n type: 'map',\n as: WORD_CLOUD_WEIGHT,\n callback: (datum: any) => {\n if (minValue === maxValue) {\n return valueScale.scale(maxValue);\n }\n return valueScale.scale(datum[valueField]);\n }\n });\n }\n\n // rotateAngles处理\n wordCloudTransforms.push({\n type: 'map',\n as: WORD_CLOUD_ANGLE,\n callback: () => {\n return rotateAngles[Math.floor(Math.random() * rotateAngles.length)];\n }\n });\n wordCloudTransforms.push({\n type: 'map',\n as: WORD_CLOUD_FILLING_ANGLE,\n callback: () => {\n return fillingRotateAngles[Math.floor(Math.random() * fillingRotateAngles.length)];\n }\n });\n\n // text fromat method 处理\n if (this._spec.word?.formatMethod) {\n wordCloudTransforms.push({\n type: 'map',\n as: WORD_CLOUD_TEXT,\n callback: this._spec.word.formatMethod\n });\n }\n\n const textField = this._spec.word?.formatMethod ? WORD_CLOUD_TEXT : this._nameField;\n\n // 词云 transform\n if (!this._isWordCloudShape) {\n wordCloudTransforms.push({\n type: 'wordcloud',\n // TIP: 非浏览器环境下,使用 fast 布局,否则会出现兼容问题\n layoutType: !isTrueBrowser(this._option.mode) ? 'fast' : this._wordCloudConfig.layoutMode,\n size: [width, height],\n shape: this._maskShape,\n dataIndexKey: DEFAULT_DATA_KEY,\n text: { field: textField },\n fontSize: valueField ? { field: valueField } : this._fontSizeRange[0],\n fontSizeRange: this._fontSizeRange,\n padding: this._fontPadding,\n rotate: { field: WORD_CLOUD_ANGLE },\n fontFamily: this._fontFamilyField ?? this._spec.word?.style?.fontFamily,\n fontWeight: fontWeightField ? { field: fontWeightField } : valueField ? { field: WORD_CLOUD_WEIGHT } : null,\n fontStyle: this._fontStyleField ?? this._spec.word?.style?.fontStyle,\n\n randomVisible: this._random,\n clip: this._wordCloudConfig.drawOutOfBound === 'clip',\n shrink: this._wordCloudConfig.zoomToFit.shrink,\n enlarge: this._wordCloudConfig.zoomToFit.enlarge,\n minFontSize: this._wordCloudConfig.zoomToFit.fontSizeLimitMin,\n progressiveTime: this._wordCloudConfig.progressiveTime,\n progressiveStep: this._wordCloudConfig.progressiveStep\n });\n // 挂到mark的transform上\n (this._wordMark as ICompilableMark).getProduct().transform(wordCloudTransforms);\n }\n // 形状词云 transform\n else {\n wordCloudTransforms.push({\n type: 'wordcloudShape',\n // 形状词云中必须要传入dataIndexKey, 否则填充词无法绘制\n dataIndexKey: DEFAULT_DATA_KEY,\n\n size: [width, height],\n shape: this._maskShape,\n\n text: { field: this._spec.word?.formatMethod ? WORD_CLOUD_TEXT : this._nameField },\n fontSize: valueField ? { field: valueField } : this._fontSizeRange[0],\n fontSizeRange: this._fontSizeRange,\n padding: this._fontPadding,\n rotateList: rotateAngles,\n fontFamily: this._fontFamilyField ?? this._spec.word?.style?.fontFamily,\n fontWeight: fontWeightField ? { field: fontWeightField } : valueField ? { field: WORD_CLOUD_WEIGHT } : null,\n fontStyle: this._fontStyleField ?? this._spec.word?.style?.fontStyle,\n\n fillingFontFamily: this._wordCloudShapeConfig?.fillingFontFamilyField ?? this._spec.word?.style?.fontFamily,\n fillingPadding: this._fillingFontPadding,\n fillingFontStyle: this._wordCloudShapeConfig?.fillingFontStyleField ?? this._spec.word?.style?.fontStyle,\n fillingFontWeight: this._wordCloudShapeConfig?.fillingFontWeightField ?? this._spec.word?.style?.fontWeight, // 填充词fontWeight默认不跟随valueField\n fillingRotateList: fillingRotateAngles,\n\n fillingTimes: this._wordCloudShapeConfig?.fillingTimes,\n fillingXStep: this._wordCloudShapeConfig?.fillingXStep,\n fillingYStep: this._wordCloudShapeConfig?.fillingYStep,\n fillingXRatioStep: this._wordCloudShapeConfig?.fillingXRatioStep,\n fillingYRatioStep: this._wordCloudShapeConfig?.fillingYRatioStep,\n fillingInitialOpacity: this._wordCloudShapeConfig?.fillingInitialOpacity,\n fillingDeltaOpacity: this._wordCloudShapeConfig?.fillingDeltaOpacity,\n fillingInitialFontSize: this._wordCloudShapeConfig?.fillingInitialFontSize,\n fillingDeltaFontSize: this._wordCloudShapeConfig?.fillingDeltaFontSize,\n\n ratio: this._wordCloudShapeConfig?.ratio,\n fillingRatio: this._wordCloudShapeConfig?.fillingRatio,\n removeWhiteBorder: this._wordCloudShapeConfig?.removeWhiteBorder,\n textLayoutTimes: this._wordCloudShapeConfig?.textLayoutTimes,\n fontSizeShrinkFactor: this._wordCloudShapeConfig?.fontSizeShrinkFactor,\n stepFactor: this._wordCloudShapeConfig?.stepFactor,\n layoutMode: this._wordCloudShapeConfig?.layoutMode,\n importantWordCount: this._wordCloudShapeConfig?.importantWordCount,\n globalShinkLimit: this._wordCloudShapeConfig?.globalShinkLimit,\n fontSizeEnlargeFactor: this._wordCloudShapeConfig?.fontSizeEnlargeFactor,\n fillingDeltaFontSizeFactor: this._wordCloudShapeConfig?.fillingDeltaFontSizeFactor\n });\n }\n // 把transform挂载到data的product上\n this._data.getProduct().transform(wordCloudTransforms);\n }\n\n getStatisticFields() {\n const fields: { key: string; operations: Array<'max' | 'min' | 'values'> }[] = [];\n fields.push({ key: this._nameField, operations: ['values'] });\n fields.push({ key: this._valueField, operations: ['max', 'min'] });\n return fields;\n }\n dataToPosition(data: Datum): IPoint {\n return null;\n }\n dataToPositionX(data: any): number {\n return null;\n }\n dataToPositionY(data: any): number {\n return null;\n }\n dataToPositionZ(data: any): number {\n return null;\n }\n valueToPosition(value1: any, value2?: any): IPoint {\n return null;\n }\n setValueFieldToStackOffsetSilhouette(): void {\n // do nothing\n }\n\n getGroupFields(): string[] {\n // do nothing\n return [];\n }\n\n getStackGroupFields(): string[] {\n // do nothing\n return [];\n }\n\n getStackValueField(): string {\n // do nothing\n return '';\n }\n\n setValueFieldToStack(): void {\n // do nothing\n }\n\n setValueFieldToPercent(): void {\n //do nothing\n }\n\n onLayoutEnd(ctx: any): void {\n super.onLayoutEnd(ctx);\n this.compile();\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/series/word-cloud/base.ts"],"names":[],"mappings":";;;AAEA,6CAA0D;AAC1D,6CAA2C;AAC3C,6CAA6F;AAG7F,4CAAuD;AACvD,qCAA2C;AAC3C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AAc;QAEZ,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,mBAAmB;QAEjB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,kBAAkB;QAEhB,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,oBAAoB;IAEpB,CAAC;IAED,sBAAsB;IAEtB,CAAC;IAED,WAAW,CAAC,GAAQ;QAClB,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QACvB,IAAI,CAAC,OAAO,EAAE,CAAC;IACjB,CAAC;;AA7ZH,kDA8ZC;AA7ZiB,wBAAI,GAAkB,8BAAmB,CAAC","file":"base.js","sourcesContent":["/* eslint-disable no-duplicate-imports */\nimport type { IPadding } from '@visactor/vutils';\nimport { isEqual, isValidNumber } from '@visactor/vutils';\nimport { isValid } from '@visactor/vutils';\nimport { AttributeLevel, DEFAULT_DATA_KEY, DEFAULT_DATA_SERIES_FIELD } from '../../constant';\nimport type { ITextMark } from '../../mark/text';\nimport type { SeriesMarkMap } from '../interface';\nimport { SeriesMarkNameEnum } from '../interface/type';\nimport { isTrueBrowser } from '../../util';\nimport {\n DEFAULT_DRAW_OUT_OF_BOUND,\n DEFAULT_FONTSIZE_RANGE,\n DEFAULT_FONT_PADDING,\n DEFAULT_FONT_WEIGHT_RANGE,\n DEFAULT_MASK_SHAPE,\n DEFAULT_MIN_FONT_SIZE,\n DEFAULT_RANDOM,\n DEFAULT_ROTATE_ANGLES,\n DEFAULT_ZOOM_TO_FIT,\n SHAPE_TYPE\n} from './config';\nimport type {\n IWordCloudSeriesSpec,\n WordCloudConfigType,\n WordCloudShapeConfigType,\n WordCloudShapeType\n} from './interface';\nimport { registerWordCloudTransforms } from '@visactor/vgrammar-wordcloud';\nimport { registerWordCloudShapeTransforms } from '@visactor/vgrammar-wordcloud-shape';\nimport type { Datum, IPoint } from '../../typings';\nimport { DEFAULT_MARK_ANIMATION } from '../../animation/config';\nimport { animationConfig, userAnimationConfig } from '../../animation/utils';\nimport { LinearScale } from '@visactor/vscale';\nimport { extent } from '@visactor/vgrammar-util';\nimport {\n WORD_CLOUD_ANGLE,\n WORD_CLOUD_FILLING_ANGLE,\n WORD_CLOUD_TEXT,\n WORD_CLOUD_WEIGHT\n} from '../../constant/word-cloud';\nimport { getDataScheme } from '../../theme/color-scheme/util';\nimport type { ICompilableMark } from '../../compile/mark';\nimport { BaseSeries } from '../base/base-series';\nimport { ColorOrdinalScale } from '../../scale/color-ordinal-scale';\nimport { VChart } from '../../core/vchart';\nimport { TextMark } from '../../mark/text';\nimport { wordCloudSeriesMark } from './constant';\nimport type { IStateAnimateSpec } from '../../animation/spec';\n\nVChart.useMark([TextMark]);\n\nregisterWordCloudTransforms();\nregisterWordCloudShapeTransforms();\n\nexport type IBaseWordCloudSeriesSpec = Omit<IWordCloudSeriesSpec, 'type'> & { type: string };\n\nexport class BaseWordCloudSeries<T extends IBaseWordCloudSeriesSpec = IBaseWordCloudSeriesSpec> extends BaseSeries<T> {\n static readonly mark: SeriesMarkMap = wordCloudSeriesMark;\n\n protected _nameField: string;\n protected _valueField?: string;\n setValueField(field: string) {\n if (isValid(field)) {\n this._valueField = field;\n }\n }\n\n protected _fontFamilyField: string;\n protected _fontWeightField: string;\n protected _fontStyleField: string;\n protected _colorHexField: string;\n protected _colorMode: 'linear' | 'ordinal';\n protected _colorList: string[];\n protected _rotateAngles?: number[];\n protected _fontWeightRange?: [number, number];\n\n protected _fontSizeRange?: [number, number] = [DEFAULT_MIN_FONT_SIZE, DEFAULT_MIN_FONT_SIZE];\n setFontSizeRange(fontSizeRange: [number, number]) {\n if (isValid(fontSizeRange)) {\n this._fontSizeRange = fontSizeRange;\n } else {\n this._fontSizeRange = DEFAULT_FONTSIZE_RANGE;\n }\n }\n\n protected _maskShape?: string | WordCloudShapeType;\n protected _isWordCloudShape: boolean = false;\n\n protected _keepAspect?: boolean;\n protected _random?: boolean;\n protected _fontPadding?: number;\n protected _fillingFontPadding?: number;\n protected _wordCloudConfig?: WordCloudConfigType;\n protected _wordCloudShapeConfig?: WordCloudShapeConfigType;\n\n protected _padding?: IPadding;\n\n /**\n * @override\n */\n setAttrFromSpec() {\n super.setAttrFromSpec();\n // series布局相关\n this._padding = this._option.getChart().padding;\n\n // 普通词云 & 形状词云 共有spec相关\n this._nameField = this._spec.nameField;\n this._fontFamilyField = this._spec.fontFamilyField;\n this._fontWeightField = this._spec.fontWeightField;\n this._fontStyleField = this._spec.fontStyleField;\n this._colorHexField = this._spec.colorHexField;\n this._colorMode = this._spec.colorMode ?? 'ordinal';\n this._colorList = this._spec.colorList;\n this.setValueField(this._spec.valueField);\n this._fontWeightRange = this._spec.fontWeightRange ?? DEFAULT_FONT_WEIGHT_RANGE;\n this._rotateAngles = this._spec.rotateAngles ?? DEFAULT_ROTATE_ANGLES;\n this.setFontSizeRange(this._spec.fontSizeRange);\n this._maskShape = this._spec.maskShape ?? DEFAULT_MASK_SHAPE;\n this._keepAspect = this._spec.keepAspect;\n this._random = this._spec.random ?? DEFAULT_RANDOM;\n this._fontPadding = this._spec?.word?.padding ?? this._theme?.wordCloud?.word?.padding ?? DEFAULT_FONT_PADDING;\n\n // 普通词云spec相关\n this._wordCloudConfig = {\n drawOutOfBound: DEFAULT_DRAW_OUT_OF_BOUND,\n layoutMode: 'default',\n zoomToFit: DEFAULT_ZOOM_TO_FIT,\n ...this._spec.wordCloudConfig\n };\n\n // 形状词云spec相关\n this._wordCloudShapeConfig = {\n fillingSeriesField: this.getSeriesField(),\n fillingRotateAngles: DEFAULT_ROTATE_ANGLES,\n layoutMode: 'default',\n ...this._spec?.wordCloudShapeConfig\n };\n this._fillingFontPadding =\n this._spec?.fillingWord?.padding ?? this._theme?.wordCloud?.fillingWord?.padding ?? DEFAULT_FONT_PADDING;\n\n this._isWordCloudShape = !SHAPE_TYPE.includes(this._maskShape);\n }\n\n protected _wordMark: ITextMark;\n protected _fillingWordMark: ITextMark;\n initMark(): void {\n this._wordMark = this._createMark(BaseWordCloudSeries.mark.word, {\n defaultMorphElementKey: this._seriesField,\n groupKey: this._seriesField,\n isSeriesMark: true\n }) as ITextMark;\n if (this._isWordCloudShape) {\n this._fillingWordMark = this._createMark(BaseWordCloudSeries.mark.fillingWord) as ITextMark;\n }\n }\n\n initMarkStyle() {\n const wordMark = this._wordMark;\n const fillingWordMark = this._fillingWordMark;\n const textField = this._spec.word?.formatMethod ? WORD_CLOUD_TEXT : this._nameField;\n if (wordMark) {\n this.setMarkStyle(\n wordMark,\n {\n fill: this._colorHexField\n ? (datum: Datum) => datum[this._colorHexField]\n : this.getWordColorAttribute(this._seriesField, false),\n text: (datum: Datum) => datum[textField],\n x: (datum: Datum) => datum.x,\n y: (datum: Datum) => datum.y,\n fontFamily: (datum: Datum) => datum.fontFamily,\n fontSize: (datum: Datum) => datum.fontSize,\n fontStyle: (datum: Datum) => datum.fontStyle,\n fontWeight: (datum: Datum) => datum.fontWeight,\n angle: (datum: Datum) => datum.angle,\n visible: (datum: Datum) => !datum.isFillingWord\n },\n 'normal',\n AttributeLevel.Series\n );\n this.setMarkStyle(\n wordMark,\n {\n fontFamily: this._spec.word?.style?.fontFamily ?? this._option?.getTheme()?.fontFamily\n },\n 'normal',\n AttributeLevel.User_Mark\n );\n }\n if (fillingWordMark) {\n this.setMarkStyle(\n fillingWordMark,\n {\n fill: this._wordCloudShapeConfig.fillingColorHexField\n ? (datum: Datum) => datum[this._wordCloudShapeConfig.fillingColorHexField]\n : this.getWordColorAttribute(this._wordCloudShapeConfig.fillingSeriesField, true),\n text: (datum: Datum) => datum[textField],\n x: (datum: Datum) => datum.x,\n y: (datum: Datum) => datum.y,\n fontFamily: (datum: Datum) => datum.fontFamily,\n fontSize: (datum: Datum) => datum.fontSize,\n fontStyle: (datum: Datum) => datum.fontStyle,\n fontWeight: (datum: Datum) => datum.fontWeight,\n angle: (datum: Datum) => datum.angle,\n visible: (datum: Datum) => datum.isFillingWord\n },\n 'normal',\n AttributeLevel.Series\n );\n\n this.setMarkStyle(\n fillingWordMark,\n {\n fontFamily: this._spec.word?.style?.fontFamily ?? this._option?.getTheme()?.fontFamily\n },\n 'normal',\n AttributeLevel.User_Mark\n );\n }\n this._trigger.registerMark(wordMark);\n this._tooltipHelper?.activeTriggerSet.mark.add(wordMark);\n this._trigger.registerMark(fillingWordMark);\n this._tooltipHelper?.activeTriggerSet.mark.add(fillingWordMark);\n }\n\n initAnimation() {\n [this._wordMark, this._fillingWordMark].forEach(mark => {\n if (mark) {\n const appearPreset = (this._spec?.animationAppear as IStateAnimateSpec<any>)?.preset;\n const params = {\n animationConfig: () => mark.getAnimationConfig()?.appear?.[0]\n };\n mark.setAnimationConfig(\n animationConfig(\n DEFAULT_MARK_ANIMATION.wordCloud(params, appearPreset),\n userAnimationConfig(SeriesMarkNameEnum.word, this._spec)\n )\n );\n }\n });\n }\n\n protected getWordOrdinalColorScale(field: string, isFillingWord: boolean) {\n const colorList = isFillingWord ? this._wordCloudShapeConfig.fillingColorList : this._colorList;\n const colorDomain = field ? this.getViewData()?.latestData.map((datum: Datum) => datum[field]) : [];\n const colorRange =\n colorList ??\n this._option.globalScale.getScale('color')?.range() ??\n getDataScheme(this._option.getTheme().colorScheme, this.type as any);\n return new ColorOrdinalScale().domain(colorDomain).range?.(colorRange);\n }\n\n getWordColorAttribute(field: string, isFillingWord: boolean) {\n if (this._colorMode === 'ordinal') {\n return {\n scale: this.getWordOrdinalColorScale(field, isFillingWord),\n field: this._seriesField ?? DEFAULT_DATA_SERIES_FIELD\n };\n }\n // const valueScale = new LinearScale()\n // .domain(extent(this.getViewData()?.latestData.map((datum: Datum) => datum[field])), true)\n // .range([0, 1]);\n let colorList =\n (isFillingWord ? this._colorList : this._wordCloudShapeConfig.fillingColorList) ??\n this._option.globalScale.getScale('color').range();\n // 如果用户只输入了一个 color,无法构成 colorRange,则进行兜底\n if (colorList.length === 1) {\n colorList = [colorList[0], colorList[0]];\n }\n // 颜色插值 todo@chensiji\n // const interpolate = interpolateColors(colorList)\n // return (datum: Datum) => interpolate(valueScale.scale(datum[field]))\n return (datum: Datum) => colorList[0];\n }\n\n compile(): void {\n super.compile();\n const { width, height } = this._region.getLayoutRect();\n // 非正常尺寸下不进行布局\n if (!isValidNumber(width) || !isValidNumber(height) || !(height > 0 && width > 0)) {\n return;\n }\n\n const wordCloudTransforms: any[] = [];\n const valueField = this._valueField;\n const valueScale = new LinearScale();\n const fontWeightRange = this._fontWeightRange;\n const rotateAngles = this._rotateAngles;\n const fontWeightField = this._fontWeightField;\n const fillingRotateAngles = this._wordCloudShapeConfig.fillingRotateAngles;\n\n // fontWeight处理\n if (valueField) {\n const [minValue, maxValue] = extent(this.getViewData()?.latestData.map((datum: any) => +datum[valueField]));\n valueScale.domain([minValue, maxValue], true).range(fontWeightRange);\n wordCloudTransforms.push({\n type: 'map',\n as: WORD_CLOUD_WEIGHT,\n callback: (datum: any) => {\n if (minValue === maxValue) {\n return valueScale.scale(maxValue);\n }\n return valueScale.scale(datum[valueField]);\n }\n });\n }\n\n // rotateAngles处理\n wordCloudTransforms.push({\n type: 'map',\n as: WORD_CLOUD_ANGLE,\n callback: () => {\n return rotateAngles[Math.floor(Math.random() * rotateAngles.length)];\n }\n });\n wordCloudTransforms.push({\n type: 'map',\n as: WORD_CLOUD_FILLING_ANGLE,\n callback: () => {\n return fillingRotateAngles[Math.floor(Math.random() * fillingRotateAngles.length)];\n }\n });\n\n // text fromat method 处理\n if (this._spec.word?.formatMethod) {\n wordCloudTransforms.push({\n type: 'map',\n as: WORD_CLOUD_TEXT,\n callback: this._spec.word.formatMethod\n });\n }\n\n const textField = this._spec.word?.formatMethod ? WORD_CLOUD_TEXT : this._nameField;\n\n // 词云 transform\n if (!this._isWordCloudShape) {\n wordCloudTransforms.push({\n type: 'wordcloud',\n // TIP: 非浏览器环境下,使用 fast 布局,否则会出现兼容问题\n layoutType: !isTrueBrowser(this._option.mode) ? 'fast' : this._wordCloudConfig.layoutMode,\n size: [width, height],\n shape: this._maskShape,\n dataIndexKey: DEFAULT_DATA_KEY,\n text: { field: textField },\n fontSize: valueField ? { field: valueField } : this._fontSizeRange[0],\n fontSizeRange: this._fontSizeRange,\n padding: this._fontPadding,\n rotate: { field: WORD_CLOUD_ANGLE },\n fontFamily: this._fontFamilyField ?? this._spec.word?.style?.fontFamily ?? this._option?.getTheme()?.fontFamily,\n fontWeight: fontWeightField ? { field: fontWeightField } : valueField ? { field: WORD_CLOUD_WEIGHT } : null,\n fontStyle: this._fontStyleField ?? this._spec.word?.style?.fontStyle,\n\n randomVisible: this._random,\n clip: this._wordCloudConfig.drawOutOfBound === 'clip',\n shrink: this._wordCloudConfig.zoomToFit.shrink,\n enlarge: this._wordCloudConfig.zoomToFit.enlarge,\n minFontSize: this._wordCloudConfig.zoomToFit.fontSizeLimitMin,\n progressiveTime: this._wordCloudConfig.progressiveTime,\n progressiveStep: this._wordCloudConfig.progressiveStep\n });\n // 挂到mark的transform上\n (this._wordMark as ICompilableMark).getProduct().transform(wordCloudTransforms);\n }\n // 形状词云 transform\n else {\n wordCloudTransforms.push({\n type: 'wordcloudShape',\n // 形状词云中必须要传入dataIndexKey, 否则填充词无法绘制\n dataIndexKey: DEFAULT_DATA_KEY,\n\n size: [width, height],\n shape: this._maskShape,\n\n text: { field: this._spec.word?.formatMethod ? WORD_CLOUD_TEXT : this._nameField },\n fontSize: valueField ? { field: valueField } : this._fontSizeRange[0],\n fontSizeRange: this._fontSizeRange,\n padding: this._fontPadding,\n rotateList: rotateAngles,\n fontFamily: this._fontFamilyField ?? this._spec.word?.style?.fontFamily ?? this._option?.getTheme()?.fontFamily,\n fontWeight: fontWeightField ? { field: fontWeightField } : valueField ? { field: WORD_CLOUD_WEIGHT } : null,\n fontStyle: this._fontStyleField ?? this._spec.word?.style?.fontStyle,\n\n fillingFontFamily:\n this._wordCloudShapeConfig?.fillingFontFamilyField ??\n this._spec.word?.style?.fontFamily ??\n this._option?.getTheme()?.fontFamily,\n fillingPadding: this._fillingFontPadding,\n fillingFontStyle: this._wordCloudShapeConfig?.fillingFontStyleField ?? this._spec.word?.style?.fontStyle,\n fillingFontWeight: this._wordCloudShapeConfig?.fillingFontWeightField ?? this._spec.word?.style?.fontWeight, // 填充词fontWeight默认不跟随valueField\n fillingRotateList: fillingRotateAngles,\n\n fillingTimes: this._wordCloudShapeConfig?.fillingTimes,\n fillingXStep: this._wordCloudShapeConfig?.fillingXStep,\n fillingYStep: this._wordCloudShapeConfig?.fillingYStep,\n fillingXRatioStep: this._wordCloudShapeConfig?.fillingXRatioStep,\n fillingYRatioStep: this._wordCloudShapeConfig?.fillingYRatioStep,\n fillingInitialOpacity: this._wordCloudShapeConfig?.fillingInitialOpacity,\n fillingDeltaOpacity: this._wordCloudShapeConfig?.fillingDeltaOpacity,\n fillingInitialFontSize: this._wordCloudShapeConfig?.fillingInitialFontSize,\n fillingDeltaFontSize: this._wordCloudShapeConfig?.fillingDeltaFontSize,\n\n ratio: this._wordCloudShapeConfig?.ratio,\n fillingRatio: this._wordCloudShapeConfig?.fillingRatio,\n removeWhiteBorder: this._wordCloudShapeConfig?.removeWhiteBorder,\n textLayoutTimes: this._wordCloudShapeConfig?.textLayoutTimes,\n fontSizeShrinkFactor: this._wordCloudShapeConfig?.fontSizeShrinkFactor,\n stepFactor: this._wordCloudShapeConfig?.stepFactor,\n layoutMode: this._wordCloudShapeConfig?.layoutMode,\n importantWordCount: this._wordCloudShapeConfig?.importantWordCount,\n globalShinkLimit: this._wordCloudShapeConfig?.globalShinkLimit,\n fontSizeEnlargeFactor: this._wordCloudShapeConfig?.fontSizeEnlargeFactor,\n fillingDeltaFontSizeFactor: this._wordCloudShapeConfig?.fillingDeltaFontSizeFactor\n });\n }\n // 把transform挂载到data的product上\n this._data.getProduct().transform(wordCloudTransforms);\n }\n\n getStatisticFields() {\n const fields: { key: string; operations: Array<'max' | 'min' | 'values'> }[] = [];\n fields.push({ key: this._nameField, operations: ['values'] });\n fields.push({ key: this._valueField, operations: ['max', 'min'] });\n return fields;\n }\n dataToPosition(data: Datum): IPoint {\n return null;\n }\n dataToPositionX(data: any): number {\n return null;\n }\n dataToPositionY(data: any): number {\n return null;\n }\n dataToPositionZ(data: any): number {\n return null;\n }\n valueToPosition(value1: any, value2?: any): IPoint {\n return null;\n }\n setValueFieldToStackOffsetSilhouette(): void {\n // do nothing\n }\n\n getGroupFields(): string[] {\n // do nothing\n return [];\n }\n\n getStackGroupFields(): string[] {\n // do nothing\n return [];\n }\n\n getStackValueField(): string {\n // do nothing\n return '';\n }\n\n setValueFieldToStack(): void {\n // do nothing\n }\n\n setValueFieldToPercent(): void {\n //do nothing\n }\n\n onLayoutEnd(ctx: any): void {\n super.onLayoutEnd(ctx);\n this.compile();\n }\n}\n"]}
@@ -11,7 +11,7 @@ class WordCloud3dSeries extends base_1.BaseWordCloudSeries {
11
11
  super(...arguments), this.type = type_1.SeriesTypeEnum.wordCloud3d;
12
12
  }
13
13
  compile() {
14
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24;
14
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33;
15
15
  super.compile();
16
16
  const wordCloudTransforms = [], valueField = this._valueField, valueScale = new vscale_1.LinearScale, fontWeightRange = this._fontWeightRange, rotateAngles = this._rotateAngles, fontWeightField = this._fontWeightField, fillingRotateAngles = this._wordCloudShapeConfig.fillingRotateAngles;
17
17
  if (valueField) {
@@ -40,7 +40,7 @@ class WordCloud3dSeries extends base_1.BaseWordCloudSeries {
40
40
  type: "wordcloudShape",
41
41
  size: [ this._region.getLayoutRect().width, this._region.getLayoutRect().height ],
42
42
  shape: this._maskShape,
43
- postProjection: null !== (_l = this._spec.postProjection) && void 0 !== _l ? _l : "StereographicProjection",
43
+ postProjection: null !== (_p = this._spec.postProjection) && void 0 !== _p ? _p : "StereographicProjection",
44
44
  dataIndexKey: constant_1.DEFAULT_DATA_KEY,
45
45
  text: {
46
46
  field: textField
@@ -51,39 +51,39 @@ class WordCloud3dSeries extends base_1.BaseWordCloudSeries {
51
51
  fontSizeRange: this._fontSizeRange,
52
52
  padding: this._fontPadding,
53
53
  rotateList: rotateAngles,
54
- fontFamily: null !== (_m = this._fontFamilyField) && void 0 !== _m ? _m : null === (_p = null === (_o = this._spec.word) || void 0 === _o ? void 0 : _o.style) || void 0 === _p ? void 0 : _p.fontFamily,
54
+ fontFamily: null !== (_t = null !== (_q = this._fontFamilyField) && void 0 !== _q ? _q : null === (_s = null === (_r = this._spec.word) || void 0 === _r ? void 0 : _r.style) || void 0 === _s ? void 0 : _s.fontFamily) && void 0 !== _t ? _t : null === (_v = null === (_u = this._option) || void 0 === _u ? void 0 : _u.getTheme()) || void 0 === _v ? void 0 : _v.fontFamily,
55
55
  fontWeight: fontWeightField ? {
56
56
  field: fontWeightField
57
57
  } : valueField ? {
58
58
  field: word_cloud_1.WORD_CLOUD_WEIGHT
59
59
  } : null,
60
- fontStyle: null !== (_q = this._fontStyleField) && void 0 !== _q ? _q : null === (_s = null === (_r = this._spec.word) || void 0 === _r ? void 0 : _r.style) || void 0 === _s ? void 0 : _s.fontStyle,
60
+ fontStyle: null !== (_w = this._fontStyleField) && void 0 !== _w ? _w : null === (_y = null === (_x = this._spec.word) || void 0 === _x ? void 0 : _x.style) || void 0 === _y ? void 0 : _y.fontStyle,
61
61
  depth_3d: this._spec.depth_3d,
62
- fillingFontFamily: null !== (_u = null === (_t = this._wordCloudShapeConfig) || void 0 === _t ? void 0 : _t.fillingFontFamilyField) && void 0 !== _u ? _u : null === (_w = null === (_v = this._spec.word) || void 0 === _v ? void 0 : _v.style) || void 0 === _w ? void 0 : _w.fontFamily,
62
+ fillingFontFamily: null !== (_3 = null !== (_0 = null === (_z = this._wordCloudShapeConfig) || void 0 === _z ? void 0 : _z.fillingFontFamilyField) && void 0 !== _0 ? _0 : null === (_2 = null === (_1 = this._spec.word) || void 0 === _1 ? void 0 : _1.style) || void 0 === _2 ? void 0 : _2.fontFamily) && void 0 !== _3 ? _3 : null === (_5 = null === (_4 = this._option) || void 0 === _4 ? void 0 : _4.getTheme()) || void 0 === _5 ? void 0 : _5.fontFamily,
63
63
  fillingPadding: this._fillingFontPadding,
64
- fillingFontStyle: null !== (_y = null === (_x = this._wordCloudShapeConfig) || void 0 === _x ? void 0 : _x.fillingFontStyleField) && void 0 !== _y ? _y : null === (_0 = null === (_z = this._spec.word) || void 0 === _z ? void 0 : _z.style) || void 0 === _0 ? void 0 : _0.fontStyle,
65
- fillingFontWeight: null !== (_2 = null === (_1 = this._wordCloudShapeConfig) || void 0 === _1 ? void 0 : _1.fillingFontWeightField) && void 0 !== _2 ? _2 : null === (_4 = null === (_3 = this._spec.word) || void 0 === _3 ? void 0 : _3.style) || void 0 === _4 ? void 0 : _4.fontWeight,
64
+ fillingFontStyle: null !== (_7 = null === (_6 = this._wordCloudShapeConfig) || void 0 === _6 ? void 0 : _6.fillingFontStyleField) && void 0 !== _7 ? _7 : null === (_9 = null === (_8 = this._spec.word) || void 0 === _8 ? void 0 : _8.style) || void 0 === _9 ? void 0 : _9.fontStyle,
65
+ fillingFontWeight: null !== (_11 = null === (_10 = this._wordCloudShapeConfig) || void 0 === _10 ? void 0 : _10.fillingFontWeightField) && void 0 !== _11 ? _11 : null === (_13 = null === (_12 = this._spec.word) || void 0 === _12 ? void 0 : _12.style) || void 0 === _13 ? void 0 : _13.fontWeight,
66
66
  fillingRotateList: fillingRotateAngles,
67
- fillingTimes: null === (_5 = this._wordCloudShapeConfig) || void 0 === _5 ? void 0 : _5.fillingTimes,
68
- fillingXStep: null === (_6 = this._wordCloudShapeConfig) || void 0 === _6 ? void 0 : _6.fillingXStep,
69
- fillingYStep: null === (_7 = this._wordCloudShapeConfig) || void 0 === _7 ? void 0 : _7.fillingYStep,
70
- fillingXRatioStep: null === (_8 = this._wordCloudShapeConfig) || void 0 === _8 ? void 0 : _8.fillingXRatioStep,
71
- fillingYRatioStep: null === (_9 = this._wordCloudShapeConfig) || void 0 === _9 ? void 0 : _9.fillingYRatioStep,
72
- fillingInitialOpacity: null === (_10 = this._wordCloudShapeConfig) || void 0 === _10 ? void 0 : _10.fillingInitialOpacity,
73
- fillingDeltaOpacity: null === (_11 = this._wordCloudShapeConfig) || void 0 === _11 ? void 0 : _11.fillingDeltaOpacity,
74
- fillingInitialFontSize: null === (_12 = this._wordCloudShapeConfig) || void 0 === _12 ? void 0 : _12.fillingInitialFontSize,
75
- fillingDeltaFontSize: null === (_13 = this._wordCloudShapeConfig) || void 0 === _13 ? void 0 : _13.fillingDeltaFontSize,
76
- ratio: null === (_14 = this._wordCloudShapeConfig) || void 0 === _14 ? void 0 : _14.ratio,
77
- fillingRatio: null === (_15 = this._wordCloudShapeConfig) || void 0 === _15 ? void 0 : _15.fillingRatio,
78
- removeWhiteBorder: null === (_16 = this._wordCloudShapeConfig) || void 0 === _16 ? void 0 : _16.removeWhiteBorder,
79
- textLayoutTimes: null === (_17 = this._wordCloudShapeConfig) || void 0 === _17 ? void 0 : _17.textLayoutTimes,
80
- fontSizeShrinkFactor: null === (_18 = this._wordCloudShapeConfig) || void 0 === _18 ? void 0 : _18.fontSizeShrinkFactor,
81
- stepFactor: null === (_19 = this._wordCloudShapeConfig) || void 0 === _19 ? void 0 : _19.stepFactor,
82
- layoutMode: null === (_20 = this._wordCloudShapeConfig) || void 0 === _20 ? void 0 : _20.layoutMode,
83
- importantWordCount: null === (_21 = this._wordCloudShapeConfig) || void 0 === _21 ? void 0 : _21.importantWordCount,
84
- globalShinkLimit: null === (_22 = this._wordCloudShapeConfig) || void 0 === _22 ? void 0 : _22.globalShinkLimit,
85
- fontSizeEnlargeFactor: null === (_23 = this._wordCloudShapeConfig) || void 0 === _23 ? void 0 : _23.fontSizeEnlargeFactor,
86
- fillingDeltaFontSizeFactor: null === (_24 = this._wordCloudShapeConfig) || void 0 === _24 ? void 0 : _24.fillingDeltaFontSizeFactor
67
+ fillingTimes: null === (_14 = this._wordCloudShapeConfig) || void 0 === _14 ? void 0 : _14.fillingTimes,
68
+ fillingXStep: null === (_15 = this._wordCloudShapeConfig) || void 0 === _15 ? void 0 : _15.fillingXStep,
69
+ fillingYStep: null === (_16 = this._wordCloudShapeConfig) || void 0 === _16 ? void 0 : _16.fillingYStep,
70
+ fillingXRatioStep: null === (_17 = this._wordCloudShapeConfig) || void 0 === _17 ? void 0 : _17.fillingXRatioStep,
71
+ fillingYRatioStep: null === (_18 = this._wordCloudShapeConfig) || void 0 === _18 ? void 0 : _18.fillingYRatioStep,
72
+ fillingInitialOpacity: null === (_19 = this._wordCloudShapeConfig) || void 0 === _19 ? void 0 : _19.fillingInitialOpacity,
73
+ fillingDeltaOpacity: null === (_20 = this._wordCloudShapeConfig) || void 0 === _20 ? void 0 : _20.fillingDeltaOpacity,
74
+ fillingInitialFontSize: null === (_21 = this._wordCloudShapeConfig) || void 0 === _21 ? void 0 : _21.fillingInitialFontSize,
75
+ fillingDeltaFontSize: null === (_22 = this._wordCloudShapeConfig) || void 0 === _22 ? void 0 : _22.fillingDeltaFontSize,
76
+ ratio: null === (_23 = this._wordCloudShapeConfig) || void 0 === _23 ? void 0 : _23.ratio,
77
+ fillingRatio: null === (_24 = this._wordCloudShapeConfig) || void 0 === _24 ? void 0 : _24.fillingRatio,
78
+ removeWhiteBorder: null === (_25 = this._wordCloudShapeConfig) || void 0 === _25 ? void 0 : _25.removeWhiteBorder,
79
+ textLayoutTimes: null === (_26 = this._wordCloudShapeConfig) || void 0 === _26 ? void 0 : _26.textLayoutTimes,
80
+ fontSizeShrinkFactor: null === (_27 = this._wordCloudShapeConfig) || void 0 === _27 ? void 0 : _27.fontSizeShrinkFactor,
81
+ stepFactor: null === (_28 = this._wordCloudShapeConfig) || void 0 === _28 ? void 0 : _28.stepFactor,
82
+ layoutMode: null === (_29 = this._wordCloudShapeConfig) || void 0 === _29 ? void 0 : _29.layoutMode,
83
+ importantWordCount: null === (_30 = this._wordCloudShapeConfig) || void 0 === _30 ? void 0 : _30.importantWordCount,
84
+ globalShinkLimit: null === (_31 = this._wordCloudShapeConfig) || void 0 === _31 ? void 0 : _31.globalShinkLimit,
85
+ fontSizeEnlargeFactor: null === (_32 = this._wordCloudShapeConfig) || void 0 === _32 ? void 0 : _32.fontSizeEnlargeFactor,
86
+ fillingDeltaFontSizeFactor: null === (_33 = this._wordCloudShapeConfig) || void 0 === _33 ? void 0 : _33.fillingDeltaFontSizeFactor
87
87
  }) : (wordCloudTransforms.push({
88
88
  type: "wordcloud",
89
89
  layoutType: this._wordCloudConfig.layoutMode,
@@ -102,13 +102,13 @@ class WordCloud3dSeries extends base_1.BaseWordCloudSeries {
102
102
  rotate: {
103
103
  field: word_cloud_1.WORD_CLOUD_ANGLE
104
104
  },
105
- fontFamily: null !== (_e = this._fontFamilyField) && void 0 !== _e ? _e : null === (_g = null === (_f = this._spec.word) || void 0 === _f ? void 0 : _f.style) || void 0 === _g ? void 0 : _g.fontFamily,
105
+ fontFamily: null !== (_h = null !== (_e = this._fontFamilyField) && void 0 !== _e ? _e : null === (_g = null === (_f = this._spec.word) || void 0 === _f ? void 0 : _f.style) || void 0 === _g ? void 0 : _g.fontFamily) && void 0 !== _h ? _h : null === (_k = null === (_j = this._option) || void 0 === _j ? void 0 : _j.getTheme()) || void 0 === _k ? void 0 : _k.fontFamily,
106
106
  fontWeight: fontWeightField ? {
107
107
  field: fontWeightField
108
108
  } : valueField ? {
109
109
  field: word_cloud_1.WORD_CLOUD_WEIGHT
110
110
  } : null,
111
- fontStyle: null !== (_h = this._fontStyleField) && void 0 !== _h ? _h : null === (_k = null === (_j = this._spec.word) || void 0 === _j ? void 0 : _j.style) || void 0 === _k ? void 0 : _k.fontStyle,
111
+ fontStyle: null !== (_l = this._fontStyleField) && void 0 !== _l ? _l : null === (_o = null === (_m = this._spec.word) || void 0 === _m ? void 0 : _m.style) || void 0 === _o ? void 0 : _o.fontStyle,
112
112
  depth_3d: this._spec.depth_3d,
113
113
  randomVisible: this._random,
114
114
  clip: "clip" === this._wordCloudConfig.drawOutOfBound,
@@ -131,9 +131,9 @@ class WordCloud3dSeries extends base_1.BaseWordCloudSeries {
131
131
  }));
132
132
  }
133
133
  initMarkStyle() {
134
- var _a, _b;
134
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
135
135
  const wordMark = this._wordMark, fillingWordMark = this._fillingWordMark;
136
- wordMark && this.setMarkStyle(wordMark, {
136
+ wordMark && (this.setMarkStyle(wordMark, {
137
137
  fill: this._colorHexField ? datum => datum[this._colorHexField] : this.getWordColorAttribute(this._seriesField, !1),
138
138
  text: datum => datum[this._nameField],
139
139
  x: datum => datum.x,
@@ -148,7 +148,9 @@ class WordCloud3dSeries extends base_1.BaseWordCloudSeries {
148
148
  fontWeight: datum => datum.fontWeight,
149
149
  angle: datum => datum.angle,
150
150
  visible: datum => !datum.isFillingWord
151
- }, "normal", constant_1.AttributeLevel.Series), fillingWordMark && this.setMarkStyle(fillingWordMark, {
151
+ }, "normal", constant_1.AttributeLevel.Series), this.setMarkStyle(wordMark, {
152
+ fontFamily: null !== (_c = null === (_b = null === (_a = this._spec.word) || void 0 === _a ? void 0 : _a.style) || void 0 === _b ? void 0 : _b.fontFamily) && void 0 !== _c ? _c : null === (_e = null === (_d = this._option) || void 0 === _d ? void 0 : _d.getTheme()) || void 0 === _e ? void 0 : _e.fontFamily
153
+ }, "normal", constant_1.AttributeLevel.User_Mark)), fillingWordMark && (this.setMarkStyle(fillingWordMark, {
152
154
  fill: this._wordCloudShapeConfig.fillingColorHexField ? datum => datum[this._wordCloudShapeConfig.fillingColorHexField] : this.getWordColorAttribute(this._wordCloudShapeConfig.fillingSeriesField, !0),
153
155
  text: datum => datum[this._nameField],
154
156
  x: datum => datum.x,
@@ -163,9 +165,11 @@ class WordCloud3dSeries extends base_1.BaseWordCloudSeries {
163
165
  fontWeight: datum => datum.fontWeight,
164
166
  angle: datum => datum.angle,
165
167
  visible: datum => datum.isFillingWord
166
- }, "normal", constant_1.AttributeLevel.Series), this._trigger.registerMark(wordMark),
167
- null === (_a = this._tooltipHelper) || void 0 === _a || _a.activeTriggerSet.mark.add(wordMark),
168
- this._trigger.registerMark(fillingWordMark), null === (_b = this._tooltipHelper) || void 0 === _b || _b.activeTriggerSet.mark.add(fillingWordMark);
168
+ }, "normal", constant_1.AttributeLevel.Series), this.setMarkStyle(fillingWordMark, {
169
+ fontFamily: null !== (_h = null === (_g = null === (_f = this._spec.word) || void 0 === _f ? void 0 : _f.style) || void 0 === _g ? void 0 : _g.fontFamily) && void 0 !== _h ? _h : null === (_k = null === (_j = this._option) || void 0 === _j ? void 0 : _j.getTheme()) || void 0 === _k ? void 0 : _k.fontFamily
170
+ }, "normal", constant_1.AttributeLevel.User_Mark)), this._trigger.registerMark(wordMark),
171
+ null === (_l = this._tooltipHelper) || void 0 === _l || _l.activeTriggerSet.mark.add(wordMark),
172
+ this._trigger.registerMark(fillingWordMark), null === (_m = this._tooltipHelper) || void 0 === _m || _m.activeTriggerSet.mark.add(fillingWordMark);
169
173
  }
170
174
  initAnimation() {
171
175
  this._wordMark && this._wordMark.setAnimationConfig((0, utils_1.animationConfig)(config_1.DEFAULT_MARK_ANIMATION.wordCloud3d((() => {
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/series/word-cloud/word-cloud-3d.ts"],"names":[],"mappings":";;;AAAA,6CAAkE;AAElE,4CAAuE;AAGvE,mDAAgE;AAChE,iDAA6E;AAC7E,6CAA+C;AAC/C,2DAAiD;AACjD,0DAKmC;AAEnC,iCAA6C;AAE7C,MAAa,iBAEX,SAAQ,0BAAsB;IAFhC;;QAIE,SAAI,GAAG,qBAAc,CAAC,WAAW,CAAC;IAiPpC,CAAC;IA/OC,OAAO;;QACL,KA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AAI,CAAC,CAAC;gBACpF,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,IAAG,MAAA,IAAI,CAAC,QAAQ,0CAAE,GAAG,CAAA,IAAI,CAAC,IAAG,MAAA,IAAI,CAAC,QAAQ,0CAAE,MAAM,CAAA,IAAI,CAAC,CAAC;gBACtF,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;gBACtC,OAAO;oBACL,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAC,IAAI,CAAC,KAAa,CAAC,QAAQ,mCAAI,CAAC,EAAE;oBAC5D,CAAC;iBACF,CAAC;YACJ,CAAC,CAAQ,EACT,IAAA,2BAAmB,EAAC,yBAAkB,CAAC,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,CAChE,CACF,CAAC;SACH;IACH,CAAC;;AApPH,8CAqPC;AAlPiB,sBAAI,GAAW,qBAAc,CAAC,WAAW,CAAC","file":"word-cloud-3d.js","sourcesContent":["import { AttributeLevel, DEFAULT_DATA_KEY } from '../../constant';\nimport type { ITextMark } from '../../mark/text';\nimport { SeriesMarkNameEnum, SeriesTypeEnum } from '../interface/type';\nimport type { IWordCloud3dSeriesSpec } from './interface';\nimport type { Datum } from '../../typings';\nimport { DEFAULT_MARK_ANIMATION } from '../../animation/config';\nimport { animationConfig, userAnimationConfig } from '../../animation/utils';\nimport { LinearScale } from '@visactor/vscale';\nimport { extent } from '@visactor/vgrammar-util';\nimport {\n WORD_CLOUD_ANGLE,\n WORD_CLOUD_FILLING_ANGLE,\n WORD_CLOUD_TEXT,\n WORD_CLOUD_WEIGHT\n} from '../../constant/word-cloud';\nimport type { ICompilableMark } from '../../compile/mark';\nimport { BaseWordCloudSeries } from './base';\n\nexport class WordCloud3dSeries<\n T extends IWordCloud3dSeriesSpec = IWordCloud3dSeriesSpec\n> extends BaseWordCloudSeries<T> {\n static readonly type: string = SeriesTypeEnum.wordCloud3d;\n type = SeriesTypeEnum.wordCloud3d;\n\n compile(): void {\n super.compile();\n\n const wordCloudTransforms: any[] = [];\n const valueField = this._valueField;\n const valueScale = new LinearScale();\n const fontWeightRange = this._fontWeightRange;\n const rotateAngles = this._rotateAngles;\n const fontWeightField = this._fontWeightField;\n const fillingRotateAngles = this._wordCloudShapeConfig.fillingRotateAngles;\n\n // fontWeight处理\n if (valueField) {\n const [minValue, maxValue] = extent(this.getViewData()?.latestData.map((datum: any) => +datum[valueField]));\n valueScale.domain([minValue, maxValue], true).range(fontWeightRange);\n wordCloudTransforms.push({\n type: 'map',\n as: WORD_CLOUD_WEIGHT,\n callback: (datum: any) => {\n if (minValue === maxValue) {\n return valueScale.scale(maxValue);\n }\n return valueScale.scale(datum[valueField]);\n }\n });\n }\n\n // rotateAngles处理\n wordCloudTransforms.push({\n type: 'map',\n as: WORD_CLOUD_ANGLE,\n callback: () => {\n return rotateAngles[Math.floor(Math.random() * rotateAngles.length)];\n }\n });\n wordCloudTransforms.push({\n type: 'map',\n as: WORD_CLOUD_FILLING_ANGLE,\n callback: () => {\n return fillingRotateAngles[Math.floor(Math.random() * fillingRotateAngles.length)];\n }\n });\n\n // text fromat method 处理\n if (this._spec.word?.formatMethod) {\n wordCloudTransforms.push({\n type: 'map',\n as: WORD_CLOUD_TEXT,\n callback: this._spec.word.formatMethod\n });\n }\n\n const textField = this._spec.word?.formatMethod ? WORD_CLOUD_TEXT : this._nameField;\n\n // 词云 transform\n if (!this._isWordCloudShape) {\n wordCloudTransforms.push({\n type: 'wordcloud',\n layoutType: this._wordCloudConfig.layoutMode,\n size: [this._region.getLayoutRect().width, this._region.getLayoutRect().height],\n shape: this._maskShape,\n postProjection: this._spec.postProjection ?? 'StereographicProjection',\n dataIndexKey: DEFAULT_DATA_KEY,\n text: { field: textField },\n fontSize: valueField ? { field: valueField } : this._fontSizeRange[0],\n fontSizeRange: this._fontSizeRange,\n padding: this._fontPadding,\n rotate: { field: WORD_CLOUD_ANGLE },\n fontFamily: this._fontFamilyField ?? this._spec.word?.style?.fontFamily,\n fontWeight: fontWeightField ? { field: fontWeightField } : valueField ? { field: WORD_CLOUD_WEIGHT } : null,\n fontStyle: this._fontStyleField ?? this._spec.word?.style?.fontStyle,\n depth_3d: this._spec.depth_3d,\n\n randomVisible: this._random,\n clip: this._wordCloudConfig.drawOutOfBound === 'clip',\n shrink: this._wordCloudConfig.zoomToFit.shrink,\n enlarge: this._wordCloudConfig.zoomToFit.enlarge,\n minFontSize: this._wordCloudConfig.zoomToFit.fontSizeLimitMin,\n progressiveTime: this._wordCloudConfig.progressiveTime,\n progressiveStep: this._wordCloudConfig.progressiveStep\n });\n // 挂到mark的trnsform上,注册的时候决定transform的执行时机\n (this._wordMark as ICompilableMark).getProduct().transform(wordCloudTransforms);\n }\n // 形状词云 transform\n else {\n wordCloudTransforms.push({\n type: 'wordcloudShape',\n size: [this._region.getLayoutRect().width, this._region.getLayoutRect().height],\n shape: this._maskShape,\n postProjection: this._spec.postProjection ?? 'StereographicProjection',\n dataIndexKey: DEFAULT_DATA_KEY,\n text: { field: textField },\n fontSize: valueField ? { field: valueField } : this._fontSizeRange[0],\n fontSizeRange: this._fontSizeRange,\n padding: this._fontPadding,\n rotateList: rotateAngles,\n fontFamily: this._fontFamilyField ?? this._spec.word?.style?.fontFamily,\n fontWeight: fontWeightField ? { field: fontWeightField } : valueField ? { field: WORD_CLOUD_WEIGHT } : null,\n fontStyle: this._fontStyleField ?? this._spec.word?.style?.fontStyle,\n depth_3d: this._spec.depth_3d,\n\n fillingFontFamily: this._wordCloudShapeConfig?.fillingFontFamilyField ?? this._spec.word?.style?.fontFamily,\n fillingPadding: this._fillingFontPadding,\n fillingFontStyle: this._wordCloudShapeConfig?.fillingFontStyleField ?? this._spec.word?.style?.fontStyle,\n fillingFontWeight: this._wordCloudShapeConfig?.fillingFontWeightField ?? this._spec.word?.style?.fontWeight, // 填充词fontWeight默认不跟随valueField\n fillingRotateList: fillingRotateAngles,\n\n fillingTimes: this._wordCloudShapeConfig?.fillingTimes,\n fillingXStep: this._wordCloudShapeConfig?.fillingXStep,\n fillingYStep: this._wordCloudShapeConfig?.fillingYStep,\n fillingXRatioStep: this._wordCloudShapeConfig?.fillingXRatioStep,\n fillingYRatioStep: this._wordCloudShapeConfig?.fillingYRatioStep,\n fillingInitialOpacity: this._wordCloudShapeConfig?.fillingInitialOpacity,\n fillingDeltaOpacity: this._wordCloudShapeConfig?.fillingDeltaOpacity,\n fillingInitialFontSize: this._wordCloudShapeConfig?.fillingInitialFontSize,\n fillingDeltaFontSize: this._wordCloudShapeConfig?.fillingDeltaFontSize,\n\n ratio: this._wordCloudShapeConfig?.ratio,\n fillingRatio: this._wordCloudShapeConfig?.fillingRatio,\n removeWhiteBorder: this._wordCloudShapeConfig?.removeWhiteBorder,\n textLayoutTimes: this._wordCloudShapeConfig?.textLayoutTimes,\n fontSizeShrinkFactor: this._wordCloudShapeConfig?.fontSizeShrinkFactor,\n stepFactor: this._wordCloudShapeConfig?.stepFactor,\n layoutMode: this._wordCloudShapeConfig?.layoutMode,\n importantWordCount: this._wordCloudShapeConfig?.importantWordCount,\n globalShinkLimit: this._wordCloudShapeConfig?.globalShinkLimit,\n fontSizeEnlargeFactor: this._wordCloudShapeConfig?.fontSizeEnlargeFactor,\n fillingDeltaFontSizeFactor: this._wordCloudShapeConfig?.fillingDeltaFontSizeFactor\n });\n }\n // 把transform挂载到data的product上\n this._data.getProduct().transform(wordCloudTransforms);\n }\n\n initMark(): void {\n this._wordMark = this._createMark(BaseWordCloudSeries.mark.word, {\n groupKey: this._seriesField,\n support3d: true,\n isSeriesMark: true\n }) as ITextMark;\n if (this._isWordCloudShape) {\n this._fillingWordMark = this._createMark(BaseWordCloudSeries.mark.fillingWord, {\n groupKey: this._seriesField,\n support3d: true,\n isSeriesMark: true\n }) as ITextMark;\n }\n }\n\n initMarkStyle() {\n const wordMark = this._wordMark;\n const fillingWordMark = this._fillingWordMark;\n if (wordMark) {\n this.setMarkStyle(\n wordMark,\n {\n fill: this._colorHexField\n ? (datum: Datum) => datum[this._colorHexField]\n : this.getWordColorAttribute(this._seriesField, false),\n text: (datum: Datum) => datum[this._nameField],\n x: (datum: Datum) => datum.x,\n y: (datum: Datum) => datum.y,\n z: (datum: Datum) => datum.z ?? 0,\n fontFamily: (datum: Datum) => datum.fontFamily,\n fontSize: (datum: Datum) => datum.fontSize,\n fontStyle: (datum: Datum) => datum.fontStyle,\n fontWeight: (datum: Datum) => datum.fontWeight,\n angle: (datum: Datum) => datum.angle,\n visible: (datum: Datum) => !datum.isFillingWord\n },\n 'normal',\n AttributeLevel.Series\n );\n }\n if (fillingWordMark) {\n this.setMarkStyle(\n fillingWordMark,\n {\n fill: this._wordCloudShapeConfig.fillingColorHexField\n ? (datum: Datum) => datum[this._wordCloudShapeConfig.fillingColorHexField]\n : this.getWordColorAttribute(this._wordCloudShapeConfig.fillingSeriesField, true),\n text: (datum: Datum) => datum[this._nameField],\n x: (datum: Datum) => datum.x,\n y: (datum: Datum) => datum.y,\n z: (datum: Datum) => datum.z ?? 0,\n fontFamily: (datum: Datum) => datum.fontFamily,\n fontSize: (datum: Datum) => datum.fontSize,\n fontStyle: (datum: Datum) => datum.fontStyle,\n fontWeight: (datum: Datum) => datum.fontWeight,\n angle: (datum: Datum) => datum.angle,\n visible: (datum: Datum) => datum.isFillingWord\n },\n 'normal',\n AttributeLevel.Series\n );\n }\n this._trigger.registerMark(wordMark);\n this._tooltipHelper?.activeTriggerSet.mark.add(wordMark);\n this._trigger.registerMark(fillingWordMark);\n this._tooltipHelper?.activeTriggerSet.mark.add(fillingWordMark);\n }\n\n initAnimation() {\n if (this._wordMark) {\n this._wordMark.setAnimationConfig(\n animationConfig(\n DEFAULT_MARK_ANIMATION.wordCloud3d(() => {\n const srView = this.getCompiler().getVGrammarView();\n const width = srView.width() - this._padding?.left || 0 - this._padding?.right || 0;\n const height = srView.height() - this._padding?.top || 0 - this._padding?.bottom || 0;\n const r = Math.max(width, height) / 2;\n return {\n center: { x: r, y: r, z: (this._spec as any).depth_3d ?? r },\n r\n };\n }) as any,\n userAnimationConfig(SeriesMarkNameEnum.word, this._spec)\n )\n );\n }\n if (this._fillingWordMark) {\n this._fillingWordMark.setAnimationConfig(\n animationConfig(\n DEFAULT_MARK_ANIMATION.wordCloud3d(() => {\n const srView = this.getCompiler().getVGrammarView();\n const width = srView.width() - this._padding?.left || 0 - this._padding?.right || 0;\n const height = srView.height() - this._padding?.top || 0 - this._padding?.bottom || 0;\n const r = Math.max(width, height) / 2;\n return {\n center: { x: r, y: r, z: (this._spec as any).depth_3d ?? r },\n r\n };\n }) as any,\n userAnimationConfig(SeriesMarkNameEnum.fillingWord, this._spec)\n )\n );\n }\n }\n}\n"]}
1
+ {"version":3,"sources":["../src/series/word-cloud/word-cloud-3d.ts"],"names":[],"mappings":";;;AAAA,6CAAkE;AAElE,4CAAuE;AAGvE,mDAAgE;AAChE,iDAA6E;AAC7E,6CAA+C;AAC/C,2DAAiD;AACjD,0DAKmC;AAEnC,iCAA6C;AAE7C,MAAa,iBAEX,SAAQ,0BAAsB;IAFhC;;QAIE,SAAI,GAAG,qBAAc,CAAC,WAAW,CAAC;IAoQpC,CAAC;IAlQC,OAAO;;QACL,KAAK,CAAC,OAAO,EAAE,CAAC;QAEhB,MAAM,mBAAmB,GAAU,EAAE,CAAC;QACtC,MAAM,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC;QACpC,MAAM,UAAU,GAAG,IAAI,oBAAW,EAAE,CAAC;QACrC,MAAM,eAAe,GAAG,IAAI,CAAC,gBAAgB,CAAC;QAC9C,MAAM,YAAY,GAAG,IAAI,CAAC,aAAa,CAAC;QACxC,MAAM,eAAe,GAAG,IAAI,CAAC,gBAAgB,CAAC;QAC9C,MAAM,mBAAmB,GAAG,IAAI,CAAC,qBAAqB,CAAC,mBAAmB,CAAC;QAG3E,IAAI,UAAU,EAAE;YACd,MAAM,CAAC,QAAQ,EAAE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AAkB,CACtC,IAAA,uBAAe,EACb,+BAAsB,CAAC,WAAW,CAAC,GAAG,EAAE;;gBACtC,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,EAAE,CAAC,eAAe,EAAE,CAAC;gBACpD,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,EAAE,IAAG,MAAA,IAAI,CAAC,QAAQ,0CAAE,IAAI,CAAA,IAAI,CAAC,IAAG,MAAA,IAAI,CAAC,QAAQ,0CAAE,KAAK,CAAA,IAAI,CAAC,CAAC;gBACpF,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,IAAG,MAAA,IAAI,CAAC,QAAQ,0CAAE,GAAG,CAAA,IAAI,CAAC,IAAG,MAAA,IAAI,CAAC,QAAQ,0CAAE,MAAM,CAAA,IAAI,CAAC,CAAC;gBACtF,MAAM,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC;gBACtC,OAAO;oBACL,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,MAAC,IAAI,CAAC,KAAa,CAAC,QAAQ,mCAAI,CAAC,EAAE;oBAC5D,CAAC;iBACF,CAAC;YACJ,CAAC,CAAQ,EACT,IAAA,2BAAmB,EAAC,yBAAkB,CAAC,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,CAChE,CACF,CAAC;SACH;IACH,CAAC;;AAvQH,8CAwQC;AArQiB,sBAAI,GAAW,qBAAc,CAAC,WAAW,CAAC","file":"word-cloud-3d.js","sourcesContent":["import { AttributeLevel, DEFAULT_DATA_KEY } from '../../constant';\nimport type { ITextMark } from '../../mark/text';\nimport { SeriesMarkNameEnum, SeriesTypeEnum } from '../interface/type';\nimport type { IWordCloud3dSeriesSpec } from './interface';\nimport type { Datum } from '../../typings';\nimport { DEFAULT_MARK_ANIMATION } from '../../animation/config';\nimport { animationConfig, userAnimationConfig } from '../../animation/utils';\nimport { LinearScale } from '@visactor/vscale';\nimport { extent } from '@visactor/vgrammar-util';\nimport {\n WORD_CLOUD_ANGLE,\n WORD_CLOUD_FILLING_ANGLE,\n WORD_CLOUD_TEXT,\n WORD_CLOUD_WEIGHT\n} from '../../constant/word-cloud';\nimport type { ICompilableMark } from '../../compile/mark';\nimport { BaseWordCloudSeries } from './base';\n\nexport class WordCloud3dSeries<\n T extends IWordCloud3dSeriesSpec = IWordCloud3dSeriesSpec\n> extends BaseWordCloudSeries<T> {\n static readonly type: string = SeriesTypeEnum.wordCloud3d;\n type = SeriesTypeEnum.wordCloud3d;\n\n compile(): void {\n super.compile();\n\n const wordCloudTransforms: any[] = [];\n const valueField = this._valueField;\n const valueScale = new LinearScale();\n const fontWeightRange = this._fontWeightRange;\n const rotateAngles = this._rotateAngles;\n const fontWeightField = this._fontWeightField;\n const fillingRotateAngles = this._wordCloudShapeConfig.fillingRotateAngles;\n\n // fontWeight处理\n if (valueField) {\n const [minValue, maxValue] = extent(this.getViewData()?.latestData.map((datum: any) => +datum[valueField]));\n valueScale.domain([minValue, maxValue], true).range(fontWeightRange);\n wordCloudTransforms.push({\n type: 'map',\n as: WORD_CLOUD_WEIGHT,\n callback: (datum: any) => {\n if (minValue === maxValue) {\n return valueScale.scale(maxValue);\n }\n return valueScale.scale(datum[valueField]);\n }\n });\n }\n\n // rotateAngles处理\n wordCloudTransforms.push({\n type: 'map',\n as: WORD_CLOUD_ANGLE,\n callback: () => {\n return rotateAngles[Math.floor(Math.random() * rotateAngles.length)];\n }\n });\n wordCloudTransforms.push({\n type: 'map',\n as: WORD_CLOUD_FILLING_ANGLE,\n callback: () => {\n return fillingRotateAngles[Math.floor(Math.random() * fillingRotateAngles.length)];\n }\n });\n\n // text fromat method 处理\n if (this._spec.word?.formatMethod) {\n wordCloudTransforms.push({\n type: 'map',\n as: WORD_CLOUD_TEXT,\n callback: this._spec.word.formatMethod\n });\n }\n\n const textField = this._spec.word?.formatMethod ? WORD_CLOUD_TEXT : this._nameField;\n\n // 词云 transform\n if (!this._isWordCloudShape) {\n wordCloudTransforms.push({\n type: 'wordcloud',\n layoutType: this._wordCloudConfig.layoutMode,\n size: [this._region.getLayoutRect().width, this._region.getLayoutRect().height],\n shape: this._maskShape,\n postProjection: this._spec.postProjection ?? 'StereographicProjection',\n dataIndexKey: DEFAULT_DATA_KEY,\n text: { field: textField },\n fontSize: valueField ? { field: valueField } : this._fontSizeRange[0],\n fontSizeRange: this._fontSizeRange,\n padding: this._fontPadding,\n rotate: { field: WORD_CLOUD_ANGLE },\n fontFamily: this._fontFamilyField ?? this._spec.word?.style?.fontFamily ?? this._option?.getTheme()?.fontFamily,\n fontWeight: fontWeightField ? { field: fontWeightField } : valueField ? { field: WORD_CLOUD_WEIGHT } : null,\n fontStyle: this._fontStyleField ?? this._spec.word?.style?.fontStyle,\n depth_3d: this._spec.depth_3d,\n\n randomVisible: this._random,\n clip: this._wordCloudConfig.drawOutOfBound === 'clip',\n shrink: this._wordCloudConfig.zoomToFit.shrink,\n enlarge: this._wordCloudConfig.zoomToFit.enlarge,\n minFontSize: this._wordCloudConfig.zoomToFit.fontSizeLimitMin,\n progressiveTime: this._wordCloudConfig.progressiveTime,\n progressiveStep: this._wordCloudConfig.progressiveStep\n });\n // 挂到mark的trnsform上,注册的时候决定transform的执行时机\n (this._wordMark as ICompilableMark).getProduct().transform(wordCloudTransforms);\n }\n // 形状词云 transform\n else {\n wordCloudTransforms.push({\n type: 'wordcloudShape',\n size: [this._region.getLayoutRect().width, this._region.getLayoutRect().height],\n shape: this._maskShape,\n postProjection: this._spec.postProjection ?? 'StereographicProjection',\n dataIndexKey: DEFAULT_DATA_KEY,\n text: { field: textField },\n fontSize: valueField ? { field: valueField } : this._fontSizeRange[0],\n fontSizeRange: this._fontSizeRange,\n padding: this._fontPadding,\n rotateList: rotateAngles,\n fontFamily: this._fontFamilyField ?? this._spec.word?.style?.fontFamily ?? this._option?.getTheme()?.fontFamily,\n fontWeight: fontWeightField ? { field: fontWeightField } : valueField ? { field: WORD_CLOUD_WEIGHT } : null,\n fontStyle: this._fontStyleField ?? this._spec.word?.style?.fontStyle,\n depth_3d: this._spec.depth_3d,\n\n fillingFontFamily:\n this._wordCloudShapeConfig?.fillingFontFamilyField ??\n this._spec.word?.style?.fontFamily ??\n this._option?.getTheme()?.fontFamily,\n fillingPadding: this._fillingFontPadding,\n fillingFontStyle: this._wordCloudShapeConfig?.fillingFontStyleField ?? this._spec.word?.style?.fontStyle,\n fillingFontWeight: this._wordCloudShapeConfig?.fillingFontWeightField ?? this._spec.word?.style?.fontWeight, // 填充词fontWeight默认不跟随valueField\n fillingRotateList: fillingRotateAngles,\n\n fillingTimes: this._wordCloudShapeConfig?.fillingTimes,\n fillingXStep: this._wordCloudShapeConfig?.fillingXStep,\n fillingYStep: this._wordCloudShapeConfig?.fillingYStep,\n fillingXRatioStep: this._wordCloudShapeConfig?.fillingXRatioStep,\n fillingYRatioStep: this._wordCloudShapeConfig?.fillingYRatioStep,\n fillingInitialOpacity: this._wordCloudShapeConfig?.fillingInitialOpacity,\n fillingDeltaOpacity: this._wordCloudShapeConfig?.fillingDeltaOpacity,\n fillingInitialFontSize: this._wordCloudShapeConfig?.fillingInitialFontSize,\n fillingDeltaFontSize: this._wordCloudShapeConfig?.fillingDeltaFontSize,\n\n ratio: this._wordCloudShapeConfig?.ratio,\n fillingRatio: this._wordCloudShapeConfig?.fillingRatio,\n removeWhiteBorder: this._wordCloudShapeConfig?.removeWhiteBorder,\n textLayoutTimes: this._wordCloudShapeConfig?.textLayoutTimes,\n fontSizeShrinkFactor: this._wordCloudShapeConfig?.fontSizeShrinkFactor,\n stepFactor: this._wordCloudShapeConfig?.stepFactor,\n layoutMode: this._wordCloudShapeConfig?.layoutMode,\n importantWordCount: this._wordCloudShapeConfig?.importantWordCount,\n globalShinkLimit: this._wordCloudShapeConfig?.globalShinkLimit,\n fontSizeEnlargeFactor: this._wordCloudShapeConfig?.fontSizeEnlargeFactor,\n fillingDeltaFontSizeFactor: this._wordCloudShapeConfig?.fillingDeltaFontSizeFactor\n });\n }\n // 把transform挂载到data的product上\n this._data.getProduct().transform(wordCloudTransforms);\n }\n\n initMark(): void {\n this._wordMark = this._createMark(BaseWordCloudSeries.mark.word, {\n groupKey: this._seriesField,\n support3d: true,\n isSeriesMark: true\n }) as ITextMark;\n if (this._isWordCloudShape) {\n this._fillingWordMark = this._createMark(BaseWordCloudSeries.mark.fillingWord, {\n groupKey: this._seriesField,\n support3d: true,\n isSeriesMark: true\n }) as ITextMark;\n }\n }\n\n initMarkStyle() {\n const wordMark = this._wordMark;\n const fillingWordMark = this._fillingWordMark;\n if (wordMark) {\n this.setMarkStyle(\n wordMark,\n {\n fill: this._colorHexField\n ? (datum: Datum) => datum[this._colorHexField]\n : this.getWordColorAttribute(this._seriesField, false),\n text: (datum: Datum) => datum[this._nameField],\n x: (datum: Datum) => datum.x,\n y: (datum: Datum) => datum.y,\n z: (datum: Datum) => datum.z ?? 0,\n fontFamily: (datum: Datum) => datum.fontFamily,\n fontSize: (datum: Datum) => datum.fontSize,\n fontStyle: (datum: Datum) => datum.fontStyle,\n fontWeight: (datum: Datum) => datum.fontWeight,\n angle: (datum: Datum) => datum.angle,\n visible: (datum: Datum) => !datum.isFillingWord\n },\n 'normal',\n AttributeLevel.Series\n );\n this.setMarkStyle(\n wordMark,\n {\n fontFamily: this._spec.word?.style?.fontFamily ?? this._option?.getTheme()?.fontFamily\n },\n 'normal',\n AttributeLevel.User_Mark\n );\n }\n if (fillingWordMark) {\n this.setMarkStyle(\n fillingWordMark,\n {\n fill: this._wordCloudShapeConfig.fillingColorHexField\n ? (datum: Datum) => datum[this._wordCloudShapeConfig.fillingColorHexField]\n : this.getWordColorAttribute(this._wordCloudShapeConfig.fillingSeriesField, true),\n text: (datum: Datum) => datum[this._nameField],\n x: (datum: Datum) => datum.x,\n y: (datum: Datum) => datum.y,\n z: (datum: Datum) => datum.z ?? 0,\n fontFamily: (datum: Datum) => datum.fontFamily,\n fontSize: (datum: Datum) => datum.fontSize,\n fontStyle: (datum: Datum) => datum.fontStyle,\n fontWeight: (datum: Datum) => datum.fontWeight,\n angle: (datum: Datum) => datum.angle,\n visible: (datum: Datum) => datum.isFillingWord\n },\n 'normal',\n AttributeLevel.Series\n );\n this.setMarkStyle(\n fillingWordMark,\n {\n fontFamily: this._spec.word?.style?.fontFamily ?? this._option?.getTheme()?.fontFamily\n },\n 'normal',\n AttributeLevel.User_Mark\n );\n }\n this._trigger.registerMark(wordMark);\n this._tooltipHelper?.activeTriggerSet.mark.add(wordMark);\n this._trigger.registerMark(fillingWordMark);\n this._tooltipHelper?.activeTriggerSet.mark.add(fillingWordMark);\n }\n\n initAnimation() {\n if (this._wordMark) {\n this._wordMark.setAnimationConfig(\n animationConfig(\n DEFAULT_MARK_ANIMATION.wordCloud3d(() => {\n const srView = this.getCompiler().getVGrammarView();\n const width = srView.width() - this._padding?.left || 0 - this._padding?.right || 0;\n const height = srView.height() - this._padding?.top || 0 - this._padding?.bottom || 0;\n const r = Math.max(width, height) / 2;\n return {\n center: { x: r, y: r, z: (this._spec as any).depth_3d ?? r },\n r\n };\n }) as any,\n userAnimationConfig(SeriesMarkNameEnum.word, this._spec)\n )\n );\n }\n if (this._fillingWordMark) {\n this._fillingWordMark.setAnimationConfig(\n animationConfig(\n DEFAULT_MARK_ANIMATION.wordCloud3d(() => {\n const srView = this.getCompiler().getVGrammarView();\n const width = srView.width() - this._padding?.left || 0 - this._padding?.right || 0;\n const height = srView.height() - this._padding?.top || 0 - this._padding?.bottom || 0;\n const r = Math.max(width, height) / 2;\n return {\n center: { x: r, y: r, z: (this._spec as any).depth_3d ?? r },\n r\n };\n }) as any,\n userAnimationConfig(SeriesMarkNameEnum.fillingWord, this._spec)\n )\n );\n }\n }\n}\n"]}
@@ -71,7 +71,6 @@ exports.commonAxis = {
71
71
  space: 10,
72
72
  style: {
73
73
  fontSize: constants_1.THEME_CONSTANTS.l5FontSize,
74
- fontFamily: constants_1.THEME_CONSTANTS.defaultFontFamily,
75
74
  fill: {
76
75
  type: "palette",
77
76
  key: "axisFontColor"
@@ -85,7 +84,6 @@ exports.commonAxis = {
85
84
  style: {
86
85
  fontSize: constants_1.THEME_CONSTANTS.l5FontSize,
87
86
  lineHeight: constants_1.THEME_CONSTANTS.l5LineHeight,
88
- fontFamily: constants_1.THEME_CONSTANTS.defaultFontFamily,
89
87
  fill: {
90
88
  type: "palette",
91
89
  key: "secondaryFontColor"
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/theme/builtin/common/component/axis/common-axis.ts"],"names":[],"mappings":";;;AACA,+CAAkD;AAErC,QAAA,UAAU,GAAqB;IAC1C,UAAU,EAAE;QACV,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YACL,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,iBAAiB,EAAE;YACnD,aAAa,EAAE,CAAC;SACjB;KACF;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YACL,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,eAAe,EAAE;YACjD,aAAa,EAAE,CAAC;YAChB,QAAQ,EAAE,EAAE;SACb;KACF;IACD,OAAO,EAAE;QACP,OAAO,EAAE,KAAK;QACd,KAAK,EAAE;YACL,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,eAAe,EAAE;YACjD,aAAa,EAAE,CAAC;YAChB,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;SACjB;KACF;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,IAAI;QACb,QAAQ,EAAE,2BAAe,CAAC,YAAY;QACtC,KAAK,EAAE;YACL,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,iBAAiB,EAAE;YACnD,aAAa,EAAE,CAAC;SACjB;KACF;IACD,OAAO,EAAE;QACP,OAAO,EAAE,KAAK;QACd,QAAQ,EAAE,2BAAe,CAAC,YAAY,GAAG,CAAC;QAC1C,KAAK,EAAE;YACL,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,iBAAiB,EAAE;YACnD,aAAa,EAAE,CAAC;SACjB;KACF;IACD,KAAK,EAAE;QACL,OAAO,EAAE,IAAI;QACb,KAAK,EAAE,EAAE;QACT,KAAK,EAAE;YACL,QAAQ,EAAE,2BAAe,CAAC,UAAU;YAEpC,UAAU,EAAE,2BAAe,CAAC,iBAAiB;YAC7C,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,eAAe,EAAE;YAC/C,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,CAAC;SACf;KACF;IACD,KAAK,EAAE;QACL,KAAK,EAAE,EAAE;QACT,KAAK,EAAE;YACL,QAAQ,EAAE,2BAAe,CAAC,UAAU;YACpC,UAAU,EAAE,2BAAe,CAAC,YAAY;YACxC,UAAU,EAAE,2BAAe,CAAC,iBAAiB;YAC7C,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,oBAAoB,EAAE;YACpD,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,CAAC;SACf;KACF;CACF,CAAC","file":"common-axis.js","sourcesContent":["import type { IAxisCommonTheme } from '../../../../../component/axis';\nimport { THEME_CONSTANTS } from '../../constants';\n\nexport const commonAxis: IAxisCommonTheme = {\n domainLine: {\n visible: true,\n style: {\n lineWidth: 1,\n stroke: { type: 'palette', key: 'axisDomainColor' },\n strokeOpacity: 1\n }\n },\n grid: {\n visible: true,\n style: {\n lineWidth: 1,\n stroke: { type: 'palette', key: 'axisGridColor' },\n strokeOpacity: 1,\n lineDash: []\n }\n },\n subGrid: {\n visible: false,\n style: {\n lineWidth: 1,\n stroke: { type: 'palette', key: 'axisGridColor' },\n strokeOpacity: 1,\n lineDash: [4, 4]\n }\n },\n tick: {\n visible: true,\n tickSize: THEME_CONSTANTS.axisTickSize,\n style: {\n lineWidth: 1,\n stroke: { type: 'palette', key: 'axisDomainColor' },\n strokeOpacity: 1\n }\n },\n subTick: {\n visible: false,\n tickSize: THEME_CONSTANTS.axisTickSize / 2,\n style: {\n lineWidth: 1,\n stroke: { type: 'palette', key: 'axisDomainColor' },\n strokeOpacity: 1\n }\n },\n label: {\n visible: true,\n space: 10,\n style: {\n fontSize: THEME_CONSTANTS.l5FontSize,\n // lineHeight: THEME_CONSTANTS.l5LineHeight,\n fontFamily: THEME_CONSTANTS.defaultFontFamily,\n fill: { type: 'palette', key: 'axisFontColor' },\n fontWeight: 'normal',\n fillOpacity: 1\n }\n },\n title: {\n space: 10,\n style: {\n fontSize: THEME_CONSTANTS.l5FontSize,\n lineHeight: THEME_CONSTANTS.l5LineHeight,\n fontFamily: THEME_CONSTANTS.defaultFontFamily,\n fill: { type: 'palette', key: 'secondaryFontColor' },\n fontWeight: 'normal',\n fillOpacity: 1\n }\n }\n};\n"]}
1
+ {"version":3,"sources":["../src/theme/builtin/common/component/axis/common-axis.ts"],"names":[],"mappings":";;;AACA,+CAAkD;AAErC,QAAA,UAAU,GAAqB;IAC1C,UAAU,EAAE;QACV,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YACL,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,iBAAiB,EAAE;YACnD,aAAa,EAAE,CAAC;SACjB;KACF;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YACL,SAAS,EAAE,CAAC;YACZ,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,eAAe,EAAE;YACjD,aAAa,EAAE,CAAC;YAChB,QAAQ,EAAE,EAAE;SACb;KACF;IACD,OAAO,EAAE;QACP,OAAO,E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CommonTheme } from '../../../../../component/axis';\nimport { THEME_CONSTANTS } from '../../constants';\n\nexport const commonAxis: IAxisCommonTheme = {\n domainLine: {\n visible: true,\n style: {\n lineWidth: 1,\n stroke: { type: 'palette', key: 'axisDomainColor' },\n strokeOpacity: 1\n }\n },\n grid: {\n visible: true,\n style: {\n lineWidth: 1,\n stroke: { type: 'palette', key: 'axisGridColor' },\n strokeOpacity: 1,\n lineDash: []\n }\n },\n subGrid: {\n visible: false,\n style: {\n lineWidth: 1,\n stroke: { type: 'palette', key: 'axisGridColor' },\n strokeOpacity: 1,\n lineDash: [4, 4]\n }\n },\n tick: {\n visible: true,\n tickSize: THEME_CONSTANTS.axisTickSize,\n style: {\n lineWidth: 1,\n stroke: { type: 'palette', key: 'axisDomainColor' },\n strokeOpacity: 1\n }\n },\n subTick: {\n visible: false,\n tickSize: THEME_CONSTANTS.axisTickSize / 2,\n style: {\n lineWidth: 1,\n stroke: { type: 'palette', key: 'axisDomainColor' },\n strokeOpacity: 1\n }\n },\n label: {\n visible: true,\n space: 10,\n style: {\n fontSize: THEME_CONSTANTS.l5FontSize,\n // lineHeight: THEME_CONSTANTS.l5LineHeight,\n\n fill: { type: 'palette', key: 'axisFontColor' },\n fontWeight: 'normal',\n fillOpacity: 1\n }\n },\n title: {\n space: 10,\n style: {\n fontSize: THEME_CONSTANTS.l5FontSize,\n lineHeight: THEME_CONSTANTS.l5LineHeight,\n\n fill: { type: 'palette', key: 'secondaryFontColor' },\n fontWeight: 'normal',\n fillOpacity: 1\n }\n }\n};\n"]}
@@ -12,8 +12,7 @@ const constants_1 = require("../constants"), getLabelSpec = () => ({
12
12
  type: "palette",
13
13
  key: "labelReverseFontColor"
14
14
  },
15
- fontSize: constants_1.THEME_CONSTANTS.l5FontSize,
16
- fontFamily: constants_1.THEME_CONSTANTS.defaultFontFamily
15
+ fontSize: constants_1.THEME_CONSTANTS.l5FontSize
17
16
  },
18
17
  labelBackground: {
19
18
  padding: {
@@ -1 +1 @@
1
- {"version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,IAAI;QACb,KAAK,EAAE;YACL,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,oBAAoB,EAAE;YACtD,OAAO,EAAE,GAAG;YACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;SACjB;KACoB;IACvB,KAAK,EAAE,YAAY,EAAE;CACtB,CAAC,CAAC;AAEU,QAAA,SAAS,GAAoB;IACxC,OAAO,EAAE,OAAO;IAChB,SAAS,EAAE,YAAY,EAAE;IACzB,WAAW,EAAE,cAAc,EAAE;CAC9B,CAAC","file":"crosshair.js","sourcesContent":["import type {\n ICrosshairLineSpec,\n ICrosshairRectSpec,\n ICrosshairValueFieldSpec,\n ICrosshairCategoryFieldSpec,\n ICrosshairLabelSpec,\n ICrosshairTheme\n} from '../../../../component/crosshair/interface';\nimport { THEME_CONSTANTS } from '../constants';\n\nconst getLabelSpec = (): ICrosshairLabelSpec => ({\n visible: false,\n style: {\n fontWeight: 'normal',\n fill: { type: 'palette', key: 'labelReverseFontColor' },\n fontSize: THEME_CONSTANTS.l5FontSize,\n //lineHeight: THEME_CONSTANTS.l5LineHeight,\n fontFamily: THEME_CONSTANTS.defaultFontFamily\n },\n labelBackground: {\n padding: {\n bottom: 0,\n top: 0,\n left: 2,\n right: 2\n },\n style: {\n fill: { type: 'palette', key: 'primaryFontColor' },\n outerBorder: {\n stroke: { type: 'palette', key: 'primaryFontColor' } as any,\n distance: 0,\n lineWidth: 3\n },\n cornerRadius: 1\n }\n }\n});\n\nconst getBandField = (): ICrosshairCategoryFieldSpec => ({\n visible: false,\n line: {\n type: 'rect',\n visible: true,\n style: {\n fill: { type: 'palette', key: 'axisGridColor' },\n opacity: 0.7,\n lineDash: []\n }\n } as ICrosshairRectSpec,\n label: getLabelSpec()\n});\n\nconst getLinearField = (): ICrosshairValueFieldSpec => ({\n visible: false,\n line: {\n type: 'line',\n visible: true,\n style: {\n stroke: { type: 'palette', key: 'secondaryFontColor' },\n opacity: 0.7,\n lineDash: [2, 3]\n }\n } as ICrosshairLineSpec,\n label: getLabelSpec()\n});\n\nexport const crosshair: ICrosshairTheme = {\n trigger: 'hover',\n bandField: getBandField(),\n linearField: getLinearField()\n};\n"]}
1
+ {"version":3,"sources":["../src/theme/builtin/common/component/crosshair.ts"],"names":[],"mappings":";;;AAQA,4CAA+C;AAE/C,MAAM,YAAY,GAAG,GAAwB,EAAE,CAAC,CAAC;IAC/C,OAAO,EAAE,KAAK;IACd,KAAK,EAAE;QACL,UAAU,EAAE,QAAQ;QACpB,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,uBAAuB,EAAE;QACvD,QAAQ,EAAE,2BAAe,CAAC,UAAU;KAErC;IACD,eAAe,EAAE;QACf,OAAO,EAAE;YACP,MAAM,EAAE,CAAC;YACT,GAAG,EAAE,CAAC;YACN,IAAI,EAAE,CAAC;YACP,KAAK,EAAE,CAAC;SACT;QACD,KAAK,EAAE;YACL,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,kBAAkB,EAAE;YAClD,WAAW,EAAE;gBACX,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,kBAAkB,EAAS;gBAC3D,QAAQ,EAAE,CAAC;gBACX,SAAS,EAAE,CAAC;aACb;YACD,YAAY,EAAE,CAAC;SAChB;KACF;CACF,CAAC,CAAC;AAEH,MAAM,YAAY,GAAG,GAAgC,EAAE,CAAC,CAAC;IACvD,OAAO,EAAE,KAAK;IACd,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YACL,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,eAAe,EAAE;YAC/C,OAAO,EAAE,GAAG;YACZ,QAAQ,EAAE,EAAE;SACb;KACoB;IACvB,KAAK,EAAE,YAAY,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,GAA6B,EAAE,CAAC,CAAC;IACtD,OAAO,EAAE,KAAK;IACd,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YACL,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,oBAAoB,EAAE;YACtD,OAAO,EAAE,GAAG;YACZ,QAAQ,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;SACjB;KACoB;IACvB,KAAK,EAAE,YAAY,EAAE;CACtB,CAAC,CAAC;AAEU,QAAA,SAAS,GAAoB;IACxC,OAAO,EAAE,OAAO;IAChB,SAAS,EAAE,YAAY,EAAE;IACzB,WAAW,EAAE,cAAc,EAAE;CAC9B,CAAC","file":"crosshair.js","sourcesContent":["import type {\n ICrosshairLineSpec,\n ICrosshairRectSpec,\n ICrosshairValueFieldSpec,\n ICrosshairCategoryFieldSpec,\n ICrosshairLabelSpec,\n ICrosshairTheme\n} from '../../../../component/crosshair/interface';\nimport { THEME_CONSTANTS } from '../constants';\n\nconst getLabelSpec = (): ICrosshairLabelSpec => ({\n visible: false,\n style: {\n fontWeight: 'normal',\n fill: { type: 'palette', key: 'labelReverseFontColor' },\n fontSize: THEME_CONSTANTS.l5FontSize\n //lineHeight: THEME_CONSTANTS.l5LineHeight,\n },\n labelBackground: {\n padding: {\n bottom: 0,\n top: 0,\n left: 2,\n right: 2\n },\n style: {\n fill: { type: 'palette', key: 'primaryFontColor' },\n outerBorder: {\n stroke: { type: 'palette', key: 'primaryFontColor' } as any,\n distance: 0,\n lineWidth: 3\n },\n cornerRadius: 1\n }\n }\n});\n\nconst getBandField = (): ICrosshairCategoryFieldSpec => ({\n visible: false,\n line: {\n type: 'rect',\n visible: true,\n style: {\n fill: { type: 'palette', key: 'axisGridColor' },\n opacity: 0.7,\n lineDash: []\n }\n } as ICrosshairRectSpec,\n label: getLabelSpec()\n});\n\nconst getLinearField = (): ICrosshairValueFieldSpec => ({\n visible: false,\n line: {\n type: 'line',\n visible: true,\n style: {\n stroke: { type: 'palette', key: 'secondaryFontColor' },\n opacity: 0.7,\n lineDash: [2, 3]\n }\n } as ICrosshairLineSpec,\n label: getLabelSpec()\n});\n\nexport const crosshair: ICrosshairTheme = {\n trigger: 'hover',\n bandField: getBandField(),\n linearField: getLinearField()\n};\n"]}
@@ -127,7 +127,6 @@ exports.dataZoom = {
127
127
  style: {
128
128
  fontSize: constants_1.THEME_CONSTANTS.l5FontSize,
129
129
  lineHeight: constants_1.THEME_CONSTANTS.l5LineHeight,
130
- fontFamily: constants_1.THEME_CONSTANTS.defaultFontFamily,
131
130
  fill: {
132
131
  type: "palette",
133
132
  key: "secondaryFontColor",
@@ -140,7 +139,6 @@ exports.dataZoom = {
140
139
  style: {
141
140
  fontSize: constants_1.THEME_CONSTANTS.l5FontSize,
142
141
  lineHeight: constants_1.THEME_CONSTANTS.l5LineHeight,
143
- fontFamily: constants_1.THEME_CONSTANTS.defaultFontFamily,
144
142
  fill: {
145
143
  type: "palette",
146
144
  key: "secondaryFontColor",
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/theme/builtin/common/component/data-zoom.ts"],"names":[],"mappings":";;;AACA,4CAA+C;AAElC,QAAA,QAAQ,GAAmB;IACtC,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAChB,UAAU,EAAE,MAAM;IAClB,WAAW,EAAE,KAAK;IAClB,aAAa,EAAE;QACb,OAAO,EAAE,KAAK;QACd,UAAU,EAAE;YACV,IAAI,EAAE,CAAC;YACP,KAAK,EAAE;gBACL,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,4BAA4B,EAAE;gBAC9D,YAAY,EAAE,CAAC;aAChB;SACF;QACD,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,IAAI,EAAE,CAAC;gBACP,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,0BAA0B,EAAE;gBAC1D,MAAM,EAAE,EAAE,IAAI,EAAE,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F;CACF,CAAC","file":"data-zoom.js","sourcesContent":["import type { IDataZoomTheme } from '../../../../component/data-zoom';\nimport { THEME_CONSTANTS } from '../constants';\n\nexport const dataZoom: IDataZoomTheme = {\n padding: [12, 0],\n showDetail: 'auto',\n brushSelect: false,\n middleHandler: {\n visible: false,\n background: {\n size: 6,\n style: {\n stroke: { type: 'palette', key: 'dataZoomHandlerStrokeColor' },\n cornerRadius: 2\n }\n },\n icon: {\n style: {\n size: 4,\n fill: { type: 'palette', key: 'dataZoomHandlerFillColor' },\n stroke: { type: 'palette', key: 'dataZoomHandlerStrokeColor' },\n symbolType:\n // eslint-disable-next-line max-len\n 'M 0.3 -0.5 C 0.41 -0.5 0.5 -0.41 0.5 -0.3 C 0.5 -0.3 0.5 0.3 0.5 0.3 C 0.5 0.41 0.41 0.5 0.3 0.5 C 0.3 0.5 -0.3 0.5 -0.3 0.5 C -0.41 0.5 -0.5 0.41 -0.5 0.3 C -0.5 0.3 -0.5 -0.3 -0.5 -0.3 C -0.5 -0.41 -0.41 -0.5 -0.3 -0.5 C -0.3 -0.5 0.3 -0.5 0.3 -0.5 Z',\n lineWidth: 0.5\n }\n }\n },\n background: {\n size: 20,\n style: {\n fill: { type: 'palette', key: 'dataZoomBackgroundColor' },\n lineWidth: 0\n }\n },\n selectedBackground: {\n style: {\n fill: { type: 'palette', key: 'dataZoomSelectedColor' },\n fillOpacity: 0.1,\n outerBorder: {\n stroke: { type: 'palette', key: 'dataZoomSelectedColor' },\n strokeOpacity: 0.2,\n distance: -0.5,\n lineWidth: 1\n }\n }\n },\n selectedBackgroundChart: {\n area: {\n style: {\n visible: false,\n stroke: false,\n fill: { type: 'palette', key: 'dataZoomChartColor' }\n }\n },\n line: {\n style: {\n visible: false,\n stroke: { type: 'palette', key: 'dataZoomChartColor' },\n lineWidth: 1\n }\n }\n },\n startHandler: {\n style: {\n symbolType: `M-0.5-2.4h0.9c0.4,0,0.7,0.3,0.7,0.7v3.3c0,0.4-0.3,0.7-0.7,0.7h-0.9c-0.4,0-0.7-0.3-0.7-0.7v-3.3\n C-1.2-2-0.9-2.4-0.5-2.4z M-0.4-1.4L-0.4-1.4c0,0,0,0.1,0,0.1v2.6c0,0.1,0,0.1,0,0.1l0,0c0,0,0-0.1,0-0.1v-2.6\n C-0.4-1.4-0.4-1.4-0.4-1.4z M0.3-1.4L0.3-1.4c0,0,0,0.1,0,0.1v2.6c0,0.1,0,0.1,0,0.1l0,0c0,0,0-0.1,0-0.1v-2.6\n C0.3-1.4,0.3-1.4,0.3-1.4z`,\n fill: { type: 'palette', key: 'dataZoomHandlerFillColor' },\n scaleX: 1.2,\n scaleY: 1.2,\n stroke: { type: 'palette', key: 'dataZoomHandlerStrokeColor' },\n lineWidth: 1,\n zIndex: 100\n }\n },\n endHandler: {\n style: {\n symbolType: `M-0.5-2.4h0.9c0.4,0,0.7,0.3,0.7,0.7v3.3c0,0.4-0.3,0.7-0.7,0.7h-0.9c-0.4,0-0.7-0.3-0.7-0.7v-3.3\n C-1.2-2-0.9-2.4-0.5-2.4z M-0.4-1.4L-0.4-1.4c0,0,0,0.1,0,0.1v2.6c0,0.1,0,0.1,0,0.1l0,0c0,0,0-0.1,0-0.1v-2.6\n C-0.4-1.4-0.4-1.4-0.4-1.4z M0.3-1.4L0.3-1.4c0,0,0,0.1,0,0.1v2.6c0,0.1,0,0.1,0,0.1l0,0c0,0,0-0.1,0-0.1v-2.6\n C0.3-1.4,0.3-1.4,0.3-1.4z`,\n fill: { type: 'palette', key: 'dataZoomHandlerFillColor' },\n scaleX: 1.2,\n scaleY: 1.2,\n stroke: { type: 'palette', key: 'dataZoomHandlerStrokeColor' },\n lineWidth: 1,\n zIndex: 100\n }\n },\n startText: {\n padding: 8,\n style: {\n fontSize: THEME_CONSTANTS.l5FontSize,\n lineHeight: THEME_CONSTANTS.l5LineHeight,\n fontFamily: THEME_CONSTANTS.defaultFontFamily,\n fill: { type: 'palette', key: 'secondaryFontColor', default: '#89909d' }\n }\n },\n endText: {\n padding: 8,\n style: {\n fontSize: THEME_CONSTANTS.l5FontSize,\n lineHeight: THEME_CONSTANTS.l5LineHeight,\n fontFamily: THEME_CONSTANTS.defaultFontFamily,\n fill: { type: 'palette', key: 'secondaryFontColor', default: '#89909d' }\n }\n },\n backgroundChart: {\n area: {\n style: {\n stroke: false,\n fill: { type: 'palette', key: 'dataZoomChartColor' }\n }\n },\n line: {\n style: {\n stroke: { type: 'palette', key: 'dataZoomChartColor' },\n lineWidth: 1\n }\n }\n }\n};\n"]}
1
+ {"version":3,"sources":["../src/theme/builtin/common/component/data-zoom.ts"],"names":[],"mappings":";;;AACA,4CAA+C;AAElC,QAAA,QAAQ,GAAmB;IACtC,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;IAChB,UAAU,EAAE,MAAM;IAClB,WAAW,EAAE,KAAK;IAClB,aAAa,EAAE;QACb,OAAO,EAAE,KAAK;QACd,UAAU,EAAE;YACV,IAAI,EAAE,CAAC;YACP,KAAK,EAAE;gBACL,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,4BAA4B,EAAE;gBAC9D,YAAY,EAAE,CAAC;aAChB;SACF;QACD,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,IAAI,EAAE,CAAC;gBACP,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,0BAA0B,EAAE;gBAC1D,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,4BAA4B,EAAE;gBAC9D,UAAU,EAER,8PAA8P;gBAChQ,SAAS,EAAE,GAAG;aACf;SACF;KACF;IACD,UAAU,EAAE;QACV,IAAI,EAAE,EAAE;QACR,KAAK,EAAE;YACL,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,yBAAyB,EAAE;YACzD,SAAS,EAAE,CAAC;SACb;KACF;IACD,kBAAkB,EAAE;QAClB,KAAK,EAAE;YACL,IAAI,EAAE,EAAE,IAAI,EAA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AE,GAAG;SACZ;KACF;IACD,SAAS,EAAE;QACT,OAAO,EAAE,CAAC;QACV,KAAK,EAAE;YACL,QAAQ,EAAE,2BAAe,CAAC,UAAU;YACpC,UAAU,EAAE,2BAAe,CAAC,YAAY;YAExC,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,oBAAoB,EAAE,OAAO,EAAE,SAAS,EAAE;SACzE;KACF;IACD,OAAO,EAAE;QACP,OAAO,EAAE,CAAC;QACV,KAAK,EAAE;YACL,QAAQ,EAAE,2BAAe,CAAC,UAAU;YACpC,UAAU,EAAE,2BAAe,CAAC,YAAY;YAExC,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,oBAAoB,EAAE,OAAO,EAAE,SAAS,EAAE;SACzE;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,MAAM,EAAE,KAAK;gBACb,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,oBAAoB,EAAE;aACrD;SACF;QACD,IAAI,EAAE;YACJ,KAAK,EAAE;gBACL,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,oBAAoB,EAAE;gBACtD,SAAS,EAAE,CAAC;aACb;SACF;KACF;CACF,CAAC","file":"data-zoom.js","sourcesContent":["import type { IDataZoomTheme } from '../../../../component/data-zoom';\nimport { THEME_CONSTANTS } from '../constants';\n\nexport const dataZoom: IDataZoomTheme = {\n padding: [12, 0],\n showDetail: 'auto',\n brushSelect: false,\n middleHandler: {\n visible: false,\n background: {\n size: 6,\n style: {\n stroke: { type: 'palette', key: 'dataZoomHandlerStrokeColor' },\n cornerRadius: 2\n }\n },\n icon: {\n style: {\n size: 4,\n fill: { type: 'palette', key: 'dataZoomHandlerFillColor' },\n stroke: { type: 'palette', key: 'dataZoomHandlerStrokeColor' },\n symbolType:\n // eslint-disable-next-line max-len\n 'M 0.3 -0.5 C 0.41 -0.5 0.5 -0.41 0.5 -0.3 C 0.5 -0.3 0.5 0.3 0.5 0.3 C 0.5 0.41 0.41 0.5 0.3 0.5 C 0.3 0.5 -0.3 0.5 -0.3 0.5 C -0.41 0.5 -0.5 0.41 -0.5 0.3 C -0.5 0.3 -0.5 -0.3 -0.5 -0.3 C -0.5 -0.41 -0.41 -0.5 -0.3 -0.5 C -0.3 -0.5 0.3 -0.5 0.3 -0.5 Z',\n lineWidth: 0.5\n }\n }\n },\n background: {\n size: 20,\n style: {\n fill: { type: 'palette', key: 'dataZoomBackgroundColor' },\n lineWidth: 0\n }\n },\n selectedBackground: {\n style: {\n fill: { type: 'palette', key: 'dataZoomSelectedColor' },\n fillOpacity: 0.1,\n outerBorder: {\n stroke: { type: 'palette', key: 'dataZoomSelectedColor' },\n strokeOpacity: 0.2,\n distance: -0.5,\n lineWidth: 1\n }\n }\n },\n selectedBackgroundChart: {\n area: {\n style: {\n visible: false,\n stroke: false,\n fill: { type: 'palette', key: 'dataZoomChartColor' }\n }\n },\n line: {\n style: {\n visible: false,\n stroke: { type: 'palette', key: 'dataZoomChartColor' },\n lineWidth: 1\n }\n }\n },\n startHandler: {\n style: {\n symbolType: `M-0.5-2.4h0.9c0.4,0,0.7,0.3,0.7,0.7v3.3c0,0.4-0.3,0.7-0.7,0.7h-0.9c-0.4,0-0.7-0.3-0.7-0.7v-3.3\n C-1.2-2-0.9-2.4-0.5-2.4z M-0.4-1.4L-0.4-1.4c0,0,0,0.1,0,0.1v2.6c0,0.1,0,0.1,0,0.1l0,0c0,0,0-0.1,0-0.1v-2.6\n C-0.4-1.4-0.4-1.4-0.4-1.4z M0.3-1.4L0.3-1.4c0,0,0,0.1,0,0.1v2.6c0,0.1,0,0.1,0,0.1l0,0c0,0,0-0.1,0-0.1v-2.6\n C0.3-1.4,0.3-1.4,0.3-1.4z`,\n fill: { type: 'palette', key: 'dataZoomHandlerFillColor' },\n scaleX: 1.2,\n scaleY: 1.2,\n stroke: { type: 'palette', key: 'dataZoomHandlerStrokeColor' },\n lineWidth: 1,\n zIndex: 100\n }\n },\n endHandler: {\n style: {\n symbolType: `M-0.5-2.4h0.9c0.4,0,0.7,0.3,0.7,0.7v3.3c0,0.4-0.3,0.7-0.7,0.7h-0.9c-0.4,0-0.7-0.3-0.7-0.7v-3.3\n C-1.2-2-0.9-2.4-0.5-2.4z M-0.4-1.4L-0.4-1.4c0,0,0,0.1,0,0.1v2.6c0,0.1,0,0.1,0,0.1l0,0c0,0,0-0.1,0-0.1v-2.6\n C-0.4-1.4-0.4-1.4-0.4-1.4z M0.3-1.4L0.3-1.4c0,0,0,0.1,0,0.1v2.6c0,0.1,0,0.1,0,0.1l0,0c0,0,0-0.1,0-0.1v-2.6\n C0.3-1.4,0.3-1.4,0.3-1.4z`,\n fill: { type: 'palette', key: 'dataZoomHandlerFillColor' },\n scaleX: 1.2,\n scaleY: 1.2,\n stroke: { type: 'palette', key: 'dataZoomHandlerStrokeColor' },\n lineWidth: 1,\n zIndex: 100\n }\n },\n startText: {\n padding: 8,\n style: {\n fontSize: THEME_CONSTANTS.l5FontSize,\n lineHeight: THEME_CONSTANTS.l5LineHeight,\n\n fill: { type: 'palette', key: 'secondaryFontColor', default: '#89909d' }\n }\n },\n endText: {\n padding: 8,\n style: {\n fontSize: THEME_CONSTANTS.l5FontSize,\n lineHeight: THEME_CONSTANTS.l5LineHeight,\n\n fill: { type: 'palette', key: 'secondaryFontColor', default: '#89909d' }\n }\n },\n backgroundChart: {\n area: {\n style: {\n stroke: false,\n fill: { type: 'palette', key: 'dataZoomChartColor' }\n }\n },\n line: {\n style: {\n stroke: { type: 'palette', key: 'dataZoomChartColor' },\n lineWidth: 1\n }\n }\n }\n};\n"]}
@@ -13,7 +13,6 @@ exports.indicator = {
13
13
  autoFit: !1,
14
14
  style: {
15
15
  fontSize: constants_1.THEME_CONSTANTS.l1FontSize,
16
- fontFamily: constants_1.THEME_CONSTANTS.defaultFontFamily,
17
16
  fill: {
18
17
  type: "palette",
19
18
  key: [ "titleFontColor", "primaryFontColor" ]
@@ -28,7 +27,6 @@ exports.indicator = {
28
27
  visible: !0,
29
28
  style: {
30
29
  fontSize: constants_1.THEME_CONSTANTS.l2FontSize,
31
- fontFamily: constants_1.THEME_CONSTANTS.defaultFontFamily,
32
30
  fill: {
33
31
  type: "palette",
34
32
  key: "secondaryFontColor"
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/theme/builtin/common/component/indicator.ts"],"names":[],"mappings":";;;AACA,4CAA+C;AAElC,QAAA,SAAS,GAAoB;IACxC,KAAK,EAAE;QACL,OAAO,EAAE,IAAI;QACb,SAAS,EAAE,KAAK;QAChB,OAAO,EAAE,KAAK;QACd,KAAK,EAAE;YACL,QAAQ,EAAE,2BAAe,CAAC,UAAU;YAEpC,UAAU,EAAE,2BAAe,CAAC,iBAAiB;YAC7C,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,CAAC;YACd,YAAY,EAAE,KAAK;YACnB,SAAS,EAAE,QAAQ;SACpB;KACF;IACD,OAAO,EAAE;QACP,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YACL,QAAQ,EAAE,2BAAe,CAAC,UAAU;YAEpC,UAAU,EAAE,2BAAe,CAAC,iBAAiB;YAC7C,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,oBAAoB,EAAE;YACpD,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,CAAC;YACd,YAAY,EAAE,KAAK;YACnB,SAAS,EAAE,QAAQ;SACpB;KACF;CACF,CAAC","file":"indicator.js","sourcesContent":["import type { IIndicatorTheme } from '../../../../component/indicator/interface';\nimport { THEME_CONSTANTS } from '../constants';\n\nexport const indicator: IIndicatorTheme = {\n title: {\n visible: true,\n autoLimit: false,\n autoFit: false,\n style: {\n fontSize: THEME_CONSTANTS.l1FontSize,\n // lineHeight: THEME_CONSTANTS.l1LineHeight,\n fontFamily: THEME_CONSTANTS.defaultFontFamily,\n fill: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] },\n fontWeight: 'normal',\n fillOpacity: 1,\n textBaseline: 'top',\n textAlign: 'center'\n }\n },\n content: {\n visible: true,\n style: {\n fontSize: THEME_CONSTANTS.l2FontSize,\n // lineHeight: THEME_CONSTANTS.l2LineHeight,\n fontFamily: THEME_CONSTANTS.defaultFontFamily,\n fill: { type: 'palette', key: 'secondaryFontColor' },\n fontWeight: 'normal',\n fillOpacity: 1,\n textBaseline: 'top',\n textAlign: 'center'\n }\n }\n};\n"]}
1
+ {"version":3,"sources":["../src/theme/builtin/common/component/indicator.ts"],"names":[],"mappings":";;;AACA,4CAA+C;AAElC,QAAA,SAAS,GAAoB;IACxC,KAAK,EAAE;QACL,OAAO,EAAE,IAAI;QACb,SAAS,EAAE,KAAK;QAChB,OAAO,EAAE,KAAK;QACd,KAAK,EAAE;YACL,QAAQ,EAAE,2BAAe,CAAC,UAAU;YAGpC,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,CAAC;YACd,YAAY,EAAE,KAAK;YACnB,SAAS,EAAE,QAAQ;SACpB;KACF;IACD,OAAO,EAAE;QACP,OAAO,EAAE,IAAI;QACb,KAAK,EAAE;YACL,QAAQ,EAAE,2BAAe,CAAC,UAAU;YAGpC,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,oBAAoB,EAAE;YACpD,UAAU,EAAE,QAAQ;YACpB,WAAW,EAAE,CAAC;YACd,YAAY,EAAE,KAAK;YACnB,SAAS,EAAE,QAAQ;SACpB;KACF;CACF,CAAC","file":"indicator.js","sourcesContent":["import type { IIndicatorTheme } from '../../../../component/indicator/interface';\nimport { THEME_CONSTANTS } from '../constants';\n\nexport const indicator: IIndicatorTheme = {\n title: {\n visible: true,\n autoLimit: false,\n autoFit: false,\n style: {\n fontSize: THEME_CONSTANTS.l1FontSize,\n // lineHeight: THEME_CONSTANTS.l1LineHeight,\n\n fill: { type: 'palette', key: ['titleFontColor', 'primaryFontColor'] },\n fontWeight: 'normal',\n fillOpacity: 1,\n textBaseline: 'top',\n textAlign: 'center'\n }\n },\n content: {\n visible: true,\n style: {\n fontSize: THEME_CONSTANTS.l2FontSize,\n // lineHeight: THEME_CONSTANTS.l2LineHeight,\n\n fill: { type: 'palette', key: 'secondaryFontColor' },\n fontWeight: 'normal',\n fillOpacity: 1,\n textBaseline: 'top',\n textAlign: 'center'\n }\n }\n};\n"]}
@@ -16,7 +16,6 @@ exports.DEFAULT_CONTINUOUS_LEGEND_THEME = {
16
16
  textStyle: {
17
17
  fontSize: constants_1.THEME_CONSTANTS.l5FontSize,
18
18
  lineHeight: constants_1.THEME_CONSTANTS.l5LineHeight,
19
- fontFamily: constants_1.THEME_CONSTANTS.defaultFontFamily,
20
19
  fontWeight: "normal",
21
20
  fill: {
22
21
  type: "palette",
@@ -32,7 +31,6 @@ exports.DEFAULT_CONTINUOUS_LEGEND_THEME = {
32
31
  style: {
33
32
  fontSize: constants_1.THEME_CONSTANTS.l5FontSize,
34
33
  lineHeight: constants_1.THEME_CONSTANTS.l5LineHeight,
35
- fontFamily: constants_1.THEME_CONSTANTS.defaultFontFamily,
36
34
  fontWeight: "normal",
37
35
  fill: {
38
36
  type: "palette",
@@ -46,7 +44,6 @@ exports.DEFAULT_CONTINUOUS_LEGEND_THEME = {
46
44
  style: {
47
45
  fontSize: constants_1.THEME_CONSTANTS.l5FontSize,
48
46
  lineHeight: constants_1.THEME_CONSTANTS.l5LineHeight,
49
- fontFamily: constants_1.THEME_CONSTANTS.defaultFontFamily,
50
47
  fontWeight: "normal",
51
48
  fill: {
52
49
  type: "palette",
@@ -60,7 +57,6 @@ exports.DEFAULT_CONTINUOUS_LEGEND_THEME = {
60
57
  style: {
61
58
  fontSize: constants_1.THEME_CONSTANTS.l5FontSize,
62
59
  lineHeight: constants_1.THEME_CONSTANTS.l5LineHeight,
63
- fontFamily: constants_1.THEME_CONSTANTS.defaultFontFamily,
64
60
  fontWeight: "normal",
65
61
  fill: {
66
62
  type: "palette",