MCPcopy Create free account
hub / github.com/cogentcore/core / LocalLineWidth

Method LocalLineWidth

svg/node.go:408–414  ·  view source on GitHub ↗

LocalLineWidth returns the line width in local coordinates

()

Source from the content-addressed store, hash-verified

406
407// LocalLineWidth returns the line width in local coordinates
408func (g *NodeBase) LocalLineWidth() float32 {
409 pc := &g.Paint
410 if pc.StrokeStyle.Color == nil {
411 return 0
412 }
413 return pc.StrokeStyle.Width.Dots
414}
415
416// ComputeBBox is called by default in render to compute bounding boxes for
417// gui interaction -- can only be done in rendering because that is when all

Callers 6

LocalBBoxMethod · 0.80
LocalBBoxMethod · 0.80
LocalBBoxMethod · 0.80
LocalBBoxMethod · 0.80
LocalBBoxMethod · 0.80
LocalBBoxMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected