JSPM

@rbxts/graph

1.0.1-ts.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q33744F

boatbomber's Graph class with types!

Package Exports

  • @rbxts/graph

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@rbxts/graph) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

rbxts-graph

boatbomber's Graph class with types!

import Graph from '@rbxts/graph';

const playerGui = game.GetService('Players').LocalPlayer.FindFirstChild('PlayerGui') as PlayerGui;
const screenGui = new Instance('ScreenGui');
const frame = new Instance('Frame');
frame.Size = UDim2.fromScale(0.5, 0.5);
frame.Position = UDim2.fromScale(0.25, 0.25);
frame.Parent = screenGui;

const graph = new Graph(frame);
graph.Data = {
    test: [1, 2, 3, 4, 5]
};
graph.Resolution = 2;

screenGui.Parent = playerGui;