Searched refs:dash (Results 1 - 8 of 8) sorted by relevance
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/ |
H A D | jsi_chart_bridge.cpp | 292 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 D | jsi_canvas_bridge.cpp | 123 // 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 D | jsi_offscreen_canvas_bridge.cpp | 67 // 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 D | custom_paint_component.cpp | 523 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 D | js_card_parser.cpp | 308 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 D | canvas_pattern.cpp | 610 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 D | canvas_pattern.h | 157 void UpdateLineDashOffset(double dash);
|
/foundation/arkui/ui_lite/test/unittest/components/ |
H A D | ui_canvas_unit_test.cpp | 830 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 20 milliseconds