Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
陈庄旺
uni-app
提交
2bb85994
U
uni-app
项目概览
陈庄旺
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2bb85994
编写于
7月 23, 2021
作者:
D
DCloud_LXH
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: canvas
上级
cca496f3
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
88 addition
and
194 deletion
+88
-194
packages/uni-api/src/service/context/canvas.ts
packages/uni-api/src/service/context/canvas.ts
+5
-5
packages/uni-h5/dist/uni-h5.cjs.js
packages/uni-h5/dist/uni-h5.cjs.js
+17
-70
packages/uni-h5/dist/uni-h5.es.js
packages/uni-h5/dist/uni-h5.es.js
+66
-119
未找到文件。
packages/uni-api/src/service/context/canvas.ts
浏览文件 @
2bb85994
...
...
@@ -42,10 +42,8 @@ function operateCanvas(
pageId
:
number
,
type
:
unknown
,
data
:
any
,
callback
:
Callback
callback
?
:
Callback
)
{
try
{
}
catch
(
error
)
{}
UniServiceJSBridge
.
invokeViewMethod
<
{},
Record
<
string
,
any
>>
(
`canvas.
${
canvasId
}
`
,
{
...
...
@@ -53,7 +51,9 @@ function operateCanvas(
data
,
},
pageId
,
(
data
)
=>
callback
(
data
)
(
data
)
=>
{
if
(
callback
)
callback
(
data
)
}
)
}
//#endregion
...
...
@@ -389,7 +389,7 @@ export class CanvasContext implements UniApp.CanvasContext {
}
}
draw
(
reserve
:
boolean
=
false
,
callback
:
Callback
)
{
draw
(
reserve
:
boolean
=
false
,
callback
?
:
Callback
)
{
var
actions
=
[...
this
.
actions
]
this
.
actions
=
[]
this
.
path
=
[]
...
...
packages/uni-h5/dist/uni-h5.cjs.js
浏览文件 @
2bb85994
...
...
@@ -548,34 +548,6 @@ function getRealRoute(fromRoute, toRoute) {
fromRouteArray
.
splice
(
fromRouteArray
.
length
-
i
-
1
,
i
+
1
);
return
"
/
"
+
fromRouteArray
.
concat
(
toRouteArray
).
join
(
"
/
"
);
}
const
callbacks
=
{};
function
createCallbacks
(
namespace
)
{
let
scopedCallbacks
=
callbacks
[
namespace
];
if
(
!
scopedCallbacks
)
{
scopedCallbacks
=
{
id
:
1
,
callbacks
:
Object
.
create
(
null
)
};
callbacks
[
namespace
]
=
scopedCallbacks
;
}
return
{
get
(
id
)
{
return
scopedCallbacks
.
callbacks
[
id
];
},
pop
(
id
)
{
const
callback
=
scopedCallbacks
.
callbacks
[
id
];
if
(
callback
)
{
delete
scopedCallbacks
.
callbacks
[
id
];
}
return
callback
;
},
push
(
callback
)
{
const
id
=
scopedCallbacks
.
id
++
;
scopedCallbacks
.
callbacks
[
id
]
=
callback
;
return
id
;
}
};
}
function
findUniTarget
(
target
)
{
while
(
target
&&
target
.
tagName
.
indexOf
(
"
UNI-
"
)
!==
0
)
{
target
=
target
.
parentElement
;
...
...
@@ -1410,7 +1382,6 @@ function defineSyncApi(name, fn, protocol, options) {
function
defineAsyncApi
(
name
,
fn
,
protocol
,
options
)
{
return
promisify
(
wrapperAsyncApi
(
name
,
fn
,
process
.
env
.
NODE_ENV
!==
"
production
"
?
protocol
:
void
0
,
options
));
}
createCallbacks
(
"
canvasEvent
"
);
const
API_ON_TAB_BAR_MID_BUTTON_TAP
=
"
onTabBarMidButtonTap
"
;
const
API_GET_STORAGE
=
"
getStorage
"
;
const
GetStorageProtocol
=
{
...
...
@@ -1838,14 +1809,13 @@ function useMethods(canvasRef, actionsWaiting) {
}
function
actionsChanged
({
actions
,
reserve
,
callbackId
reserve
},
resolve
)
{
if
(
!
actions
)
{
return
;
}
if
(
actionsWaiting
.
value
)
{
_actionsDefer
.
push
([
actions
,
reserve
,
callbackId
]);
_actionsDefer
.
push
([
actions
,
reserve
]);
return
;
}
var
canvas
=
canvasRef
.
value
;
...
...
@@ -1891,7 +1861,7 @@ function useMethods(canvasRef, actionsWaiting) {
});
color
=
LinearGradient
;
}
else
if
(
data
[
0
]
===
"
pattern
"
)
{
const
loaded
=
checkImageLoaded
(
data
[
1
],
actions
.
slice
(
index2
+
1
),
callbackId
,
resolve
,
function
(
image
)
{
const
loaded
=
checkImageLoaded
(
data
[
1
],
actions
.
slice
(
index2
+
1
),
resolve
,
function
(
image
)
{
if
(
image
)
{
c2d
[
method1
]
=
c2d
.
createPattern
(
image
,
data
[
2
]);
}
...
...
@@ -1940,7 +1910,7 @@ function useMethods(canvasRef, actionsWaiting) {
var
url
=
dataArray
[
0
];
var
otherData
=
dataArray
.
slice
(
1
);
_images
=
_images
||
{};
if
(
checkImageLoaded
(
url
,
actions
.
slice
(
index2
+
1
),
callbackId
,
resolve
,
function
(
image
)
{
if
(
checkImageLoaded
(
url
,
actions
.
slice
(
index2
+
1
),
resolve
,
function
(
image
)
{
if
(
image
)
{
c2d
.
drawImage
.
apply
(
c2d
,
[
image
].
concat
([...
otherData
.
slice
(
4
,
8
)],
[...
otherData
.
slice
(
0
,
4
)]));
}
...
...
@@ -1961,12 +1931,9 @@ function useMethods(canvasRef, actionsWaiting) {
}
}
}
if
(
!
actionsWaiting
.
value
&&
callbackId
)
{
if
(
!
actionsWaiting
.
value
)
{
resolve
({
callbackId
,
data
:
{
errMsg
:
"
drawCanvas:ok
"
}
errMsg
:
"
drawCanvas:ok
"
});
}
}
...
...
@@ -2000,7 +1967,7 @@ function useMethods(canvasRef, actionsWaiting) {
}
});
}
function
checkImageLoaded
(
src
,
actions
,
callbackId
,
resolve
,
fn
)
{
function
checkImageLoaded
(
src
,
actions
,
resolve
,
fn
)
{
var
image
=
_images
[
src
];
if
(
image
.
ready
)
{
fn
(
image
);
...
...
@@ -2016,7 +1983,6 @@ function useMethods(canvasRef, actionsWaiting) {
_actionsDefer
=
[];
for
(
var
action
=
actions2
.
shift
();
action
;
)
{
actionsChanged
({
callbackId
,
actions
:
action
[
0
],
reserve
:
action
[
1
]
},
resolve
);
...
...
@@ -2036,8 +2002,7 @@ function useMethods(canvasRef, actionsWaiting) {
hidpi
=
true
,
dataType
:
dataType2
,
quality
=
1
,
type
=
"
png
"
,
callbackId
type
=
"
png
"
},
resolve
)
{
const
canvas
=
canvasRef
.
value
;
let
data
;
...
...
@@ -2081,7 +2046,6 @@ function useMethods(canvasRef, actionsWaiting) {
}
}
result
=
{
errMsg
:
"
canvasGetImageData:ok
"
,
data
,
compressed
,
width
:
destWidth
,
...
...
@@ -2094,13 +2058,10 @@ function useMethods(canvasRef, actionsWaiting) {
}
newCanvas
.
height
=
newCanvas
.
width
=
0
;
context
.
__hidpi__
=
false
;
if
(
!
callbackId
)
{
if
(
!
resolve
)
{
return
result
;
}
else
{
resolve
&&
resolve
({
callbackId
,
data
:
result
});
resolve
(
result
);
}
}
function
putImageData
({
...
...
@@ -2109,8 +2070,7 @@ function useMethods(canvasRef, actionsWaiting) {
y
,
width
,
height
,
compressed
,
callbackId
compressed
},
resolve
)
{
try
{
if
(
!
height
)
{
...
...
@@ -2125,18 +2085,12 @@ function useMethods(canvasRef, actionsWaiting) {
canvas
.
height
=
canvas
.
width
=
0
;
}
catch
(
error
)
{
resolve
({
callbackId
,
data
:
{
errMsg
:
"
canvasPutImageData:fail
"
}
errMsg
:
"
canvasPutImageData:fail
"
});
return
;
}
resolve
({
callbackId
,
data
:
{
errMsg
:
"
canvasPutImageData:ok
"
}
errMsg
:
"
canvasPutImageData:ok
"
});
}
function
toTempFilePath
({
...
...
@@ -2148,8 +2102,7 @@ function useMethods(canvasRef, actionsWaiting) {
destHeight
,
fileType
,
quality
,
dirname
,
callbackId
dirname
},
resolve
)
{
const
res
=
getImageData
({
x
,
...
...
@@ -2165,10 +2118,7 @@ function useMethods(canvasRef, actionsWaiting) {
});
if
(
!
res
.
data
||
!
res
.
data
.
length
)
{
resolve
({
callbackId
,
data
:
{
errMsg
:
res
.
errMsg
.
replace
(
"
canvasPutImageData
"
,
"
toTempFilePath
"
)
}
errMsg
:
res
.
errMsg
.
replace
(
"
canvasPutImageData
"
,
"
toTempFilePath
"
)
});
return
;
}
...
...
@@ -2178,11 +2128,8 @@ function useMethods(canvasRef, actionsWaiting) {
errMsg
+=
`
${
error
.
message
}
`
;
}
resolve
({
callbackId
,
data
:
{
errMsg
,
tempFilePath
}
errMsg
,
tempFilePath
});
});
}
...
...
packages/uni-h5/dist/uni-h5.es.js
浏览文件 @
2bb85994
...
...
@@ -744,14 +744,14 @@ function attrChange(attr2) {
style[attr3] = elementComputedStyle[attr3];
});
changeAttrs.length = 0;
callbacks$
2
.forEach(function(callback) {
callbacks$
1
.forEach(function(callback) {
callback(style);
});
}, 0);
}
changeAttrs.push(attr2);
}
var callbacks$
2
= [];
var callbacks$
1
= [];
function onChange(callback) {
if (!getSupport()) {
return;
...
...
@@ -760,13 +760,13 @@ function onChange(callback) {
init();
}
if (typeof callback === "function") {
callbacks$
2
.push(callback);
callbacks$
1
.push(callback);
}
}
function offChange(callback) {
var index2 = callbacks$
2
.indexOf(callback);
var index2 = callbacks$
1
.indexOf(callback);
if (index2 >= 0) {
callbacks$
2
.splice(index2, 1);
callbacks$
1
.splice(index2, 1);
}
}
var safeAreaInsets = {
...
...
@@ -788,7 +788,7 @@ var safeAreaInsets = {
onChange,
offChange
};
var out = safeAreaInsets;
var
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out = safeAreaInsets;
const onEventPrevent = /* @__PURE__ */ withModifiers(() => {
}, ["prevent"]);
const onEventStop = /* @__PURE__ */ withModifiers(() => {
...
...
@@ -800,10 +800,10 @@ function getWindowOffset() {
const left = parseInt(style.getPropertyValue("--window-left"));
const right = parseInt(style.getPropertyValue("--window-right"));
return {
top: top ? top + out.top : 0,
bottom: bottom ? bottom + out.bottom : 0,
left: left ? left + out.left : 0,
right: right ? right + out.right : 0
top: top ? top +
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.top : 0,
bottom: bottom ? bottom +
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.bottom : 0,
left: left ? left +
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.left : 0,
right: right ? right +
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.right : 0
};
}
function updateCssVar(cssVars) {
...
...
@@ -1083,34 +1083,6 @@ function getRouteOptions(path, alias = false) {
}
return __uniRoutes.find((route) => route.path === path);
}
const callbacks$1 = {};
function createCallbacks(namespace) {
let scopedCallbacks = callbacks$1[namespace];
if (!scopedCallbacks) {
scopedCallbacks = {
id: 1,
callbacks: Object.create(null)
};
callbacks$1[namespace] = scopedCallbacks;
}
return {
get(id2) {
return scopedCallbacks.callbacks[id2];
},
pop(id2) {
const callback = scopedCallbacks.callbacks[id2];
if (callback) {
delete scopedCallbacks.callbacks[id2];
}
return callback;
},
push(callback) {
const id2 = scopedCallbacks.id++;
scopedCallbacks.callbacks[id2] = callback;
return id2;
}
};
}
const isClickEvent = (val) => val.type === "click";
const isMouseEvent = (val) => val.type.indexOf("mouse") === 0;
function $nne(evt) {
...
...
@@ -3075,16 +3047,13 @@ const CanvasToTempFilePathProtocol = {
fileType: String,
quality: Number
};
const canvasEventCallbacks = createCallbacks("canvasEvent");
function operateCanvas(canvasId, pageId, type, data) {
function operateCanvas(canvasId, pageId, type, data, callback) {
UniServiceJSBridge.invokeViewMethod(`canvas.${canvasId}`, {
type,
data
}, pageId, ({ callbackId, data: data2 }) => {
const callback = canvasEventCallbacks.pop(callbackId);
if (callback) {
}, pageId, (data2) => {
if (callback)
callback(data2);
}
});
}
var methods1 = ["scale", "rotate", "translate", "setTransform", "transform"];
...
...
@@ -3356,15 +3325,10 @@ class CanvasContext {
var actions = [...this.actions];
this.actions = [];
this.path = [];
var callbackId;
if (typeof callback === "function") {
callbackId = canvasEventCallbacks.push(callback);
}
operateCanvas(this.id, this.pageId, "actionsChanged", {
actions,
reserve,
callbackId
});
reserve
}, callback);
}
createLinearGradient(x0, y0, x1, y1) {
return new CanvasGradient("linear", [x0, y0, x1, y1]);
...
...
@@ -3821,20 +3785,23 @@ const canvasGetImageData = /* @__PURE__ */ defineAsyncApi(API_CANVAS_GET_IMAGE_D
reject();
return;
}
const cId = canvasEventCallbacks.push(function(data) {
function callback(data) {
if (data.errMsg && data.errMsg.indexOf("fail") !== -1) {
reject("", data);
return;
}
let imgData = data.data;
if (imgData && imgData.length) {
data.data = new Uint8ClampedArray(imgData);
}
resolve(data);
}
);
}
operateCanvas(canvasId, pageId, "getImageData", {
x,
y,
width,
height,
callbackId: cId
});
height
}, callback);
}, CanvasGetImageDataProtocol, CanvasGetImageDataOptions);
const canvasPutImageData = /* @__PURE__ */ defineAsyncApi(API_CANVAS_PUT_IMAGE_DATA, ({ canvasId, data, x, y, width, height }, { resolve, reject }) => {
var pageId = getPageIdByVm(getCurrentPageVm());
...
...
@@ -3842,9 +3809,6 @@ const canvasPutImageData = /* @__PURE__ */ defineAsyncApi(API_CANVAS_PUT_IMAGE_D
reject();
return;
}
const cId = canvasEventCallbacks.push(function(data2) {
resolve(data2);
});
let compressed;
const operate = () => {
operateCanvas(canvasId, pageId, "putImageData", {
...
...
@@ -3853,8 +3817,13 @@ const canvasPutImageData = /* @__PURE__ */ defineAsyncApi(API_CANVAS_PUT_IMAGE_D
y,
width,
height,
compressed,
callbackId: cId
compressed
}, (data2) => {
if (data2.errMsg && data2.errMsg.indexOf("fail")) {
reject();
return;
}
resolve(data2);
});
};
data = Array.prototype.slice.call(data);
...
...
@@ -3876,9 +3845,6 @@ const canvasToTempFilePath = /* @__PURE__ */ defineAsyncApi(API_CANVAS_TO_TEMP_F
reject();
return;
}
const cId = canvasEventCallbacks.push(function(res) {
resolve(res);
});
const dirname = `${TEMP_PATH}/canvas`;
operateCanvas(canvasId, pageId, "toTempFilePath", {
x,
...
...
@@ -3889,8 +3855,13 @@ const canvasToTempFilePath = /* @__PURE__ */ defineAsyncApi(API_CANVAS_TO_TEMP_F
destHeight,
fileType,
quality,
dirname,
callbackId: cId
dirname
}, (res) => {
if (res.errMsg && res.errMsg.indexOf("fail")) {
reject("", res);
return;
}
resolve(res);
});
}, CanvasToTempFilePathProtocol, CanvasToTempFilePathOptions);
const innerAudioContextEventNames = [
...
...
@@ -6239,14 +6210,13 @@ function useMethods(canvasRef, actionsWaiting) {
}
function actionsChanged({
actions,
reserve,
callbackId
reserve
}, resolve) {
if (!actions) {
return;
}
if (actionsWaiting.value) {
_actionsDefer.push([actions, reserve
, callbackId
]);
_actionsDefer.push([actions, reserve]);
return;
}
var canvas = canvasRef.value;
...
...
@@ -6292,7 +6262,7 @@ function useMethods(canvasRef, actionsWaiting) {
});
color = LinearGradient;
} else if (data[0] === "pattern") {
const loaded = checkImageLoaded(data[1], actions.slice(index2 + 1),
callbackId,
resolve, function(image2) {
const loaded = checkImageLoaded(data[1], actions.slice(index2 + 1), resolve, function(image2) {
if (image2) {
c2d[method1] = c2d.createPattern(image2, data[2]);
}
...
...
@@ -6341,7 +6311,7 @@ function useMethods(canvasRef, actionsWaiting) {
var url = dataArray[0];
var otherData = dataArray.slice(1);
_images = _images || {};
if (checkImageLoaded(url, actions.slice(index2 + 1),
callbackId,
resolve, function(image2) {
if (checkImageLoaded(url, actions.slice(index2 + 1), resolve, function(image2) {
if (image2) {
c2d.drawImage.apply(c2d, [image2].concat([...otherData.slice(4, 8)], [...otherData.slice(0, 4)]));
}
...
...
@@ -6362,12 +6332,9 @@ function useMethods(canvasRef, actionsWaiting) {
}
}
}
if (!actionsWaiting.value
&& callbackId
) {
if (!actionsWaiting.value) {
resolve({
callbackId,
data: {
errMsg: "drawCanvas:ok"
}
errMsg: "drawCanvas:ok"
});
}
}
...
...
@@ -6401,7 +6368,7 @@ function useMethods(canvasRef, actionsWaiting) {
}
});
}
function checkImageLoaded(src, actions,
callbackId,
resolve, fn) {
function checkImageLoaded(src, actions, resolve, fn) {
var image2 = _images[src];
if (image2.ready) {
fn(image2);
...
...
@@ -6417,7 +6384,6 @@ function useMethods(canvasRef, actionsWaiting) {
_actionsDefer = [];
for (var action = actions2.shift(); action; ) {
actionsChanged({
callbackId,
actions: action[0],
reserve: action[1]
}, resolve);
...
...
@@ -6437,8 +6403,7 @@ function useMethods(canvasRef, actionsWaiting) {
hidpi = true,
dataType: dataType2,
quality = 1,
type = "png",
callbackId
type = "png"
}, resolve) {
const canvas = canvasRef.value;
let data;
...
...
@@ -6482,7 +6447,6 @@ function useMethods(canvasRef, actionsWaiting) {
}
}
result = {
errMsg: "canvasGetImageData:ok",
data,
compressed,
width: destWidth,
...
...
@@ -6495,13 +6459,10 @@ function useMethods(canvasRef, actionsWaiting) {
}
newCanvas.height = newCanvas.width = 0;
context.__hidpi__ = false;
if (!
callbackId
) {
if (!
resolve
) {
return result;
} else {
resolve && resolve({
callbackId,
data: result
});
resolve(result);
}
}
function putImageData({
...
...
@@ -6510,8 +6471,7 @@ function useMethods(canvasRef, actionsWaiting) {
y,
width,
height,
compressed,
callbackId
compressed
}, resolve) {
try {
if (!height) {
...
...
@@ -6526,18 +6486,12 @@ function useMethods(canvasRef, actionsWaiting) {
canvas.height = canvas.width = 0;
} catch (error) {
resolve({
callbackId,
data: {
errMsg: "canvasPutImageData:fail"
}
errMsg: "canvasPutImageData:fail"
});
return;
}
resolve({
callbackId,
data: {
errMsg: "canvasPutImageData:ok"
}
errMsg: "canvasPutImageData:ok"
});
}
function toTempFilePath({
...
...
@@ -6549,8 +6503,7 @@ function useMethods(canvasRef, actionsWaiting) {
destHeight,
fileType,
quality,
dirname,
callbackId
dirname
}, resolve) {
const res = getImageData({
x,
...
...
@@ -6566,10 +6519,7 @@ function useMethods(canvasRef, actionsWaiting) {
});
if (!res.data || !res.data.length) {
resolve({
callbackId,
data: {
errMsg: res.errMsg.replace("canvasPutImageData", "toTempFilePath")
}
errMsg: res.errMsg.replace("canvasPutImageData", "toTempFilePath")
});
return;
}
...
...
@@ -6579,11 +6529,8 @@ function useMethods(canvasRef, actionsWaiting) {
errMsg += ` ${error.message}`;
}
resolve({
callbackId,
data: {
errMsg,
tempFilePath
}
errMsg,
tempFilePath
});
});
}
...
...
@@ -13227,7 +13174,7 @@ function normalizePageMeta(pageMeta) {
}, pageMeta.pullToRefresh));
const { type, style } = navigationBar;
if (style !== "custom" && type !== "transparent") {
pullToRefresh.offset += NAVBAR_HEIGHT + out.top;
pullToRefresh.offset += NAVBAR_HEIGHT +
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.top;
}
pageMeta.pullToRefresh = pullToRefresh;
}
...
...
@@ -15413,7 +15360,7 @@ const getSystemInfoSync = /* @__PURE__ */ defineSyncApi("getSystemInfoSync", ()
const windowWidth = getWindowWidth(screenWidth);
let windowHeight = window.innerHeight;
const language = navigator.language;
const statusBarHeight = out.top;
const statusBarHeight =
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.top;
let osname;
let osversion;
let model;
...
...
@@ -15526,12 +15473,12 @@ const getSystemInfoSync = /* @__PURE__ */ defineSyncApi("getSystemInfoSync", ()
const system = `${osname} ${osversion}`;
const platform = osname.toLocaleLowerCase();
const safeArea = {
left: out.left,
right: windowWidth - out.right,
top: out.top,
bottom: windowHeight - out.bottom,
width: windowWidth -
out.left -
out.right,
height: windowHeight -
out.top -
out.bottom
left:
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.left,
right: windowWidth -
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.right,
top:
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.top,
bottom: windowHeight -
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.bottom,
width: windowWidth -
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_out.left - D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.right,
height: windowHeight -
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_out.top - D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.bottom
};
const { top: windowTop, bottom: windowBottom } = getWindowOffset();
windowHeight -= windowTop;
...
...
@@ -15551,10 +15498,10 @@ const getSystemInfoSync = /* @__PURE__ */ defineSyncApi("getSystemInfoSync", ()
model,
safeArea,
safeAreaInsets: {
top: out.top,
right: out.right,
bottom: out.bottom,
left: out.left
top:
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.top,
right:
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.right,
bottom:
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.bottom,
left:
D__DCloud_local_git_uniAppNext_node_modules_safeAreaInsets_
out.left
}
};
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录