mirror of
https://github.com/konvajs/konva.git
synced 2025-09-18 18:27:58 +08:00
moved Path to Plugins namespace
This commit is contained in:
@@ -528,7 +528,7 @@ Test.Modules.CONTAINER = {
|
||||
data: "M 10,10 300,150 550,150"
|
||||
});
|
||||
|
||||
var path = new Kinetic.Path({
|
||||
var path = new Kinetic.Plugins.Path({
|
||||
x: 200,
|
||||
y: -75,
|
||||
data: 'M200,100h100v50z',
|
||||
|
@@ -1,5 +1,5 @@
|
||||
Test.Modules.LABEL = {
|
||||
'*add label': function(containerId) {
|
||||
'add label': function(containerId) {
|
||||
var stage = new Kinetic.Stage({
|
||||
container: containerId,
|
||||
width: 578,
|
||||
|
File diff suppressed because one or more lines are too long
@@ -13,7 +13,7 @@ Test.Modules['TEXT PATH'] = {
|
||||
|
||||
var c = "M 10,10 300,150";
|
||||
|
||||
var path = new Kinetic.Path({
|
||||
var path = new Kinetic.Plugins.Path({
|
||||
stroke: 'red',
|
||||
strokeWidth: 1,
|
||||
data: c
|
||||
@@ -47,7 +47,7 @@ Test.Modules['TEXT PATH'] = {
|
||||
var layer = new Kinetic.Layer();
|
||||
|
||||
var c = "M10,10 C0,0 10,150 100,100 S300,150 400,50";
|
||||
var path = new Kinetic.Path({
|
||||
var path = new Kinetic.Plugins.Path({
|
||||
stroke: 'red',
|
||||
strokeWidth: 1,
|
||||
data: c
|
||||
@@ -82,7 +82,7 @@ Test.Modules['TEXT PATH'] = {
|
||||
var layer = new Kinetic.Layer();
|
||||
|
||||
var c = "M 250,100 A 100 50 30 1 0 150 150";
|
||||
var path = new Kinetic.Path({
|
||||
var path = new Kinetic.Plugins.Path({
|
||||
stroke: 'red',
|
||||
strokeWidth: 1,
|
||||
data: c
|
||||
|
Reference in New Issue
Block a user