MCPcopy Create free account
hub / github.com/antvis/F2Native / CreatePath

Method CreatePath

core/graphics/shape/Circle.cpp:3–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1#include "graphics/shape/Circle.h"
2
3void xg::shape::Circle::CreatePath(canvas::CanvasContext &context) const {
4 context.SetLineDash(dash_);
5 context.BeginPath();
6 context.Arc(point_.x, point_.y, radius_, 0.0, 2 * M_PI);
7 context.ClosePath();
8}
9
10BBox xg::shape::Circle::CalculateBox(canvas::CanvasContext &context) const {
11 BBox bbox;

Callers

nothing calls this directly

Calls 4

SetLineDashMethod · 0.45
BeginPathMethod · 0.45
ArcMethod · 0.45
ClosePathMethod · 0.45

Tested by

no test coverage detected