$ npm i @kineviz/gl three@0.184

20,000

1k10k100k1M


          

      render-fault.tsWebGPU → WebGL
      <GraphCanvas data={graph} enableWebGPURenderPath />
      
      api.events.on('renderFault', (report) => {
        // faultKind: 'device-lost' | 'shader-compile-failed'
        // resultingPathId: the path actually in use now
        telemetry.warn('render fault',
          report.faultKind, report.resultingPathId);
      });

      App.tsx
      import { GraphCanvas } from '@kineviz/gl';
      
      const nodes = [
        { id: 'a', category: 'Person' },
        { id: 'b', category: 'Person' },
      ];
      const edges = [
        { source: 'a', target: 'b', relationship: 'KNOWS' },
      ];
      
      export default function App() {
        return (
          <GraphCanvas data={{ nodes, edges }}
            nodeCloud edgeCloud caption forceLayout />
        );
      }