@cosmos.gl/graph 3.0.0-beta.1 → 3.0.0-beta.2
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/{src/config.d.ts → config.d.ts} +8 -8
- package/dist/{index-C08ZBzdl.js → index-C5QFXagg.js} +1904 -1887
- package/dist/index-C5QFXagg.js.map +1 -0
- package/dist/{src/index.d.ts → index.d.ts} +14 -4
- package/dist/index.js +1 -1
- package/dist/index.min.js +56 -56
- package/dist/index.min.js.map +1 -1
- package/dist/{src/modules → modules}/Store/index.d.ts +1 -1
- package/dist/{src/modules → modules}/Zoom/index.d.ts +6 -5
- package/dist/{webgl-device-Bbjp2SUN.js → webgl-device-Dfa4MRJu.js} +2 -2
- package/dist/{webgl-device-Bbjp2SUN.js.map → webgl-device-Dfa4MRJu.js.map} +1 -1
- package/package.json +5 -14
- package/dist/index-C08ZBzdl.js.map +0 -1
- package/dist/vite.config.d.ts +0 -2
- /package/dist/{src/graph → graph}/utils/error-message.d.ts +0 -0
- /package/dist/{src/helper.d.ts → helper.d.ts} +0 -0
- /package/dist/{src/modules → modules}/Clusters/index.d.ts +0 -0
- /package/dist/{src/modules → modules}/Drag/index.d.ts +0 -0
- /package/dist/{src/modules → modules}/FPSMonitor/css.d.ts +0 -0
- /package/dist/{src/modules → modules}/FPSMonitor/index.d.ts +0 -0
- /package/dist/{src/modules → modules}/ForceCenter/index.d.ts +0 -0
- /package/dist/{src/modules → modules}/ForceGravity/index.d.ts +0 -0
- /package/dist/{src/modules → modules}/ForceLink/force-spring.d.ts +0 -0
- /package/dist/{src/modules → modules}/ForceLink/index.d.ts +0 -0
- /package/dist/{src/modules → modules}/ForceManyBody/index.d.ts +0 -0
- /package/dist/{src/modules → modules}/ForceMouse/index.d.ts +0 -0
- /package/dist/{src/modules → modules}/GraphData/index.d.ts +0 -0
- /package/dist/{src/modules → modules}/Lines/geometry.d.ts +0 -0
- /package/dist/{src/modules → modules}/Lines/index.d.ts +0 -0
- /package/dist/{src/modules → modules}/Points/atlas-utils.d.ts +0 -0
- /package/dist/{src/modules → modules}/Points/index.d.ts +0 -0
- /package/dist/{src/modules → modules}/Shared/buffer.d.ts +0 -0
- /package/dist/{src/modules → modules}/Shared/texture-utils.d.ts +0 -0
- /package/dist/{src/modules → modules}/Shared/uniform-utils.d.ts +0 -0
- /package/dist/{src/modules → modules}/core-module.d.ts +0 -0
- /package/dist/{src/variables.d.ts → variables.d.ts} +0 -0
|
@@ -349,7 +349,7 @@ export interface GraphConfigInterface {
|
|
|
349
349
|
* `(index: number | undefined, pointPosition: [number, number] | undefined, event: MouseEvent) => void`.
|
|
350
350
|
* Default value: `undefined`
|
|
351
351
|
*/
|
|
352
|
-
|
|
352
|
+
onContextMenu?: (index: number | undefined, pointPosition: [number, number] | undefined, event: MouseEvent) => void;
|
|
353
353
|
/**
|
|
354
354
|
* Callback function that will be called when a context menu trigger (typically right click) happens on a point.
|
|
355
355
|
* The point index will be passed as the first argument,
|
|
@@ -357,21 +357,21 @@ export interface GraphConfigInterface {
|
|
|
357
357
|
* `(index: number, pointPosition: [number, number], event: MouseEvent) => void`.
|
|
358
358
|
* Default value: `undefined`
|
|
359
359
|
*/
|
|
360
|
-
|
|
360
|
+
onPointContextMenu?: (index: number, pointPosition: [number, number], event: MouseEvent) => void;
|
|
361
361
|
/**
|
|
362
362
|
* Callback function that will be called when a context menu trigger (typically right click) happens on a link.
|
|
363
363
|
* The link index will be passed as the first argument and the corresponding mouse event as the second argument:
|
|
364
364
|
* `(linkIndex: number, event: MouseEvent) => void`.
|
|
365
365
|
* Default value: `undefined`
|
|
366
366
|
*/
|
|
367
|
-
|
|
367
|
+
onLinkContextMenu?: (linkIndex: number, event: MouseEvent) => void;
|
|
368
368
|
/**
|
|
369
369
|
* Callback function that will be called when a context menu trigger (typically right click) happens on the background (empty space).
|
|
370
370
|
* The mouse event will be passed as the first argument:
|
|
371
371
|
* `(event: MouseEvent) => void`.
|
|
372
372
|
* Default value: `undefined`
|
|
373
373
|
*/
|
|
374
|
-
|
|
374
|
+
onBackgroundContextMenu?: (event: MouseEvent) => void;
|
|
375
375
|
/**
|
|
376
376
|
* Callback function that will be called when mouse movement happens.
|
|
377
377
|
* If the mouse moves over a point, its index will be passed as the first argument,
|
|
@@ -626,10 +626,10 @@ export declare class GraphConfig implements GraphConfigInterface {
|
|
|
626
626
|
onPointClick: GraphConfigInterface['onPointClick'];
|
|
627
627
|
onLinkClick: GraphConfigInterface['onLinkClick'];
|
|
628
628
|
onBackgroundClick: GraphConfigInterface['onBackgroundClick'];
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
629
|
+
onContextMenu: GraphConfigInterface['onContextMenu'];
|
|
630
|
+
onPointContextMenu: GraphConfigInterface['onPointContextMenu'];
|
|
631
|
+
onLinkContextMenu: GraphConfigInterface['onLinkContextMenu'];
|
|
632
|
+
onBackgroundContextMenu: GraphConfigInterface['onBackgroundContextMenu'];
|
|
633
633
|
onMouseMove: GraphConfigInterface['onMouseMove'];
|
|
634
634
|
onPointMouseOver: GraphConfigInterface['onPointMouseOver'];
|
|
635
635
|
onPointMouseOut: GraphConfigInterface['onPointMouseOut'];
|