提交 bda2345c 编写于 作者: 雪洛's avatar 雪洛

feat(harmony): 支持MapContext

上级 c981bf4a
...@@ -6,3 +6,4 @@ export { getEnv } from './env' ...@@ -6,3 +6,4 @@ export { getEnv } from './env'
export * from './getRealPath' export * from './getRealPath'
export * from './todo' export * from './todo'
export { operateVideoPlayer } from '@dcloudio/uni-h5/service/api/context/operateVideoPlayer' export { operateVideoPlayer } from '@dcloudio/uni-h5/service/api/context/operateVideoPlayer'
export { operateMap } from '../service/api/context/operateMap'
...@@ -25,16 +25,6 @@ export function operateVideoPlayer( ...@@ -25,16 +25,6 @@ export function operateVideoPlayer(
// TODO: Implement // TODO: Implement
} }
export function operateMap(
id: string,
pageId: number,
type: string,
data?: unknown,
operateMapCallback?: (res: any) => void
) {
// TODO: Implement
}
export const TEMP_PATH = '' // TODO 需要从applicationContext获取 export const TEMP_PATH = '' // TODO 需要从applicationContext获取
export function addMediaQueryObserver( export function addMediaQueryObserver(
......
export function operateMap(
id: string,
pageId: number,
type: string,
data?: unknown,
operateMapCallback?: (res: any) => void
) {
UniServiceJSBridge.invokeViewMethod(
'map.' + id,
{
type,
data,
},
pageId,
operateMapCallback
)
}
...@@ -25,6 +25,7 @@ export { ...@@ -25,6 +25,7 @@ export {
setLocale, setLocale,
getLocale, getLocale,
onLocaleChange, onLocaleChange,
createMapContext,
createCanvasContext, createCanvasContext,
canvasGetImageData, canvasGetImageData,
canvasPutImageData, canvasPutImageData,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册