Metrics
0
Watch 6 Star 22 Fork 3

Keith.Dan / LionJsJavaScriptApache-2.0

Sign up for free
Explore and code with more than 2 million developers,Free private repositories !:)
Sign up
LionJs是一个以拓扑展示为核心的2D交互式绘制引擎。 spread retract

Clone or download
Keith.Dan authored 1.0.3
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.en.md

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:keith-dan@live.com

Comments ( 2 )

You need to Sign in for post a comment

Help Search

183227_9af5e6a8_1826025 111910_4d91f001_1826025