Documentation
¶
Index ¶
- func ContainsProperty(cmaps []methods.Result, property string) bool
- func CreateLegend(items []LegendItem) ([]byte, error)
- func EmbedEagleEye(imageA, imageB []byte, scale float64, padding int, position Position) ([]byte, error)
- func EmbedEagleEyeWithDefaults(imageA, imageB []byte) ([]byte, error)
- func TLImgMake(tableName string) ([]byte, error)
- func TLImgMakeByUser(tableName string, Property string) ([]byte, error)
- func TLImgMakeFilter(tableName string, groupedResult []methods.Result) ([]byte, error)
- type LegendItem
- type Position
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsProperty ¶ added in v1.2.8
ContainsProperty 判断指定的 property 值是否存在于 CMap 切片中
func CreateLegend ¶
func CreateLegend(items []LegendItem) ([]byte, error)
func EmbedEagleEye ¶
func EmbedEagleEye(imageA, imageB []byte, scale float64, padding int, position Position) ([]byte, error)
EmbedEagleEye 将A图片镶嵌在B图片的指定位置作为鹰眼图 imageA: 要镶嵌的图片数据 imageB: 主图片数据 scale: A图片相对于B图片的缩放比例 (0-1之间,例如0.2表示A图片宽度为B图片宽度的20%) padding: 鹰眼图距离边角的内边距(像素) position: 鹰眼图的位置(左上、右上、左下、右下、正上、正下、正左、正右) 返回合成后的图片数据
func EmbedEagleEyeWithDefaults ¶
EmbedEagleEyeWithDefaults 使用默认参数的便捷函数 默认缩放比例为0.2,内边距为10像素,位置为右下角
func TLImgMake ¶
TLImgMake 根据表名生成图例图片 参数:
tableName: 数据表名称,用于获取颜色配置
返回:
[]byte: 生成的图例图片字节数据 error: 错误信息,如果执行成功则为 nil
func TLImgMakeByUser ¶ added in v1.2.8
Types ¶
type LegendItem ¶
Click to show internal directories.
Click to hide internal directories.