@cosmos.gl/graph 2.6.1 → 2.6.2-rc.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.
@@ -1,5 +1,5 @@
1
- import regl from 'regl';
2
- import { CoreModule } from '@/graph/modules/core-module';
1
+ import { default as regl } from 'regl';
2
+ import { CoreModule } from '../core-module';
3
3
  export declare class Clusters extends CoreModule {
4
4
  centermassFbo: regl.Framebuffer2D | undefined;
5
5
  clusterCount: number | undefined;
@@ -1,9 +1,9 @@
1
- import { Store } from '@/graph/modules/Store';
2
- import { GraphConfigInterface } from '@/graph/config';
1
+ import { Store } from '../Store';
2
+ import { GraphConfigInterface } from '../../config';
3
3
  export declare class Drag {
4
4
  readonly store: Store;
5
5
  readonly config: GraphConfigInterface;
6
6
  isActive: boolean;
7
- behavior: import("d3-drag").DragBehavior<HTMLCanvasElement, undefined, import("d3-drag").SubjectPosition | undefined>;
7
+ behavior: import('d3-drag').DragBehavior<HTMLCanvasElement, undefined, import('d3-drag').SubjectPosition | undefined>;
8
8
  constructor(store: Store, config: GraphConfigInterface);
9
9
  }
@@ -1,4 +1,4 @@
1
- import { CoreModule } from '@/graph/modules/core-module';
1
+ import { CoreModule } from '../core-module';
2
2
  export declare class ForceCenter extends CoreModule {
3
3
  private centermassFbo;
4
4
  private clearCentermassCommand;
@@ -1,4 +1,4 @@
1
- import { CoreModule } from '@/graph/modules/core-module';
1
+ import { CoreModule } from '../core-module';
2
2
  export declare class ForceGravity extends CoreModule {
3
3
  private runCommand;
4
4
  initPrograms(): void;
@@ -1,4 +1,4 @@
1
- import { CoreModule } from '@/graph/modules/core-module';
1
+ import { CoreModule } from '../core-module';
2
2
  export declare enum LinkDirection {
3
3
  OUTGOING = "outgoing",
4
4
  INCOMING = "incoming"
@@ -1,4 +1,4 @@
1
- import { CoreModule } from '@/graph/modules/core-module';
1
+ import { CoreModule } from '../core-module';
2
2
  export declare class ForceManyBody extends CoreModule {
3
3
  private randomValuesFbo;
4
4
  private levelsFbos;
@@ -1,4 +1,4 @@
1
- import { CoreModule } from '@/graph/modules/core-module';
1
+ import { CoreModule } from '../core-module';
2
2
  export declare class ForceManyBodyQuadtree extends CoreModule {
3
3
  private randomValuesFbo;
4
4
  private levelsTextures;
@@ -1,4 +1,4 @@
1
- import { CoreModule } from '@/graph/modules/core-module';
1
+ import { CoreModule } from '../core-module';
2
2
  export declare class ForceMouse extends CoreModule {
3
3
  private runCommand;
4
4
  initPrograms(): void;
@@ -1,4 +1,4 @@
1
- import { GraphConfig } from '@/graph/config';
1
+ import { GraphConfig } from '../../config';
2
2
  export declare enum PointShape {
3
3
  Circle = 0,
4
4
  Square = 1,
@@ -1,5 +1,5 @@
1
- import regl from 'regl';
2
- import { CoreModule } from '@/graph/modules/core-module';
1
+ import { default as regl } from 'regl';
2
+ import { CoreModule } from '../core-module';
3
3
  export declare class Lines extends CoreModule {
4
4
  linkIndexFbo: regl.Framebuffer2D | undefined;
5
5
  hoveredLineIndexFbo: regl.Framebuffer2D | undefined;
@@ -1,5 +1,5 @@
1
- import regl from 'regl';
2
- import { CoreModule } from '@/graph/modules/core-module';
1
+ import { default as regl } from 'regl';
2
+ import { CoreModule } from '../core-module';
3
3
  export declare class Points extends CoreModule {
4
4
  currentPositionFbo: regl.Framebuffer2D | undefined;
5
5
  previousPositionFbo: regl.Framebuffer2D | undefined;
@@ -1,4 +1,4 @@
1
- import regl from 'regl';
1
+ import { default as regl } from 'regl';
2
2
  export declare function createQuadBuffer(reglInstance: regl.Regl): {
3
3
  buffer: regl.Buffer;
4
4
  size: number;
@@ -1,5 +1,5 @@
1
1
  import { mat3 } from 'gl-matrix';
2
- import type { GraphConfigInterface } from '@/graph/config';
2
+ import { GraphConfigInterface } from '../../config';
3
3
  export declare const ALPHA_MIN = 0.001;
4
4
  export declare const MAX_POINT_SIZE = 64;
5
5
  /**
@@ -1,11 +1,11 @@
1
1
  import { ZoomTransform } from 'd3-zoom';
2
- import { Store } from '@/graph/modules/Store';
3
- import { GraphConfigInterface } from '@/graph/config';
2
+ import { Store } from '../Store';
3
+ import { GraphConfigInterface } from '../../config';
4
4
  export declare class Zoom {
5
5
  readonly store: Store;
6
6
  readonly config: GraphConfigInterface;
7
7
  eventTransform: ZoomTransform;
8
- behavior: import("d3-zoom").ZoomBehavior<HTMLCanvasElement, undefined>;
8
+ behavior: import('d3-zoom').ZoomBehavior<HTMLCanvasElement, undefined>;
9
9
  isRunning: boolean;
10
10
  constructor(store: Store, config: GraphConfigInterface);
11
11
  /**
@@ -1,8 +1,8 @@
1
- import regl from 'regl';
2
- import { GraphConfigInterface } from '@/graph/config';
3
- import { GraphData } from '@/graph/modules/GraphData';
4
- import { Points } from '@/graph/modules/Points';
5
- import { Store } from '@/graph/modules/Store';
1
+ import { default as regl } from 'regl';
2
+ import { GraphConfigInterface } from '../config';
3
+ import { GraphData } from './GraphData';
4
+ import { Points } from './Points';
5
+ import { Store } from './Store';
6
6
  export declare class CoreModule {
7
7
  readonly reglInstance: regl.Regl;
8
8
  readonly config: GraphConfigInterface;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmos.gl/graph",
3
- "version": "2.6.1",
3
+ "version": "2.6.2-rc.0",
4
4
  "description": "GPU-based force graph layout and rendering",
5
5
  "jsdelivr": "dist/index.min.js",
6
6
  "main": "dist/index.js",