Documentation
¶
Index ¶
- func SetFontLoader(loader FontLoader)
- type Box
- type BoxFloat
- type Color
- func (c *Color) HSVA() [4]float64
- func (c *Color) Index() int
- func (c *Color) RGBADouble() [4]float64
- func (c *Color) RGBAInt() [4]int
- func (c *Color) RGBAUint() [4]uint
- func (c *Color) SetHSVA(v [4]float64)
- func (c *Color) SetIndex(v int)
- func (c *Color) SetRGBADouble(v [4]float64)
- func (c *Color) SetRGBAInt(v [4]int)
- func (c *Color) SetRGBAUint(v [4]uint)
- func (c *Color) SetString(v string)
- func (c *Color) SetType(v ColorType)
- func (c *Color) String() string
- func (c *Color) Type() ColorType
- type ColorType
- type Context
- func (c *Context) Clone(ctx context.Context) (*Context, error)
- func (c *Context) Close() error
- func (c *Context) FreeClonedContext(ctx context.Context) error
- func (c *Context) FreeLayout(ctx context.Context, g *cgraph.Graph) error
- func (c *Context) Layout(ctx context.Context, g *cgraph.Graph, engine string) error
- func (c *Context) RenderData(ctx context.Context, g *cgraph.Graph, format string, w io.Writer) error
- func (c *Context) RenderFilename(ctx context.Context, g *cgraph.Graph, format, filename string) error
- func (c *Context) RenderImage(ctx context.Context, g *cgraph.Graph, format string) (image.Image, error)
- type DefaultLoadImageEngine
- type DefaultRenderEngine
- func (e *DefaultRenderEngine) BeginAnchor(_ context.Context, _ *Job, _, _, _, _ string) error
- func (e *DefaultRenderEngine) BeginCluster(_ context.Context, _ *Job) error
- func (e *DefaultRenderEngine) BeginEdge(_ context.Context, _ *Job) error
- func (e *DefaultRenderEngine) BeginEdges(_ context.Context, _ *Job) error
- func (e *DefaultRenderEngine) BeginGraph(_ context.Context, _ *Job) error
- func (e *DefaultRenderEngine) BeginJob(_ context.Context, _ *Job) error
- func (e *DefaultRenderEngine) BeginLabel(_ context.Context, _ *Job, _ LabelType) error
- func (e *DefaultRenderEngine) BeginLayer(_ context.Context, _ *Job, layerName string, layerNum, numLayers int) error
- func (e *DefaultRenderEngine) BeginNode(_ context.Context, _ *Job) error
- func (e *DefaultRenderEngine) BeginNodes(_ context.Context, _ *Job) error
- func (e *DefaultRenderEngine) BeginPage(_ context.Context, _ *Job) error
- func (e *DefaultRenderEngine) BezierCurve(_ context.Context, _ *Job, _ []*PointFloat, _ bool) error
- func (e *DefaultRenderEngine) Comment(_ context.Context, _ *Job, _ string) error
- func (e *DefaultRenderEngine) Ellipse(_ context.Context, _ *Job, _ []*PointFloat, _ bool) error
- func (e *DefaultRenderEngine) EndAnchor(_ context.Context, _ *Job) error
- func (e *DefaultRenderEngine) EndCluster(_ context.Context, _ *Job) error
- func (e *DefaultRenderEngine) EndEdge(_ context.Context, _ *Job) error
- func (e *DefaultRenderEngine) EndEdges(_ context.Context, _ *Job) error
- func (e *DefaultRenderEngine) EndGraph(_ context.Context, _ *Job) error
- func (e *DefaultRenderEngine) EndJob(_ context.Context, _ *Job) error
- func (e *DefaultRenderEngine) EndLabel(_ context.Context, _ *Job) error
- func (e *DefaultRenderEngine) EndLayer(_ context.Context, _ *Job) error
- func (e *DefaultRenderEngine) EndNode(_ context.Context, _ *Job) error
- func (e *DefaultRenderEngine) EndNodes(_ context.Context, _ *Job) error
- func (e *DefaultRenderEngine) EndPage(_ context.Context, _ *Job) error
- func (e *DefaultRenderEngine) LibraryShape(_ context.Context, _ *Job, _ string, _ []*PointFloat, _ bool) error
- func (e *DefaultRenderEngine) LoadImage(_ context.Context, _ *Job, _ *UserShape, _ *BoxFloat, _ bool) error
- func (e *DefaultRenderEngine) Polygon(_ context.Context, _ *Job, _ []*PointFloat, _ bool) error
- func (e *DefaultRenderEngine) Polyline(_ context.Context, _ *Job, _ []*PointFloat) error
- func (e *DefaultRenderEngine) ResolveColor(_ context.Context, _ *Job, _ *Color) error
- func (e *DefaultRenderEngine) TextSpan(_ context.Context, _ *Job, _ *PointFloat, _ *TextSpan) error
- type DeviceFeature
- type DevicePlugin
- type DevicePluginOption
- type FillType
- type FontLoader
- type ImageRenderer
- func (r *ImageRenderer) BeginPage(ctx context.Context, job *Job) error
- func (r *ImageRenderer) BezierCurve(ctx context.Context, job *Job, a []*PointFloat, filled bool) error
- func (r *ImageRenderer) Ellipse(ctx context.Context, job *Job, p []*PointFloat, filled bool) error
- func (r *ImageRenderer) EndPage(ctx context.Context, job *Job) error
- func (r *ImageRenderer) LoadImage(ctx context.Context, job *Job, shape *UserShape, bf *BoxFloat, filled bool) error
- func (r *ImageRenderer) Polygon(ctx context.Context, job *Job, a []*PointFloat, filled bool) error
- func (r *ImageRenderer) Polyline(ctx context.Context, job *Job, a []*PointFloat) error
- func (r *ImageRenderer) TextSpan(ctx context.Context, job *Job, p *PointFloat, span *TextSpan) error
- type ImageType
- type Job
- func (j *Job) DPI() *PointFloat
- func (j *Job) ExternalContext() bool
- func (j *Job) Height() uint64
- func (j *Job) Object() *ObjectState
- func (j *Job) OutputData() []byte
- func (j *Job) OutputDataPosition() uint
- func (j *Job) OutputFileName() string
- func (j *Job) OutputLangName() string
- func (j *Job) Scale() *Scale
- func (j *Job) SetDPI(v *PointFloat)
- func (j *Job) SetHeight(v uint64)
- func (j *Job) SetOutputData(v []byte)
- func (j *Job) SetOutputDataPosition(v uint)
- func (j *Job) SetOutputFileName(v string)
- func (j *Job) SetOutputLangName(v string)
- func (j *Job) SetScale(v *Scale)
- func (j *Job) SetTranslation(v *Translation)
- func (j *Job) SetWidth(v uint64)
- func (j *Job) SetZoom(v float64)
- func (j *Job) Translation() *Translation
- func (j *Job) Width() uint64
- func (j *Job) Zoom() float64
- type LabelType
- type LoadImageEngine
- type LoadImagePlugin
- type ObjectState
- func (s *ObjectState) Edge() *cgraph.Edge
- func (s *ObjectState) Fill() FillType
- func (s *ObjectState) FillColor() *Color
- func (s *ObjectState) Graph() *cgraph.Graph
- func (s *ObjectState) Node() *cgraph.Node
- func (s *ObjectState) Pen() PenType
- func (s *ObjectState) PenColor() *Color
- func (s *ObjectState) PenWidth() float64
- func (s *ObjectState) RawStyle() []string
- func (s *ObjectState) SetFill(v FillType)
- func (s *ObjectState) SetFillColor(v *Color)
- func (s *ObjectState) SetPen(v PenType)
- func (s *ObjectState) SetPenColor(v *Color)
- func (s *ObjectState) SetPenWidth(v float64)
- func (s *ObjectState) SetType(v ObjectType)
- func (s *ObjectState) StopColor() *Color
- func (s *ObjectState) Type() ObjectType
- type ObjectType
- type PenType
- type Plugin
- type Point
- type PointFloat
- type PostScriptAlias
- func (s *PostScriptAlias) Family() string
- func (s *PostScriptAlias) Name() string
- func (s *PostScriptAlias) SVGFontFamily() string
- func (s *PostScriptAlias) SVGFontStyle() string
- func (s *PostScriptAlias) SVGFontWeight() string
- func (s *PostScriptAlias) SetFamily(v string)
- func (s *PostScriptAlias) SetName(v string)
- func (s *PostScriptAlias) SetSVGFontFamily(v string)
- func (s *PostScriptAlias) SetSVGFontStyle(v string)
- func (s *PostScriptAlias) SetSVGFontWeight(v string)
- func (s *PostScriptAlias) SetStretch(v string)
- func (s *PostScriptAlias) SetStyle(v string)
- func (s *PostScriptAlias) SetWeight(v string)
- func (s *PostScriptAlias) SetXFigCode(v int)
- func (s *PostScriptAlias) Stretch() string
- func (s *PostScriptAlias) Style() string
- func (s *PostScriptAlias) Weight() string
- func (s *PostScriptAlias) XFigCode() int
- type RenderEngine
- type RenderFeature
- type RenderPlugin
- type RenderPluginOption
- type Scale
- type TextFont
- func (f *TextFont) Color() string
- func (f *TextFont) Count() uint
- func (f *TextFont) Flags() uint
- func (f *TextFont) Name() string
- func (f *TextFont) PostScriptAlias() *PostScriptAlias
- func (f *TextFont) SetColor(v string)
- func (f *TextFont) SetCount(v uint)
- func (f *TextFont) SetFlags(v uint)
- func (f *TextFont) SetName(v string)
- func (f *TextFont) SetPostScriptAlias(v *PostScriptAlias)
- func (f *TextFont) SetSize(v float64)
- func (f *TextFont) Size() float64
- type TextSpan
- func (s *TextSpan) Font() *TextFont
- func (s *TextSpan) Just() int
- func (s *TextSpan) SetFont(v *TextFont)
- func (s *TextSpan) SetJust(v int)
- func (s *TextSpan) SetSize(v *PointFloat)
- func (s *TextSpan) SetText(v string)
- func (s *TextSpan) SetYOffsetCenterLine(v float64)
- func (s *TextSpan) SetYOffsetLayout(v float64)
- func (s *TextSpan) Size() *PointFloat
- func (s *TextSpan) Text() string
- func (s *TextSpan) YOffsetCenterLine() float64
- func (s *TextSpan) YOffsetLayout() float64
- type Translation
- type UserShape
- func (s *UserShape) DPI() int
- func (s *UserShape) Data() []byte
- func (s *UserShape) DataSize() uint
- func (s *UserShape) Height() int
- func (s *UserShape) ImageType() ImageType
- func (s *UserShape) Link() *cdt.Link
- func (s *UserShape) MacroID() int
- func (s *UserShape) MustInline() bool
- func (s *UserShape) Name() string
- func (s *UserShape) NoCache() bool
- func (s *UserShape) SetDPI(v int)
- func (s *UserShape) SetData(v []byte)
- func (s *UserShape) SetDataSize(v uint)
- func (s *UserShape) SetHeight(v int)
- func (s *UserShape) SetImageType(v ImageType)
- func (s *UserShape) SetLink(v *cdt.Link)
- func (s *UserShape) SetMacroID(v int)
- func (s *UserShape) SetMustInline(v bool)
- func (s *UserShape) SetName(v string)
- func (s *UserShape) SetNoCache(v bool)
- func (s *UserShape) SetStringType(v string)
- func (s *UserShape) SetWidth(v int)
- func (s *UserShape) SetX(v int)
- func (s *UserShape) SetY(v int)
- func (s *UserShape) StringType() string
- func (s *UserShape) Width() int
- func (s *UserShape) X() int
- func (s *UserShape) Y() int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetFontLoader ¶
func SetFontLoader(loader FontLoader)
Types ¶
type BoxFloat ¶
type BoxFloat struct {
// contains filtered or unexported fields
}
func (*BoxFloat) LL ¶
func (f *BoxFloat) LL() *PointFloat
func (*BoxFloat) SetLL ¶
func (f *BoxFloat) SetLL(v *PointFloat)
func (*BoxFloat) SetUR ¶
func (f *BoxFloat) SetUR(v *PointFloat)
func (*BoxFloat) UR ¶
func (f *BoxFloat) UR() *PointFloat
type Color ¶
type Color struct {
// contains filtered or unexported fields
}
func (*Color) RGBADouble ¶
func (*Color) SetRGBADouble ¶
func (*Color) SetRGBAInt ¶
func (*Color) SetRGBAUint ¶
type ColorType ¶
type ColorType int64
var ( HSVADouble ColorType = ColorType(wasm.HSVA_DOUBLE) RGBAByte ColorType = ColorType(wasm.RGBA_BYTE) RGBAWord ColorType = ColorType(wasm.RGBA_WORD) RGBADouble ColorType = ColorType(wasm.RGBA_DOUBLE) ColorString ColorType = ColorType(wasm.COLOR_STRING) ColorIndex ColorType = ColorType(wasm.COLOR_INDEX) )
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) FreeLayout ¶
func (*Context) RenderData ¶
func (*Context) RenderFilename ¶
type DefaultLoadImageEngine ¶
type DefaultLoadImageEngine struct{}
type DefaultRenderEngine ¶
type DefaultRenderEngine struct{}
func (*DefaultRenderEngine) BeginAnchor ¶
func (*DefaultRenderEngine) BeginCluster ¶
func (e *DefaultRenderEngine) BeginCluster(_ context.Context, _ *Job) error
func (*DefaultRenderEngine) BeginEdge ¶
func (e *DefaultRenderEngine) BeginEdge(_ context.Context, _ *Job) error
func (*DefaultRenderEngine) BeginEdges ¶
func (e *DefaultRenderEngine) BeginEdges(_ context.Context, _ *Job) error
func (*DefaultRenderEngine) BeginGraph ¶
func (e *DefaultRenderEngine) BeginGraph(_ context.Context, _ *Job) error
func (*DefaultRenderEngine) BeginJob ¶
func (e *DefaultRenderEngine) BeginJob(_ context.Context, _ *Job) error
func (*DefaultRenderEngine) BeginLabel ¶
func (*DefaultRenderEngine) BeginLayer ¶
func (*DefaultRenderEngine) BeginNode ¶
func (e *DefaultRenderEngine) BeginNode(_ context.Context, _ *Job) error
func (*DefaultRenderEngine) BeginNodes ¶
func (e *DefaultRenderEngine) BeginNodes(_ context.Context, _ *Job) error
func (*DefaultRenderEngine) BeginPage ¶
func (e *DefaultRenderEngine) BeginPage(_ context.Context, _ *Job) error
func (*DefaultRenderEngine) BezierCurve ¶
func (e *DefaultRenderEngine) BezierCurve(_ context.Context, _ *Job, _ []*PointFloat, _ bool) error
func (*DefaultRenderEngine) Ellipse ¶
func (e *DefaultRenderEngine) Ellipse(_ context.Context, _ *Job, _ []*PointFloat, _ bool) error
func (*DefaultRenderEngine) EndAnchor ¶
func (e *DefaultRenderEngine) EndAnchor(_ context.Context, _ *Job) error
func (*DefaultRenderEngine) EndCluster ¶
func (e *DefaultRenderEngine) EndCluster(_ context.Context, _ *Job) error
func (*DefaultRenderEngine) EndEdge ¶
func (e *DefaultRenderEngine) EndEdge(_ context.Context, _ *Job) error
func (*DefaultRenderEngine) EndEdges ¶
func (e *DefaultRenderEngine) EndEdges(_ context.Context, _ *Job) error
func (*DefaultRenderEngine) EndGraph ¶
func (e *DefaultRenderEngine) EndGraph(_ context.Context, _ *Job) error
func (*DefaultRenderEngine) EndJob ¶
func (e *DefaultRenderEngine) EndJob(_ context.Context, _ *Job) error
func (*DefaultRenderEngine) EndLabel ¶
func (e *DefaultRenderEngine) EndLabel(_ context.Context, _ *Job) error
func (*DefaultRenderEngine) EndLayer ¶
func (e *DefaultRenderEngine) EndLayer(_ context.Context, _ *Job) error
func (*DefaultRenderEngine) EndNode ¶
func (e *DefaultRenderEngine) EndNode(_ context.Context, _ *Job) error
func (*DefaultRenderEngine) EndNodes ¶
func (e *DefaultRenderEngine) EndNodes(_ context.Context, _ *Job) error
func (*DefaultRenderEngine) EndPage ¶
func (e *DefaultRenderEngine) EndPage(_ context.Context, _ *Job) error
func (*DefaultRenderEngine) LibraryShape ¶
func (e *DefaultRenderEngine) LibraryShape(_ context.Context, _ *Job, _ string, _ []*PointFloat, _ bool) error
func (*DefaultRenderEngine) Polygon ¶
func (e *DefaultRenderEngine) Polygon(_ context.Context, _ *Job, _ []*PointFloat, _ bool) error
func (*DefaultRenderEngine) Polyline ¶
func (e *DefaultRenderEngine) Polyline(_ context.Context, _ *Job, _ []*PointFloat) error
func (*DefaultRenderEngine) ResolveColor ¶
func (*DefaultRenderEngine) TextSpan ¶
func (e *DefaultRenderEngine) TextSpan(_ context.Context, _ *Job, _ *PointFloat, _ *TextSpan) error
type DeviceFeature ¶
type DeviceFeature int64
var ( DeviceDoesPages DeviceFeature = DeviceFeature(wasm.DEVICE_DOES_PAGES) DeviceDoesLayers DeviceFeature = DeviceFeature(wasm.DEVICE_DOES_LAYERS) DeviceEvents DeviceFeature = DeviceFeature(wasm.DEVICE_EVENTS) DeviceDoesTrueColor DeviceFeature = DeviceFeature(wasm.DEVICE_DOES_TRUECOLOR) DeviceBinaryFormat DeviceFeature = DeviceFeature(wasm.DEVICE_BINARY_FORMAT) DeviceCompressedFormat DeviceFeature = DeviceFeature(wasm.DEVICE_COMPRESSED_FORMAT) DeviceNoWriter DeviceFeature = DeviceFeature(wasm.DEVICE_NO_WRITER) )
type DevicePlugin ¶
type DevicePlugin struct {
// contains filtered or unexported fields
}
func JPGDevicePlugin ¶
func JPGDevicePlugin(ctx context.Context) (*DevicePlugin, error)
func NewDevicePlugin ¶
func NewDevicePlugin(ctx context.Context, typ string, opts ...DevicePluginOption) (*DevicePlugin, error)
func PNGDevicePlugin ¶
func PNGDevicePlugin(ctx context.Context) (*DevicePlugin, error)
type DevicePluginOption ¶
type DevicePluginOption func(*deviceConfig)
func WithDeviceDPI ¶
func WithDeviceDPI(x, y float64) DevicePluginOption
func WithDeviceFeatures ¶
func WithDeviceFeatures(features ...DeviceFeature) DevicePluginOption
func WithDeviceQuality ¶
func WithDeviceQuality(quality int) DevicePluginOption
type FontLoader ¶
type ImageRenderer ¶
type ImageRenderer struct {
*DefaultRenderEngine
// contains filtered or unexported fields
}
func (*ImageRenderer) BeginPage ¶
func (r *ImageRenderer) BeginPage(ctx context.Context, job *Job) error
func (*ImageRenderer) BezierCurve ¶
func (r *ImageRenderer) BezierCurve(ctx context.Context, job *Job, a []*PointFloat, filled bool) error
func (*ImageRenderer) Ellipse ¶
func (r *ImageRenderer) Ellipse(ctx context.Context, job *Job, p []*PointFloat, filled bool) error
func (*ImageRenderer) EndPage ¶
func (r *ImageRenderer) EndPage(ctx context.Context, job *Job) error
func (*ImageRenderer) Polygon ¶
func (r *ImageRenderer) Polygon(ctx context.Context, job *Job, a []*PointFloat, filled bool) error
func (*ImageRenderer) Polyline ¶
func (r *ImageRenderer) Polyline(ctx context.Context, job *Job, a []*PointFloat) error
func (*ImageRenderer) TextSpan ¶
func (r *ImageRenderer) TextSpan(ctx context.Context, job *Job, p *PointFloat, span *TextSpan) error
type ImageType ¶
type ImageType int
var ( ImageTypeNull ImageType = ImageType(wasm.IMAGE_TYPE_NULL) ImageTypeBMP ImageType = ImageType(wasm.IMAGE_TYPE_BMP) ImageTypeGIF ImageType = ImageType(wasm.IMAGE_TYPE_GIF) ImageTypePNG ImageType = ImageType(wasm.IMAGE_TYPE_PNG) ImageTypeJPEG ImageType = ImageType(wasm.IMAGE_TYPE_JPEG) ImageTypePDF ImageType = ImageType(wasm.IMAGE_TYPE_PDF) ImageTypePS ImageType = ImageType(wasm.IMAGE_TYPE_PS) ImageTypeEPS ImageType = ImageType(wasm.IMAGE_TYPE_EPS) ImageTypeSVG ImageType = ImageType(wasm.IMAGE_TYPE_SVG) ImageTypeXML ImageType = ImageType(wasm.IMAGE_TYPE_XML) ImageTypeRIFF ImageType = ImageType(wasm.IMAGE_TYPE_RIFF) ImageTypeWEBP ImageType = ImageType(wasm.IMAGE_TYPE_WEBP) ImageTypeICO ImageType = ImageType(wasm.IMAGE_TYPE_ICO) ImageTypeTIFF ImageType = ImageType(wasm.IMAGE_TYPE_TIFF) )
type Job ¶
type Job struct {
// contains filtered or unexported fields
}
func (*Job) DPI ¶
func (j *Job) DPI() *PointFloat
func (*Job) ExternalContext ¶
func (*Job) Object ¶
func (j *Job) Object() *ObjectState
func (*Job) OutputData ¶
func (*Job) OutputDataPosition ¶
func (*Job) OutputFileName ¶
func (*Job) OutputLangName ¶
func (*Job) SetDPI ¶
func (j *Job) SetDPI(v *PointFloat)
func (*Job) SetOutputData ¶
func (*Job) SetOutputDataPosition ¶
func (*Job) SetOutputFileName ¶
func (*Job) SetOutputLangName ¶
func (*Job) SetTranslation ¶
func (j *Job) SetTranslation(v *Translation)
func (*Job) Translation ¶
func (j *Job) Translation() *Translation
type LabelType ¶
type LabelType int
var ( LabelPlain LabelType = LabelType(wasm.LABEL_PLAIN) LabelHTML LabelType = LabelType(wasm.LABEL_HTML) )
type LoadImageEngine ¶
type LoadImagePlugin ¶
type LoadImagePlugin struct {
// contains filtered or unexported fields
}
func NewLoadImagePlugin ¶
func NewLoadImagePlugin(ctx context.Context, typ string, engine LoadImageEngine) (*LoadImagePlugin, error)
func PNGLoadImagePlugin ¶
func PNGLoadImagePlugin(ctx context.Context, engine LoadImageEngine) (*LoadImagePlugin, error)
type ObjectState ¶
type ObjectState struct {
// contains filtered or unexported fields
}
func (*ObjectState) Edge ¶
func (s *ObjectState) Edge() *cgraph.Edge
func (*ObjectState) Fill ¶
func (s *ObjectState) Fill() FillType
func (*ObjectState) FillColor ¶
func (s *ObjectState) FillColor() *Color
func (*ObjectState) Graph ¶
func (s *ObjectState) Graph() *cgraph.Graph
func (*ObjectState) Node ¶
func (s *ObjectState) Node() *cgraph.Node
func (*ObjectState) Pen ¶
func (s *ObjectState) Pen() PenType
func (*ObjectState) PenColor ¶
func (s *ObjectState) PenColor() *Color
func (*ObjectState) PenWidth ¶
func (s *ObjectState) PenWidth() float64
func (*ObjectState) RawStyle ¶
func (s *ObjectState) RawStyle() []string
func (*ObjectState) SetFill ¶
func (s *ObjectState) SetFill(v FillType)
func (*ObjectState) SetFillColor ¶
func (s *ObjectState) SetFillColor(v *Color)
func (*ObjectState) SetPen ¶
func (s *ObjectState) SetPen(v PenType)
func (*ObjectState) SetPenColor ¶
func (s *ObjectState) SetPenColor(v *Color)
func (*ObjectState) SetPenWidth ¶
func (s *ObjectState) SetPenWidth(v float64)
func (*ObjectState) SetType ¶
func (s *ObjectState) SetType(v ObjectType)
func (*ObjectState) StopColor ¶
func (s *ObjectState) StopColor() *Color
func (*ObjectState) Type ¶
func (s *ObjectState) Type() ObjectType
type ObjectType ¶
type ObjectType int
var ( RootGraphObjectType ObjectType = ObjectType(wasm.ROOTGRAPH_OBJTYPE) ClusterObjectType ObjectType = ObjectType(wasm.CLUSTER_OBJTYPE) NodeObjectType ObjectType = ObjectType(wasm.NODE_OBJTYPE) EdgeObjectType ObjectType = ObjectType(wasm.EDGE_OBJTYPE) )
type PointFloat ¶
type PointFloat struct {
// contains filtered or unexported fields
}
func (*PointFloat) SetX ¶
func (p *PointFloat) SetX(x float64)
func (*PointFloat) SetY ¶
func (p *PointFloat) SetY(y float64)
func (*PointFloat) X ¶
func (p *PointFloat) X() float64
func (*PointFloat) Y ¶
func (p *PointFloat) Y() float64
type PostScriptAlias ¶
type PostScriptAlias struct {
// contains filtered or unexported fields
}
func (*PostScriptAlias) Family ¶
func (s *PostScriptAlias) Family() string
func (*PostScriptAlias) Name ¶
func (s *PostScriptAlias) Name() string
func (*PostScriptAlias) SVGFontFamily ¶
func (s *PostScriptAlias) SVGFontFamily() string
func (*PostScriptAlias) SVGFontStyle ¶
func (s *PostScriptAlias) SVGFontStyle() string
func (*PostScriptAlias) SVGFontWeight ¶
func (s *PostScriptAlias) SVGFontWeight() string
func (*PostScriptAlias) SetFamily ¶
func (s *PostScriptAlias) SetFamily(v string)
func (*PostScriptAlias) SetName ¶
func (s *PostScriptAlias) SetName(v string)
func (*PostScriptAlias) SetSVGFontFamily ¶
func (s *PostScriptAlias) SetSVGFontFamily(v string)
func (*PostScriptAlias) SetSVGFontStyle ¶
func (s *PostScriptAlias) SetSVGFontStyle(v string)
func (*PostScriptAlias) SetSVGFontWeight ¶
func (s *PostScriptAlias) SetSVGFontWeight(v string)
func (*PostScriptAlias) SetStretch ¶
func (s *PostScriptAlias) SetStretch(v string)
func (*PostScriptAlias) SetStyle ¶
func (s *PostScriptAlias) SetStyle(v string)
func (*PostScriptAlias) SetWeight ¶
func (s *PostScriptAlias) SetWeight(v string)
func (*PostScriptAlias) SetXFigCode ¶
func (s *PostScriptAlias) SetXFigCode(v int)
func (*PostScriptAlias) Stretch ¶
func (s *PostScriptAlias) Stretch() string
func (*PostScriptAlias) Style ¶
func (s *PostScriptAlias) Style() string
func (*PostScriptAlias) Weight ¶
func (s *PostScriptAlias) Weight() string
func (*PostScriptAlias) XFigCode ¶
func (s *PostScriptAlias) XFigCode() int
type RenderEngine ¶
type RenderEngine interface {
BeginJob(ctx context.Context, job *Job) error
EndJob(ctx context.Context, job *Job) error
BeginGraph(ctx context.Context, job *Job) error
EndGraph(ctx context.Context, job *Job) error
BeginLayer(ctx context.Context, job *Job, layerName string, layerNum, numLayers int) error
EndLayer(ctx context.Context, job *Job) error
BeginPage(ctx context.Context, job *Job) error
EndPage(ctx context.Context, job *Job) error
BeginCluster(ctx context.Context, job *Job) error
EndCluster(ctx context.Context, job *Job) error
BeginNodes(ctx context.Context, job *Job) error
EndNodes(ctx context.Context, job *Job) error
BeginEdges(ctx context.Context, job *Job) error
EndEdges(ctx context.Context, job *Job) error
BeginNode(ctx context.Context, job *Job) error
EndNode(ctx context.Context, job *Job) error
BeginEdge(ctx context.Context, job *Job) error
EndEdge(ctx context.Context, job *Job) error
BeginAnchor(ctx context.Context, job *Job, href, tooltip, target, id string) error
EndAnchor(ctx context.Context, job *Job) error
BeginLabel(ctx context.Context, job *Job, labelType LabelType) error
EndLabel(ctx context.Context, job *Job) error
TextSpan(ctx context.Context, job *Job, point *PointFloat, textSpan *TextSpan) error
ResolveColor(ctx context.Context, job *Job, color *Color) error
Ellipse(ctx context.Context, job *Job, points []*PointFloat, filled bool) error
Polygon(ctx context.Context, job *Job, points []*PointFloat, filled bool) error
BezierCurve(ctx context.Context, job *Job, points []*PointFloat, filled bool) error
Polyline(ctx context.Context, job *Job, points []*PointFloat) error
Comment(ctx context.Context, job *Job, comment string) error
LibraryShape(ctx context.Context, job *Job, s string, points []*PointFloat, filled bool) error
LoadImage(ctx context.Context, job *Job, shape *UserShape, box *BoxFloat, filled bool) error
}
type RenderFeature ¶
type RenderFeature int64
var ( RenderYGoesDown RenderFeature = RenderFeature(wasm.RENDER_Y_GOES_DOWN) RenderDoesTransform RenderFeature = RenderFeature(wasm.RENDER_DOES_TRANSFORM) RenderDoesLabels RenderFeature = RenderFeature(wasm.RENDER_DOES_LABELS) RenderDoesMaps RenderFeature = RenderFeature(wasm.RENDER_DOES_MAPS) RenderDoesMapRectangle RenderFeature = RenderFeature(wasm.RENDER_DOES_MAP_RECTANGLE) RenderDoesMapCircle RenderFeature = RenderFeature(wasm.RENDER_DOES_MAP_CIRCLE) RenderDoesMapPolygon RenderFeature = RenderFeature(wasm.RENDER_DOES_MAP_POLYGON) RenderDoesMapEllipse RenderFeature = RenderFeature(wasm.RENDER_DOES_MAP_ELLIPSE) RenderDoesMapBspline RenderFeature = RenderFeature(wasm.RENDER_DOES_MAP_BSPLINE) RenderDoesTooltips RenderFeature = RenderFeature(wasm.RENDER_DOES_TOOLTIPS) RenderDoesTargets RenderFeature = RenderFeature(wasm.RENDER_DOES_TARGETS) RenderDoesZ RenderFeature = RenderFeature(wasm.RENDER_DOES_Z) RenderNoWhiteBg RenderFeature = RenderFeature(wasm.RENDER_NO_WHITE_BG) )
type RenderPlugin ¶
type RenderPlugin struct {
// contains filtered or unexported fields
}
func JPGRenderPlugin ¶
func JPGRenderPlugin(ctx context.Context) (*RenderPlugin, error)
func NewRenderPlugin ¶
func NewRenderPlugin(ctx context.Context, typ string, engine RenderEngine, opts ...RenderPluginOption) (*RenderPlugin, error)
func PNGRenderPlugin ¶
func PNGRenderPlugin(ctx context.Context) (*RenderPlugin, error)
func (*RenderPlugin) RenderEngine ¶
func (p *RenderPlugin) RenderEngine() RenderEngine
type RenderPluginOption ¶
type RenderPluginOption func(*renderConfig)
func WithRenderColorType ¶
func WithRenderColorType(typ ColorType) RenderPluginOption
func WithRenderFeatures ¶
func WithRenderFeatures(features ...RenderFeature) RenderPluginOption
func WithRenderPAD ¶
func WithRenderPAD(pad float64) RenderPluginOption
func WithRenderQuality ¶
func WithRenderQuality(quality int) RenderPluginOption
type Scale ¶
type Scale = PointFloat
type TextFont ¶
type TextFont struct {
// contains filtered or unexported fields
}
func (*TextFont) PostScriptAlias ¶
func (f *TextFont) PostScriptAlias() *PostScriptAlias
func (*TextFont) SetPostScriptAlias ¶
func (f *TextFont) SetPostScriptAlias(v *PostScriptAlias)
type TextSpan ¶
type TextSpan struct {
// contains filtered or unexported fields
}
func (*TextSpan) SetSize ¶
func (s *TextSpan) SetSize(v *PointFloat)
func (*TextSpan) SetYOffsetCenterLine ¶
func (*TextSpan) SetYOffsetLayout ¶
func (*TextSpan) Size ¶
func (s *TextSpan) Size() *PointFloat
func (*TextSpan) YOffsetCenterLine ¶
func (*TextSpan) YOffsetLayout ¶
type Translation ¶
type Translation = PointFloat
type UserShape ¶
type UserShape struct {
// contains filtered or unexported fields
}
func (*UserShape) MustInline ¶
func (*UserShape) SetDataSize ¶
func (*UserShape) SetImageType ¶
func (*UserShape) SetMacroID ¶
func (*UserShape) SetMustInline ¶
func (*UserShape) SetNoCache ¶
func (*UserShape) SetStringType ¶
func (*UserShape) StringType ¶
Click to show internal directories.
Click to hide internal directories.