Skip to content

LionJs是一个以拓扑展示为核心的2D交互式绘制引擎。

License

Notifications You must be signed in to change notification settings

awesome-javascript/LionJs

This branch is 4 commits behind keith-dan/LionJs:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jul 15, 2019
7fca782 · Jul 15, 2019

History

4 Commits
No commit message
Jul 15, 2019
No commit message
Jul 15, 2019
Jul 5, 2019
Jul 5, 2019
Jul 5, 2019
Jul 5, 2019

Repository files navigation

LionJs

Description

LionJs is 2d drawing engine.it's without any third party files. core script use HTML5 Canvas to render graphic,so compatible with other framework.

typical scenarios:

  • topological graph
  • relation graph
  • like visio
  • business process monit graph
  • ...

Instructions

script folder is core script,sample folder is demo.
create a html file,use script tag include lion.min.js
<script src="script/lion.min.js"></script>
then try to run this script
var stage = new lion.Stage('mycanvas'); //instance stage
var ele = new lion.RectElement(); //instance rect element
ele.backgroundColor = "blue";  //set background color
ele.text = "hello world!";  //set text
ele.shadow = 'gray'; //set shadow
ele.x = 100;  //set x
ele.y = 100;  //set y
ele.width = 100; //set width
ele.height = 100;  //set height
ele.align = lion.Align.TopRight;  //set text align
stage.currentScene.addElement(ele);  //add to scene

Contact

author:Keith.Dan

gitee:https://gitee.com/keith_dan/LionJs github:https://github.com/keith-dan/LionJs

email:[email protected]

About

LionJs是一个以拓扑展示为核心的2D交互式绘制引擎。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%