LocalLineWidth returns the line width in local coordinates
()
| 406 | |
| 407 | // LocalLineWidth returns the line width in local coordinates |
| 408 | func (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 |