You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
import Konva from "konva";
|
|
|
|
const container=function (width=0,height=0,container){
|
|
const stage = new Konva.Stage({
|
|
container: container,
|
|
width: width,
|
|
height: height,
|
|
});
|
|
|
|
const layer = new Konva.Layer();
|
|
stage.add(layer)
|
|
layer.draw();
|
|
|
|
return {
|
|
stage,layer
|
|
}
|
|
}
|
|
|
|
export default container
|