Skip to content

A block algorithm is a project that allows you to create blocks with your own specific functions, which can be plugged and played with other blocks.

Notifications You must be signed in to change notification settings

RuffLogix/block-algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Algorithm Visualizer

Concept

A block algorithm is a project that allows you to create blocks with your own specific functions, which can be plugged and played with other blocks.

Block Structure

id: number;
x: number;
y: number;
name: string;
description: string;
nInputs: number;
nOutputs: number;
inputNames: string[];
outputNames: string[];
fn: Function;
style: string;

Demo

Demo

Todo List

  • BasedBlock class
  • Connection between blocks
  • Test cases for BasedBlock class
  • Block UI component
  • Block Editor UI component
  • Create Block Button
  • Delete Block Button
  • Curve Connection
  • Zoom In/Out
  • Cancel Connection
  • Preset Blocks (Logic, Math, etc.)
  • Load pre-built template
  • console.log() block for debugging
  • Animation when block is running.
  • Add edit button for block
  • Add stop point for line connection to make it more readable
  • Add syntax highlighter for block code (Create/Edit)
  • Import/Export blocks data
  • Implement infinite canvas

Contributor

About

A block algorithm is a project that allows you to create blocks with your own specific functions, which can be plugged and played with other blocks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages