@unovis/ts 1.5.0-version.9 → 1.5.0

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 (75) hide show
  1. package/components/axis/config.d.ts +10 -1
  2. package/components/axis/config.js +1 -1
  3. package/components/axis/config.js.map +1 -1
  4. package/components/axis/index.d.ts +19 -19
  5. package/components/axis/index.js +63 -8
  6. package/components/axis/index.js.map +1 -1
  7. package/components/axis/style.d.ts +1 -0
  8. package/components/axis/style.js +7 -2
  9. package/components/axis/style.js.map +1 -1
  10. package/components/crosshair/index.js +6 -0
  11. package/components/crosshair/index.js.map +1 -1
  12. package/components/graph/config.d.ts +28 -4
  13. package/components/graph/config.js +3 -3
  14. package/components/graph/config.js.map +1 -1
  15. package/components/graph/index.d.ts +18 -6
  16. package/components/graph/index.js +230 -89
  17. package/components/graph/index.js.map +1 -1
  18. package/components/graph/modules/link/index.d.ts +2 -1
  19. package/components/graph/modules/link/index.js +36 -17
  20. package/components/graph/modules/link/index.js.map +1 -1
  21. package/components/graph/modules/node/index.d.ts +2 -1
  22. package/components/graph/modules/node/index.js +47 -23
  23. package/components/graph/modules/node/index.js.map +1 -1
  24. package/components/graph/modules/node/style.d.ts +2 -0
  25. package/components/graph/modules/node/style.js +34 -4
  26. package/components/graph/modules/node/style.js.map +1 -1
  27. package/components/graph/modules/panel/index.js +1 -0
  28. package/components/graph/modules/panel/index.js.map +1 -1
  29. package/components/graph/style.d.ts +1 -0
  30. package/components/graph/style.js +22 -1
  31. package/components/graph/style.js.map +1 -1
  32. package/components/graph/types.d.ts +8 -0
  33. package/components/graph/types.js +8 -2
  34. package/components/graph/types.js.map +1 -1
  35. package/components/leaflet-map/modules/map.js +2 -1
  36. package/components/leaflet-map/modules/map.js.map +1 -1
  37. package/components/scatter/index.d.ts +1 -0
  38. package/components/scatter/index.js +19 -12
  39. package/components/scatter/index.js.map +1 -1
  40. package/components/scatter/modules/point.js +1 -3
  41. package/components/scatter/modules/point.js.map +1 -1
  42. package/components/scatter/types.d.ts +2 -0
  43. package/components/tooltip/index.d.ts +7 -0
  44. package/components/tooltip/index.js +17 -5
  45. package/components/tooltip/index.js.map +1 -1
  46. package/components/topojson-map/config.js +2 -2
  47. package/components/topojson-map/config.js.map +1 -1
  48. package/components/topojson-map/index.js +22 -5
  49. package/components/topojson-map/index.js.map +1 -1
  50. package/containers/single-container/index.js +2 -2
  51. package/containers/single-container/index.js.map +1 -1
  52. package/containers/xy-container/index.js +4 -2
  53. package/containers/xy-container/index.js.map +1 -1
  54. package/core/container/config.d.ts +2 -4
  55. package/core/container/config.js.map +1 -1
  56. package/core/container/index.d.ts +2 -1
  57. package/core/container/index.js +26 -19
  58. package/core/container/index.js.map +1 -1
  59. package/data-models/graph.d.ts +2 -0
  60. package/data-models/graph.js +6 -0
  61. package/data-models/graph.js.map +1 -1
  62. package/index.d.ts +1 -4
  63. package/index.js +13 -5
  64. package/index.js.map +1 -1
  65. package/maps/world-simple.json.js +2430 -42
  66. package/package.json +2 -2
  67. package/types/graph.d.ts +2 -0
  68. package/types.js +1 -1
  69. package/utils/index.d.ts +12 -0
  70. package/utils/index.js +13 -0
  71. package/utils/index.js.map +1 -0
  72. package/utils/scale.js +4 -0
  73. package/utils/scale.js.map +1 -0
  74. package/utils/type.js +2 -0
  75. package/utils/type.js.map +1 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unovis/ts",
3
- "description": "Modular data visualization framework for React, Angular, Svelte, and vanilla TypeScript or JavaScript",
4
- "version": "1.5.0-version.9",
3
+ "description": "Modular data visualization framework for React, Angular, Svelte, Vue, Solid, and vanilla TypeScript or JavaScript",
4
+ "version": "1.5.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/f5/unovis.git",
package/types/graph.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  export interface GraphInputNode {
2
2
  id?: number | string;
3
+ x?: number;
4
+ y?: number;
3
5
  }
4
6
  export interface GraphInputLink {
5
7
  id?: number | string;
package/types.js CHANGED
@@ -18,7 +18,7 @@ export { ChordLabelAlignment } from './components/chord-diagram/types.js';
18
18
  export { MapPointLabelPosition, MapProjection, MapProjectionKind } from './components/topojson-map/types.js';
19
19
  export { LeafletMapPointShape, LeafletMapRenderer } from './components/leaflet-map/types.js';
20
20
  export { MapLibreArcticDark, MapLibreArcticLight } from './components/leaflet-map/renderer/map-style.js';
21
- export { GraphLayoutType, GraphLinkArrowStyle, GraphLinkStyle, GraphNodeShape } from './components/graph/types.js';
21
+ export { GraphLayoutType, GraphLinkArrowStyle, GraphLinkStyle, GraphNodeSelectionHighlightMode, GraphNodeShape } from './components/graph/types.js';
22
22
  export { SankeyEnterTransitionType, SankeyExitTransitionType, SankeyLayout, SankeyNodeAlign, SankeySubLabelPlacement } from './components/sankey/types.js';
23
23
  export { VisControlsOrientation } from './components/vis-controls/types.js';
24
24
  export { FreeBrushMode } from './components/free-brush/types.js';
@@ -0,0 +1,12 @@
1
+ export * from './data';
2
+ export * from './text';
3
+ export * from './svg';
4
+ export * from './color';
5
+ export * from './path';
6
+ export * from './misc';
7
+ export * from './type';
8
+ export * from './scale';
9
+ export * from './d3';
10
+ export * from './map';
11
+ export * from './style';
12
+ export * from './html';
package/utils/index.js ADDED
@@ -0,0 +1,13 @@
1
+ export { arrayOfIndices, clamp, clean, cloneDeep, countUnique, filterDataByRange, flatten, getBoolean, getExtent, getMax, getMin, getNearest, getNumber, getStackedData, getStackedExtent, getStackedValues, getString, getValue, groupBy, isAClassInstance, isArray, isEmpty, isEqual, isFunction, isNil, isNumber, isNumberWithinRange, isObject, isPlainObject, isString, isUndefined, merge, omit, shallowDiff, sortBy, throttle, unique, without } from './data.js';
2
+ export { allowedSvgTextTags, escapeStringKeepHash, estimateStringPixelLength, estimateTextSize, estimateWrappedTextHeight, getPreciseStringLengthPx, getWrappedText, kebabCase, kebabCaseToCamel, renderTextIntoFrame, renderTextToSvgTextElement, splitString, trimSVGText, trimString, trimStringEnd, trimStringMiddle, trimStringStart, wrapSVGText } from './text.js';
3
+ export { allowedSvgTags, getTransformValues, isStringSvg, sanitizeSvgString, transformValuesToString } from './svg.js';
4
+ export { getColor, getHexValue, hexToBrightness, hexToRgb, rgbToBrightness, rgbaToRgb } from './color.js';
5
+ export { circlePath, convertLineToArc, polygon, roundedRectPath, scoreRectPath } from './path.js';
6
+ export { getCSSVariableValue, getCSSVariableValueInPixels, getHref, getPixelValue, guid, isStringCSSVariable, parseUnit, rectIntersect, stringToHtmlId } from './misc.js';
7
+ import './type.js';
8
+ export { DefaultRange } from './scale.js';
9
+ export { smartTransition } from './d3.js';
10
+ export { getDataLatLngBounds } from './map.js';
11
+ export { cssvar, getCssVarNames, injectGlobalCssVariables } from './style.js';
12
+ export { getHTMLTransform } from './html.js';
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
package/utils/scale.js ADDED
@@ -0,0 +1,4 @@
1
+ const DefaultRange = [1, 40];
2
+
3
+ export { DefaultRange };
4
+ //# sourceMappingURL=scale.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scale.js","sources":["../../src/utils/scale.ts"],"sourcesContent":["export const DefaultRange = [1, 40]\n"],"names":[],"mappings":"MAAa,YAAY,GAAG,CAAC,CAAC,EAAE,EAAE;;;;"}
package/utils/type.js ADDED
@@ -0,0 +1,2 @@
1
+
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}