import { TypeConfig , TypeConfigStrict } from '@idraw/types' ; import util from '@idraw/util' ; const defaultConfig = { elementWrapper : { color : '#2ab6f1' , lockColor : '#aaaaaa' , controllerSize : 6 , lineWidth : 1 , lineDash : [ 4 , 3 ] , } } ; function mergeConfig ( config ? ) { const result = util . data . deepClone ( defaultConfig ) ; if ( config ) { if ( config . elementWrapper ) { result . elementWrapper = { ... result . elementWrapper , ... config . elementWrapper } ; } } return result ; } export { mergeConfig , } ;