mirror of
https://github.com/openharmony/ace_ace_engine.git
synced 2026-07-21 01:45:30 -04:00
修改position, offset不支持单个变量、gauge strokewidth仅支持数字
Signed-off-by: xiexiyun <xiexiyun@huawei.com> Change-Id: I200831523c9a99c9118c60850881760237edbfed
This commit is contained in:
@@ -139,7 +139,7 @@ void JSGauge::SetColors(const JSCallbackInfo& info)
|
||||
|
||||
void JSGauge::SetStrokeWidth(const JSCallbackInfo& info)
|
||||
{
|
||||
if (info.Length() < 1 && !info[0]->IsNumber()) {
|
||||
if (info.Length() < 1) {
|
||||
LOGE(" JSGauge::SetStrokeWidth::The info is wrong, it is supposed to have atleast 1 arguments");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -372,7 +372,7 @@ bool ParseLocationProps(const JSCallbackInfo& info, AnimatableDimension& x, Anim
|
||||
JSRef<JSObject> sizeObj = JSRef<JSObject>::Cast(info[0]);
|
||||
JSRef<JSVal> xVal = sizeObj->GetProperty("x");
|
||||
JSRef<JSVal> yVal = sizeObj->GetProperty("y");
|
||||
if (JSViewAbstract::ParseJsAnimatableDimensionVp(xVal, x) &&
|
||||
if (JSViewAbstract::ParseJsAnimatableDimensionVp(xVal, x) ||
|
||||
JSViewAbstract::ParseJsAnimatableDimensionVp(yVal, y)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user