저장시 properties 추가

db => canvas 시 replace 추가
This commit is contained in:
hyojun.choi 2024-10-28 13:58:37 +09:00
parent 88a1194e1c
commit 74b6792d96

View File

@ -65,6 +65,7 @@ export function usePlan() {
'text',
'pitch',
'uuid',
'originText',
])
const str = JSON.stringify(objs)
@ -144,7 +145,7 @@ export function usePlan() {
* DB에 저장된 데이터를 canvas에서 사용할 있도록 포맷화
*/
const dbToCanvasFormat = (cs) => {
return cs.replace(/##/g, '"').replace(/∠/g, '∠')
return cs.replace(/##/g, '"').replace(/∠/g, '∠').replace(/°/g, '°')
}
/**