mirror of
https://github.com/konvajs/konva.git
synced 2026-01-21 10:31:52 +08:00
Renaming
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"name": "KineticJS",
|
||||
"name": "KonvaJS",
|
||||
"version": "@@version",
|
||||
"authors": [
|
||||
"Eric Rowell", "Anton Lavrenov"
|
||||
],
|
||||
"homepage": "http://lavrton.github.io/KineticJS/",
|
||||
"description": "KineticJS is an HTML5 Canvas JavaScript framework that enables high performance animations, transitions, node nesting, layering, filtering, caching, event handling for desktop and mobile applications, and much more.",
|
||||
"homepage": "http://lavrton.github.io/KonvaJS/",
|
||||
"description": "KonvaJS is an HTML5 Canvas JavaScript framework that enables high performance animations, transitions, node nesting, layering, filtering, caching, event handling for desktop and mobile applications, and much more.",
|
||||
"keywords": [
|
||||
"canvas",
|
||||
"animations",
|
||||
@@ -25,5 +25,5 @@
|
||||
".gitignore",
|
||||
"Gruntfile.js"
|
||||
],
|
||||
"main": "kinetic.min.js"
|
||||
"main": "konva.min.js"
|
||||
}
|
||||
|
||||
@@ -10,9 +10,9 @@
|
||||
"dateFormat" : "ddd MMM Do YYYY",
|
||||
"outputSourceFiles" : true,
|
||||
"outputSourcePath" : true,
|
||||
"systemName" : "KineticJS",
|
||||
"systemName" : "KonvaJS",
|
||||
"footer" : "",
|
||||
"copyright" : "KineticJS Copyright © 2015 The contributors to the KineticJS project.",
|
||||
"copyright" : "KonvaJS Copyright © 2015 The contributors to the KonvaJS project.",
|
||||
"navType" : "vertical",
|
||||
"theme" : "cosmo",
|
||||
"linenums" : true,
|
||||
@@ -21,7 +21,7 @@
|
||||
"highlightTutorialCode" : true,
|
||||
"analytics" : {
|
||||
"ua" : "UA-54202824-2",
|
||||
"domain" : "http://lavrton.github.io/KineticJS"
|
||||
"domain" : "http://lavrton.github.io/KonvaJS"
|
||||
}
|
||||
},
|
||||
"markdown" : {
|
||||
|
||||
@@ -1,23 +1,23 @@
|
||||
var fs = require('fs'),
|
||||
Kinetic = require('./dist/kinetic-dev');
|
||||
Konva = require('./dist/konva-dev');
|
||||
|
||||
|
||||
// Create stage. Container parameter is not required in NodeJS.
|
||||
var stage = new Kinetic.Stage({
|
||||
var stage = new Konva.Stage({
|
||||
width : 100,
|
||||
height : 100
|
||||
});
|
||||
|
||||
var layer = new Kinetic.Layer();
|
||||
var layer = new Konva.Layer();
|
||||
stage.add(layer);
|
||||
var rect = new Kinetic.Rect({
|
||||
var rect = new Konva.Rect({
|
||||
width : 100,
|
||||
height : 100,
|
||||
x : 50,
|
||||
y : 50,
|
||||
fill : 'green'
|
||||
});
|
||||
var text = new Kinetic.Text({
|
||||
var text = new Konva.Text({
|
||||
text : 'Generated inside node js',
|
||||
x : 20,
|
||||
y : 20,
|
||||
@@ -31,7 +31,7 @@ stage.setSize({
|
||||
});
|
||||
|
||||
// check tween works
|
||||
var tween = new Kinetic.Tween({
|
||||
var tween = new Konva.Tween({
|
||||
node : rect,
|
||||
duration : 1,
|
||||
x : -50
|
||||
@@ -43,9 +43,9 @@ setTimeout(function(){
|
||||
stage.toDataURL({
|
||||
callback: function(data){
|
||||
// Then add result to stage
|
||||
var img = new Kinetic.window.Image();
|
||||
var img = new Konva.window.Image();
|
||||
img.onload = function() {
|
||||
var image = new Kinetic.Image({
|
||||
var image = new Konva.Image({
|
||||
image : img,
|
||||
x : 10,
|
||||
y : 50
|
||||
|
||||
Reference in New Issue
Block a user