-
Notifications
You must be signed in to change notification settings - Fork 0
/
newTagSvgView.go
31 lines (28 loc) · 1.19 KB
/
newTagSvgView.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
31
package factoryBrowser
import "github.com/helmutkemper/iotmaker.webassembly/browser/html"
// NewTagSvgView
//
// English:
//
// The <defs> element is used to store graphical objects that will be used at a later time.
//
// Objects created inside a <defs> element are not rendered directly. To display them you have to reference them
// (with a <use> element for example).
//
// Graphical objects can be referenced from anywhere, however, defining these objects inside of a <defs> element
// promotes understandability of the SVG content and is beneficial to the overall accessibility of the document.
//
// Português:
//
// O elemento <defs> é usado para armazenar objetos gráficos que serão usados posteriormente.
//
// Objetos criados dentro de um elemento <defs> não são renderizados diretamente. Para exibi-los, você deve
// referenciá-los (com um elemento <use>, por exemplo).
//
// Graphical objects can be referenced from anywhere, however, defining these objects inside of a <defs> element
// promotes understandability of the SVG content and is beneficial to the overall accessibility of the document.
func NewTagSvgView() (ref *html.TagSvgView) {
ref = &html.TagSvgView{}
ref.Init()
return ref
}