-
Notifications
You must be signed in to change notification settings - Fork 0
/
doc.go
30 lines (23 loc) · 1.05 KB
/
doc.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (c) 2018, The Goki Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
/*
Package svg provides SVG rendering classes, I/O parsing: full SVG rendering
SVG currently supports most of SVG, but not:
- Flow
- Filter Effects
- 3D Perspective transforms
See gi/examples/svg for a basic SVG viewer app, using the svg.Editor, which
will ultimately be expanded to support more advanced editing. Also in that
directory are a number of test files that stress different aspects of
rendering.
svg.NodeBase is the base type for all SVG elements -- unlike Widget nodes, SVG
nodes do not use layout logic, and just draw directly into a parent SVG
viewport, with cumulative transforms determining drawing position, etc. The
BBox values are only valid after rendering for these nodes.
It uses srwiley/rasterx for SVG-compatible rasterization, and the gi.Paint
interface for drawing.
The Path element uses a compiled bytecode version of the Data path for
increased speed.
*/
package svg