test
This commit is contained in:
parent
4c1fb002c1
commit
19df114848
@ -244,7 +244,7 @@ export default function Roof2() {
|
||||
*/
|
||||
const handleSaveCanvas = async () => {
|
||||
// const jsonStr = JSON.stringify(canvas?.toDatalessJSON(['type', 'fontSize']))
|
||||
const jsonObj = canvas?.toDatalessJSON(['type', 'fontSize'])
|
||||
const jsonObj = JSON.stringify(canvas?.toDatalessJSON(['type', 'fontSize', 'lines']))
|
||||
console.log(jsonObj)
|
||||
|
||||
const param = {
|
||||
@ -261,10 +261,9 @@ export default function Roof2() {
|
||||
* canvas 내용 불러오기
|
||||
*/
|
||||
const handleLoadCanvas = async () => {
|
||||
const tests = await getTests()
|
||||
console.log(tests)
|
||||
const canvasStates = await getCanvasState()
|
||||
console.log(canvasStates)
|
||||
console.log(JSON.parse(canvasStates.canvas))
|
||||
canvas?.loadFromJSON(JSON.parse(canvasStates.canvas))
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user