Home
last modified time | relevance | path

Searched refs:ellipse (Results 1 – 25 of 84) sorted by relevance

1234

/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js/
H A Djs-components-svg-ellipse.md1 # ellipse chapter
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 Djs-components-svg.md18 …onents-svg-rect.md)、[circle](js-components-svg-circle.md)、[ellipse](js-components-svg-ellipse.md)、…
H A Djs-components-svg-animatetransform.md10 &lt;circle&gt;, &lt;ellipse&gt;, &lt;line&gt;, &lt;path&gt;, &lt;polygon&gt;, &lt;polyline&gt;, &lt…
186 <ellipse cx="100" cy="450" rx="70" ry="50" fill="blue">
189 </ellipse>
H A Djs-components-canvas-path2d.md372 ## ellipse section
374 ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: numbe…
407 path.ellipse(200, 200, 50, 100, Math.PI * 0.25, Math.PI * 0.5, Math.PI, 1);
H A DReadme-CN.md84 - [ellipse](js-components-svg-ellipse.md)
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js/
H A Djs-components-svg-ellipse.md1 # ellipse chapter
8 The **\<ellipse>** component is used to draw oval shapes.
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" …
H A Djs-components-canvas-path2d.md373 ## ellipse section
375 ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: numbe…
377 Draws an ellipse in the specified rectangular region on the canvas.
383 | x | number | X-coordinate of the ellipse center. |
384 | y | number | Y-coordinate of the ellipse center. |
387 | rotation | number | Rotation angle of the ellipse, in radians. |
388 | startAngle | number | Angle of the start point for drawing the ellipse, in radians. …
389 | endAngle | number | Angle of the end point for drawing the ellipse, in radians. …
390 | anticlockwise | number | Whether to draw the ellipse counterclockwise. The value **0** means cloc…
408 path.ellipse(200, 200, 50, 100, Math.PI * 0.25, Math.PI * 0.5, Math.PI, 1);
H A Djs-components-svg.md18 …svg-rect.md), [\<circle>](js-components-svg-circle.md), [\<ellipse>](js-components-svg-ellipse.md)…
H A Djs-components-svg-animatetransform.md11 &lt;circle&gt;, &lt;ellipse&gt;, &lt;line&gt;, &lt;path&gt;, &lt;polygon&gt;, &lt;polyline&gt;, &lt…
187 <ellipse cx="100" cy="450" rx="70" ry="50" fill="blue">
190 </ellipse>
H A DReadme-EN.md84 - [ellipse](js-components-svg-ellipse.md)
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_ellipse.cpp59 auto ellipse = AceType::MakeRefPtr<Ellipse>(); in ConstructorCallback() local
68 ellipse->SetWidth(dimWidth); in ConstructorCallback()
71 ellipse->SetHeight(dimHeight); in ConstructorCallback()
75 ellipse->SetWidth(dimWidth); in ConstructorCallback()
78 ellipse->SetHeight(dimHeight); in ConstructorCallback()
83 jsEllipse->SetBasicShape(ellipse); in ConstructorCallback()
H A Djs_ellipse_shape.cpp22 auto ellipse = AceType::MakeRefPtr<Ellipse>(); in ConstructorCallback() local
29 ellipse->SetWidth(dimWidth); in ConstructorCallback()
34 ellipse->SetHeight(dimHeight); in ConstructorCallback()
39 jsEllipse->SetBasicShape(ellipse); in ConstructorCallback()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/svg/
H A Drender_svg_ellipse.cpp66 auto ellipse = weak.Upgrade(); in PrepareSelfAnimation() local
67 if (!ellipse) { in PrepareSelfAnimation()
71 if (ellipse->SetProperty(attributeName, value)) { in PrepareSelfAnimation()
72 ellipse->MarkNeedRender(true); in PrepareSelfAnimation()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dclip_path.cpp187 auto ellipse = CreateEllipseSize(StringUtils::TrimStr(data.substr(0, atIndex))); in CreateEllipse() local
188 if (!ellipse) { in CreateEllipse()
194 ellipse->SetAxisX(axis.at(0)); in CreateEllipse()
197 ellipse->SetAxisX(axis.at(0)); in CreateEllipse()
198 ellipse->SetAxisY(axis.at(1)); in CreateEllipse()
200 return ellipse; in CreateEllipse()
213 auto ellipse = AceType::MakeRefPtr<Ellipse>(); in CreateEllipseSize() local
214 ellipse->SetRadiusX(lengths.at(0)); in CreateEllipseSize()
215 ellipse->SetRadiusY(lengths.at(1)); in CreateEllipseSize()
216 return ellipse; in CreateEllipseSize()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/cppview/
H A Dshape_abstract.cpp90 auto ellipse = AceType::MakeRefPtr<Ellipse>(); in NativeEllipse() local
91 ellipse->SetWidth(width); in NativeEllipse()
92 ellipse->SetHeight(height); in NativeEllipse()
93 SetBasicShape(ellipse); in NativeEllipse()
/ohos5.0/docs/zh-cn/third-party-cases/
H A Ddistributed-canvas.md17 | 点击rect和ellipse按钮后后本机显示 | 另外一台机器分布式应用显示 |
66 绘制ellipse图形、rect图形的按钮使用Button组件呈现。
97 if (item.path === 'ellipse') {
99 this.path2De.ellipse(100, 100, 50, 100, Math.PI * 0.25, Math.PI * 0.5, Math.PI);
107 Button('ellipse')//绘制ellipse图形的按钮
110 .key('ellipse')
112 if (this.globalObject.isContainString('ellipse') === -1) {
113 this.globalObject.add('ellipse'); //将绘制信息保存在持久全局数据中
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-components-canvas-path2d.md465 ## ellipse section
469 Draws an ellipse in the specified rectangular region on the canvas.
481 | x | number | Yes | 0 | X coordinate of the ellipse center.<br>Default unit:…
482 | y | number | Yes | 0 | Y coordinate of the ellipse center.<br>Default unit:…
483 | radiusX | number | Yes | 0 | Radius of the ellipse on the x-axis.<br>Default unit…
484 | radiusY | number | Yes | 0 | Radius of the ellipse on the y-axis.<br>Default unit…
485 | rotation | number | Yes | 0 | Rotation angle of the ellipse.<br>Unit: radian …
486 | startAngle | number | Yes | 0 | Angle of the start point for drawing the ellipse, in…
487 | endAngle | number | Yes | 0 | Angle of the end point for drawing the ellipse, in r…
488 …e | Whether to draw the ellipse counterclockwise.<br>**true**: Draw the ellipse counterclockwise.<…
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/
H A Dslider_content_modifier.cpp579 auto ellipse = DynamicCast<Ellipse>(shape_); in DrawBlockShape() local
580 CHECK_NULL_VOID(ellipse); in DrawBlockShape()
581 DrawBlockShapeEllipse(context, ellipse); in DrawBlockShape()
646 void SliderContentModifier::DrawBlockShapeEllipse(DrawingContext& context, RefPtr<Ellipse>& ellipse) in DrawBlockShapeEllipse() argument
812 auto ellipse = DynamicCast<Ellipse>(shape_); in SetBlockShape() local
813 CHECK_NULL_VOID(ellipse); in SetBlockShape()
814 if (ellipse->GetRadiusX().IsValid() && ellipse->GetRadiusY().IsValid()) { in SetBlockShape()
815 ellipseRadiusX_->Set(ellipse->GetRadiusX().ConvertToPx()); in SetBlockShape()
816 ellipseRadiusY_->Set(ellipse->GetRadiusY().ConvertToPx()); in SetBlockShape()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/rosen/
H A Ddrawing_decoration_painter.cpp821 const auto& ellipse = AceType::DynamicCast<Ellipse>(basicShape); in DrawingCreateEllipse() local
822 CHECK_NULL_VOID(ellipse); in DrawingCreateEllipse()
823 if (ellipse->GetRadiusX().IsValid()) { in DrawingCreateEllipse()
824 float rx = DrawingDimensionToPx(ellipse->GetRadiusX(), size, LengthMode::HORIZONTAL); in DrawingCreateEllipse()
825 float ry = DrawingDimensionToPx(ellipse->GetRadiusY(), size, LengthMode::VERTICAL); in DrawingCreateEllipse()
826 …double x = DrawingDimensionToPx(ellipse->GetAxisX(), size, LengthMode::HORIZONTAL) + position.GetX… in DrawingCreateEllipse()
827 …double y = DrawingDimensionToPx(ellipse->GetAxisY(), size, LengthMode::VERTICAL) + position.GetY()… in DrawingCreateEllipse()
831 auto width = DrawingDimensionToPx(ellipse->GetWidth(), size, LengthMode::HORIZONTAL); in DrawingCreateEllipse()
832 auto height = DrawingDimensionToPx(ellipse->GetHeight(), size, LengthMode::VERTICAL); in DrawingCreateEllipse()
833 …float x = DrawingDimensionToPx(ellipse->GetOffset().GetX(), size, LengthMode::HORIZONTAL) + positi… in DrawingCreateEllipse()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dskia_decoration_painter.cpp843 const auto& ellipse = AceType::DynamicCast<Ellipse>(basicShape); in SkiaCreateEllipse() local
844 CHECK_NULL_VOID(ellipse); in SkiaCreateEllipse()
845 if (ellipse->GetRadiusX().IsValid()) { in SkiaCreateEllipse()
846 float rx = SkiaDimensionToPx(ellipse->GetRadiusX(), size, LengthMode::HORIZONTAL); in SkiaCreateEllipse()
847 float ry = SkiaDimensionToPx(ellipse->GetRadiusY(), size, LengthMode::VERTICAL); in SkiaCreateEllipse()
848 …double x = SkiaDimensionToPx(ellipse->GetAxisX(), size, LengthMode::HORIZONTAL) + position.GetX() … in SkiaCreateEllipse()
849 …double y = SkiaDimensionToPx(ellipse->GetAxisY(), size, LengthMode::VERTICAL) + position.GetY() - … in SkiaCreateEllipse()
853 auto width = SkiaDimensionToPx(ellipse->GetWidth(), size, LengthMode::HORIZONTAL); in SkiaCreateEllipse()
854 auto height = SkiaDimensionToPx(ellipse->GetHeight(), size, LengthMode::VERTICAL); in SkiaCreateEllipse()
855 …float x = SkiaDimensionToPx(ellipse->GetOffset().GetX(), size, LengthMode::HORIZONTAL) + position.… in SkiaCreateEllipse()
[all …]
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-basic-svg.md7 基础形状标签包括:\<rect\>、\<circle\>、\<ellipse\>、\<line\>、\<polyline\>、\<polygon\>、\<path\>
18 | \<ellipse\> | 椭圆 | cx:x轴坐标;<br> cy:y轴坐标;<br> rx:x轴半径;<br> ry:y轴半径<br> | |
H A Dts-universal-attributes-sharp-clipping.md45 …ponents-circle.md)&nbsp;\|&nbsp;[EllipseAttribute](ts-drawing-components-ellipse.md)&nbsp;\|&nbsp;…
99 …ponents-circle.md)&nbsp;\|&nbsp;[EllipseAttribute](ts-drawing-components-ellipse.md)&nbsp;\|&nbsp;…
H A Dts-components-canvas-path2d.md465 ## ellipse section
467 ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: numbe…
508 this.path2Db.ellipse(200, 200, 50, 100, 0, Math.PI * 1, Math.PI*2)
/ohos5.0/docs/zh-cn/application-dev/ui/
H A Darkts-drawing-customization-on-canvas.md158 …enderingcontext2d.md#arc)(绘制弧线路径)、 [ellipse](../reference/apis-arkui/arkui-ts/ts-canvasrenderingco…
176 this.context.ellipse(150, 450, 50, 100, Math.PI * 0.25, Math.PI * 0, Math.PI * 2);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/box/
H A Drosen_render_box.cpp1048 const auto& ellipse = AceType::DynamicCast<Ellipse>(basicShape); local
1049 if (!ellipse) {
1053 if (ellipse->GetRadiusX().IsValid()) {
1054 float rx = DimensionToPx(ellipse->GetRadiusX(), size, LengthMode::HORIZONTAL);
1055 float ry = DimensionToPx(ellipse->GetRadiusY(), size, LengthMode::VERTICAL);
1056 …double x = DimensionToPx(ellipse->GetAxisX(), size, LengthMode::HORIZONTAL) + position.GetX() - rx;
1057 … double y = DimensionToPx(ellipse->GetAxisY(), size, LengthMode::VERTICAL) + position.GetY() - ry;
1066 auto width = DimensionToPx(ellipse->GetWidth(), size, LengthMode::HORIZONTAL);
1067 auto height = DimensionToPx(ellipse->GetHeight(), size, LengthMode::VERTICAL);
1068 …float x = DimensionToPx(ellipse->GetOffset().GetX(), size, LengthMode::HORIZONTAL) + position.GetX…
[all …]

1234