智能照明系统APP-本地串口
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.
 
 
 
 
 
 
LightingSystemApp-serial/.svn/pristine/30/30f8603c226317cfa4c53546af9...

30 lines
805 B

import {
findElmById,
invokeVmMethod,
invokeVmMethodWithoutArgs
} from '../util'
const METHODS = {
getCenterLocation (ctx, cbs) {
return invokeVmMethodWithoutArgs(ctx, 'getCenterLocation', cbs)
},
moveToLocation (ctx, args) {
return invokeVmMethod(ctx, 'moveToLocation', args)
},
translateMarker (ctx, args) {
return invokeVmMethod(ctx, 'translateMarker', args, ['animationEnd'])
},
includePoints (ctx, args) {
return invokeVmMethod(ctx, 'includePoints', args)
},
getRegion (ctx, cbs) {
return invokeVmMethodWithoutArgs(ctx, 'getRegion', cbs)
},
getScale (ctx, cbs) {
return invokeVmMethodWithoutArgs(ctx, 'getScale', cbs)
}
}
export function operateMapPlayer (mapId, pageVm, type, data) {
return METHODS[type](findElmById(mapId, pageVm), data)
}