vue3-grid-layout-next
Advanced tools
Comparing version
{ | ||
"name": "vue3-grid-layout-next", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "A draggable and resizable grid layout, as a Vue component.", |
123
src/test.ts
@@ -0,57 +1,70 @@ | ||
// export const testData = [ | ||
// { | ||
// x: 0, | ||
// y: 0, | ||
// w: 2, | ||
// h: 2, | ||
// i: "0", | ||
// resizable: true, | ||
// draggable: true, | ||
// static: false, | ||
// minY: 0, | ||
// maxY: 2 | ||
// }, | ||
// {x: 2, y: 0, w: 2, h: 4, i: "1", resizable: null, draggable: null, static: true}, | ||
// { | ||
// x: 4, | ||
// y: 0, | ||
// w: 2, | ||
// h: 5, | ||
// i: "2", | ||
// resizable: false, | ||
// draggable: false, | ||
// static: false, | ||
// minX: 4, | ||
// maxX: 4, | ||
// minW: 2, | ||
// maxW: 2, | ||
// preserveAspectRatio: true | ||
// }, | ||
// { | ||
// x: 6, | ||
// y: 0, | ||
// w: 2, | ||
// h: 3, | ||
// i: "3", | ||
// resizable: false, | ||
// draggable: false, | ||
// static: false, | ||
// preserveAspectRatio: true | ||
// }, | ||
// {x: 8, y: 0, w: 2, h: 3, i: "4", resizable: false, draggable: false, static: false}, | ||
// {x: 10, y: 0, w: 2, h: 3, i: "5", resizable: false, draggable: false, static: false}, | ||
// {x: 0, y: 5, w: 2, h: 5, i: "6", resizable: false, draggable: false, static: false}, | ||
// {x: 2, y: 5, w: 2, h: 5, i: "7", resizable: false, draggable: false, static: false}, | ||
// {x: 4, y: 5, w: 2, h: 5, i: "8", resizable: false, draggable: false, static: false}, | ||
// {x: 6, y: 3, w: 2, h: 4, i: "9", resizable: false, draggable: false, static: true}, | ||
// {x: 8, y: 4, w: 2, h: 4, i: "10", resizable: false, draggable: false, static: false}, | ||
// {x: 10, y: 4, w: 2, h: 4, i: "11", resizable: false, draggable: false, static: false, minY: 4}, | ||
// {x: 0, y: 10, w: 2, h: 5, i: "12", resizable: false, draggable: false, static: false}, | ||
// {x: 2, y: 10, w: 2, h: 5, i: "13", resizable: false, draggable: false, static: false}, | ||
// {x: 4, y: 8, w: 2, h: 4, i: "14", resizable: false, draggable: false, static: false}, | ||
// {x: 6, y: 8, w: 2, h: 4, i: "15", resizable: false, draggable: false, static: false}, | ||
// {x: 8, y: 10, w: 2, h: 5, i: "16", resizable: false, draggable: false, static: false}, | ||
// {x: 10, y: 4, w: 2, h: 2, i: "17", resizable: false, draggable: false, static: false}, | ||
// {x: 0, y: 9, w: 2, h: 3, i: "18", resizable: false, draggable: false, static: false}, | ||
// {x: 2, y: 6, w: 2, h: 2, i: "19", resizable: false, draggable: false, static: false} | ||
// ] | ||
export const testData = [ | ||
{ | ||
x: 0, | ||
y: 0, | ||
w: 2, | ||
h: 2, | ||
i: "0", | ||
resizable: true, | ||
draggable: true, | ||
static: false, | ||
minY: 0, | ||
maxY: 2 | ||
}, | ||
{x: 2, y: 0, w: 2, h: 4, i: "1", resizable: null, draggable: null, static: true}, | ||
{ | ||
x: 4, | ||
y: 0, | ||
w: 2, | ||
h: 5, | ||
i: "2", | ||
resizable: false, | ||
draggable: false, | ||
static: false, | ||
minX: 4, | ||
maxX: 4, | ||
minW: 2, | ||
maxW: 2, | ||
preserveAspectRatio: true | ||
}, | ||
{ | ||
x: 6, | ||
y: 0, | ||
w: 2, | ||
h: 3, | ||
i: "3", | ||
resizable: false, | ||
draggable: false, | ||
static: false, | ||
preserveAspectRatio: true | ||
}, | ||
{x: 8, y: 0, w: 2, h: 3, i: "4", resizable: false, draggable: false, static: false}, | ||
{x: 10, y: 0, w: 2, h: 3, i: "5", resizable: false, draggable: false, static: false}, | ||
{x: 0, y: 5, w: 2, h: 5, i: "6", resizable: false, draggable: false, static: false}, | ||
{x: 2, y: 5, w: 2, h: 5, i: "7", resizable: false, draggable: false, static: false}, | ||
{x: 4, y: 5, w: 2, h: 5, i: "8", resizable: false, draggable: false, static: false}, | ||
{x: 6, y: 3, w: 2, h: 4, i: "9", resizable: false, draggable: false, static: true}, | ||
{x: 8, y: 4, w: 2, h: 4, i: "10", resizable: false, draggable: false, static: false}, | ||
{x: 10, y: 4, w: 2, h: 4, i: "11", resizable: false, draggable: false, static: false, minY: 4}, | ||
{x: 0, y: 10, w: 2, h: 5, i: "12", resizable: false, draggable: false, static: false}, | ||
{x: 2, y: 10, w: 2, h: 5, i: "13", resizable: false, draggable: false, static: false}, | ||
{x: 4, y: 8, w: 2, h: 4, i: "14", resizable: false, draggable: false, static: false}, | ||
{x: 6, y: 8, w: 2, h: 4, i: "15", resizable: false, draggable: false, static: false}, | ||
{x: 8, y: 10, w: 2, h: 5, i: "16", resizable: false, draggable: false, static: false}, | ||
{x: 10, y: 4, w: 2, h: 2, i: "17", resizable: false, draggable: false, static: false}, | ||
{x: 0, y: 9, w: 2, h: 3, i: "18", resizable: false, draggable: false, static: false}, | ||
{x: 2, y: 6, w: 2, h: 2, i: "19", resizable: false, draggable: false, static: false} | ||
{x: 0, y: 0, w: 2, h: 2, i: "0"}, | ||
{x: 2, y: 0, w: 2, h: 4, i: "1"}, | ||
{x: 4, y: 0, w: 2, h: 5, i: "2"}, | ||
{x: 6, y: 0, w: 2, h: 3, i: "3"}, | ||
{x: 8, y: 0, w: 2, h: 3, i: "4"}, | ||
{x: 10, y: 0, w: 2, h: 3, i: "5"}, | ||
{x: 0, y: 5, w: 2, h: 5, i: "6"}, | ||
{x: 2, y: 5, w: 2, h: 5, i: "7"}, | ||
{x: 4, y: 5, w: 2, h: 5, i: "8"}, | ||
{x: 5, y: 10, w: 4, h: 3, i: "9"} | ||
] |
Sorry, the diff of this file is not supported yet
7186
0.17%374007
-0.06%