GithubHelp home page GithubHelp logo

kovsky0 / react-jsoncanvas Goto Github PK

View Code? Open in Web Editor NEW

This project forked from digital-tvilling/react-jsoncanvas

0.0 0.0 0.0 329 KB

A solution in React and TypeScript to render JSON Canvas

License: MIT License

JavaScript 3.35% TypeScript 82.80% CSS 11.01% HTML 2.84%

react-jsoncanvas's Introduction

react-jsoncanvas

A React application that renders data from the JSON Canvas format. For more information about JSON Canvas, visit jsoncanvas.org.

What is react-jsoncanvas?

react-jsoncanvas is a React application designed to facilitate the rendering of JSON Canvas files. It provides a set of React components that interpret and display JSON Canvas data in a visual format, in it's current state it is not a library, rather an example/some code to use to render a canvas with nodes and edges in .canvas format

Features

  • It aims to be lightweight and easy to integrate with React projects.
  • Provides basic structures and components for rendering JSON Canvas.

Screenshot of React json canvas

Current state/todo/needed

React for rendering components and D3 for handling zoom and drag/drop in canvas functionality is core in this implementation, and for now react-markdown is being used to render html from markdown.

A lot of functionality and logic is taken from the jsoncanvas repository and is being refactored to align more with React standards.

Current focus is as a jsoncanvas viewer/reader

How to Use

Copy/Paste the features/behaviour you need or follow steps below:

As a standalone Application

To get started with react-jsoncanvas, clone the repository with

git clone https://github.com/Digital-Tvilling/react-jsoncanvas.git

Install the dependencies with NPM

npm install

Start up the development environment

npm run dev

As a dependency (Experimental)

You can also import it in your project and use it as local dependency however it will likely only work in a development environment and fail the build process.

First clone the repository (As it's not available on NPM), ideally in your project root folder.

git clone https://github.com/Digital-Tvilling/react-jsoncanvas.git

You can install the library with a standard install command, but with providing the path to the library folder.

npm install ./react-jsoncanvas

You should now be able to see the module imported as a local dependency in your project package.json

"react-jsoncanvas": "file:react-jsoncanvas"

And be able to use it as any library, eg :

import { CanvasContent, Canvas, Node, Edge } from 'react-jsoncanvas'

How to Contribute

Contributions are welcome! If you're interested in improving react-jsoncanvas, feel free to submit pull requests.

License

react-jsoncanvas is MIT licensed. For more details, see the LICENSE file in the repository.

react-jsoncanvas's People

Contributors

johanhanses avatar duranbe avatar fasblom avatar teemukoivumaa avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.