@reltio/components 1.4.1844 → 1.4.1845

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 (305) hide show
  1. package/cjs/EmptyState/EmptyState.d.ts +1 -0
  2. package/cjs/EmptyState/EmptyState.js +3 -1
  3. package/cjs/features/graph/DataModelGraph/DataModelGraph.d.ts +12 -0
  4. package/cjs/features/graph/DataModelGraph/DataModelGraph.js +28 -0
  5. package/cjs/features/graph/DataModelGraph/DataModelGraph.test.d.ts +1 -0
  6. package/cjs/features/graph/DataModelGraph/DataModelGraph.test.js +63 -0
  7. package/cjs/features/graph/DataModelGraph/components/DataModelCircleLayout/DataModelCircleLayuot.d.ts +11 -0
  8. package/cjs/features/graph/DataModelGraph/components/DataModelCircleLayout/DataModelCircleLayuot.js +21 -0
  9. package/cjs/features/graph/DataModelGraph/helpers/edgeLabelHelpers.d.ts +9 -0
  10. package/cjs/features/graph/DataModelGraph/helpers/edgeLabelHelpers.js +38 -0
  11. package/cjs/features/graph/DataModelGraph/helpers/edgeLabelHelpers.test.d.ts +1 -0
  12. package/cjs/features/graph/DataModelGraph/helpers/edgeLabelHelpers.test.js +74 -0
  13. package/cjs/features/graph/DataModelGraph/hooks/defaultGraph.test-data.d.ts +2 -0
  14. package/cjs/features/graph/DataModelGraph/hooks/defaultGraph.test-data.js +52 -0
  15. package/cjs/features/graph/DataModelGraph/hooks/useDataModelGraphAppearance.d.ts +17 -0
  16. package/cjs/features/graph/DataModelGraph/hooks/useDataModelGraphAppearance.js +139 -0
  17. package/cjs/features/graph/DataModelGraph/hooks/useDataModelGraphAppearance.test.d.ts +1 -0
  18. package/cjs/features/graph/DataModelGraph/hooks/useDataModelGraphAppearance.test.js +192 -0
  19. package/cjs/features/graph/DataModelGraph/hooks/useEdgeLabelsRenderer.d.ts +10 -0
  20. package/cjs/features/graph/DataModelGraph/hooks/useEdgeLabelsRenderer.js +171 -0
  21. package/cjs/features/graph/DataModelGraph/hooks/useEdgeLabelsRenderer.test.d.ts +1 -0
  22. package/cjs/features/graph/DataModelGraph/hooks/useEdgeLabelsRenderer.test.js +176 -0
  23. package/cjs/features/graph/DataModelGraph/hooks/useFakeCenterNode.d.ts +8 -0
  24. package/cjs/features/graph/DataModelGraph/hooks/useFakeCenterNode.js +36 -0
  25. package/cjs/features/graph/DataModelGraph/hooks/useFakeCenterNode.test.d.ts +1 -0
  26. package/cjs/features/graph/DataModelGraph/hooks/useFakeCenterNode.test.js +37 -0
  27. package/cjs/features/graph/DataModelGraph/hooks/useSelectedNodeRenderer.d.ts +2 -0
  28. package/cjs/features/graph/DataModelGraph/hooks/useSelectedNodeRenderer.js +41 -0
  29. package/cjs/features/graph/DataModelGraph/hooks/useSelectedNodeRenderer.test.d.ts +1 -0
  30. package/cjs/features/graph/DataModelGraph/hooks/useSelectedNodeRenderer.test.js +63 -0
  31. package/cjs/features/graph/DataModelGraph/icons/interaction.inline.svg.d.ts +1 -0
  32. package/cjs/features/graph/DataModelGraph/icons/interaction.inline.svg.js +4 -0
  33. package/cjs/features/graph/DataModelGraph/index.d.ts +1 -0
  34. package/cjs/features/graph/DataModelGraph/index.js +5 -0
  35. package/cjs/features/graph/DataModelGraph/styles.d.ts +1 -0
  36. package/cjs/features/graph/DataModelGraph/styles.js +26 -0
  37. package/cjs/features/graph/SigmaCustomRenderersContainer/SigmaCustomRenderersContainer.d.ts +6 -0
  38. package/cjs/features/graph/SigmaCustomRenderersContainer/SigmaCustomRenderersContainer.js +15 -0
  39. package/cjs/features/graph/SigmaCustomRenderersContainer/index.d.ts +1 -0
  40. package/cjs/features/graph/SigmaCustomRenderersContainer/index.js +5 -0
  41. package/cjs/features/graph/SigmaGraphContainer/SigmaGraphContainer.d.ts +9 -0
  42. package/cjs/features/graph/SigmaGraphContainer/SigmaGraphContainer.js +86 -0
  43. package/cjs/features/graph/SigmaGraphContainer/SigmaGraphContainer.test.d.ts +1 -0
  44. package/cjs/features/graph/SigmaGraphContainer/SigmaGraphContainer.test.js +26 -0
  45. package/cjs/features/graph/SigmaGraphContainer/index.d.ts +1 -0
  46. package/cjs/features/graph/SigmaGraphContainer/index.js +5 -0
  47. package/cjs/features/graph/SigmaGraphResizer/SigmaGraphResizer.d.ts +1 -0
  48. package/cjs/features/graph/SigmaGraphResizer/SigmaGraphResizer.js +40 -0
  49. package/cjs/features/graph/SigmaGraphResizer/SigmaGraphResizer.test.d.ts +1 -0
  50. package/cjs/features/graph/SigmaGraphResizer/SigmaGraphResizer.test.js +37 -0
  51. package/cjs/features/graph/SigmaGraphResizer/index.d.ts +1 -0
  52. package/cjs/features/graph/SigmaGraphResizer/index.js +5 -0
  53. package/cjs/features/graph/ZoomSlider/ZoomSlider.d.ts +7 -0
  54. package/cjs/features/graph/ZoomSlider/ZoomSlider.js +113 -0
  55. package/cjs/features/graph/ZoomSlider/ZoomSlider.test.d.ts +1 -0
  56. package/cjs/features/graph/ZoomSlider/ZoomSlider.test.js +83 -0
  57. package/cjs/features/graph/ZoomSlider/index.d.ts +1 -0
  58. package/cjs/features/graph/ZoomSlider/index.js +5 -0
  59. package/cjs/features/graph/ZoomSlider/styles.d.ts +1 -0
  60. package/cjs/features/graph/ZoomSlider/styles.js +63 -0
  61. package/cjs/features/graph/contexts/SigmaCustomRenderersContext.d.ts +9 -0
  62. package/cjs/features/graph/contexts/SigmaCustomRenderersContext.js +15 -0
  63. package/cjs/features/graph/hooks/useAnimatedGraphLayout.d.ts +13 -0
  64. package/cjs/features/graph/hooks/useAnimatedGraphLayout.js +35 -0
  65. package/cjs/features/graph/hooks/useCircleLayout.d.ts +9 -0
  66. package/cjs/features/graph/hooks/useCircleLayout.js +50 -0
  67. package/cjs/features/graph/hooks/useLoopRenderer.d.ts +5 -0
  68. package/cjs/features/graph/hooks/useLoopRenderer.js +47 -0
  69. package/cjs/features/graph/hooks/useLoopRenderer.test.d.ts +1 -0
  70. package/cjs/features/graph/hooks/useLoopRenderer.test.js +221 -0
  71. package/cjs/features/graph/hooks/useSigmaCustomRenderers.d.ts +7 -0
  72. package/cjs/features/graph/hooks/useSigmaCustomRenderers.js +95 -0
  73. package/cjs/features/graph/hooks/useSigmaCustomRenderers.test.d.ts +1 -0
  74. package/cjs/features/graph/hooks/useSigmaCustomRenderers.test.js +200 -0
  75. package/cjs/features/graph/index.d.ts +16 -0
  76. package/cjs/features/graph/index.js +34 -0
  77. package/cjs/features/graph/rendering/canvas/hover.d.ts +2 -0
  78. package/cjs/features/graph/rendering/canvas/hover.js +10 -0
  79. package/cjs/features/graph/rendering/canvas/hover.spec.d.ts +1 -0
  80. package/cjs/features/graph/rendering/canvas/hover.spec.js +26 -0
  81. package/cjs/features/graph/rendering/canvas/label.d.ts +7 -0
  82. package/cjs/features/graph/rendering/canvas/label.js +32 -0
  83. package/cjs/features/graph/rendering/canvas/label.spec.d.ts +1 -0
  84. package/cjs/features/graph/rendering/canvas/label.spec.js +81 -0
  85. package/cjs/features/graph/rendering/canvas/labelBackground.d.ts +9 -0
  86. package/cjs/features/graph/rendering/canvas/labelBackground.js +37 -0
  87. package/cjs/features/graph/rendering/canvas/labelBackground.spec.d.ts +1 -0
  88. package/cjs/features/graph/rendering/canvas/labelBackground.spec.js +92 -0
  89. package/cjs/features/graph/rendering/canvas/nodeArc.d.ts +10 -0
  90. package/cjs/features/graph/rendering/canvas/nodeArc.js +33 -0
  91. package/cjs/features/graph/rendering/canvas/selfRelationLoop.d.ts +11 -0
  92. package/cjs/features/graph/rendering/canvas/selfRelationLoop.js +73 -0
  93. package/cjs/features/graph/rendering/canvas/selfRelationLoop.spec.d.ts +1 -0
  94. package/cjs/features/graph/rendering/canvas/selfRelationLoop.spec.js +92 -0
  95. package/cjs/features/graph/rendering/canvas/tooltip.d.ts +2 -0
  96. package/cjs/features/graph/rendering/canvas/tooltip.js +28 -0
  97. package/cjs/features/graph/rendering/canvas/tooltip.spec.d.ts +1 -0
  98. package/cjs/features/graph/rendering/canvas/tooltip.spec.js +32 -0
  99. package/cjs/features/graph/rendering/canvas/utils.d.ts +4 -0
  100. package/cjs/features/graph/rendering/canvas/utils.js +10 -0
  101. package/cjs/features/graph/rendering/canvas/utils.spec.d.ts +1 -0
  102. package/cjs/features/graph/rendering/canvas/utils.spec.js +22 -0
  103. package/cjs/features/graph/rendering/icons/no_photo.inline.svg.d.ts +1 -0
  104. package/cjs/features/graph/rendering/icons/no_photo.inline.svg.js +4 -0
  105. package/cjs/features/graph/rendering/webgl/edge.arrowHead.d.ts +8 -0
  106. package/cjs/features/graph/rendering/webgl/edge.arrowHead.js +84 -0
  107. package/cjs/features/graph/rendering/webgl/edge.clamped.d.ts +29 -0
  108. package/cjs/features/graph/rendering/webgl/edge.clamped.js +176 -0
  109. package/cjs/features/graph/rendering/webgl/edge.dashed.d.ts +23 -0
  110. package/cjs/features/graph/rendering/webgl/edge.dashed.js +162 -0
  111. package/cjs/features/graph/rendering/webgl/edge.reversedArrowHead.d.ts +5 -0
  112. package/cjs/features/graph/rendering/webgl/edge.reversedArrowHead.js +32 -0
  113. package/cjs/features/graph/rendering/webgl/helpers/imageHelper.d.ts +17 -0
  114. package/cjs/features/graph/rendering/webgl/helpers/imageHelper.js +9 -0
  115. package/cjs/features/graph/rendering/webgl/helpers/imageHelper.spec.d.ts +1 -0
  116. package/cjs/features/graph/rendering/webgl/helpers/imageHelper.spec.js +29 -0
  117. package/cjs/features/graph/rendering/webgl/image.d.ts +17 -0
  118. package/cjs/features/graph/rendering/webgl/image.js +115 -0
  119. package/cjs/features/graph/rendering/webgl/node.border.d.ts +11 -0
  120. package/cjs/features/graph/rendering/webgl/node.border.js +79 -0
  121. package/cjs/features/graph/rendering/webgl/node.dashed.border.d.ts +11 -0
  122. package/cjs/features/graph/rendering/webgl/node.dashed.border.js +77 -0
  123. package/cjs/features/graph/rendering/webgl/node.image.d.ts +18 -0
  124. package/cjs/features/graph/rendering/webgl/node.image.js +147 -0
  125. package/cjs/features/graph/rendering/webgl/shaders/edge.clamped.vert.glsl.d.ts +1 -0
  126. package/cjs/features/graph/rendering/webgl/shaders/edge.clamped.vert.glsl.js +8 -0
  127. package/cjs/features/graph/rendering/webgl/shaders/edge.dashed.frag.glsl.d.ts +1 -0
  128. package/cjs/features/graph/rendering/webgl/shaders/edge.dashed.frag.glsl.js +8 -0
  129. package/cjs/features/graph/rendering/webgl/shaders/edge.dashed.vert.glsl.d.ts +1 -0
  130. package/cjs/features/graph/rendering/webgl/shaders/edge.dashed.vert.glsl.js +8 -0
  131. package/cjs/features/graph/rendering/webgl/shaders/node.border.frag.glsl.d.ts +1 -0
  132. package/cjs/features/graph/rendering/webgl/shaders/node.border.frag.glsl.js +9 -0
  133. package/cjs/features/graph/rendering/webgl/shaders/node.border.vert.glsl.d.ts +1 -0
  134. package/cjs/features/graph/rendering/webgl/shaders/node.border.vert.glsl.js +8 -0
  135. package/cjs/features/graph/rendering/webgl/shaders/node.dashed.border.frag.glsl.d.ts +1 -0
  136. package/cjs/features/graph/rendering/webgl/shaders/node.dashed.border.frag.glsl.js +8 -0
  137. package/cjs/features/graph/rendering/webgl/shaders/node.image.frag.glsl.d.ts +1 -0
  138. package/cjs/features/graph/rendering/webgl/shaders/node.image.frag.glsl.js +5 -0
  139. package/cjs/features/graph/rendering/webgl/shaders/node.image.vert.glsl.d.ts +1 -0
  140. package/cjs/features/graph/rendering/webgl/shaders/node.image.vert.glsl.js +8 -0
  141. package/cjs/features/graph/rendering/webgl/shaders/utils.d.ts +1 -0
  142. package/cjs/features/graph/rendering/webgl/shaders/utils.js +4 -0
  143. package/cjs/features/graph/types/graphDataTypes.d.ts +51 -0
  144. package/cjs/features/graph/types/graphDataTypes.js +8 -0
  145. package/cjs/features/graph/types/sigmaCustomRenderersTypes.d.ts +11 -0
  146. package/cjs/features/graph/types/sigmaCustomRenderersTypes.js +2 -0
  147. package/cjs/icons/EmptyLoading.d.ts +3 -0
  148. package/cjs/icons/EmptyLoading.js +150 -0
  149. package/cjs/icons/index.d.ts +1 -0
  150. package/cjs/icons/index.js +4 -2
  151. package/cjs/index.d.ts +1 -0
  152. package/cjs/index.js +2 -0
  153. package/esm/EmptyState/EmptyState.d.ts +1 -0
  154. package/esm/EmptyState/EmptyState.js +3 -1
  155. package/esm/features/graph/DataModelGraph/DataModelGraph.d.ts +12 -0
  156. package/esm/features/graph/DataModelGraph/DataModelGraph.js +21 -0
  157. package/esm/features/graph/DataModelGraph/DataModelGraph.test.d.ts +1 -0
  158. package/esm/features/graph/DataModelGraph/DataModelGraph.test.js +58 -0
  159. package/esm/features/graph/DataModelGraph/components/DataModelCircleLayout/DataModelCircleLayuot.d.ts +11 -0
  160. package/esm/features/graph/DataModelGraph/components/DataModelCircleLayout/DataModelCircleLayuot.js +17 -0
  161. package/esm/features/graph/DataModelGraph/helpers/edgeLabelHelpers.d.ts +9 -0
  162. package/esm/features/graph/DataModelGraph/helpers/edgeLabelHelpers.js +33 -0
  163. package/esm/features/graph/DataModelGraph/helpers/edgeLabelHelpers.test.d.ts +1 -0
  164. package/esm/features/graph/DataModelGraph/helpers/edgeLabelHelpers.test.js +72 -0
  165. package/esm/features/graph/DataModelGraph/hooks/defaultGraph.test-data.d.ts +2 -0
  166. package/esm/features/graph/DataModelGraph/hooks/defaultGraph.test-data.js +45 -0
  167. package/esm/features/graph/DataModelGraph/hooks/useDataModelGraphAppearance.d.ts +17 -0
  168. package/esm/features/graph/DataModelGraph/hooks/useDataModelGraphAppearance.js +135 -0
  169. package/esm/features/graph/DataModelGraph/hooks/useDataModelGraphAppearance.test.d.ts +1 -0
  170. package/esm/features/graph/DataModelGraph/hooks/useDataModelGraphAppearance.test.js +190 -0
  171. package/esm/features/graph/DataModelGraph/hooks/useEdgeLabelsRenderer.d.ts +10 -0
  172. package/esm/features/graph/DataModelGraph/hooks/useEdgeLabelsRenderer.js +167 -0
  173. package/esm/features/graph/DataModelGraph/hooks/useEdgeLabelsRenderer.test.d.ts +1 -0
  174. package/esm/features/graph/DataModelGraph/hooks/useEdgeLabelsRenderer.test.js +174 -0
  175. package/esm/features/graph/DataModelGraph/hooks/useFakeCenterNode.d.ts +8 -0
  176. package/esm/features/graph/DataModelGraph/hooks/useFakeCenterNode.js +32 -0
  177. package/esm/features/graph/DataModelGraph/hooks/useFakeCenterNode.test.d.ts +1 -0
  178. package/esm/features/graph/DataModelGraph/hooks/useFakeCenterNode.test.js +35 -0
  179. package/esm/features/graph/DataModelGraph/hooks/useSelectedNodeRenderer.d.ts +2 -0
  180. package/esm/features/graph/DataModelGraph/hooks/useSelectedNodeRenderer.js +37 -0
  181. package/esm/features/graph/DataModelGraph/hooks/useSelectedNodeRenderer.test.d.ts +1 -0
  182. package/esm/features/graph/DataModelGraph/hooks/useSelectedNodeRenderer.test.js +61 -0
  183. package/esm/features/graph/DataModelGraph/icons/interaction.inline.svg.d.ts +1 -0
  184. package/esm/features/graph/DataModelGraph/icons/interaction.inline.svg.js +1 -0
  185. package/esm/features/graph/DataModelGraph/index.d.ts +1 -0
  186. package/esm/features/graph/DataModelGraph/index.js +1 -0
  187. package/esm/features/graph/DataModelGraph/styles.d.ts +1 -0
  188. package/esm/features/graph/DataModelGraph/styles.js +23 -0
  189. package/esm/features/graph/SigmaCustomRenderersContainer/SigmaCustomRenderersContainer.d.ts +6 -0
  190. package/esm/features/graph/SigmaCustomRenderersContainer/SigmaCustomRenderersContainer.js +8 -0
  191. package/esm/features/graph/SigmaCustomRenderersContainer/index.d.ts +1 -0
  192. package/esm/features/graph/SigmaCustomRenderersContainer/index.js +1 -0
  193. package/esm/features/graph/SigmaGraphContainer/SigmaGraphContainer.d.ts +9 -0
  194. package/esm/features/graph/SigmaGraphContainer/SigmaGraphContainer.js +56 -0
  195. package/esm/features/graph/SigmaGraphContainer/SigmaGraphContainer.test.d.ts +1 -0
  196. package/esm/features/graph/SigmaGraphContainer/SigmaGraphContainer.test.js +21 -0
  197. package/esm/features/graph/SigmaGraphContainer/index.d.ts +1 -0
  198. package/esm/features/graph/SigmaGraphContainer/index.js +1 -0
  199. package/esm/features/graph/SigmaGraphResizer/SigmaGraphResizer.d.ts +1 -0
  200. package/esm/features/graph/SigmaGraphResizer/SigmaGraphResizer.js +10 -0
  201. package/esm/features/graph/SigmaGraphResizer/SigmaGraphResizer.test.d.ts +1 -0
  202. package/esm/features/graph/SigmaGraphResizer/SigmaGraphResizer.test.js +32 -0
  203. package/esm/features/graph/SigmaGraphResizer/index.d.ts +1 -0
  204. package/esm/features/graph/SigmaGraphResizer/index.js +1 -0
  205. package/esm/features/graph/ZoomSlider/ZoomSlider.d.ts +7 -0
  206. package/esm/features/graph/ZoomSlider/ZoomSlider.js +83 -0
  207. package/esm/features/graph/ZoomSlider/ZoomSlider.test.d.ts +1 -0
  208. package/esm/features/graph/ZoomSlider/ZoomSlider.test.js +78 -0
  209. package/esm/features/graph/ZoomSlider/index.d.ts +1 -0
  210. package/esm/features/graph/ZoomSlider/index.js +1 -0
  211. package/esm/features/graph/ZoomSlider/styles.d.ts +1 -0
  212. package/esm/features/graph/ZoomSlider/styles.js +60 -0
  213. package/esm/features/graph/contexts/SigmaCustomRenderersContext.d.ts +9 -0
  214. package/esm/features/graph/contexts/SigmaCustomRenderersContext.js +11 -0
  215. package/esm/features/graph/hooks/useAnimatedGraphLayout.d.ts +13 -0
  216. package/esm/features/graph/hooks/useAnimatedGraphLayout.js +31 -0
  217. package/esm/features/graph/hooks/useCircleLayout.d.ts +9 -0
  218. package/esm/features/graph/hooks/useCircleLayout.js +43 -0
  219. package/esm/features/graph/hooks/useLoopRenderer.d.ts +5 -0
  220. package/esm/features/graph/hooks/useLoopRenderer.js +43 -0
  221. package/esm/features/graph/hooks/useLoopRenderer.test.d.ts +1 -0
  222. package/esm/features/graph/hooks/useLoopRenderer.test.js +219 -0
  223. package/esm/features/graph/hooks/useSigmaCustomRenderers.d.ts +7 -0
  224. package/esm/features/graph/hooks/useSigmaCustomRenderers.js +91 -0
  225. package/esm/features/graph/hooks/useSigmaCustomRenderers.test.d.ts +1 -0
  226. package/esm/features/graph/hooks/useSigmaCustomRenderers.test.js +198 -0
  227. package/esm/features/graph/index.d.ts +16 -0
  228. package/esm/features/graph/index.js +17 -0
  229. package/esm/features/graph/rendering/canvas/hover.d.ts +2 -0
  230. package/esm/features/graph/rendering/canvas/hover.js +6 -0
  231. package/esm/features/graph/rendering/canvas/hover.spec.d.ts +1 -0
  232. package/esm/features/graph/rendering/canvas/hover.spec.js +24 -0
  233. package/esm/features/graph/rendering/canvas/label.d.ts +7 -0
  234. package/esm/features/graph/rendering/canvas/label.js +28 -0
  235. package/esm/features/graph/rendering/canvas/label.spec.d.ts +1 -0
  236. package/esm/features/graph/rendering/canvas/label.spec.js +79 -0
  237. package/esm/features/graph/rendering/canvas/labelBackground.d.ts +9 -0
  238. package/esm/features/graph/rendering/canvas/labelBackground.js +33 -0
  239. package/esm/features/graph/rendering/canvas/labelBackground.spec.d.ts +1 -0
  240. package/esm/features/graph/rendering/canvas/labelBackground.spec.js +90 -0
  241. package/esm/features/graph/rendering/canvas/nodeArc.d.ts +10 -0
  242. package/esm/features/graph/rendering/canvas/nodeArc.js +27 -0
  243. package/esm/features/graph/rendering/canvas/selfRelationLoop.d.ts +11 -0
  244. package/esm/features/graph/rendering/canvas/selfRelationLoop.js +69 -0
  245. package/esm/features/graph/rendering/canvas/selfRelationLoop.spec.d.ts +1 -0
  246. package/esm/features/graph/rendering/canvas/selfRelationLoop.spec.js +90 -0
  247. package/esm/features/graph/rendering/canvas/tooltip.d.ts +2 -0
  248. package/esm/features/graph/rendering/canvas/tooltip.js +25 -0
  249. package/esm/features/graph/rendering/canvas/tooltip.spec.d.ts +1 -0
  250. package/esm/features/graph/rendering/canvas/tooltip.spec.js +30 -0
  251. package/esm/features/graph/rendering/canvas/utils.d.ts +4 -0
  252. package/esm/features/graph/rendering/canvas/utils.js +6 -0
  253. package/esm/features/graph/rendering/canvas/utils.spec.d.ts +1 -0
  254. package/esm/features/graph/rendering/canvas/utils.spec.js +20 -0
  255. package/esm/features/graph/rendering/icons/no_photo.inline.svg.d.ts +1 -0
  256. package/esm/features/graph/rendering/icons/no_photo.inline.svg.js +1 -0
  257. package/esm/features/graph/rendering/webgl/edge.arrowHead.d.ts +8 -0
  258. package/esm/features/graph/rendering/webgl/edge.arrowHead.js +79 -0
  259. package/esm/features/graph/rendering/webgl/edge.clamped.d.ts +29 -0
  260. package/esm/features/graph/rendering/webgl/edge.clamped.js +171 -0
  261. package/esm/features/graph/rendering/webgl/edge.dashed.d.ts +23 -0
  262. package/esm/features/graph/rendering/webgl/edge.dashed.js +160 -0
  263. package/esm/features/graph/rendering/webgl/edge.reversedArrowHead.d.ts +5 -0
  264. package/esm/features/graph/rendering/webgl/edge.reversedArrowHead.js +27 -0
  265. package/esm/features/graph/rendering/webgl/helpers/imageHelper.d.ts +17 -0
  266. package/esm/features/graph/rendering/webgl/helpers/imageHelper.js +5 -0
  267. package/esm/features/graph/rendering/webgl/helpers/imageHelper.spec.d.ts +1 -0
  268. package/esm/features/graph/rendering/webgl/helpers/imageHelper.spec.js +27 -0
  269. package/esm/features/graph/rendering/webgl/image.d.ts +17 -0
  270. package/esm/features/graph/rendering/webgl/image.js +112 -0
  271. package/esm/features/graph/rendering/webgl/node.border.d.ts +11 -0
  272. package/esm/features/graph/rendering/webgl/node.border.js +76 -0
  273. package/esm/features/graph/rendering/webgl/node.dashed.border.d.ts +11 -0
  274. package/esm/features/graph/rendering/webgl/node.dashed.border.js +74 -0
  275. package/esm/features/graph/rendering/webgl/node.image.d.ts +18 -0
  276. package/esm/features/graph/rendering/webgl/node.image.js +144 -0
  277. package/esm/features/graph/rendering/webgl/shaders/edge.clamped.vert.glsl.d.ts +1 -0
  278. package/esm/features/graph/rendering/webgl/shaders/edge.clamped.vert.glsl.js +5 -0
  279. package/esm/features/graph/rendering/webgl/shaders/edge.dashed.frag.glsl.d.ts +1 -0
  280. package/esm/features/graph/rendering/webgl/shaders/edge.dashed.frag.glsl.js +5 -0
  281. package/esm/features/graph/rendering/webgl/shaders/edge.dashed.vert.glsl.d.ts +1 -0
  282. package/esm/features/graph/rendering/webgl/shaders/edge.dashed.vert.glsl.js +5 -0
  283. package/esm/features/graph/rendering/webgl/shaders/node.border.frag.glsl.d.ts +1 -0
  284. package/esm/features/graph/rendering/webgl/shaders/node.border.frag.glsl.js +6 -0
  285. package/esm/features/graph/rendering/webgl/shaders/node.border.vert.glsl.d.ts +1 -0
  286. package/esm/features/graph/rendering/webgl/shaders/node.border.vert.glsl.js +5 -0
  287. package/esm/features/graph/rendering/webgl/shaders/node.dashed.border.frag.glsl.d.ts +1 -0
  288. package/esm/features/graph/rendering/webgl/shaders/node.dashed.border.frag.glsl.js +5 -0
  289. package/esm/features/graph/rendering/webgl/shaders/node.image.frag.glsl.d.ts +1 -0
  290. package/esm/features/graph/rendering/webgl/shaders/node.image.frag.glsl.js +2 -0
  291. package/esm/features/graph/rendering/webgl/shaders/node.image.vert.glsl.d.ts +1 -0
  292. package/esm/features/graph/rendering/webgl/shaders/node.image.vert.glsl.js +5 -0
  293. package/esm/features/graph/rendering/webgl/shaders/utils.d.ts +1 -0
  294. package/esm/features/graph/rendering/webgl/shaders/utils.js +1 -0
  295. package/esm/features/graph/types/graphDataTypes.d.ts +51 -0
  296. package/esm/features/graph/types/graphDataTypes.js +5 -0
  297. package/esm/features/graph/types/sigmaCustomRenderersTypes.d.ts +11 -0
  298. package/esm/features/graph/types/sigmaCustomRenderersTypes.js +1 -0
  299. package/esm/icons/EmptyLoading.d.ts +3 -0
  300. package/esm/icons/EmptyLoading.js +145 -0
  301. package/esm/icons/index.d.ts +1 -0
  302. package/esm/icons/index.js +1 -0
  303. package/esm/index.d.ts +1 -0
  304. package/esm/index.js +2 -0
  305. package/package.json +2 -2
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.drawSelfRelationLoop = exports.getSelfLoopControlPoints = exports.LOOP_SCALE = void 0;
4
+ var ARROW_SCALE = 0.4;
5
+ exports.LOOP_SCALE = 0.6;
6
+ var ARROW_SIZE_RATIO_SCALE = 2.2;
7
+ var getSelfLoopControlPoints = function (x, y, size, a) {
8
+ if (a === void 0) { a = 0; }
9
+ return {
10
+ x1: x - (size + a) * 7,
11
+ y1: y,
12
+ x2: x,
13
+ y2: y + (size + a) * 7
14
+ };
15
+ };
16
+ exports.getSelfLoopControlPoints = getSelfLoopControlPoints;
17
+ var getArrowPoints = function (x, y, d, sX, sY, size, aSize) {
18
+ var aX = x + ((sX - x) * (d - aSize - size)) / d;
19
+ var aY = y + ((sY - y) * (d - aSize - size)) / d;
20
+ var vX = ((sX - x) * aSize) / d;
21
+ var vY = ((sY - y) * aSize) / d;
22
+ return { aX: aX, aY: aY, vX: vX, vY: vY };
23
+ };
24
+ var getFirstArrowPoints = function (cp, sX, sY, size, aSize) {
25
+ var d = Math.sqrt(Math.pow(sX - cp.x1, 2) + Math.pow(sY - cp.y1, 2));
26
+ return getArrowPoints(cp.x2, cp.y2, d, sX, sY, size, aSize);
27
+ };
28
+ var getSecondArrowPoints = function (cp, sX, sY, size, aSize) {
29
+ var d = Math.sqrt(Math.pow(sX - cp.x1, 2) + Math.pow(sY - cp.y1, 2));
30
+ return getArrowPoints(cp.x1, cp.y1, d, sX, sY, size, aSize);
31
+ };
32
+ var drawArrow = function (context, aX, aY, vX, vY) {
33
+ context.beginPath();
34
+ context.moveTo(aX + vX, aY + vY);
35
+ context.lineTo(aX + vY * ARROW_SCALE, aY - vX * ARROW_SCALE);
36
+ context.lineTo(aX - vY * ARROW_SCALE, aY + vX * ARROW_SCALE);
37
+ context.lineTo(aX + vX, aY + vY);
38
+ context.closePath();
39
+ context.fill();
40
+ };
41
+ var drawSelfRelationLoop = function (context, edgeData, sourceData) {
42
+ var size = edgeData.size, color = edgeData.color, _a = edgeData.arrowSizeRatio, arrowSizeRatio = _a === void 0 ? 1 : _a;
43
+ var sX = sourceData.x;
44
+ var sY = sourceData.y;
45
+ var sSize = sourceData.size;
46
+ var scale = sSize * exports.LOOP_SCALE;
47
+ var cp = (0, exports.getSelfLoopControlPoints)(sX, sY, scale);
48
+ context.strokeStyle = color;
49
+ context.lineWidth = size;
50
+ var bezier = new Path2D();
51
+ if (edgeData.type === 'arrow' || edgeData.type === 'doubleArrow') {
52
+ context.fillStyle = color;
53
+ if (edgeData.type === 'doubleArrow') {
54
+ var firstArrowPoints = getFirstArrowPoints(cp, sX, sY, sSize, size * arrowSizeRatio * ARROW_SIZE_RATIO_SCALE);
55
+ drawArrow(context, firstArrowPoints.aX, firstArrowPoints.aY, firstArrowPoints.vX, firstArrowPoints.vY);
56
+ bezier.moveTo(firstArrowPoints.aX, firstArrowPoints.aY);
57
+ }
58
+ else {
59
+ bezier.moveTo(sX, sY);
60
+ }
61
+ var secondArrowPoints = getSecondArrowPoints(cp, sX, sY, sSize, size * arrowSizeRatio * ARROW_SIZE_RATIO_SCALE);
62
+ bezier.bezierCurveTo(cp.x2, cp.y2, cp.x1, cp.y1, secondArrowPoints.aX, secondArrowPoints.aY);
63
+ context.stroke(bezier);
64
+ drawArrow(context, secondArrowPoints.aX, secondArrowPoints.aY, secondArrowPoints.vX, secondArrowPoints.vY);
65
+ }
66
+ else {
67
+ bezier.moveTo(sX, sY);
68
+ bezier.bezierCurveTo(cp.x1, cp.y1, cp.x2, cp.y2, sX, sY);
69
+ context.stroke(bezier);
70
+ }
71
+ return bezier;
72
+ };
73
+ exports.drawSelfRelationLoop = drawSelfRelationLoop;
@@ -0,0 +1,92 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ Object.defineProperty(exports, "__esModule", { value: true });
14
+ var selfRelationLoop_1 = require("./selfRelationLoop");
15
+ describe('Graph selfRelationLoop behavior', function () {
16
+ var context = {
17
+ beginPath: jest.fn(),
18
+ moveTo: jest.fn(),
19
+ lineTo: jest.fn(),
20
+ bezierCurveTo: jest.fn(),
21
+ stroke: jest.fn(),
22
+ closePath: jest.fn(),
23
+ fill: jest.fn()
24
+ };
25
+ var pathInstance = {
26
+ moveTo: jest.fn(),
27
+ bezierCurveTo: jest.fn()
28
+ };
29
+ var edgeData = {
30
+ key: 'id_47',
31
+ size: 1,
32
+ color: 'rgba(0, 0, 0, 0.2)',
33
+ forceLabel: true,
34
+ loop: true,
35
+ hidden: false,
36
+ label: '',
37
+ type: 'line',
38
+ zIndex: 1
39
+ };
40
+ var sourceData = {
41
+ x: 20,
42
+ y: 30,
43
+ size: 1
44
+ };
45
+ beforeEach(function () {
46
+ jest.spyOn(window, 'Path2D').mockImplementation(function () {
47
+ return pathInstance;
48
+ });
49
+ });
50
+ afterEach(function () {
51
+ jest.clearAllMocks();
52
+ });
53
+ it('should call context methods for not arrow edge', function () {
54
+ (0, selfRelationLoop_1.drawSelfRelationLoop)(context, edgeData, sourceData);
55
+ expect(Path2D).toHaveBeenCalled();
56
+ expect(pathInstance.moveTo).toHaveBeenCalledWith(sourceData.x, sourceData.y);
57
+ expect(pathInstance.bezierCurveTo).toHaveBeenCalledWith(15.8, 30, 20, 34.2, sourceData.x, sourceData.y);
58
+ expect(context.stroke).toHaveBeenCalledWith(pathInstance);
59
+ });
60
+ it('should call context methods for arrow edge correctly', function () {
61
+ (0, selfRelationLoop_1.drawSelfRelationLoop)(context, __assign(__assign({}, edgeData), { type: 'arrow' }), sourceData);
62
+ expect(Path2D).toHaveBeenCalled();
63
+ expect(pathInstance.moveTo).toHaveBeenCalledWith(sourceData.x, sourceData.y);
64
+ expect(pathInstance.bezierCurveTo).toHaveBeenCalledWith(sourceData.x, 34.2, 15.8, 30, 16.8, sourceData.y);
65
+ expect(context.stroke).toHaveBeenCalledWith(pathInstance);
66
+ expect(context.beginPath).toHaveBeenCalled();
67
+ expect(context.moveTo).toHaveBeenCalledWith(19, 30);
68
+ expect(context.lineTo).toHaveBeenNthCalledWith(1, 16.8, 29.12);
69
+ expect(context.lineTo).toHaveBeenNthCalledWith(2, 16.8, 30.88);
70
+ expect(context.lineTo).toHaveBeenNthCalledWith(3, 19, 30);
71
+ expect(context.closePath).toHaveBeenCalled();
72
+ expect(context.fill).toHaveBeenCalled();
73
+ });
74
+ it('should call context methods for doubleArrow edge correctly', function () {
75
+ (0, selfRelationLoop_1.drawSelfRelationLoop)(context, __assign(__assign({}, edgeData), { type: 'doubleArrow' }), sourceData);
76
+ expect(Path2D).toHaveBeenCalled();
77
+ expect(context.beginPath).toHaveBeenCalledTimes(2);
78
+ expect(context.fill).toHaveBeenCalledTimes(2);
79
+ expect(context.closePath).toHaveBeenCalledTimes(2);
80
+ expect(context.moveTo).toHaveBeenNthCalledWith(1, sourceData.x, 31);
81
+ expect(context.lineTo).toHaveBeenNthCalledWith(1, 19.119999999999997, 33.2);
82
+ expect(context.lineTo).toHaveBeenNthCalledWith(2, 20.880000000000003, 33.2);
83
+ expect(context.lineTo).toHaveBeenNthCalledWith(3, sourceData.x, 31);
84
+ expect(pathInstance.moveTo).toHaveBeenCalledWith(sourceData.x, 33.2);
85
+ expect(pathInstance.bezierCurveTo).toHaveBeenCalledWith(sourceData.x, 34.2, 15.8, 30, 16.8, sourceData.y);
86
+ expect(context.stroke).toHaveBeenCalledWith(pathInstance);
87
+ expect(context.moveTo).toHaveBeenNthCalledWith(2, 19, sourceData.y);
88
+ expect(context.lineTo).toHaveBeenNthCalledWith(4, 16.8, 29.12);
89
+ expect(context.lineTo).toHaveBeenNthCalledWith(5, 16.8, 30.88);
90
+ expect(context.lineTo).toHaveBeenNthCalledWith(6, 19, sourceData.y);
91
+ });
92
+ });
@@ -0,0 +1,2 @@
1
+ declare const drawTooltip: (context: CanvasRenderingContext2D, centerX: number, centerY: number, text: string) => void;
2
+ export { drawTooltip };
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.drawTooltip = void 0;
4
+ var drawRoundedRect = function (context, x, y, width, height, radius) {
5
+ context.beginPath();
6
+ context.moveTo(x, y + radius);
7
+ context.arcTo(x, y + height, x + radius, y + height, radius);
8
+ context.arcTo(x + width, y + height, x + width, y + height - radius, radius);
9
+ context.arcTo(x + width, y, x + width - radius, y, radius);
10
+ context.arcTo(x, y, x, y + radius, radius);
11
+ context.fill();
12
+ };
13
+ var drawTooltip = function (context, centerX, centerY, text) {
14
+ context.font = 'normal 10px Roboto';
15
+ context.textAlign = 'center';
16
+ context.textBaseline = 'middle';
17
+ var xPadding = 8;
18
+ var width = context.measureText(text).width + xPadding * 2;
19
+ var height = 24;
20
+ var radius = 4;
21
+ var x = centerX - width / 2;
22
+ var y = centerY - height / 2;
23
+ context.fillStyle = 'rgba(0, 0, 0, 0.54)';
24
+ drawRoundedRect(context, x, y, width, height, radius);
25
+ context.fillStyle = '#fff';
26
+ context.fillText(text, x + width / 2, y + height / 2);
27
+ };
28
+ exports.drawTooltip = drawTooltip;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var tooltip_1 = require("./tooltip");
4
+ describe('tests', function () {
5
+ var context = {
6
+ beginPath: jest.fn(),
7
+ moveTo: jest.fn(),
8
+ fill: jest.fn(),
9
+ measureText: jest.fn(function (text) { return ({ width: text.length * 5 }); }),
10
+ arcTo: jest.fn(),
11
+ fillText: jest.fn()
12
+ };
13
+ beforeEach(function () {
14
+ jest.clearAllMocks();
15
+ });
16
+ it('drawTooltip should work correctly', function () {
17
+ var label = 'label';
18
+ (0, tooltip_1.drawTooltip)(context, 600, 600, label);
19
+ expect(context.beginPath).toHaveBeenCalledTimes(1);
20
+ expect(context.measureText).toHaveBeenCalledWith(label);
21
+ expect(context.moveTo).toHaveBeenCalledWith(579.5, 592);
22
+ expect(context.arcTo).toHaveBeenNthCalledWith(1, 579.5, 612, 583.5, 612, 4);
23
+ expect(context.arcTo).toHaveBeenNthCalledWith(2, 620.5, 612, 620.5, 608, 4);
24
+ expect(context.arcTo).toHaveBeenNthCalledWith(3, 620.5, 588, 616.5, 588, 4);
25
+ expect(context.arcTo).toHaveBeenNthCalledWith(4, 579.5, 588, 579.5, 592, 4);
26
+ expect(context.fill).toHaveBeenCalled();
27
+ expect(context.fillText).toHaveBeenCalledWith(label, 600, 600);
28
+ expect(context.font).toBe('normal 10px Roboto');
29
+ expect(context.textAlign).toBe('center');
30
+ expect(context.textBaseline).toBe('middle');
31
+ });
32
+ });
@@ -0,0 +1,4 @@
1
+ export declare const getCanvasMousePos: (canvas: HTMLCanvasElement, event: MouseEvent) => {
2
+ x: number;
3
+ y: number;
4
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.getCanvasMousePos = void 0;
4
+ var getCanvasMousePos = function (canvas, event) {
5
+ var rect = canvas.getBoundingClientRect();
6
+ var x = ((event.clientX - rect.left) / (rect.right - rect.left)) * canvas.width;
7
+ var y = ((event.clientY - rect.top) / (rect.bottom - rect.top)) * canvas.height;
8
+ return { x: x, y: y };
9
+ };
10
+ exports.getCanvasMousePos = getCanvasMousePos;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var utils_1 = require("./utils");
4
+ describe('getCanvasMousePos behaviour', function () {
5
+ it('should return real mouse position correctly', function () {
6
+ var canvas = {
7
+ getBoundingClientRect: function () { return ({
8
+ left: 64,
9
+ right: 888,
10
+ top: 148,
11
+ bottom: 1000
12
+ }); },
13
+ width: 772,
14
+ height: 798
15
+ };
16
+ var mouseEvent = {
17
+ clientX: 864,
18
+ clientY: 547
19
+ };
20
+ expect((0, utils_1.getCanvasMousePos)(canvas, mouseEvent)).toEqual({ x: 749.5145631067961, y: 373.7112676056338 });
21
+ });
22
+ });
@@ -0,0 +1 @@
1
+ export declare const DEFAULT_PROFILE_IMAGE = "\n<svg width=\"400px\" height=\"400px\" viewBox=\"0 0 400 400\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <title>Group</title>\n <g id=\"Page-1\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g id=\"Group\" fill-rule=\"nonzero\">\n <rect id=\"Rectangle\" fill=\"#DFE5E9\" x=\"0\" y=\"0\" width=\"400\" height=\"400\"></rect>\n <path d=\"M0,387.023257 L0,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 0,387.023257 Z\" id=\"Path\" fill=\"#B3BCC4\"></path>\n <path d=\"M0,387.023257 L0,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 0,387.023257 Z\" id=\"Path\" fill=\"#B3BCC4\"></path>\n <path d=\"M5.68434189e-14,387.023257 L5.68434189e-14,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 5.68434189e-14,387.023257 Z\" id=\"Path\" fill=\"#B3BCC4\"></path>\n </g>\n </g>\n</svg>\n";
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_PROFILE_IMAGE = void 0;
4
+ exports.DEFAULT_PROFILE_IMAGE = "\n<svg width=\"400px\" height=\"400px\" viewBox=\"0 0 400 400\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n <title>Group</title>\n <g id=\"Page-1\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g id=\"Group\" fill-rule=\"nonzero\">\n <rect id=\"Rectangle\" fill=\"#DFE5E9\" x=\"0\" y=\"0\" width=\"400\" height=\"400\"></rect>\n <path d=\"M0,387.023257 L0,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 0,387.023257 Z\" id=\"Path\" fill=\"#B3BCC4\"></path>\n <path d=\"M0,387.023257 L0,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 0,387.023257 Z\" id=\"Path\" fill=\"#B3BCC4\"></path>\n <path d=\"M5.68434189e-14,387.023257 L5.68434189e-14,399.918908 L400,399.918908 L400,386.023594 C366.631,377.336524 321.866,364.269931 315.979,359.161654 C308.985,353.083704 270.481,310.508063 270.481,310.508063 L270.481,286.186267 C270.481,286.186267 284.478,266.204006 284.478,261.854473 C284.478,257.515936 285.353,246.219746 291.481,241.011503 C297.61,235.792263 311.607,211.471466 312.481,206.253226 C313.355,201.043983 319.484,188.009379 312.481,185.400259 C305.478,182.801135 307.236,173.244359 308.984,168.026119 C310.733,162.817875 319.484,139.355788 322.981,133.277838 C326.488,127.199888 312.481,108.956041 312.481,108.956041 C312.481,108.956041 294.978,80.2857109 245.975,53.3547939 C196.971,26.4138803 168.967,42.9283105 168.967,42.9283105 L161.964,60.3024507 C161.964,60.3024507 138.341,64.6409874 123.46,77.6765909 C108.589,90.7121943 99.837,106.346921 98.963,115.903698 C98.088,125.460475 103.334,159.339048 105.966,164.557289 C108.589,169.765532 112.96,185.400259 112.96,185.400259 C112.96,185.400259 108.589,183.670842 105.966,188.879085 C103.334,194.097325 112.085,218.419122 112.96,220.159535 C113.834,221.897949 114.718,238.403382 119.963,237.532676 C125.218,236.663969 130.463,251.42799 130.463,251.42799 C130.463,251.42799 143.596,271.41125 144.47,275.759783 C145.344,280.09832 147.967,307.039233 147.967,307.039233 L126.967,331.36103 L102.46,355.682827 C102.459,355.682827 34.042,375.886013 5.68434189e-14,387.023257 Z\" id=\"Path\" fill=\"#B3BCC4\"></path>\n </g>\n </g>\n</svg>\n";
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This class extends src/rendering/webgl/programs/edge.arrowHead.ts for arrowSizeRatio support
3
+ */
4
+ import SigmaEdgeArrowHeadProgram from 'sigma/rendering/webgl/programs/edge.arrowHead';
5
+ import { GraphEdgeAttributes, GraphNodeAttributes } from '../../types/graphDataTypes';
6
+ export default class EdgeArrowHeadProgram extends SigmaEdgeArrowHeadProgram {
7
+ process(sourceData: GraphNodeAttributes, targetData: GraphNodeAttributes, data: GraphEdgeAttributes, hidden: boolean, offset: number): void;
8
+ }
@@ -0,0 +1,84 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ var __importDefault = (this && this.__importDefault) || function (mod) {
18
+ return (mod && mod.__esModule) ? mod : { "default": mod };
19
+ };
20
+ Object.defineProperty(exports, "__esModule", { value: true });
21
+ /**
22
+ * This class extends src/rendering/webgl/programs/edge.arrowHead.ts for arrowSizeRatio support
23
+ */
24
+ var edge_arrowHead_1 = __importDefault(require("sigma/rendering/webgl/programs/edge.arrowHead"));
25
+ var utils_1 = require("sigma/utils");
26
+ var POINTS = 3, ATTRIBUTES = 9, STRIDE = POINTS * ATTRIBUTES;
27
+ var EdgeArrowHeadProgram = /** @class */ (function (_super) {
28
+ __extends(EdgeArrowHeadProgram, _super);
29
+ function EdgeArrowHeadProgram() {
30
+ return _super !== null && _super.apply(this, arguments) || this;
31
+ }
32
+ EdgeArrowHeadProgram.prototype.process = function (sourceData, targetData, data, hidden, offset) {
33
+ if (hidden) {
34
+ for (var i_1 = offset * STRIDE, l = i_1 + STRIDE; i_1 < l; i_1++)
35
+ this.array[i_1] = 0;
36
+ return;
37
+ }
38
+ // Our changes - added arrowSizeRatio support
39
+ var arrowSizeRatio = data.arrowSizeRatio || 1;
40
+ var thickness = data.size * arrowSizeRatio || 1, radius = targetData.size || 1, x1 = sourceData.x, y1 = sourceData.y, x2 = targetData.x, y2 = targetData.y, color = (0, utils_1.floatColor)(data.color);
41
+ // Computing normals
42
+ var dx = x2 - x1, dy = y2 - y1;
43
+ var len = dx * dx + dy * dy, n1 = 0, n2 = 0;
44
+ if (len) {
45
+ len = 1 / Math.sqrt(len);
46
+ n1 = -dy * len * thickness;
47
+ n2 = dx * len * thickness;
48
+ }
49
+ var i = POINTS * ATTRIBUTES * offset;
50
+ var array = this.array;
51
+ // First point
52
+ array[i++] = x2;
53
+ array[i++] = y2;
54
+ array[i++] = -n1;
55
+ array[i++] = -n2;
56
+ array[i++] = radius;
57
+ array[i++] = color;
58
+ array[i++] = 1;
59
+ array[i++] = 0;
60
+ array[i++] = 0;
61
+ // Second point
62
+ array[i++] = x2;
63
+ array[i++] = y2;
64
+ array[i++] = -n1;
65
+ array[i++] = -n2;
66
+ array[i++] = radius;
67
+ array[i++] = color;
68
+ array[i++] = 0;
69
+ array[i++] = 1;
70
+ array[i++] = 0;
71
+ // Third point
72
+ array[i++] = x2;
73
+ array[i++] = y2;
74
+ array[i++] = -n1;
75
+ array[i++] = -n2;
76
+ array[i++] = radius;
77
+ array[i++] = color;
78
+ array[i++] = 0;
79
+ array[i++] = 0;
80
+ array[i] = 1;
81
+ };
82
+ return EdgeArrowHeadProgram;
83
+ }(edge_arrowHead_1.default));
84
+ exports.default = EdgeArrowHeadProgram;
@@ -0,0 +1,29 @@
1
+ /**
2
+ * This class copies src/rendering/webgl/programs/edge.clamped.ts, but with a some difference:
3
+ * implemented arrowSizeRatio edge attribute, forwarded it to shaders as a_arrowSizeRatio
4
+ * implemented 'doubleArrow' edge type support
5
+ */
6
+ import { AbstractEdgeProgram } from 'sigma/rendering/webgl/programs/common/edge';
7
+ import { RenderParams } from 'sigma/rendering/webgl/programs/common/program';
8
+ import { GraphEdgeAttributes, GraphNodeAttributes } from '../../types/graphDataTypes';
9
+ export default class EdgeClampedProgram extends AbstractEdgeProgram {
10
+ IndicesArray: Uint32ArrayConstructor | Uint16ArrayConstructor;
11
+ indicesArray: Uint32Array | Uint16Array;
12
+ indicesBuffer: WebGLBuffer;
13
+ indicesType: GLenum;
14
+ positionLocation: GLint;
15
+ colorLocation: GLint;
16
+ normalLocation: GLint;
17
+ radiusLocation: GLint;
18
+ arrowSizeRatioLocation: GLint;
19
+ matrixLocation: WebGLUniformLocation;
20
+ sqrtZoomRatioLocation: WebGLUniformLocation;
21
+ correctionRatioLocation: WebGLUniformLocation;
22
+ canUse32BitsIndices: boolean;
23
+ constructor(gl: WebGLRenderingContext);
24
+ bind(): void;
25
+ process(sourceData: GraphNodeAttributes, targetData: GraphNodeAttributes, data: GraphEdgeAttributes, hidden: boolean, offset: number): void;
26
+ computeIndices(): void;
27
+ bufferData(): void;
28
+ render(params: RenderParams): void;
29
+ }
@@ -0,0 +1,176 @@
1
+ "use strict";
2
+ /**
3
+ * This class copies src/rendering/webgl/programs/edge.clamped.ts, but with a some difference:
4
+ * implemented arrowSizeRatio edge attribute, forwarded it to shaders as a_arrowSizeRatio
5
+ * implemented 'doubleArrow' edge type support
6
+ */
7
+ var __extends = (this && this.__extends) || (function () {
8
+ var extendStatics = function (d, b) {
9
+ extendStatics = Object.setPrototypeOf ||
10
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
11
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
12
+ return extendStatics(d, b);
13
+ };
14
+ return function (d, b) {
15
+ if (typeof b !== "function" && b !== null)
16
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
17
+ extendStatics(d, b);
18
+ function __() { this.constructor = d; }
19
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
20
+ };
21
+ })();
22
+ var __importDefault = (this && this.__importDefault) || function (mod) {
23
+ return (mod && mod.__esModule) ? mod : { "default": mod };
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ var utils_1 = require("sigma/utils");
27
+ var edge_1 = require("sigma/rendering/webgl/programs/common/edge");
28
+ var edge_frag_glsl_1 = __importDefault(require("sigma/rendering/webgl/shaders/edge.frag.glsl"));
29
+ var edge_clamped_vert_glsl_1 = require("./shaders/edge.clamped.vert.glsl");
30
+ var POINTS = 4, ATTRIBUTES = 7, STRIDE = POINTS * ATTRIBUTES;
31
+ var EdgeClampedProgram = /** @class */ (function (_super) {
32
+ __extends(EdgeClampedProgram, _super);
33
+ function EdgeClampedProgram(gl) {
34
+ var _this = _super.call(this, gl, edge_clamped_vert_glsl_1.vertexShaderSource, edge_frag_glsl_1.default, POINTS, ATTRIBUTES) || this;
35
+ // Initializing indices buffer
36
+ var indicesBuffer = gl.createBuffer();
37
+ if (indicesBuffer === null)
38
+ throw new Error('EdgeClampedProgram: error while getting resolutionLocation');
39
+ _this.indicesBuffer = indicesBuffer;
40
+ // Locations:
41
+ _this.positionLocation = gl.getAttribLocation(_this.program, 'a_position');
42
+ _this.colorLocation = gl.getAttribLocation(_this.program, 'a_color');
43
+ _this.normalLocation = gl.getAttribLocation(_this.program, 'a_normal');
44
+ _this.radiusLocation = gl.getAttribLocation(_this.program, 'a_radius');
45
+ _this.arrowSizeRatioLocation = gl.getAttribLocation(_this.program, 'a_arrowSizeRatio'); // our change
46
+ // Uniform locations
47
+ var matrixLocation = gl.getUniformLocation(_this.program, 'u_matrix');
48
+ if (matrixLocation === null)
49
+ throw new Error('EdgeClampedProgram: error while getting matrixLocation');
50
+ _this.matrixLocation = matrixLocation;
51
+ var sqrtZoomRatioLocation = gl.getUniformLocation(_this.program, 'u_sqrtZoomRatio');
52
+ if (sqrtZoomRatioLocation === null)
53
+ throw new Error('EdgeClampedProgram: error while getting cameraRatioLocation');
54
+ _this.sqrtZoomRatioLocation = sqrtZoomRatioLocation;
55
+ var correctionRatioLocation = gl.getUniformLocation(_this.program, 'u_correctionRatio');
56
+ if (correctionRatioLocation === null)
57
+ throw new Error('EdgeClampedProgram: error while getting viewportRatioLocation');
58
+ _this.correctionRatioLocation = correctionRatioLocation;
59
+ // Enabling the OES_element_index_uint extension
60
+ // NOTE: on older GPUs, this means that really large graphs won't
61
+ // have all their edges rendered. But it seems that the
62
+ // `OES_element_index_uint` is quite everywhere so we'll handle
63
+ // the potential issue if it really arises.
64
+ // NOTE: when using webgl2, the extension is enabled by default
65
+ _this.canUse32BitsIndices = (0, utils_1.canUse32BitsIndices)(gl);
66
+ _this.IndicesArray = _this.canUse32BitsIndices ? Uint32Array : Uint16Array;
67
+ _this.indicesArray = new _this.IndicesArray();
68
+ _this.indicesType = _this.canUse32BitsIndices ? gl.UNSIGNED_INT : gl.UNSIGNED_SHORT;
69
+ _this.bind();
70
+ return _this;
71
+ }
72
+ EdgeClampedProgram.prototype.bind = function () {
73
+ var gl = this.gl;
74
+ gl.bindBuffer(gl.ELEMENT_ARRAY_BUFFER, this.indicesBuffer);
75
+ // Bindings
76
+ gl.enableVertexAttribArray(this.positionLocation);
77
+ gl.enableVertexAttribArray(this.normalLocation);
78
+ gl.enableVertexAttribArray(this.colorLocation);
79
+ gl.enableVertexAttribArray(this.radiusLocation);
80
+ gl.enableVertexAttribArray(this.arrowSizeRatioLocation); // our change
81
+ gl.vertexAttribPointer(this.positionLocation, 2, gl.FLOAT, false, ATTRIBUTES * Float32Array.BYTES_PER_ELEMENT, 0);
82
+ gl.vertexAttribPointer(this.normalLocation, 2, gl.FLOAT, false, ATTRIBUTES * Float32Array.BYTES_PER_ELEMENT, 8);
83
+ gl.vertexAttribPointer(this.colorLocation, 4, gl.UNSIGNED_BYTE, true, ATTRIBUTES * Float32Array.BYTES_PER_ELEMENT, 16);
84
+ gl.vertexAttribPointer(this.radiusLocation, 1, gl.FLOAT, false, ATTRIBUTES * Float32Array.BYTES_PER_ELEMENT, 20);
85
+ // our change
86
+ gl.vertexAttribPointer(this.arrowSizeRatioLocation, 1, gl.FLOAT, false, ATTRIBUTES * Float32Array.BYTES_PER_ELEMENT, 24);
87
+ };
88
+ EdgeClampedProgram.prototype.process = function (sourceData, targetData, data, hidden, offset) {
89
+ if (hidden) {
90
+ for (var i_1 = offset * STRIDE, l = i_1 + STRIDE; i_1 < l; i_1++)
91
+ this.array[i_1] = 0;
92
+ return;
93
+ }
94
+ var arrowSizeRatio = data.arrowSizeRatio || 1; // our change
95
+ var thickness = data.size || 1, x1 = sourceData.x, y1 = sourceData.y, x2 = targetData.x, y2 = targetData.y,
96
+ //our change - added sourceRadius
97
+ sourceRadius = data.type === 'doubleArrow' ? sourceData.size || 1 : 0, targetRadius = targetData.size || 1, color = (0, utils_1.floatColor)(data.color);
98
+ // Computing normals
99
+ var dx = x2 - x1, dy = y2 - y1;
100
+ var len = dx * dx + dy * dy, n1 = 0, n2 = 0;
101
+ if (len) {
102
+ len = 1 / Math.sqrt(len);
103
+ n1 = -dy * len * thickness;
104
+ n2 = dx * len * thickness;
105
+ }
106
+ var i = POINTS * ATTRIBUTES * offset;
107
+ var array = this.array;
108
+ // First point
109
+ array[i++] = x1;
110
+ array[i++] = y1;
111
+ array[i++] = n1;
112
+ array[i++] = n2;
113
+ array[i++] = color;
114
+ array[i++] = -sourceRadius;
115
+ array[i++] = arrowSizeRatio;
116
+ // First point flipped
117
+ array[i++] = x1;
118
+ array[i++] = y1;
119
+ array[i++] = -n1;
120
+ array[i++] = -n2;
121
+ array[i++] = color;
122
+ array[i++] = sourceRadius;
123
+ array[i++] = arrowSizeRatio;
124
+ // Second point
125
+ array[i++] = x2;
126
+ array[i++] = y2;
127
+ array[i++] = n1;
128
+ array[i++] = n2;
129
+ array[i++] = color;
130
+ array[i++] = targetRadius;
131
+ array[i++] = arrowSizeRatio;
132
+ // Second point flipped
133
+ array[i++] = x2;
134
+ array[i++] = y2;
135
+ array[i++] = -n1;
136
+ array[i++] = -n2;
137
+ array[i++] = color;
138
+ array[i++] = -targetRadius;
139
+ array[i] = arrowSizeRatio;
140
+ };
141
+ EdgeClampedProgram.prototype.computeIndices = function () {
142
+ var l = this.array.length / ATTRIBUTES;
143
+ var size = l + l / 2;
144
+ var indices = new this.IndicesArray(size);
145
+ for (var i = 0, c = 0; i < l; i += 4) {
146
+ indices[c++] = i;
147
+ indices[c++] = i + 1;
148
+ indices[c++] = i + 2;
149
+ indices[c++] = i + 2;
150
+ indices[c++] = i + 1;
151
+ indices[c++] = i + 3;
152
+ }
153
+ this.indicesArray = indices;
154
+ };
155
+ EdgeClampedProgram.prototype.bufferData = function () {
156
+ _super.prototype.bufferData.call(this);
157
+ // Indices data
158
+ var gl = this.gl;
159
+ gl.bufferData(gl.ELEMENT_ARRAY_BUFFER, this.indicesArray, gl.STATIC_DRAW);
160
+ };
161
+ EdgeClampedProgram.prototype.render = function (params) {
162
+ if (this.hasNothingToRender())
163
+ return;
164
+ var gl = this.gl;
165
+ var program = this.program;
166
+ gl.useProgram(program);
167
+ // Binding uniforms
168
+ gl.uniformMatrix3fv(this.matrixLocation, false, params.matrix);
169
+ gl.uniform1f(this.sqrtZoomRatioLocation, Math.sqrt(params.ratio));
170
+ gl.uniform1f(this.correctionRatioLocation, params.correctionRatio);
171
+ // Drawing:
172
+ gl.drawElements(gl.TRIANGLES, this.indicesArray.length, this.indicesType, 0);
173
+ };
174
+ return EdgeClampedProgram;
175
+ }(edge_1.AbstractEdgeProgram));
176
+ exports.default = EdgeClampedProgram;
@@ -0,0 +1,23 @@
1
+ import { AbstractEdgeProgram } from 'sigma/rendering/webgl/programs/common/edge';
2
+ import { RenderParams } from 'sigma/rendering/webgl/programs/common/program';
3
+ import { EdgeDisplayData, NodeDisplayData } from 'sigma/types';
4
+ export default class DashedEdgeProgram extends AbstractEdgeProgram {
5
+ IndicesArray: Uint32ArrayConstructor | Uint16ArrayConstructor;
6
+ indicesArray: Uint32Array | Uint16Array;
7
+ indicesBuffer: WebGLBuffer;
8
+ indicesType: GLenum;
9
+ canUse32BitsIndices: boolean;
10
+ positionLocation: GLint;
11
+ colorLocation: GLint;
12
+ normalLocation: GLint;
13
+ lineLengthLocation: GLint;
14
+ matrixLocation: WebGLUniformLocation;
15
+ sqrtZoomRatioLocation: WebGLUniformLocation;
16
+ correctionRatioLocation: WebGLUniformLocation;
17
+ constructor(gl: WebGLRenderingContext);
18
+ bind(): void;
19
+ computeIndices(): void;
20
+ bufferData(): void;
21
+ process(sourceData: NodeDisplayData, targetData: NodeDisplayData, data: EdgeDisplayData, hidden: boolean, offset: number): void;
22
+ render(params: RenderParams): void;
23
+ }