import { picassoWebCode } from './web' ; import { picassoWeappCode } from './weapp' ; import { picassoRNCode } from './reactnative' ; import { Layer , } from './types' ; import { CodeType } from '../../sketch-dsl/src' ; export const picassoCode = ( data , size , platform = CodeType . WebPx ) => { switch ( platform ) { case CodeType . WebPx : return picassoWebCode ( data , size ) ; case CodeType . Weapp : return picassoWeappCode ( data , size ) ; case CodeType . ReactNative : return picassoRNCode ( data , size ) ; default : break ; } } ; export * from './web' ; export * from './weapp' ; export * from './reactnative' ;