Home
last modified time | relevance | path

Searched refs:svgNode (Results 1 – 16 of 16) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/svg/parse/
H A Dsvg_dom.cpp210 auto svgNode = weakSvgNode.Upgrade(); in ParseIdAttr() local
211 if (!svgNode) { in ParseIdAttr()
215 svgNode->SetNodeId(value); in ParseIdAttr()
216 svgNode->SetAttr(DOM_ID, value); in ParseIdAttr()
217 svgContext_->Push(value, svgNode); in ParseIdAttr()
222 auto svgNode = weakSvgNode.Upgrade(); in ParseFillAttr() local
223 if (!svgNode) { in ParseFillAttr()
239 auto svgNode = weakSvgNode.Upgrade(); in ParseClassAttr() local
240 if (!svgNode) { in ParseClassAttr()
260 if (!svgNode) { in ParseStyleAttr()
[all …]
H A Dsvg_context.h43 void Push(const std::string& value, const RefPtr<SvgNode>& svgNode) in Push() argument
45 idMapper_.emplace(value, svgNode); in Push()
H A Dsvg_dom.h127 … void ParseAttrs(const SkDOM& xmlDom, const SkDOM::Node* xmlNode, const RefPtr<SvgNode>& svgNode);
128 …id SetAttrValue(const std::string& name, const std::string& value, const RefPtr<SvgNode>& svgNode);
H A Dsvg_node.h49 virtual void AppendChild(const RefPtr<SvgNode>& svgNode) {} in AppendChild() argument
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/
H A Dsvg_dom.cpp179 auto svgNode = weakSvgNode.Upgrade(); in ParseIdAttr() local
180 CHECK_NULL_VOID(svgNode); in ParseIdAttr()
181 svgNode->SetNodeId(value); in ParseIdAttr()
182 svgNode->SetAttr(DOM_ID, value); in ParseIdAttr()
183 svgContext_->Push(value, svgNode); in ParseIdAttr()
188 auto svgNode = weakSvgNode.Upgrade(); in ParseFillAttr() local
189 CHECK_NULL_VOID(svgNode); in ParseFillAttr()
202 auto svgNode = weakSvgNode.Upgrade(); in ParseClassAttr() local
203 CHECK_NULL_VOID(svgNode); in ParseClassAttr()
220 CHECK_NULL_VOID(svgNode); in ParseStyleAttr()
[all …]
H A Dsvg_dom.h70 … void ParseAttrs(const SkDOM& xmlDom, const SkDOM::Node* xmlNode, const RefPtr<SvgNode>& svgNode);
71 …id SetAttrValue(const std::string& name, const std::string& value, const RefPtr<SvgNode>& svgNode);
H A Dsvg_context.h63 void Push(const std::string& value, const RefPtr<SvgNode>& svgNode) in Push() argument
65 idMapper_.emplace(value, svgNode); in Push()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/svg/
H A Dparse_testtwo_ng.cpp751 svgNode->SetAttr("stroke-dasharray", "");
753 svgNode->SetAttr("stroke-linecap", "round");
756 svgNode->SetAttr("strokeLinecap", "square");
762 svgNode->SetAttr("strokeLinejoin", "round");
771 svgNode->SetAttr("strokeMiterlimit", "0.2");
774 svgNode->SetAttr("strokeMiterlimit", "1.2");
777 svgNode->SetAttr("strokeOpacity", "0.321");
780 svgNode->SetAttr("strokeWidth", "1.2");
783 svgNode->SetAttr("strokeWidth", "-1.2");
786 svgNode->SetAttr("stroke-width", "-1.2");
[all …]
H A Dparse_test_ng.cpp1808 EXPECT_NE(svgNode, nullptr);
1836 EXPECT_NE(svgNode, nullptr);
1946 svgNode->SetAttr("clip-rule", "evenodd");
1949 svgNode->SetAttr("clipRule", "evenodd1");
1955 svgNode->SetAttr("fill", "none");
1961 svgNode->SetAttr("fillRule", "evenodd");
1964 svgNode->SetAttr("fontSize", "1");
1967 svgNode->SetAttr("fontSize", "-1");
1970 svgNode->SetAttr("href", "#testHref");
1973 svgNode->SetAttr("href", "testHref111");
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/common/dom/
H A Ddom_svg_text_path.cpp38 auto svgNode = AceType::DynamicCast<DOMSvgBase>(parentNode); in OnMounted() local
39 if (svgNode) { in OnMounted()
40 declaration->Inherit(svgNode->GetDeclaration()); in OnMounted()
H A Ddom_svg_filter.cpp41 auto svgNode = AceType::DynamicCast<DOMSvgBase>(parentNode); in OnMounted() local
42 if (svgNode) { in OnMounted()
43 declaration->Inherit(svgNode->GetDeclaration()); in OnMounted()
H A Ddom_svg_mask.cpp41 auto svgNode = AceType::DynamicCast<DOMSvgBase>(parentNode); in OnMounted() local
42 if (svgNode) { in OnMounted()
43 declaration->Inherit(svgNode->GetDeclaration()); in OnMounted()
H A Ddom_svg_text.cpp39 auto svgNode = AceType::DynamicCast<DOMSvgBase>(parentNode); in OnMounted() local
40 if (svgNode) { in OnMounted()
41 declaration->Inherit(svgNode->GetDeclaration()); in OnMounted()
H A Ddom_svg.cpp56 auto svgNode = AceType::DynamicCast<DOMSvg>(parentNode); in OnMounted() local
57 if (svgNode) { in OnMounted()
58 declaration->Inherit(svgNode->GetDeclaration()); in OnMounted()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/
H A Dsvg_stop.cpp31 auto svgNode = AceType::MakeRefPtr<SvgStop>(); in Create() local
32 svgNode->stopAttr_.gradientColor.SetDimension(0.0); in Create()
33 return svgNode; in Create()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/video/
H A Dvideo_pattern.cpp1387 …auto svgNode = FrameNode::CreateFrameNode(V2::IMAGE_ETS_TAG, -1, AceType::MakeRefPtr<ImagePattern>… in OnModifyDone() local
1388 CHECK_NULL_RETURN(svgNode, nullptr); in OnModifyDone()
1390 auto imageRenderProperty = svgNode->GetPaintPropertyPtr<ImageRenderProperty>(); in OnModifyDone()
1392 auto renderContext = svgNode->GetRenderContext(); in OnModifyDone()
1395 auto svgLayoutProperty = svgNode->GetLayoutProperty<ImageLayoutProperty>(); in OnModifyDone()
1414 svgNode->UpdateLayoutConstraint(layoutConstraint); in OnModifyDone()
1415 return svgNode; in OnModifyDone()