Home
last modified time | relevance | path

Searched refs:dash (Results 1 - 8 of 8) sorted by relevance

/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/
H A Djsi_chart_bridge.cpp292 std::vector<std::string> dash; in ParseTextInfoAndSegmentInfo() local
293 StringUtils::StringSplitter(valStr, ',', dash); in ParseTextInfoAndSegmentInfo()
294 if (!dash.empty()) { in ParseTextInfoAndSegmentInfo()
295 segmentInfo.SetLineType(dash[0] == "dashed" ? LineType::DASHED : LineType::SOLID); in ParseTextInfoAndSegmentInfo()
297 if (dash.size() > 1) { in ParseTextInfoAndSegmentInfo()
298 segmentInfo.SetSolidWidth(StringToDouble(dash[1])); in ParseTextInfoAndSegmentInfo()
300 if (dash.size() > 2) { in ParseTextInfoAndSegmentInfo()
301 segmentInfo.SetSpaceWidth(StringToDouble(dash[2])); in ParseTextInfoAndSegmentInfo()
H A Djsi_canvas_bridge.cpp123 // if there only exists 0 in props, it means that there is no dash style in GetJsDashValue()
1050 auto dash = argv[0]->ToString(runtime); in JsSetLineDash() local
1051 value->SetProperty(runtime, "lineDash", runtime->NewString(dash)); in JsSetLineDash()
H A Djsi_offscreen_canvas_bridge.cpp67 // if there only exists 0 in props, it means that there is no dash style in GetJsDashValue()
867 auto dash = argv[0]->ToString(runtime); in JsSetLineDash() local
868 value->SetProperty(runtime, "lineDash", runtime->NewString(dash)); in JsSetLineDash()
/foundation/arkui/ace_engine/frameworks/core/components/custom_paint/
H A Dcustom_paint_component.cpp523 void CanvasTaskPool::UpdateLineDashOffset(double dash) in UpdateLineDashOffset() argument
525 auto task = [dash](RenderCustomPaint& interface, const Offset& offset) { interface.SetLineDashOffset(dash); }; in UpdateLineDashOffset()
/foundation/arkui/ace_engine/frameworks/bridge/card_frontend/
H A Djs_card_parser.cpp308 std::vector<std::string> dash; in ParseLineDash() local
309 StringUtils::StringSplitter(val, ',', dash); in ParseLineDash()
310 if (!dash.empty()) { in ParseLineDash()
311 segmentInfo.SetLineType(dash[0] == "dashed" ? LineType::DASHED : LineType::SOLID); in ParseLineDash()
313 if (dash.size() > 1) { in ParseLineDash()
314 segmentInfo.SetSolidWidth(Framework::StringToDouble(dash[1])); in ParseLineDash()
316 if (dash.size() > 2) { in ParseLineDash()
317 segmentInfo.SetSpaceWidth(Framework::StringToDouble(dash[2])); in ParseLineDash()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/canvas/
H A Dcanvas_pattern.cpp610 void CanvasPattern::UpdateLineDashOffset(double dash) in UpdateLineDashOffset() argument
613 auto task = [dash](CanvasPaintMethod& paintMethod) { in UpdateLineDashOffset()
614 paintMethod.SetLineDashOffset(dash); in UpdateLineDashOffset()
618 paintMethod_->PushTask<SetLineDashOffsetOp>(dash); in UpdateLineDashOffset()
H A Dcanvas_pattern.h157 void UpdateLineDashOffset(double dash);
/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_canvas_unit_test.cpp830 float dash[dashCount] = {1, 1.5, 2, 2.5}; in HWTEST_F() local
831 paint_->SetLineDash(dash, dashCount); in HWTEST_F()
837 paint_->SetLineDash(dash, dashCount); in HWTEST_F()
841 EXPECT_EQ(dashArr[i], dash[i]); in HWTEST_F()

Completed in 21 milliseconds