GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wangmengHB/vinci: vinci.js is an interactive 2D graphic canvas library engine. It can be used to support 2D picture edit, data visualization, video editting, etc.

BranchesTags
Open more actions menu

Latest commit

 

History

26 Commits
26 Commits

Folders and files

NameName
Last commit message
Last commit date
demo
demo
 
 
images
images
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.mocharc.json
.mocharc.json
 
 
babel.config.js
babel.config.js
 
 
package.json
package.json
 
 
readme.md
readme.md
 
 
tsconfig.json
tsconfig.json
 
 
webpack.demo.conf.js
webpack.demo.conf.js
 
 

Repository files navigation

vinci.js (in development)

vinci.js is an interactive 2D graphic canvas library engine. It can be used to support 2D picture edit, data visualization, video editting, etc.

Currently, it already has the basic interactive feature, and it is still in development.

Below is the demo capture from vinci.js.

demo

install

npm install --S vinci

usage

import { VinciCanvas, StaticVinciCanvas, Shapes } from 'vinci';
const {Ellipse, Polyline, ImageShape, Rect, Polygon, Circle } = Shapes;
const vinci = new VinciCanvas();

const rect = new Shapes.Rect({ left: 10, top: 20, width: 300, height: 200 });
vinci.add(rect);
const circle = new Shapes.Circle({ cx: 50, cy: 50, r: 100});
vinci.add(circle);

const img = new ImageShape();
const url = 'http://xxx.jpg';   // it must be allowed cross origin!!!
await img.loadFromImage(url);
img.set({
  left: 300,
  top: 200,
});

vinci.add(img);

// get the container element of vinci and you can append it to the DOM
vinci.getElement();

TODO list

  • Path shape
  • Textbox shape
  • group function
  • behavior improvement
  • serialization
  • color validation
  • scale improvement
  • fillStyle/strokeStyle/ refactor
  • event improvement
  • drawing mode

After these features done, it will be published in public.

roadmap

About

vinci.js is an interactive 2D graphic canvas library engine. It can be used to support 2D picture edit, data visualization, video editting, etc.

Resources

Readme
Activity

Stars

3 stars

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.