@visactor/vrender-components 1.1.0-alpha.24 → 1.1.0-alpha.26

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 (49) hide show
  1. package/README.md +9 -1
  2. package/cjs/axis/animate/group-transition.d.ts +2 -1
  3. package/cjs/axis/animate/group-transition.js +2 -2
  4. package/cjs/axis/animate/group-transition.js.map +1 -1
  5. package/cjs/axis/base.js +2 -2
  6. package/cjs/axis/base.js.map +1 -1
  7. package/cjs/axis/overlap/auto-hide.d.ts +1 -1
  8. package/cjs/axis/overlap/auto-hide.js.map +1 -1
  9. package/cjs/core/base.d.ts +2 -2
  10. package/cjs/core/base.js +3 -3
  11. package/cjs/core/base.js.map +1 -1
  12. package/cjs/index.d.ts +1 -1
  13. package/cjs/index.js +1 -1
  14. package/cjs/index.js.map +1 -1
  15. package/cjs/label/base.js +11 -11
  16. package/cjs/label/base.js.map +1 -1
  17. package/cjs/tooltip/tooltip.js +8 -8
  18. package/cjs/tooltip/tooltip.js.map +1 -1
  19. package/cjs/util/event.js +2 -2
  20. package/cjs/util/event.js.map +1 -1
  21. package/cjs/util/graphic-creator.js +1 -1
  22. package/cjs/util/graphic-creator.js.map +1 -1
  23. package/cjs/util/text.js +3 -3
  24. package/cjs/util/text.js.map +1 -1
  25. package/dist/index.es.js +1090 -1810
  26. package/es/axis/animate/group-transition.d.ts +2 -1
  27. package/es/axis/animate/group-transition.js +1 -1
  28. package/es/axis/animate/group-transition.js.map +1 -1
  29. package/es/axis/base.js +1 -1
  30. package/es/axis/base.js.map +1 -1
  31. package/es/axis/overlap/auto-hide.d.ts +1 -1
  32. package/es/axis/overlap/auto-hide.js.map +1 -1
  33. package/es/core/base.d.ts +2 -2
  34. package/es/core/base.js +3 -1
  35. package/es/core/base.js.map +1 -1
  36. package/es/index.d.ts +1 -1
  37. package/es/index.js +1 -1
  38. package/es/index.js.map +1 -1
  39. package/es/label/base.js +3 -1
  40. package/es/label/base.js.map +1 -1
  41. package/es/tooltip/tooltip.js +3 -1
  42. package/es/tooltip/tooltip.js.map +1 -1
  43. package/es/util/event.js +1 -1
  44. package/es/util/event.js.map +1 -1
  45. package/es/util/graphic-creator.js +1 -1
  46. package/es/util/graphic-creator.js.map +1 -1
  47. package/es/util/text.js +1 -1
  48. package/es/util/text.js.map +1 -1
  49. package/package.json +272 -6
@@ -1,4 +1,4 @@
1
- import { createGraphic as createCoreGraphic } from "@visactor/vrender-core";
1
+ import { createGraphic as createCoreGraphic } from "@visactor/vrender-core/graphic/creator";
2
2
 
3
3
  const createGraphic = createCoreGraphic;
4
4
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/util/graphic-creator.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE5E,MAAM,aAAa,GAAG,iBAA+F,CAAC;AAEtH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,GAAG,EAAE,CAAC,UAAgC,EAAQ,EAAE,CAAC,aAAa,CAAC,KAAK,EAAE,UAAU,CAAC;IACjF,MAAM,EAAE,CAAC,UAAmC,EAAW,EAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,UAAU,CAAC;IAC7F,KAAK,EAAE,CAAC,UAAkC,EAAU,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,UAAU,CAAC;IACzF,KAAK,EAAE,CAAC,UAAkC,EAAU,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,UAAU,CAAC;IACzF,IAAI,EAAE,CAAC,UAAiC,EAAS,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,UAAU,CAAC;IACrF,IAAI,EAAE,CAAC,UAAiC,EAAS,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,UAAU,CAAC;IACrF,OAAO,EAAE,CAAC,UAAoC,EAAY,EAAE,CAAC,aAAa,CAAC,SAAS,EAAE,UAAU,CAAC;IACjG,IAAI,EAAE,CAAC,UAAiC,EAAS,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,UAAU,CAAC;IACrF,QAAQ,EAAE,CAAC,UAAqC,EAAa,EAAE,CAAC,aAAa,CAAC,UAAU,EAAE,UAAU,CAAC;IACrG,MAAM,EAAE,CAAC,UAAmC,EAAW,EAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,UAAU,CAAC;IAC7F,IAAI,EAAE,CAAC,UAAiC,EAAS,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,UAAU,CAAC;CACtF,CAAC","file":"graphic-creator.js","sourcesContent":["import type {\n IArc,\n IArcGraphicAttribute,\n ICircle,\n ICircleGraphicAttribute,\n IGroup,\n IGroupGraphicAttribute,\n IImage,\n IImageGraphicAttribute,\n ILine,\n ILineGraphicAttribute,\n IPath,\n IPathGraphicAttribute,\n IPolygon,\n IPolygonGraphicAttribute,\n IRect,\n IRectGraphicAttribute,\n IRichText,\n IRichTextGraphicAttribute,\n ISymbol,\n ISymbolGraphicAttribute,\n IText,\n ITextGraphicAttribute\n} from '@visactor/vrender-core';\nimport { createGraphic as createCoreGraphic } from '@visactor/vrender-core';\n\nconst createGraphic = createCoreGraphic as <TGraphic, TAttributes>(type: string, attributes: TAttributes) => TGraphic;\n\nexport const graphicCreator = {\n arc: (attributes: IArcGraphicAttribute): IArc => createGraphic('arc', attributes),\n circle: (attributes: ICircleGraphicAttribute): ICircle => createGraphic('circle', attributes),\n group: (attributes: IGroupGraphicAttribute): IGroup => createGraphic('group', attributes),\n image: (attributes: IImageGraphicAttribute): IImage => createGraphic('image', attributes),\n line: (attributes: ILineGraphicAttribute): ILine => createGraphic('line', attributes),\n path: (attributes: IPathGraphicAttribute): IPath => createGraphic('path', attributes),\n polygon: (attributes: IPolygonGraphicAttribute): IPolygon => createGraphic('polygon', attributes),\n rect: (attributes: IRectGraphicAttribute): IRect => createGraphic('rect', attributes),\n richtext: (attributes: IRichTextGraphicAttribute): IRichText => createGraphic('richtext', attributes),\n symbol: (attributes: ISymbolGraphicAttribute): ISymbol => createGraphic('symbol', attributes),\n text: (attributes: ITextGraphicAttribute): IText => createGraphic('text', attributes)\n};\n"]}
1
+ {"version":3,"sources":["../src/util/graphic-creator.ts"],"names":[],"mappings":"AAwBA,OAAO,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAE5F,MAAM,aAAa,GAAG,iBAA+F,CAAC;AAEtH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,GAAG,EAAE,CAAC,UAAgC,EAAQ,EAAE,CAAC,aAAa,CAAC,KAAK,EAAE,UAAU,CAAC;IACjF,MAAM,EAAE,CAAC,UAAmC,EAAW,EAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,UAAU,CAAC;IAC7F,KAAK,EAAE,CAAC,UAAkC,EAAU,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,UAAU,CAAC;IACzF,KAAK,EAAE,CAAC,UAAkC,EAAU,EAAE,CAAC,aAAa,CAAC,OAAO,EAAE,UAAU,CAAC;IACzF,IAAI,EAAE,CAAC,UAAiC,EAAS,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,UAAU,CAAC;IACrF,IAAI,EAAE,CAAC,UAAiC,EAAS,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,UAAU,CAAC;IACrF,OAAO,EAAE,CAAC,UAAoC,EAAY,EAAE,CAAC,aAAa,CAAC,SAAS,EAAE,UAAU,CAAC;IACjG,IAAI,EAAE,CAAC,UAAiC,EAAS,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,UAAU,CAAC;IACrF,QAAQ,EAAE,CAAC,UAAqC,EAAa,EAAE,CAAC,aAAa,CAAC,UAAU,EAAE,UAAU,CAAC;IACrG,MAAM,EAAE,CAAC,UAAmC,EAAW,EAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,UAAU,CAAC;IAC7F,IAAI,EAAE,CAAC,UAAiC,EAAS,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,UAAU,CAAC;CACtF,CAAC","file":"graphic-creator.js","sourcesContent":["import type {\n IArc,\n IArcGraphicAttribute,\n ICircle,\n ICircleGraphicAttribute,\n IGroup,\n IGroupGraphicAttribute,\n IImage,\n IImageGraphicAttribute,\n ILine,\n ILineGraphicAttribute,\n IPath,\n IPathGraphicAttribute,\n IPolygon,\n IPolygonGraphicAttribute,\n IRect,\n IRectGraphicAttribute,\n IRichText,\n IRichTextGraphicAttribute,\n ISymbol,\n ISymbolGraphicAttribute,\n IText,\n ITextGraphicAttribute\n} from '@visactor/vrender-core';\nimport { createGraphic as createCoreGraphic } from '@visactor/vrender-core/graphic/creator';\n\nconst createGraphic = createCoreGraphic as <TGraphic, TAttributes>(type: string, attributes: TAttributes) => TGraphic;\n\nexport const graphicCreator = {\n arc: (attributes: IArcGraphicAttribute): IArc => createGraphic('arc', attributes),\n circle: (attributes: ICircleGraphicAttribute): ICircle => createGraphic('circle', attributes),\n group: (attributes: IGroupGraphicAttribute): IGroup => createGraphic('group', attributes),\n image: (attributes: IImageGraphicAttribute): IImage => createGraphic('image', attributes),\n line: (attributes: ILineGraphicAttribute): ILine => createGraphic('line', attributes),\n path: (attributes: IPathGraphicAttribute): IPath => createGraphic('path', attributes),\n polygon: (attributes: IPolygonGraphicAttribute): IPolygon => createGraphic('polygon', attributes),\n rect: (attributes: IRectGraphicAttribute): IRect => createGraphic('rect', attributes),\n richtext: (attributes: IRichTextGraphicAttribute): IRichText => createGraphic('richtext', attributes),\n symbol: (attributes: ISymbolGraphicAttribute): ISymbol => createGraphic('symbol', attributes),\n text: (attributes: ITextGraphicAttribute): IText => createGraphic('text', attributes)\n};\n"]}
package/es/util/text.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getTextBounds } from "@visactor/vrender-core";
1
+ import { getTextBounds } from "@visactor/vrender-core/text";
2
2
 
3
3
  import { graphicCreator } from "./graphic-creator";
4
4
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/util/text.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,aAAa,E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AAED,MAAM,UAAU,eAAe,CAC7B,WAA6B,EAC7B,OAA0B,EAC1B,SAAwB,EACxB,GAAW,EACX,SAAiB;IAEjB,IAAI,WAAW,KAAK,OAAO,EAAE;QAC3B,IAAI,SAAS,KAAK,QAAQ,EAAE;YAC1B,OAAO,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,GAAG,SAAS,GAAG,CAAC,CAAC,CAAC;SAChD;aAAM,IAAI,SAAS,KAAK,OAAO,IAAI,SAAS,KAAK,KAAK,EAAE;YAEvD,OAAO,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;SAChC;aAAM;YAEL,OAAO,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,GAAG,SAAS,CAAC,CAAC;SAC5C;KACF;SAAM;QACL,IAAI,SAAS,KAAK,QAAQ,EAAE;YAC1B,OAAO,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,GAAG,SAAS,GAAG,CAAC,CAAC,CAAC;SAChD;aAAM,IAAI,SAAS,KAAK,OAAO,IAAI,SAAS,KAAK,KAAK,EAAE;YAEvD,OAAO,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,GAAG,SAAS,CAAC,CAAC;SAC5C;aAAM;YAEL,OAAO,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;SAChC;KACF;AACH,CAAC","file":"text.js","sourcesContent":["import type {\n IRichText,\n IRichTextAttribute,\n IText,\n ITextGraphicAttribute,\n TextAlignType\n} from '@visactor/vrender-core';\n// eslint-disable-next-line no-duplicate-imports\nimport { getTextBounds } from '@visactor/vrender-core';\nimport { graphicCreator } from './graphic-creator';\nimport type { ITextMeasureOption } from '@visactor/vutils';\n// eslint-disable-next-line no-duplicate-imports\nimport { TextMeasure, isObject, isValid } from '@visactor/vutils';\nimport { DEFAULT_TEXT_FONT_FAMILY, DEFAULT_TEXT_FONT_SIZE } from '../constant';\nimport type { HTMLTextContent, ReactTextContent, TextContent } from '../core/type';\n\nexport const initTextMeasure = (\n textSpec?: Partial<ITextGraphicAttribute>,\n option?: Partial<ITextMeasureOption>,\n useNaiveCanvas?: boolean,\n defaultFontParams?: Partial<ITextGraphicAttribute>\n): TextMeasure<ITextGraphicAttribute> => {\n return new TextMeasure<ITextGraphicAttribute>(\n {\n defaultFontParams: {\n fontFamily: DEFAULT_TEXT_FONT_FAMILY,\n fontSize: DEFAULT_TEXT_FONT_SIZE,\n ...defaultFontParams\n },\n getTextBounds: useNaiveCanvas ? undefined : getTextBounds,\n specialCharSet: '-/: .,@%\\'\"~' + TextMeasure.ALPHABET_CHAR_SET + TextMeasure.ALPHABET_CHAR_SET.toUpperCase(),\n ...(option ?? {})\n },\n textSpec\n );\n};\n\n// FIXME: 和上一个方法统一,使用 TextMeasure 类\nexport function measureTextSize(\n text: string | number | string[] | number[],\n textSpec: Partial<ITextGraphicAttribute>,\n defaultTextTheme: Partial<ITextGraphicAttribute> = {}\n) {\n if (!text) {\n return { width: 0, height: 0 };\n }\n const bounds = getTextBounds({\n text,\n fontFamily: textSpec.fontFamily || defaultTextTheme.fontFamily || DEFAULT_TEXT_FONT_FAMILY,\n fontSize: textSpec.fontSize || defaultTextTheme.fontSize || 12,\n fontWeight: textSpec.fontWeight || defaultTextTheme.fontWeight,\n textAlign: textSpec.textAlign || 'center',\n textBaseline: textSpec.textBaseline,\n ellipsis: !!textSpec.ellipsis,\n maxLineWidth: textSpec.maxLineWidth || Infinity,\n lineHeight: textSpec.fontSize || defaultTextTheme.fontSize || 12\n });\n\n return { width: bounds.width(), height: bounds.height() };\n}\n\nexport function isRichText(attributes: TextContent, typeKey = 'type') {\n return getTextType(attributes, typeKey) === 'rich';\n}\n\nexport function getTextType(attributes: TextContent, typeKey = 'type') {\n if (isObject(attributes.text) && 'type' in attributes.text) {\n return attributes.text.type ?? 'text';\n }\n\n if (typeKey in attributes) {\n return attributes[typeKey] ?? 'text';\n }\n\n return 'text';\n}\n\nexport function richTextAttributeTransform(attributes: ITextGraphicAttribute & IRichTextAttribute & TextContent) {\n if (isValid(attributes.maxLineWidth)) {\n attributes.maxWidth = attributes.maxLineWidth;\n delete attributes.maxLineWidth;\n }\n\n attributes.width = attributes.width ?? 0;\n attributes.height = attributes.height ?? 0;\n attributes.textConfig = (attributes.text as unknown as any).text || attributes.text;\n return attributes;\n}\n\nexport function htmlAttributeTransform(attributes: ITextGraphicAttribute) {\n const { text, _originText } = attributes as unknown as HTMLTextContent;\n const { text: html } = text;\n\n attributes.html = html;\n attributes.text = _originText;\n attributes.renderable = false; // 文字图元配置了 html,则不绘制原始文字\n return attributes;\n}\n\nexport function reactAttributeTransform(attributes: ITextGraphicAttribute) {\n const { text, _originText } = attributes as unknown as ReactTextContent;\n const { text: react } = text;\n\n attributes.react = react;\n attributes.text = _originText;\n attributes.renderable = false; // 文字图元配置了 react,则不绘制原始文字\n\n return attributes;\n}\n\nexport function createTextGraphicByType(textAttributes: ITextGraphicAttribute, typeKey = 'type') {\n const textType = getTextType(textAttributes, typeKey);\n if (textType === 'rich') {\n return graphicCreator.richtext(richTextAttributeTransform(textAttributes as IRichTextAttribute));\n }\n\n if (textType === 'html') {\n textAttributes = htmlAttributeTransform(textAttributes);\n } else if (textType === 'react') {\n textAttributes = reactAttributeTransform(textAttributes);\n }\n\n return graphicCreator.text(textAttributes as ITextGraphicAttribute);\n}\n\nexport function alignTextInLine(\n layoutAlign: 'left' | 'right',\n graphic: IText | IRichText,\n textAlign: TextAlignType,\n pos: number,\n textWidth: number\n) {\n if (layoutAlign === 'right') {\n if (textAlign === 'center') {\n graphic.setAttribute('x', pos - textWidth / 2);\n } else if (textAlign === 'right' || textAlign === 'end') {\n // 右对齐\n graphic.setAttribute('x', pos);\n } else {\n // 默认左对齐\n graphic.setAttribute('x', pos - textWidth);\n }\n } else {\n if (textAlign === 'center') {\n graphic.setAttribute('x', pos + textWidth / 2);\n } else if (textAlign === 'right' || textAlign === 'end') {\n // 右对齐\n graphic.setAttribute('x', pos + textWidth);\n } else {\n // 默认左对齐\n graphic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AAuB,CAAC,cAAc,CAAC,CAAC;KAC1D;IAED,OAAO,cAAc,CAAC,IAAI,CAAC,cAAuC,CAAC,CAAC;AACtE,CAAC;AAED,MAAM,UAAU,eAAe,CAC7B,WAA6B,EAC7B,OAA0B,EAC1B,SAAwB,EACxB,GAAW,EACX,SAAiB;IAEjB,IAAI,WAAW,KAAK,OAAO,EAAE;QAC3B,IAAI,SAAS,KAAK,QAAQ,EAAE;YAC1B,OAAO,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,GAAG,SAAS,GAAG,CAAC,CAAC,CAAC;SAChD;aAAM,IAAI,SAAS,KAAK,OAAO,IAAI,SAAS,KAAK,KAAK,EAAE;YAEvD,OAAO,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;SAChC;aAAM;YAEL,OAAO,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,GAAG,SAAS,CAAC,CAAC;SAC5C;KACF;SAAM;QACL,IAAI,SAAS,KAAK,QAAQ,EAAE;YAC1B,OAAO,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,GAAG,SAAS,GAAG,CAAC,CAAC,CAAC;SAChD;aAAM,IAAI,SAAS,KAAK,OAAO,IAAI,SAAS,KAAK,KAAK,EAAE;YAEvD,OAAO,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,GAAG,SAAS,CAAC,CAAC;SAC5C;aAAM;YAEL,OAAO,CAAC,YAAY,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;SAChC;KACF;AACH,CAAC","file":"text.js","sourcesContent":["import type {\n IRichText,\n IRichTextAttribute,\n IText,\n ITextGraphicAttribute,\n TextAlignType\n} from '@visactor/vrender-core';\n// eslint-disable-next-line no-duplicate-imports\nimport { getTextBounds } from '@visactor/vrender-core/text';\nimport { graphicCreator } from './graphic-creator';\nimport type { ITextMeasureOption } from '@visactor/vutils';\n// eslint-disable-next-line no-duplicate-imports\nimport { TextMeasure, isObject, isValid } from '@visactor/vutils';\nimport { DEFAULT_TEXT_FONT_FAMILY, DEFAULT_TEXT_FONT_SIZE } from '../constant';\nimport type { HTMLTextContent, ReactTextContent, TextContent } from '../core/type';\n\nexport const initTextMeasure = (\n textSpec?: Partial<ITextGraphicAttribute>,\n option?: Partial<ITextMeasureOption>,\n useNaiveCanvas?: boolean,\n defaultFontParams?: Partial<ITextGraphicAttribute>\n): TextMeasure<ITextGraphicAttribute> => {\n return new TextMeasure<ITextGraphicAttribute>(\n {\n defaultFontParams: {\n fontFamily: DEFAULT_TEXT_FONT_FAMILY,\n fontSize: DEFAULT_TEXT_FONT_SIZE,\n ...defaultFontParams\n },\n getTextBounds: useNaiveCanvas ? undefined : getTextBounds,\n specialCharSet: '-/: .,@%\\'\"~' + TextMeasure.ALPHABET_CHAR_SET + TextMeasure.ALPHABET_CHAR_SET.toUpperCase(),\n ...(option ?? {})\n },\n textSpec\n );\n};\n\n// FIXME: 和上一个方法统一,使用 TextMeasure 类\nexport function measureTextSize(\n text: string | number | string[] | number[],\n textSpec: Partial<ITextGraphicAttribute>,\n defaultTextTheme: Partial<ITextGraphicAttribute> = {}\n) {\n if (!text) {\n return { width: 0, height: 0 };\n }\n const bounds = getTextBounds({\n text,\n fontFamily: textSpec.fontFamily || defaultTextTheme.fontFamily || DEFAULT_TEXT_FONT_FAMILY,\n fontSize: textSpec.fontSize || defaultTextTheme.fontSize || 12,\n fontWeight: textSpec.fontWeight || defaultTextTheme.fontWeight,\n textAlign: textSpec.textAlign || 'center',\n textBaseline: textSpec.textBaseline,\n ellipsis: !!textSpec.ellipsis,\n maxLineWidth: textSpec.maxLineWidth || Infinity,\n lineHeight: textSpec.fontSize || defaultTextTheme.fontSize || 12\n });\n\n return { width: bounds.width(), height: bounds.height() };\n}\n\nexport function isRichText(attributes: TextContent, typeKey = 'type') {\n return getTextType(attributes, typeKey) === 'rich';\n}\n\nexport function getTextType(attributes: TextContent, typeKey = 'type') {\n if (isObject(attributes.text) && 'type' in attributes.text) {\n return attributes.text.type ?? 'text';\n }\n\n if (typeKey in attributes) {\n return attributes[typeKey] ?? 'text';\n }\n\n return 'text';\n}\n\nexport function richTextAttributeTransform(attributes: ITextGraphicAttribute & IRichTextAttribute & TextContent) {\n if (isValid(attributes.maxLineWidth)) {\n attributes.maxWidth = attributes.maxLineWidth;\n delete attributes.maxLineWidth;\n }\n\n attributes.width = attributes.width ?? 0;\n attributes.height = attributes.height ?? 0;\n attributes.textConfig = (attributes.text as unknown as any).text || attributes.text;\n return attributes;\n}\n\nexport function htmlAttributeTransform(attributes: ITextGraphicAttribute) {\n const { text, _originText } = attributes as unknown as HTMLTextContent;\n const { text: html } = text;\n\n attributes.html = html;\n attributes.text = _originText;\n attributes.renderable = false; // 文字图元配置了 html,则不绘制原始文字\n return attributes;\n}\n\nexport function reactAttributeTransform(attributes: ITextGraphicAttribute) {\n const { text, _originText } = attributes as unknown as ReactTextContent;\n const { text: react } = text;\n\n attributes.react = react;\n attributes.text = _originText;\n attributes.renderable = false; // 文字图元配置了 react,则不绘制原始文字\n\n return attributes;\n}\n\nexport function createTextGraphicByType(textAttributes: ITextGraphicAttribute, typeKey = 'type') {\n const textType = getTextType(textAttributes, typeKey);\n if (textType === 'rich') {\n return graphicCreator.richtext(richTextAttributeTransform(textAttributes as IRichTextAttribute));\n }\n\n if (textType === 'html') {\n textAttributes = htmlAttributeTransform(textAttributes);\n } else if (textType === 'react') {\n textAttributes = reactAttributeTransform(textAttributes);\n }\n\n return graphicCreator.text(textAttributes as ITextGraphicAttribute);\n}\n\nexport function alignTextInLine(\n layoutAlign: 'left' | 'right',\n graphic: IText | IRichText,\n textAlign: TextAlignType,\n pos: number,\n textWidth: number\n) {\n if (layoutAlign === 'right') {\n if (textAlign === 'center') {\n graphic.setAttribute('x', pos - textWidth / 2);\n } else if (textAlign === 'right' || textAlign === 'end') {\n // 右对齐\n graphic.setAttribute('x', pos);\n } else {\n // 默认左对齐\n graphic.setAttribute('x', pos - textWidth);\n }\n } else {\n if (textAlign === 'center') {\n graphic.setAttribute('x', pos + textWidth / 2);\n } else if (textAlign === 'right' || textAlign === 'end') {\n // 右对齐\n graphic.setAttribute('x', pos + textWidth);\n } else {\n // 默认左对齐\n graphic.setAttribute('x', pos);\n }\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vrender-components",
3
- "version": "1.1.0-alpha.24",
3
+ "version": "1.1.0-alpha.26",
4
4
  "description": "components library for dp visualization",
5
5
  "sideEffects": false,
6
6
  "main": "cjs/index.js",
@@ -14,12 +14,30 @@
14
14
  "axis/*": [
15
15
  "es/axis/*"
16
16
  ],
17
+ "brush": [
18
+ "es/brush/index.d.ts"
19
+ ],
20
+ "brush/*": [
21
+ "es/brush/*"
22
+ ],
23
+ "checkbox": [
24
+ "es/checkbox/index.d.ts"
25
+ ],
26
+ "checkbox/*": [
27
+ "es/checkbox/*"
28
+ ],
17
29
  "crosshair": [
18
30
  "es/crosshair/index.d.ts"
19
31
  ],
20
32
  "crosshair/*": [
21
33
  "es/crosshair/*"
22
34
  ],
35
+ "data-zoom": [
36
+ "es/data-zoom/index.d.ts"
37
+ ],
38
+ "data-zoom/*": [
39
+ "es/data-zoom/*"
40
+ ],
23
41
  "label": [
24
42
  "es/label/index.d.ts"
25
43
  ],
@@ -29,18 +47,66 @@
29
47
  "legend/*": [
30
48
  "es/legend/*"
31
49
  ],
50
+ "marker": [
51
+ "es/marker/index.d.ts"
52
+ ],
53
+ "marker/*": [
54
+ "es/marker/*"
55
+ ],
56
+ "player": [
57
+ "es/player/index.d.ts"
58
+ ],
59
+ "player/*": [
60
+ "es/player/*"
61
+ ],
32
62
  "poptip": [
33
63
  "es/poptip/index.d.ts"
34
64
  ],
35
65
  "poptip/*": [
36
66
  "es/poptip/*"
37
67
  ],
68
+ "radio": [
69
+ "es/radio/index.d.ts"
70
+ ],
71
+ "radio/*": [
72
+ "es/radio/*"
73
+ ],
74
+ "scrollbar": [
75
+ "es/scrollbar/index.d.ts"
76
+ ],
77
+ "scrollbar/*": [
78
+ "es/scrollbar/*"
79
+ ],
80
+ "slider": [
81
+ "es/slider/index.d.ts"
82
+ ],
83
+ "slider/*": [
84
+ "es/slider/*"
85
+ ],
86
+ "table-series-number": [
87
+ "es/table-series-number/index.d.ts"
88
+ ],
89
+ "table-series-number/*": [
90
+ "es/table-series-number/*"
91
+ ],
38
92
  "tag": [
39
93
  "es/tag/index.d.ts"
40
94
  ],
41
95
  "tag/*": [
42
96
  "es/tag/*"
43
97
  ],
98
+ "timeline": [
99
+ "es/timeline/index.d.ts"
100
+ ],
101
+ "timeline/*": [
102
+ "es/timeline/*"
103
+ ],
104
+ "title": [
105
+ "es/title/index.d.ts"
106
+ ],
107
+ "title/*": [
108
+ "es/title/*"
109
+ ],
44
110
  "tooltip": [
45
111
  "es/tooltip/index.d.ts"
46
112
  ],
@@ -63,9 +129,9 @@
63
129
  "dependencies": {
64
130
  "@visactor/vutils": "~1.0.12",
65
131
  "@visactor/vscale": "~1.0.12",
66
- "@visactor/vrender-core": "1.1.0-alpha.24",
67
- "@visactor/vrender-kits": "1.1.0-alpha.24",
68
- "@visactor/vrender-animate": "1.1.0-alpha.24"
132
+ "@visactor/vrender-core": "1.1.0-alpha.26",
133
+ "@visactor/vrender-kits": "1.1.0-alpha.26",
134
+ "@visactor/vrender-animate": "1.1.0-alpha.26"
69
135
  },
70
136
  "devDependencies": {
71
137
  "@rushstack/eslint-patch": "~1.1.4",
@@ -79,9 +145,9 @@
79
145
  "vite": "3.2.6",
80
146
  "typescript": "4.9.5",
81
147
  "cross-env": "^7.0.3",
82
- "@internal/eslint-config": "0.0.1",
148
+ "@internal/bundler": "0.0.1",
83
149
  "@internal/ts-config": "0.0.1",
84
- "@internal/bundler": "0.0.1"
150
+ "@internal/eslint-config": "0.0.1"
85
151
  },
86
152
  "keywords": [
87
153
  "VisActor",
@@ -110,6 +176,21 @@
110
176
  "import": "./es/index.js",
111
177
  "require": "./cjs/index.js"
112
178
  },
179
+ "./brush": {
180
+ "types": "./es/brush/index.d.ts",
181
+ "import": "./es/brush/index.js",
182
+ "require": "./cjs/brush/index.js"
183
+ },
184
+ "./brush/register": {
185
+ "types": "./es/brush/register.d.ts",
186
+ "import": "./es/brush/register.js",
187
+ "require": "./cjs/brush/register.js"
188
+ },
189
+ "./brush/type": {
190
+ "types": "./es/brush/type.d.ts",
191
+ "import": "./es/brush/type.js",
192
+ "require": "./cjs/brush/type.js"
193
+ },
113
194
  "./axis": {
114
195
  "types": "./es/axis/index.d.ts",
115
196
  "import": "./es/axis/index.js",
@@ -165,6 +246,21 @@
165
246
  "import": "./es/axis/util.js",
166
247
  "require": "./cjs/axis/util.js"
167
248
  },
249
+ "./checkbox": {
250
+ "types": "./es/checkbox/index.d.ts",
251
+ "import": "./es/checkbox/index.js",
252
+ "require": "./cjs/checkbox/index.js"
253
+ },
254
+ "./checkbox/register": {
255
+ "types": "./es/checkbox/register.d.ts",
256
+ "import": "./es/checkbox/register.js",
257
+ "require": "./cjs/checkbox/register.js"
258
+ },
259
+ "./checkbox/type": {
260
+ "types": "./es/checkbox/type.d.ts",
261
+ "import": "./es/checkbox/type.js",
262
+ "require": "./cjs/checkbox/type.js"
263
+ },
168
264
  "./crosshair": {
169
265
  "types": "./es/crosshair/index.d.ts",
170
266
  "import": "./es/crosshair/index.js",
@@ -185,6 +281,21 @@
185
281
  "import": "./es/crosshair/type.js",
186
282
  "require": "./cjs/crosshair/type.js"
187
283
  },
284
+ "./data-zoom": {
285
+ "types": "./es/data-zoom/index.d.ts",
286
+ "import": "./es/data-zoom/index.js",
287
+ "require": "./cjs/data-zoom/index.js"
288
+ },
289
+ "./data-zoom/register": {
290
+ "types": "./es/data-zoom/register.d.ts",
291
+ "import": "./es/data-zoom/register.js",
292
+ "require": "./cjs/data-zoom/register.js"
293
+ },
294
+ "./data-zoom/type": {
295
+ "types": "./es/data-zoom/type.d.ts",
296
+ "import": "./es/data-zoom/type.js",
297
+ "require": "./cjs/data-zoom/type.js"
298
+ },
188
299
  "./label": {
189
300
  "types": "./es/label/index.d.ts",
190
301
  "import": "./es/label/index.js",
@@ -230,6 +341,61 @@
230
341
  "import": "./es/legend/constant.js",
231
342
  "require": "./cjs/legend/constant.js"
232
343
  },
344
+ "./marker": {
345
+ "types": "./es/marker/index.d.ts",
346
+ "import": "./es/marker/index.js",
347
+ "require": "./cjs/marker/index.js"
348
+ },
349
+ "./marker/arc-area": {
350
+ "types": "./es/marker/arc-area.d.ts",
351
+ "import": "./es/marker/arc-area.js",
352
+ "require": "./cjs/marker/arc-area.js"
353
+ },
354
+ "./marker/arc-line": {
355
+ "types": "./es/marker/arc-line.d.ts",
356
+ "import": "./es/marker/arc-line.js",
357
+ "require": "./cjs/marker/arc-line.js"
358
+ },
359
+ "./marker/area": {
360
+ "types": "./es/marker/area.d.ts",
361
+ "import": "./es/marker/area.js",
362
+ "require": "./cjs/marker/area.js"
363
+ },
364
+ "./marker/line": {
365
+ "types": "./es/marker/line.d.ts",
366
+ "import": "./es/marker/line.js",
367
+ "require": "./cjs/marker/line.js"
368
+ },
369
+ "./marker/point": {
370
+ "types": "./es/marker/point.d.ts",
371
+ "import": "./es/marker/point.js",
372
+ "require": "./cjs/marker/point.js"
373
+ },
374
+ "./marker/register": {
375
+ "types": "./es/marker/register.d.ts",
376
+ "import": "./es/marker/register.js",
377
+ "require": "./cjs/marker/register.js"
378
+ },
379
+ "./marker/type": {
380
+ "types": "./es/marker/type.d.ts",
381
+ "import": "./es/marker/type.js",
382
+ "require": "./cjs/marker/type.js"
383
+ },
384
+ "./player": {
385
+ "types": "./es/player/index.d.ts",
386
+ "import": "./es/player/index.js",
387
+ "require": "./cjs/player/index.js"
388
+ },
389
+ "./player/register": {
390
+ "types": "./es/player/register.d.ts",
391
+ "import": "./es/player/register.js",
392
+ "require": "./cjs/player/register.js"
393
+ },
394
+ "./player/type": {
395
+ "types": "./es/player/type/index.d.ts",
396
+ "import": "./es/player/type/index.js",
397
+ "require": "./cjs/player/type/index.js"
398
+ },
233
399
  "./poptip": {
234
400
  "types": "./es/poptip/index.d.ts",
235
401
  "import": "./es/poptip/index.js",
@@ -245,6 +411,76 @@
245
411
  "import": "./es/poptip/type.js",
246
412
  "require": "./cjs/poptip/type.js"
247
413
  },
414
+ "./radio": {
415
+ "types": "./es/radio/index.d.ts",
416
+ "import": "./es/radio/index.js",
417
+ "require": "./cjs/radio/index.js"
418
+ },
419
+ "./radio/register": {
420
+ "types": "./es/radio/register.d.ts",
421
+ "import": "./es/radio/register.js",
422
+ "require": "./cjs/radio/register.js"
423
+ },
424
+ "./radio/type": {
425
+ "types": "./es/radio/type.d.ts",
426
+ "import": "./es/radio/type.js",
427
+ "require": "./cjs/radio/type.js"
428
+ },
429
+ "./scrollbar": {
430
+ "types": "./es/scrollbar/index.d.ts",
431
+ "import": "./es/scrollbar/index.js",
432
+ "require": "./cjs/scrollbar/index.js"
433
+ },
434
+ "./scrollbar/module": {
435
+ "types": "./es/scrollbar/module.d.ts",
436
+ "import": "./es/scrollbar/module.js",
437
+ "require": "./cjs/scrollbar/module.js"
438
+ },
439
+ "./scrollbar/register": {
440
+ "types": "./es/scrollbar/register.d.ts",
441
+ "import": "./es/scrollbar/register.js",
442
+ "require": "./cjs/scrollbar/register.js"
443
+ },
444
+ "./scrollbar/type": {
445
+ "types": "./es/scrollbar/type.d.ts",
446
+ "import": "./es/scrollbar/type.js",
447
+ "require": "./cjs/scrollbar/type.js"
448
+ },
449
+ "./slider": {
450
+ "types": "./es/slider/index.d.ts",
451
+ "import": "./es/slider/index.js",
452
+ "require": "./cjs/slider/index.js"
453
+ },
454
+ "./slider/constant": {
455
+ "types": "./es/slider/constant.d.ts",
456
+ "import": "./es/slider/constant.js",
457
+ "require": "./cjs/slider/constant.js"
458
+ },
459
+ "./slider/register": {
460
+ "types": "./es/slider/register.d.ts",
461
+ "import": "./es/slider/register.js",
462
+ "require": "./cjs/slider/register.js"
463
+ },
464
+ "./slider/type": {
465
+ "types": "./es/slider/type.d.ts",
466
+ "import": "./es/slider/type.js",
467
+ "require": "./cjs/slider/type.js"
468
+ },
469
+ "./table-series-number": {
470
+ "types": "./es/table-series-number/index.d.ts",
471
+ "import": "./es/table-series-number/index.js",
472
+ "require": "./cjs/table-series-number/index.js"
473
+ },
474
+ "./table-series-number/register": {
475
+ "types": "./es/table-series-number/register.d.ts",
476
+ "import": "./es/table-series-number/register.js",
477
+ "require": "./cjs/table-series-number/register.js"
478
+ },
479
+ "./table-series-number/type": {
480
+ "types": "./es/table-series-number/type.d.ts",
481
+ "import": "./es/table-series-number/type.js",
482
+ "require": "./cjs/table-series-number/type.js"
483
+ },
248
484
  "./tag": {
249
485
  "types": "./es/tag/index.d.ts",
250
486
  "import": "./es/tag/index.js",
@@ -255,6 +491,36 @@
255
491
  "import": "./es/tag/type.js",
256
492
  "require": "./cjs/tag/type.js"
257
493
  },
494
+ "./timeline": {
495
+ "types": "./es/timeline/index.d.ts",
496
+ "import": "./es/timeline/index.js",
497
+ "require": "./cjs/timeline/index.js"
498
+ },
499
+ "./timeline/register": {
500
+ "types": "./es/timeline/register.d.ts",
501
+ "import": "./es/timeline/register.js",
502
+ "require": "./cjs/timeline/register.js"
503
+ },
504
+ "./timeline/type": {
505
+ "types": "./es/timeline/type.d.ts",
506
+ "import": "./es/timeline/type.js",
507
+ "require": "./cjs/timeline/type.js"
508
+ },
509
+ "./title": {
510
+ "types": "./es/title/index.d.ts",
511
+ "import": "./es/title/index.js",
512
+ "require": "./cjs/title/index.js"
513
+ },
514
+ "./title/register": {
515
+ "types": "./es/title/register.d.ts",
516
+ "import": "./es/title/register.js",
517
+ "require": "./cjs/title/register.js"
518
+ },
519
+ "./title/type": {
520
+ "types": "./es/title/type.d.ts",
521
+ "import": "./es/title/type.js",
522
+ "require": "./cjs/title/type.js"
523
+ },
258
524
  "./tooltip": {
259
525
  "types": "./es/tooltip/index.d.ts",
260
526
  "import": "./es/tooltip/index.js",