@visactor/vgrammar-core 0.11.5-alpha.0 → 0.11.6

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 (57) hide show
  1. package/cjs/graph/animation/animation/update.js +6 -1
  2. package/cjs/graph/animation/animation/update.js.map +1 -1
  3. package/cjs/graph/attributes/transform.js +3 -20
  4. package/cjs/graph/attributes/transform.js.map +1 -1
  5. package/cjs/index.d.ts +1 -1
  6. package/cjs/index.js +1 -1
  7. package/cjs/index.js.map +1 -1
  8. package/cjs/semantic-marks/text.d.ts +0 -1
  9. package/cjs/semantic-marks/text.js +3 -7
  10. package/cjs/semantic-marks/text.js.map +1 -1
  11. package/cjs/transforms/mark/mark-overlap.js +2 -2
  12. package/cjs/transforms/mark/mark-overlap.js.map +1 -1
  13. package/cjs/types/mark.d.ts +3 -1
  14. package/cjs/types/mark.js.map +1 -1
  15. package/cjs/types/transform.d.ts +1 -0
  16. package/cjs/types/transform.js.map +1 -1
  17. package/cjs/util/text.d.ts +0 -4
  18. package/cjs/util/text.js +2 -9
  19. package/cjs/util/text.js.map +1 -1
  20. package/es/graph/animation/animation/update.js +7 -0
  21. package/es/graph/animation/animation/update.js.map +1 -1
  22. package/es/graph/attributes/transform.js +3 -20
  23. package/es/graph/attributes/transform.js.map +1 -1
  24. package/es/index.d.ts +1 -1
  25. package/es/index.js +1 -1
  26. package/es/index.js.map +1 -1
  27. package/es/interactions/brush-filter.js +2 -1
  28. package/es/interactions/element-highlight-by-group.js +1 -2
  29. package/es/interactions/index.js +2 -1
  30. package/es/interactions/legend-filter.js +1 -1
  31. package/es/interactions/player-filter.js +1 -1
  32. package/es/interactions/roll-up.js +1 -1
  33. package/es/interactions/scrollbar-filter.js +1 -1
  34. package/es/interactions/slider-filter.js +1 -1
  35. package/es/interactions/toggle-state-mixin.js +1 -1
  36. package/es/interactions/tooltip.js +1 -1
  37. package/es/parse/coordinate.js +1 -1
  38. package/es/parse/event.js +1 -1
  39. package/es/parse/mark.js +1 -1
  40. package/es/parse/option.js +1 -1
  41. package/es/parse/scale.js +1 -2
  42. package/es/parse/transform.js +1 -1
  43. package/es/parse/util.js +1 -1
  44. package/es/parse/view.js +1 -1
  45. package/es/semantic-marks/text.d.ts +0 -1
  46. package/es/semantic-marks/text.js +2 -8
  47. package/es/semantic-marks/text.js.map +1 -1
  48. package/es/transforms/mark/mark-overlap.js +2 -2
  49. package/es/transforms/mark/mark-overlap.js.map +1 -1
  50. package/es/types/mark.d.ts +3 -1
  51. package/es/types/mark.js.map +1 -1
  52. package/es/types/transform.d.ts +1 -0
  53. package/es/types/transform.js.map +1 -1
  54. package/es/util/text.d.ts +0 -4
  55. package/es/util/text.js +0 -7
  56. package/es/util/text.js.map +1 -1
  57. package/package.json +4 -4
package/es/util/text.js CHANGED
@@ -15,11 +15,4 @@ export function richJsx(richText) {
15
15
  text: richText instanceof RichText ? richText.attribute.textConfig : isArray(richText) ? richText.map((entry => entry.type ? entry.attribute : entry)) : []
16
16
  };
17
17
  }
18
-
19
- export function textHtml(strings, ...insertVars) {
20
- return {
21
- type: "html",
22
- text: strings.reduce(((res, temp, i) => res + temp + (i >= insertVars.length ? "" : insertVars[i])), "")
23
- };
24
- }
25
18
  //# sourceMappingURL=text.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/util/text.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,IAAI,UAAU,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,MAAM,UAAU,OAAO,CAAC,OAA6B,EAAE,GAAG,UAA+B;IACvF,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,UAAU,CACd,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE;YAC9B,OAAO,GAAG,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;QACpE,CAAC,EAAE,EAAE,CAAC,CACP;KACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,OAAO,CACrB,QAA8F;IAE9F,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EACF,QAAQ,YAAY,QAAQ;YAC1B,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,UAAU;YAC/B,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;gBACnB,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;oBACnB,OAAQ,KAAyD,CAAC,IAAI;wBACpE,CAAC,CAAE,KAAyD,CAAC,SAAS;wBACtE,CAAC,CAAC,KAAK,CAAC;gBACZ,CAAC,CAAC;gBACJ,CAAC,CAAC,EAAE;KACT,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,QAAQ,CAAC,OAA6B,EAAE,GAAG,UAA+B;IACxF,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE;YACpC,OAAO,GAAG,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;QACpE,CAAC,EAAE,EAAE,CAAC;KACP,CAAC;AACJ,CAAC","file":"text.js","sourcesContent":["import type { IRichText, IRichTextCharacter } from '@visactor/vrender-core';\nimport { xul as vRenderXul, RichText } from '@visactor/vrender-core';\nimport { isArray } from '@visactor/vutils';\n\nexport function richXul(strings: TemplateStringsArray, ...insertVars: (string | number)[]) {\n return {\n type: 'rich',\n text: vRenderXul(\n strings.reduce((res, temp, i) => {\n return res + temp + (i >= insertVars.length ? '' : insertVars[i]);\n }, '')\n )\n };\n}\n\nexport function richJsx(\n richText: IRichText | { attribute: IRichTextCharacter; type: string }[] | IRichTextCharacter[]\n) {\n return {\n type: 'rich',\n text:\n richText instanceof RichText\n ? richText.attribute.textConfig\n : isArray(richText)\n ? richText.map(entry => {\n return (entry as { attribute: IRichTextCharacter; type: string }).type\n ? (entry as { attribute: IRichTextCharacter; type: string }).attribute\n : entry;\n })\n : []\n };\n}\n\nexport function textHtml(strings: TemplateStringsArray, ...insertVars: (string | number)[]) {\n return {\n type: 'html',\n text: strings.reduce((res, temp, i) => {\n return res + temp + (i >= insertVars.length ? '' : insertVars[i]);\n }, '')\n };\n}\n"]}
1
+ {"version":3,"sources":["../src/util/text.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,IAAI,UAAU,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,MAAM,UAAU,OAAO,CAAC,OAA6B,EAAE,GAAG,UAA+B;IACvF,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,UAAU,CACd,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE;YAC9B,OAAO,GAAG,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;QACpE,CAAC,EAAE,EAAE,CAAC,CACP;KACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,OAAO,CACrB,QAA8F;IAE9F,OAAO;QACL,IAAI,EAAE,MAAM;QACZ,IAAI,EACF,QAAQ,YAAY,QAAQ;YAC1B,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,UAAU;YAC/B,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC;gBACnB,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;oBACnB,OAAQ,KAAyD,CAAC,IAAI;wBACpE,CAAC,CAAE,KAAyD,CAAC,SAAS;wBACtE,CAAC,CAAC,KAAK,CAAC;gBACZ,CAAC,CAAC;gBACJ,CAAC,CAAC,EAAE;KACT,CAAC;AACJ,CAAC","file":"text.js","sourcesContent":["import type { IRichText, IRichTextCharacter } from '@visactor/vrender-core';\nimport { xul as vRenderXul, RichText } from '@visactor/vrender-core';\nimport { isArray } from '@visactor/vutils';\n\nexport function richXul(strings: TemplateStringsArray, ...insertVars: (string | number)[]) {\n return {\n type: 'rich',\n text: vRenderXul(\n strings.reduce((res, temp, i) => {\n return res + temp + (i >= insertVars.length ? '' : insertVars[i]);\n }, '')\n )\n };\n}\n\nexport function richJsx(\n richText: IRichText | { attribute: IRichTextCharacter; type: string }[] | IRichTextCharacter[]\n) {\n return {\n type: 'rich',\n text:\n richText instanceof RichText\n ? richText.attribute.textConfig\n : isArray(richText)\n ? richText.map(entry => {\n return (entry as { attribute: IRichTextCharacter; type: string }).type\n ? (entry as { attribute: IRichTextCharacter; type: string }).attribute\n : entry;\n })\n : []\n };\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vgrammar-core",
3
- "version": "0.11.5-alpha.0",
3
+ "version": "0.11.6",
4
4
  "description": "VGrammar is a visual grammar library",
5
5
  "keywords": [
6
6
  "grammar",
@@ -24,8 +24,8 @@
24
24
  "dist"
25
25
  ],
26
26
  "dependencies": {
27
- "@visactor/vgrammar-coordinate": "0.11.5-alpha.0",
28
- "@visactor/vgrammar-util": "0.11.5-alpha.0",
27
+ "@visactor/vgrammar-coordinate": "0.11.6",
28
+ "@visactor/vgrammar-util": "0.11.6",
29
29
  "@visactor/vscale": "~0.17.4",
30
30
  "@visactor/vrender-core": "0.17.19",
31
31
  "@visactor/vrender-kits": "0.17.19",
@@ -44,9 +44,9 @@
44
44
  "ts-jest": "~29.1.0",
45
45
  "@types/jest": "~29.5.0",
46
46
  "typescript": "4.9.5",
47
+ "@internal/bundler": "0.0.1",
47
48
  "@internal/eslint-config": "0.0.1",
48
49
  "@internal/jest-config": "0.0.1",
49
- "@internal/bundler": "0.0.1",
50
50
  "@internal/ts-config": "0.0.1"
51
51
  },
52
52
  "publishConfig": {