mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
1 parent
9c84264ac7
commit
2370fb07d8
2 files changed
+28
-31
No files matched your search
+10
-12
@@ -30,21 +30,19 @@ const (
|
||||
// GeometryOperation 指定路径填充区域的布尔运算
|
||||
type GeometryOperation uint8
|
||||
|
||||
// StrokeOptions 描述描边参数,长度单位为毫米,MiterLimitSet区分显式零值与默认截断值
|
||||
// StrokeOptions 描述描边参数,长度单位为毫米
|
||||
// Width须为正有限数;Cap和Join使用OFD名称,空值分别采用Butt和Miter
|
||||
// MiterLimit为尖角长度与半线宽的比值上限,MiterLimitSet区分显式零值与默认值
|
||||
// DashOffset为虚线起始偏移,允许负值;Dashes交替指定实线段和间隔长度,奇数项按重复一遍处理
|
||||
// Tolerance为曲线展开的误差目标,0采用后端默认精度
|
||||
type StrokeOptions struct {
|
||||
// Width为正有限描边宽度
|
||||
Width float64
|
||||
// Cap和Join使用OFD名称,空值分别采用Butt和Miter
|
||||
Cap, Join string
|
||||
// MiterLimit为尖角长度与半线宽的比值上限
|
||||
Width float64
|
||||
Cap, Join string
|
||||
MiterLimit float64
|
||||
MiterLimitSet bool
|
||||
// DashOffset为绝对长度的虚线相位,允许负值
|
||||
DashOffset float64
|
||||
// Tolerance为曲线展开误差目标,0采用后端默认精度
|
||||
Tolerance float64
|
||||
// Dashes为交替绘制和留空的绝对长度,奇数项按重复一遍处理
|
||||
Dashes []float64
|
||||
DashOffset float64
|
||||
Tolerance float64
|
||||
Dashes []float64
|
||||
}
|
||||
|
||||
// GeometryBackend 操作库自有路径,坐标以页面左上角为原点,不修改任何输入
|
||||
|
||||
+18
-19
@@ -44,27 +44,26 @@ type SignatureWriteMode uint8
|
||||
// SM2数字签名使用GB/T35275-2017消息结构;RSA/ECDSA使用裸签名,验签需WithSignatureCert
|
||||
// Seal仅接受已有合法SES v4电子印章,使用SM2/SM3,不声明GM/T0031-2025兼容
|
||||
// TrustRoots必须显式指定;证书吊销状态和外部业务授权由调用方在签署前检查
|
||||
// Time为签署方声明的时间,不是可信时间戳,零值取当前时间;Lock保护签名列表,禁止后续追加签署
|
||||
// ExistingVerifyOptions用于追加签署前和写出后的验证,可提供已有裸签名的验证证书
|
||||
// ReaderOptions用于打开加密包;Encryption为空时继承阅读器的加密策略
|
||||
// Compression在计算签名前优化图像,不改写已有签名保护的资源
|
||||
type SignatureWriteOptions struct {
|
||||
Signer crypto.Signer
|
||||
Certificate []byte
|
||||
TrustRoots [][]byte
|
||||
Intermediates [][]byte
|
||||
Seal []byte
|
||||
Stamps []SignatureStamp
|
||||
Mode SignatureWriteMode
|
||||
// Time是自报签署时间,不是可信时间戳;零值取当前时间
|
||||
Time time.Time
|
||||
Provider SignatureProvider
|
||||
// Lock保护签名列表,禁止后续追加签署
|
||||
Lock bool
|
||||
// ExistingVerifyOptions用于追加前与写出后回验,例如提供其他旧裸签名的证书
|
||||
Signer crypto.Signer
|
||||
Certificate []byte
|
||||
TrustRoots [][]byte
|
||||
Intermediates [][]byte
|
||||
Seal []byte
|
||||
Stamps []SignatureStamp
|
||||
Mode SignatureWriteMode
|
||||
Time time.Time
|
||||
Provider SignatureProvider
|
||||
Lock bool
|
||||
ExistingVerifyOptions []SignatureVerifyOption
|
||||
// ReaderOptions用于打开加密包;Encryption为空时继承阅读器的加密策略
|
||||
ReaderOptions []ReaderOption
|
||||
Encryption *EncryptionOptions
|
||||
// Compression在签名计算前优化图片,已有签名的资源不额外改写
|
||||
Compression CompressionOptions
|
||||
progress editorProgress
|
||||
ReaderOptions []ReaderOption
|
||||
Encryption *EncryptionOptions
|
||||
Compression CompressionOptions
|
||||
progress editorProgress
|
||||
}
|
||||
|
||||
// signatureWriteInfo 写出签名信息,省略数字签名中不存在的印章
|
||||
|
||||
Reference in new issue
Block a user