package svg
import "github.com/tdewolff/parse/svg"
Index ¶
Types ¶
type Hash ¶
type Hash uint32
Hash defines perfect hashes for a predefined list of strings
const ( A Hash = 0x101 // a Alignment_Baseline Hash = 0x2e12 // alignment-baseline BaseProfile Hash = 0xb // baseProfile Baseline_Shift Hash = 0x380e // baseline-shift Buffered_Rendering Hash = 0x5212 // buffered-rendering Clip Hash = 0x6404 // clip Clip_Path Hash = 0x6409 // clip-path Clip_Rule Hash = 0x8009 // clip-rule Color Hash = 0xd805 // color Color_Interpolation Hash = 0xd813 // color-interpolation Color_Interpolation_Filters Hash = 0xd81b // color-interpolation-filters Color_Profile Hash = 0x1ea0d // color-profile Color_Rendering Hash = 0x2110f // color-rendering ContentScriptType Hash = 0xa011 // contentScriptType ContentStyleType Hash = 0xb110 // contentStyleType Cursor Hash = 0xc106 // cursor D Hash = 0x5901 // d Defs Hash = 0x34b04 // defs Direction Hash = 0x2f109 // direction Display Hash = 0x9807 // display Dominant_Baseline Hash = 0x18511 // dominant-baseline Enable_Background Hash = 0x8811 // enable-background Fill Hash = 0xc904 // fill Fill_Opacity Hash = 0x31f0c // fill-opacity Fill_Rule Hash = 0xc909 // fill-rule Filter Hash = 0xec06 // filter Flood_Color Hash = 0xd20b // flood-color Flood_Opacity Hash = 0x1010d // flood-opacity Font Hash = 0x11004 // font Font_Family Hash = 0x1100b // font-family Font_Size Hash = 0x11b09 // font-size Font_Size_Adjust Hash = 0x11b10 // font-size-adjust Font_Stretch Hash = 0x1330c // font-stretch Font_Style Hash = 0x13f0a // font-style Font_Variant Hash = 0x1490c // font-variant Font_Weight Hash = 0x1620b // font-weight G Hash = 0x1601 // g Glyph_Orientation_Horizontal Hash = 0x1c61c // glyph-orientation-horizontal Glyph_Orientation_Vertical Hash = 0x161a // glyph-orientation-vertical Height Hash = 0x6c06 // height Image_Rendering Hash = 0x16d0f // image-rendering Kerning Hash = 0x1af07 // kerning Letter_Spacing Hash = 0x90e // letter-spacing Lighting_Color Hash = 0x1e10e // lighting-color Line Hash = 0x3c04 // line Marker Hash = 0x17c06 // marker Marker_End Hash = 0x17c0a // marker-end Marker_Mid Hash = 0x1960a // marker-mid Marker_Start Hash = 0x1a00c // marker-start Mask Hash = 0x1ac04 // mask Metadata Hash = 0x1b608 // metadata Missing_Glyph Hash = 0x1be0d // missing-glyph Opacity Hash = 0x10707 // opacity Overflow Hash = 0x25308 // overflow Paint_Order Hash = 0x2930b // paint-order Path Hash = 0x6904 // path Pattern Hash = 0x1f707 // pattern Pointer_Events Hash = 0x1fe0e // pointer-events Points Hash = 0x22006 // points Polygon Hash = 0x23207 // polygon Polyline Hash = 0x23908 // polyline PreserveAspectRatio Hash = 0x24113 // preserveAspectRatio Rect Hash = 0x2f304 // rect Rx Hash = 0x4f02 // rx Ry Hash = 0xc602 // ry Shape_Rendering Hash = 0xf20f // shape-rendering Solid_Color Hash = 0x20b0b // solid-color Solid_Opacity Hash = 0x2250d // solid-opacity Stop_Color Hash = 0x1290a // stop-color Stop_Opacity Hash = 0x34e0c // stop-opacity Stroke Hash = 0x26506 // stroke Stroke_Dasharray Hash = 0x26510 // stroke-dasharray Stroke_Dashoffset Hash = 0x27511 // stroke-dashoffset Stroke_Linecap Hash = 0x2860e // stroke-linecap Stroke_Linejoin Hash = 0x29e0f // stroke-linejoin Stroke_Miterlimit Hash = 0x2ad11 // stroke-miterlimit Stroke_Opacity Hash = 0x2be0e // stroke-opacity Stroke_Width Hash = 0x2cc0c // stroke-width Style Hash = 0x14405 // style Svg Hash = 0x2d803 // svg Switch Hash = 0x2db06 // switch Symbol Hash = 0x2e106 // symbol Text_Anchor Hash = 0x450b // text-anchor Text_Decoration Hash = 0x710f // text-decoration Text_Rendering Hash = 0x1540e // text-rendering Type Hash = 0x10c04 // type Unicode_Bidi Hash = 0x2e70c // unicode-bidi Vector_Effect Hash = 0x2fa0d // vector-effect Version Hash = 0x30707 // version ViewBox Hash = 0x30e07 // viewBox Viewport_Fill Hash = 0x3160d // viewport-fill Viewport_Fill_Opacity Hash = 0x31615 // viewport-fill-opacity Visibility Hash = 0x32b0a // visibility White_Space Hash = 0x25a0b // white-space Width Hash = 0x2d305 // width Word_Spacing Hash = 0x3350c // word-spacing Writing_Mode Hash = 0x3410c // writing-mode X Hash = 0x4701 // x X1 Hash = 0x5002 // x1 X2 Hash = 0x31402 // x2 Xml_Space Hash = 0x35a09 // xml:space Y Hash = 0x1801 // y Y1 Hash = 0x9e02 // y1 Y2 Hash = 0xc702 // y2 )
Unique hash definitions to be used instead of strings
func ToHash ¶
ToHash returns the hash whose name is s. It returns zero if there is no such hash. It is case sensitive.
func (Hash) String ¶
String returns the hash' name.
Source Files ¶
- Version
- v2.0.0+incompatible
- Published
- Apr 10, 2016
- Platform
- js/wasm
- Last checked
- 5 hours ago –
Tools for package owners.