/ohos5.0/foundation/graphic/graphic_utils_lite/frameworks/diagram/vertexprimitive/ |
H A D | geometry_bezier_arc.cpp | 66 float rx, float ry, in Init() argument 127 if (ry < 0.0f) { in Init() 128 ry = -ry; in Init() 141 float pry = ry * ry; in Init() 146 ry = Sqrt(radiiCheck) * ry; in Init() 148 pry = ry * ry; in Init() 157 if (ry == 0) { in Init() 158 ry += VERTEX_DIST_EPSILON; in Init() 163 float cx1 = coef * ((rx * y1) / ry); in Init() 170 float uy = (y1 - cy1) / ry; in Init() [all …]
|
H A D | geometry_arc.cpp | 21 float rx, float ry, in GeometryArc() argument 24 : centerX_(centerX), centerY_(centerY), radiusX_(rx), radiusY_(ry), expansionRatio_(1.0) in GeometryArc() 87 void GeometryArc::Init(float centerX, float centerY, float rx, float ry, in Init() argument 93 radiusY_ = ry; in Init()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/svg/parse/ |
H A D | svg_ellipse.cpp | 43 if (GreatNotEqual(ellipseAttr_.ry.Value(), 0.0)) { in AsPath() 44 rx = ConvertDimensionToPx(ellipseAttr_.ry, viewPort, SvgLengthType::VERTICAL); in AsPath() 47 double ry = 0.0; in AsPath() local 48 if (GreatOrEqual(ellipseAttr_.ry.Value(), 0.0)) { in AsPath() 49 ry = ConvertDimensionToPx(ellipseAttr_.ry, viewPort, SvgLengthType::VERTICAL); in AsPath() 52 ry = ConvertDimensionToPx(ellipseAttr_.rx, viewPort, SvgLengthType::HORIZONTAL); in AsPath() 57 …vertDimensionToPx(declaration->GetCy(), viewPort, SvgLengthType::VERTICAL) - ry, rx + rx, ry + ry); in AsPath() 61 RSScalar top = ConvertDimensionToPx(ellipseAttr_.cy, viewPort, SvgLengthType::VERTICAL) - ry; in AsPath() 62 RSRect rect = RSRect(left, top, rx + rx + left, ry + ry + top); in AsPath() 85 attr.ry = SvgAttributesParser::ParseDimension(val); in AsPath()
|
H A D | svg_rect.cpp | 39 if (GreatNotEqual(rectAttr_.ry.Value(), 0.0)) { in AsPath() 40 rx = ConvertDimensionToPx(rectAttr_.ry, viewPort, SvgLengthType::VERTICAL); in AsPath() 43 double ry = 0.0; in AsPath() local 44 if (GreatOrEqual(rectAttr_.ry.Value(), 0.0)) { in AsPath() 45 ry = ConvertDimensionToPx(rectAttr_.ry, viewPort, SvgLengthType::VERTICAL); in AsPath() 48 ry = ConvertDimensionToPx(rectAttr_.rx, viewPort, SvgLengthType::HORIZONTAL); in AsPath() 57 rx, ry); in AsPath() 65 RSRoundRect roundRect = RSRoundRect(RSRect(left, top, width + left, height + top), rx, ry); in AsPath() 85 attr.ry = SvgAttributesParser::ParseDimension(val); in ParseAndSetSpecializedAttr()
|
/ohos5.0/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/vertexprimitive/ |
H A D | geometry_bezier_arc.h | 40 void ArcToBezier(float cx, float cy, float rx, float ry, 66 float rx, float ry, in BezierArc() argument 70 Init(centerX, centerY, rx, ry, startAngle, sweepAngle); in BezierArc() 79 float rx, float ry, 181 float rx, float ry, in BezierArcSvg() argument 187 Init(x1, y1, rx, ry, angle, largeArcFlag, sweepFlag, x2, y2); in BezierArcSvg() 198 float ry,
|
H A D | geometry_path_storage.h | 304 void ArcTo(float rx, float ry, in ArcTo() argument 317 ry = MATH_ABS(ry); in ArcTo() 318 if (rx < epsilon || ry < epsilon) { in ArcTo() 326 BezierArcSvg bezierArcSvg(x0, y0, rx, ry, angle, largeArcFlag, sweepFlag, x, y); in ArcTo()
|
H A D | geometry_arc.h | 49 float rx, float ry, 95 void Init(float centerX, float centerY, float rx, float ry,
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/svg/parse/ |
H A D | svg_ellipse.cpp | 89 double ry = 0.0; in AsPath() local 91 ry = ConvertDimensionToPx(component_->GetRy(), viewPort, SvgLengthType::VERTICAL); in AsPath() 94 ry = ConvertDimensionToPx(component_->GetRx(), viewPort, SvgLengthType::HORIZONTAL); in AsPath() 100 …nvertDimensionToPx(component_->GetCy(), viewPort, SvgLengthType::VERTICAL) - ry, rx + rx, ry + ry); in AsPath() 105 ConvertDimensionToPx(component_->GetCy(), viewPort, SvgLengthType::VERTICAL) - ry, in AsPath() 107 ry + ConvertDimensionToPx(component_->GetCy(), viewPort, SvgLengthType::VERTICAL)); in AsPath()
|
H A D | svg_rect.cpp | 88 double ry = 0.0; in AsPath() local 90 ry = ConvertDimensionToPx(component_->GetRy(), viewPort, SvgLengthType::VERTICAL); in AsPath() 93 ry = ConvertDimensionToPx(component_->GetRx(), viewPort, SvgLengthType::HORIZONTAL); in AsPath() 102 rx, ry); in AsPath() 110 rx, ry); in AsPath()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/svg/ |
H A D | rosen_render_svg_ellipse.cpp | 133 double ry = 0.0; in GetPath() local 135 ry = ConvertDimensionToPx(ry_, LengthType::VERTICAL); in GetPath() 138 ry = ConvertDimensionToPx(rx_, LengthType::HORIZONTAL); in GetPath() 143 ConvertDimensionToPx(cy_, LengthType::VERTICAL) - ry, rx + rx, ry + ry); in GetPath() 147 ConvertDimensionToPx(cy_, LengthType::VERTICAL) - ry, in GetPath() 149 ry + ConvertDimensionToPx(cy_, LengthType::VERTICAL)); in GetPath()
|
H A D | rosen_render_svg_rect.cpp | 133 double ry = 0.0; in GetPath() local 135 ry = ConvertDimensionToPx(ry_, LengthType::VERTICAL); in GetPath() 138 ry = ConvertDimensionToPx(rx_, LengthType::HORIZONTAL); in GetPath() 147 rx, ry); in GetPath() 155 rx, ry); in GetPath()
|
H A D | svg_ellipse_component.cpp | 82 void SvgEllipseComponent::SetRy(const Dimension& ry) in SetRy() argument 84 declaration_->SetRy(ry); in SetRy()
|
H A D | svg_rect_component.cpp | 97 void SvgRectComponent::SetRy(const Dimension& ry) in SetRy() argument 99 declaration_->SetRy(ry); in SetRy()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/declaration/svg/ |
H A D | svg_rect_declaration.h | 27 Dimension ry = -1.0_px; member 63 return attribute.ry; in GetRy() 98 void SetRy(const Dimension& ry) in SetRy() argument 101 if (GreatOrEqual(ry.Value(), 0.0)) { in SetRy() 102 attribute.ry = ry; in SetRy()
|
H A D | svg_ellipse_declaration.h | 27 Dimension ry = -1.0_px; member 76 void SetRy(const Dimension& ry) in SetRy() argument 79 attribute.ry = ry; in SetRy() 85 return attribute.ry; in GetRy()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js/ |
H A D | js-components-svg-rect.md | 31 | ry | <length>\|<percentage> | 0 | 否 | 设置矩形圆角y方向半径。支持属性动画 | 41 …<rect width="100" height="100" x="150" y="20" stroke-width="4" stroke="blue" rx="10" ry="10"></rec… 42 …100" height="100" x="10" y="130" stroke-width="10" fill="red" stroke="blue" rx="10" ry="10"></rect> 43 …<rect width="100" height="100" x="150" y="130" stroke-width="10" stroke="red" rx="10" ry="10" stro…
|
H A D | js-components-svg-ellipse.md | 29 | ry | <length>\|<percentage> | 0 | 否 | 设置椭圆y轴的半径。支持属性动画 | 38 <ellipse cx="60" cy="200" rx="50" ry="100" stroke-width="4" fill="red" stroke="blue"></ellipse> 39 …<ellipse cx="220" cy="200" rx="100" ry="50" stroke-width="5" stroke="red" stroke-dasharray="10 5" …
|
H A D | js-components-svg-animate.md | 45 <rect x="20" y="20" width="100" height="100" fill="red" rx="0" ry="20"> 61 <rect x="20" y="20" width="100" height="100" fill="red" rx="0" ry="20"> 77 <rect x="20" y="20" width="100" height="100" fill="red" rx="0" ry="20">
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js/ |
H A D | js-components-svg-rect.md | 32 | ry | <length>\|<percentage> | 0 | No| Radius of the rectangle rounded corner in the y… 42 …<rect width="100" height="100" x="150" y="20" stroke-width="4" stroke="blue" rx="10" ry="10"></rec… 43 …100" height="100" x="10" y="130" stroke-width="10" fill="red" stroke="blue" rx="10" ry="10"></rect> 44 …<rect width="100" height="100" x="150" y="130" stroke-width="10" stroke="red" rx="10" ry="10" stro…
|
H A D | js-components-svg-ellipse.md | 30 | ry | <length>\|<percentage> | 0 | No| Radius of the oval shape on the y-axis. Attribu… 39 <ellipse cx="60" cy="200" rx="50" ry="100" stroke-width="4" fill="red" stroke="blue"></ellipse> 40 …<ellipse cx="220" cy="200" rx="100" ry="50" stroke-width="5" stroke="red" stroke-dasharray="10 5" …
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/ |
H A D | add_arc.cpp | 78 float ry = sinf(rad) * R; in OnTestFunction() local 80 OH_Drawing_CanvasDrawLine(canvas, 0, 0, rx, ry); in OnTestFunction() 85 OH_Drawing_CanvasDrawLine(canvas, 0, 0, rx, ry); in OnTestFunction()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/canvas/ |
H A D | js_matrix2d.cpp | 241 double ry = 0; in JsRotate() local 249 JSViewAbstract::ParseJsDouble(info[JS_MATRIX2D_PARAMETER_COUNTS_2], ry); in JsRotate() 253 ry *= density; in JsRotate() 254 NG::Matrix2D::Rotate(transform_, degree, rx, ry); in JsRotate()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/draw/ |
H A D | path.cpp | 68 void Path::ArcTo(scalar rx, scalar ry, scalar angle, PathDirection direction, scalar endX, scalar e… in ArcTo() argument 70 impl_->ArcTo(rx, ry, angle, direction, endX, endY); in ArcTo() 113 void Path::RArcTo(scalar rx, scalar ry, scalar angle, PathDirection direction, scalar dx, scalar dy) in RArcTo() argument 115 impl_->RArcTo(rx, ry, angle, direction, dx, dy); in RArcTo()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | matrix2d.cpp | 78 void Matrix2D::Rotate(TransformParam& param, double degree, double rx, double ry) in Rotate() argument 84 skMatrix = skMatrix.preRotate(degree, rx, ry); in Rotate()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/ |
H A D | matrix.cpp | 227 void Matrix::RotXY(const Matrix &m, const float rx, const float ry, Point &pt) in RotXY() argument 230 pt.x = rx * m.fMat_[IMAGE_SCALEX] + ry * m.fMat_[IMAGE_SKEWX] + m.fMat_[IMAGE_TRANSX]; in RotXY() 231 pt.y = rx * m.fMat_[IMAGE_SKEWY] + ry * m.fMat_[IMAGE_SCALEY] + m.fMat_[IMAGE_TRANSY]; in RotXY()
|