Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

react component can draw arbitrary graphics and motion path in canvas by using latitude and longitude

License

Notifications You must be signed in to change notification settings

jackchen10/easy-drawing

Repository files navigation

Easy Drawing

A react component that can draw arbitrary graphics and motion path in canvas by using latitude and longitude easily just like copying.

NPM size

English | 简体中文

✨ Descriptions

In general, even if you master the canvas and svg well, you will still face many challenges in the drawing process. The biggest challenge is how to get the coordinates easily, which including the vertex coordinates of various shapes, and any coordinates you want to know relative to a reference. So how relaxed it will be if you can draw a graph in canvas as easily as copy a graph.

In view of this, I chose to draw using latitude and longitude. Here,the longitude is the X coordinate, and the latitude is the y coordinate.

So you can pick up a set of coordinate points of a graph that you see or in your mind on Google maps https://www.google.com/maps. With these points, you can draw the corresponding graphics.

🚇 Environment Support

Modern browsers and Internet Explorer support canvas

IE / Edge IE / Edge IE / Edge IE / Edge IE / Edge
9+ 3.6+ 4+ 4+ 4+

⏬ Install

npm install easy-drawing
yarn add easy-drawing

🖱️ Usage

import EasyDrawing from 'easy-drawing';

📄 Documents

Adhere to the principle of simplicity, you will not spend too much energy

📷 License

MIT © Facebook Inc.

About

react component can draw arbitrary graphics and motion path in canvas by using latitude and longitude

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%

AltStyle によって変換されたページ (->オリジナル) /