@cosmos.gl/graph 2.0.0 → 2.1.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.
package/dist/config.d.ts CHANGED
@@ -118,6 +118,11 @@ export interface GraphConfigInterface {
118
118
  * Default value: `1`
119
119
  */
120
120
  linkWidthScale?: number;
121
+ /**
122
+ * Increase or decrease the size of the links when zooming in or out.
123
+ * Default value: `false`
124
+ */
125
+ scaleLinksOnZoom?: boolean;
121
126
  /**
122
127
  * If set to true, links are rendered as curved lines.
123
128
  * Otherwise as straight lines.
@@ -226,6 +231,13 @@ export interface GraphConfigInterface {
226
231
  * Default value: `2`
227
232
  */
228
233
  simulationRepulsionFromMouse?: number;
234
+ /**
235
+ * Enable or disable the repulsion force from mouse when right-clicking.
236
+ * When set to `true`, holding the right mouse button will activate the mouse repulsion force.
237
+ * When set to `false`, right-clicking will not trigger any repulsion force.
238
+ * Default value: `false`
239
+ */
240
+ enableRightClickRepulsion?: boolean;
229
241
  /**
230
242
  * Friction coefficient.
231
243
  * Values range from 0 (high friction, stops quickly) to 1 (no friction, keeps moving).
@@ -357,7 +369,7 @@ export interface GraphConfigInterface {
357
369
  pixelRatio?: number;
358
370
  /**
359
371
  * Increase or decrease the size of the points when zooming in or out.
360
- * Default value: true
372
+ * Default value: `false`
361
373
  */
362
374
  scalePointsOnZoom?: boolean;
363
375
  /**
@@ -473,6 +485,7 @@ export declare class GraphConfig implements GraphConfigInterface {
473
485
  curvedLinkControlPointDistance: number;
474
486
  linkArrows: boolean;
475
487
  linkArrowsSizeScale: number;
488
+ scaleLinksOnZoom: boolean;
476
489
  linkVisibilityDistanceRange: number[];
477
490
  linkVisibilityMinTransparency: number;
478
491
  useClassicQuadtree: boolean;
@@ -486,6 +499,7 @@ export declare class GraphConfig implements GraphConfigInterface {
486
499
  simulationLinkDistance: number;
487
500
  simulationLinkDistRandomVariationRange: number[];
488
501
  simulationRepulsionFromMouse: number;
502
+ enableRightClickRepulsion: boolean;
489
503
  simulationFriction: number;
490
504
  simulationCluster: number;
491
505
  onSimulationStart: GraphConfigInterface['onSimulationStart'];