@antv/infographic 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/README.md +3 -1
  2. package/README.zh-CN.md +3 -1
  3. package/dist/infographic.min.js +98 -98
  4. package/dist/infographic.min.js.map +1 -1
  5. package/esm/designs/layouts/Align.js +6 -6
  6. package/esm/designs/layouts/Flex.js +8 -6
  7. package/esm/designs/structures/index.d.ts +1 -0
  8. package/esm/designs/structures/index.js +1 -0
  9. package/esm/designs/structures/list-zigzag.d.ts +11 -0
  10. package/esm/designs/structures/list-zigzag.js +240 -0
  11. package/esm/exporter/font.js +14 -12
  12. package/esm/index.d.ts +1 -1
  13. package/esm/index.js +1 -1
  14. package/esm/renderer/composites/icon.d.ts +2 -5
  15. package/esm/renderer/composites/icon.js +5 -10
  16. package/esm/renderer/composites/illus.d.ts +3 -2
  17. package/esm/renderer/composites/illus.js +6 -2
  18. package/esm/renderer/composites/index.d.ts +2 -2
  19. package/esm/renderer/composites/index.js +2 -2
  20. package/esm/renderer/fonts/loader.js +18 -9
  21. package/esm/renderer/fonts/registry.js +9 -6
  22. package/esm/renderer/palettes/registry.d.ts +1 -1
  23. package/esm/renderer/palettes/registry.js +1 -1
  24. package/esm/renderer/renderer.js +6 -3
  25. package/esm/resource/loader.d.ts +2 -1
  26. package/esm/resource/loader.js +55 -23
  27. package/esm/templates/built-in.js +2 -0
  28. package/esm/templates/list-zigzag.d.ts +2 -0
  29. package/esm/templates/list-zigzag.js +68 -0
  30. package/esm/utils/font.d.ts +1 -0
  31. package/esm/utils/font.js +87 -8
  32. package/esm/utils/measure-text.js +89 -9
  33. package/lib/designs/layouts/Align.js +6 -6
  34. package/lib/designs/layouts/Flex.js +8 -6
  35. package/lib/designs/structures/index.d.ts +1 -0
  36. package/lib/designs/structures/index.js +1 -0
  37. package/lib/designs/structures/list-zigzag.d.ts +11 -0
  38. package/lib/designs/structures/list-zigzag.js +246 -0
  39. package/lib/exporter/font.js +13 -11
  40. package/lib/index.d.ts +1 -1
  41. package/lib/index.js +3 -2
  42. package/lib/renderer/composites/icon.d.ts +2 -5
  43. package/lib/renderer/composites/icon.js +5 -11
  44. package/lib/renderer/composites/illus.d.ts +3 -2
  45. package/lib/renderer/composites/illus.js +7 -2
  46. package/lib/renderer/composites/index.d.ts +2 -2
  47. package/lib/renderer/composites/index.js +2 -2
  48. package/lib/renderer/fonts/loader.js +17 -8
  49. package/lib/renderer/fonts/registry.js +8 -5
  50. package/lib/renderer/palettes/registry.d.ts +1 -1
  51. package/lib/renderer/palettes/registry.js +1 -1
  52. package/lib/renderer/renderer.js +5 -2
  53. package/lib/resource/loader.d.ts +2 -1
  54. package/lib/resource/loader.js +55 -23
  55. package/lib/templates/built-in.js +2 -0
  56. package/lib/templates/list-zigzag.d.ts +2 -0
  57. package/lib/templates/list-zigzag.js +71 -0
  58. package/lib/utils/font.d.ts +1 -0
  59. package/lib/utils/font.js +88 -8
  60. package/lib/utils/measure-text.js +89 -9
  61. package/package.json +2 -1
  62. package/src/designs/layouts/Align.tsx +6 -6
  63. package/src/designs/layouts/Flex.tsx +8 -6
  64. package/src/designs/structures/index.ts +1 -0
  65. package/src/designs/structures/list-zigzag.tsx +492 -0
  66. package/src/exporter/font.ts +15 -10
  67. package/src/index.ts +2 -0
  68. package/src/renderer/composites/icon.ts +6 -16
  69. package/src/renderer/composites/illus.ts +12 -2
  70. package/src/renderer/composites/index.ts +2 -2
  71. package/src/renderer/fonts/loader.ts +17 -8
  72. package/src/renderer/fonts/registry.ts +12 -5
  73. package/src/renderer/palettes/registry.ts +2 -2
  74. package/src/renderer/renderer.ts +5 -11
  75. package/src/resource/loader.ts +54 -20
  76. package/src/templates/built-in.ts +2 -0
  77. package/src/templates/list-zigzag.ts +70 -0
  78. package/src/utils/font.ts +95 -5
  79. package/src/utils/measure-text.ts +108 -11
  80. package/src/designs/items/prompt.md +0 -900
  81. package/src/designs/structures/prompt.md +0 -1049
package/README.md CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
  🦋 An Infographic Generation and Rendering Framework, bring words to life!
8
8
 
9
+ <a href="https://trendshift.io/repositories/15838" target="_blank"><img src="https://trendshift.io/api/badge/repositories/15838" alt="antvis%2FInfographic | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
10
+
9
11
  [![npm version](https://img.shields.io/npm/v/@antv/infographic.svg)](https://www.npmjs.com/package/@antv/infographic)
10
12
  [![build status](https://img.shields.io/github/actions/workflow/status/antvis/infographic/build.yml)](https://github.com/antvis/infographic/actions)
11
13
  ![Visitors](https://hitscounter.dev/api/hit?url=https://github.com/antvis/infographic&label=Visitors&icon=graph-up&color=%23dc3545&message=&style=flat&tz=UTC)
@@ -29,7 +31,7 @@
29
31
  <a href="https://infographic.antv.vision/learn">
30
32
  <img src="https://img.shields.io/badge/Docs-722ED1?style=for-the-badge" alt="Docs" />
31
33
  </a>
32
- <a href="https://infographic.antv.vision/examples">
34
+ <a href="https://infographic.antv.vision/gallery">
33
35
  <img src="https://img.shields.io/badge/Gallery-13C2C2?style=for-the-badge" alt="Gallery" />
34
36
  </a>
35
37
  <a href="./prompt.md">
package/README.zh-CN.md CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
  🦋 新一代信息图可视化引擎,让文字信息栩栩如生!
8
8
 
9
+ <a href="https://trendshift.io/repositories/15838" target="_blank"><img src="https://trendshift.io/api/badge/repositories/15838" alt="antvis%2FInfographic | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
10
+
9
11
  [![npm version](https://img.shields.io/npm/v/@antv/infographic.svg)](https://www.npmjs.com/package/@antv/infographic)
10
12
  [![build status](https://img.shields.io/github/actions/workflow/status/antvis/infographic/build.yml)](https://github.com/antvis/infographic/actions)
11
13
  ![Visitors](https://hitscounter.dev/api/hit?url=https://github.com/antvis/infographic&label=Visitors&icon=graph-up&color=%23dc3545&message=&style=flat&tz=UTC)
@@ -29,7 +31,7 @@
29
31
  <a href="https://infographic.antv.vision/learn">
30
32
  <img src="https://img.shields.io/badge/%E6%96%87%E6%A1%A3-722ED1?style=for-the-badge" alt="文档" />
31
33
  </a>
32
- <a href="https://infographic.antv.vision/examples">
34
+ <a href="https://infographic.antv.vision/gallery">
33
35
  <img src="https://img.shields.io/badge/%E7%A4%BA%E4%BE%8B-13C2C2?style=for-the-badge" alt="示例" />
34
36
  </a>
35
37
  <a href="./prompt.zh-CN.md">