vislite 0.7.1-alpha.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG +181 -177
- package/lib/Buffer/index.umd.js +2 -2
- package/lib/Buffer/index.umd.min.js +2 -2
- package/lib/Canvas/index.umd.js +19 -13
- package/lib/Canvas/index.umd.min.js +3 -3
- package/lib/Cardinal/index.umd.js +2 -2
- package/lib/Cardinal/index.umd.min.js +2 -2
- package/lib/Eoap/index.umd.js +2 -2
- package/lib/Eoap/index.umd.min.js +2 -2
- package/lib/Geometry/index.umd.js +2 -2
- package/lib/Geometry/index.umd.min.js +2 -2
- package/lib/Hermite/index.umd.js +2 -2
- package/lib/Hermite/index.umd.min.js +2 -2
- package/lib/Matrix4/index.umd.js +2 -2
- package/lib/Matrix4/index.umd.min.js +2 -2
- package/lib/Mercator/index.umd.js +2 -2
- package/lib/Mercator/index.umd.min.js +2 -2
- package/lib/OralCanvas/index.es.js +11 -7
- package/lib/OralCanvas/index.es.min.js +3 -3
- package/lib/OralWebGL/index.es.js +2 -2
- package/lib/OralWebGL/index.es.min.js +2 -2
- package/lib/SVG/index.umd.js +2 -2
- package/lib/SVG/index.umd.min.js +2 -2
- package/lib/Shader/index.umd.js +2 -2
- package/lib/Shader/index.umd.min.js +2 -2
- package/lib/Texture/index.umd.js +2 -2
- package/lib/Texture/index.umd.min.js +2 -2
- package/lib/TreeLayout/index.umd.js +2 -2
- package/lib/TreeLayout/index.umd.min.js +2 -2
- package/lib/WebGL/index.umd.js +2 -2
- package/lib/WebGL/index.umd.min.js +2 -2
- package/lib/animation/index.umd.js +2 -2
- package/lib/animation/index.umd.min.js +2 -2
- package/lib/formatColor/index.umd.js +2 -2
- package/lib/formatColor/index.umd.min.js +2 -2
- package/lib/getLoopColors/index.umd.js +2 -2
- package/lib/getLoopColors/index.umd.min.js +2 -2
- package/lib/getWebGLContext/index.umd.js +2 -2
- package/lib/getWebGLContext/index.umd.min.js +2 -2
- package/lib/index.umd.js +19 -13
- package/lib/index.umd.min.js +3 -3
- package/lib/move/index.umd.js +2 -2
- package/lib/move/index.umd.min.js +2 -2
- package/lib/resizeObserver/index.umd.js +2 -2
- package/lib/resizeObserver/index.umd.min.js +2 -2
- package/lib/rotate/index.umd.js +2 -2
- package/lib/rotate/index.umd.min.js +2 -2
- package/lib/ruler/index.umd.js +2 -2
- package/lib/ruler/index.umd.min.js +2 -2
- package/lib/scale/index.umd.js +2 -2
- package/lib/scale/index.umd.min.js +2 -2
- package/lib/throttle/index.umd.js +2 -2
- package/lib/throttle/index.umd.min.js +2 -2
- package/lib/viewHandler/index.umd.js +2 -2
- package/lib/viewHandler/index.umd.min.js +2 -2
- package/package.json +70 -70
- package/src/Canvas.ts +72 -70
- package/src/Geometry.ts +125 -126
- package/src/common/canvas/index.ts +183 -177
- package/src/common/canvas/painter.ts +419 -419
- package/src/common/webgl/shader.ts +75 -75
- package/types/Object3D.d.ts +114 -114
- package/types/Shader.d.ts +23 -23
- package/uni-app/ui-canvas.vue +281 -237
package/CHANGELOG
CHANGED
|
@@ -1,177 +1,181 @@
|
|
|
1
|
-
v0.1.0:
|
|
2
|
-
date:2023-04-29
|
|
3
|
-
changes:
|
|
4
|
-
- 初始化版本
|
|
5
|
-
1、Canvas
|
|
6
|
-
(支持平台:H5、uni-app(包括:H5、微信小程序、支付宝小程序)、微信小程序)
|
|
7
|
-
2、SVG画笔
|
|
8
|
-
(支持平台:H5)
|
|
9
|
-
3、Eoap 等角斜方位投影
|
|
10
|
-
4、rotate 旋转
|
|
11
|
-
5、Matrix4 变换矩阵
|
|
12
|
-
6、插值函数
|
|
13
|
-
(包括:Hermite、Cardinal)
|
|
14
|
-
7、getLoopColors 循环色彩
|
|
15
|
-
8、animation 动画
|
|
16
|
-
9、ruler 刻度尺
|
|
17
|
-
v0.1.1:
|
|
18
|
-
date:2023-05-07
|
|
19
|
-
changes:
|
|
20
|
-
- 修复bug
|
|
21
|
-
1、解决uni-app和微信小程序组件ui-canvas未绑定事件点击报错问题
|
|
22
|
-
v0.2.0:
|
|
23
|
-
date:2023-06-03
|
|
24
|
-
changes:
|
|
25
|
-
- 修复bug
|
|
26
|
-
1、为解决this问题,同时优化参数内容,修改了uni-app和微信小程序组件ui-canvas事件语法
|
|
27
|
-
(对旧语法进行了向下兼容)
|
|
28
|
-
2、校对types中定义的类型信息
|
|
29
|
-
3、修复uni-app组件ui-canvas在支付宝小程序区域计算相关错误
|
|
30
|
-
- 优化改造
|
|
31
|
-
1、针对Canvas和SVG的画笔配置config的属性名,统一使用小驼峰
|
|
32
|
-
(对旧语法进行了向下兼容)
|
|
33
|
-
- 新增功能
|
|
34
|
-
1、WebGL画笔
|
|
35
|
-
(支持平台:H5)
|
|
36
|
-
2、Mercator 墨卡托投影
|
|
37
|
-
3、Canvas新增功能
|
|
38
|
-
* 多行文字:fillTexts、strokeTexts、fullTexts
|
|
39
|
-
* 获取原始画笔:getContext
|
|
40
|
-
4、uni-app平台的ui-canvas新增cover属性配置,支持非原生渲染模式
|
|
41
|
-
5、控制信息捕获 viewHandler
|
|
42
|
-
(支持平台:H5)
|
|
43
|
-
v0.3.0:
|
|
44
|
-
date:2023-07-01
|
|
45
|
-
changes:
|
|
46
|
-
- 修复bug
|
|
47
|
-
1、Canvas画笔
|
|
48
|
-
* 在部分安卓手机上可能绘制失败问题
|
|
49
|
-
2、SVG画笔
|
|
50
|
-
* 部分情况下文字大小设置失败问题
|
|
51
|
-
* 配置失效问题
|
|
52
|
-
* 圆弧系列(fillArc、strokeArc、fullArc)和路径arc角度未正确使用角度值问题
|
|
53
|
-
3、WebGL画笔
|
|
54
|
-
* render方法中itemSize设置无效问题
|
|
55
|
-
4、修复Cardinal插值超过界限的值问题
|
|
56
|
-
- 新增功能
|
|
57
|
-
1、Canvas画笔
|
|
58
|
-
* createLinearGradient 线性渐变色
|
|
59
|
-
* createRadialGradient 环形渐变色
|
|
60
|
-
* clip 裁剪
|
|
61
|
-
* 绘制圆弧系列(fillArc、strokeArc、fullArc)的闭合方式添加```-round```选项
|
|
62
|
-
* getColor 获取指定位置颜色
|
|
63
|
-
2、SVG画笔
|
|
64
|
-
* 绘制圆弧系列(fillArc、strokeArc、fullArc)的闭合方式添加```-round```选项
|
|
65
|
-
3、WebGL画笔
|
|
66
|
-
* 材料material新增多颜色值colors
|
|
67
|
-
4、朴素的WebGL接口集合
|
|
68
|
-
* getWebGLContext 画笔
|
|
69
|
-
* Shader 着色器
|
|
70
|
-
* Buffer 缓冲区
|
|
71
|
-
* Texture 纹理
|
|
72
|
-
v0.3.1:
|
|
73
|
-
date:2023-07-08
|
|
74
|
-
changes:
|
|
75
|
-
- 修复bug
|
|
76
|
-
1、Canvas画笔
|
|
77
|
-
* 优化区域计算有时候出错问题
|
|
78
|
-
v0.4.0:
|
|
79
|
-
date:2023-07-22
|
|
80
|
-
changes:
|
|
81
|
-
- 新增功能
|
|
82
|
-
1、Canvas画笔
|
|
83
|
-
* textWidth 计算文字宽
|
|
84
|
-
v0.4.1:
|
|
85
|
-
date:2023-09-03
|
|
86
|
-
changes:
|
|
87
|
-
- 修复bug
|
|
88
|
-
1、uni-app平台的ui-canvas在微信小程序环境下有时会绘制失败并渲染过慢问题
|
|
89
|
-
2、Canvas画笔
|
|
90
|
-
* 多行文字(fillTexts、strokeTexts、fullTexts)在处理有换行文字时的未正确处理
|
|
91
|
-
3、SVG画笔
|
|
92
|
-
* 部分默认值失效
|
|
93
|
-
- 优化改造
|
|
94
|
-
1、优化WebGL区域计算设计
|
|
95
|
-
2、丰富types并暴露更多有用的类型对象
|
|
96
|
-
- 新增功能
|
|
97
|
-
1、Canvas画笔
|
|
98
|
-
* 添加region配置,可以控制是否支持区域管理
|
|
99
|
-
* onlyRegion 区域模式
|
|
100
|
-
2、WebGL画笔
|
|
101
|
-
* 添加region配置,可以控制是否支持区域管理
|
|
102
|
-
3、uni-app平台的ui-canvas
|
|
103
|
-
* 画笔的draw方法对外暴露更丰富的参数
|
|
104
|
-
* 添加region属性,可以控制是否支持区域管理
|
|
105
|
-
4、微信小程序平台的ui-canvas
|
|
106
|
-
* 添加region属性,可以控制是否支持区域管理
|
|
107
|
-
5、viewHandler新增对悬浮hover事件的捕获并统一添加event参数
|
|
108
|
-
6、刻度尺算法ruler新增可选上下界约束
|
|
109
|
-
7、颜色格式化 formatColor
|
|
110
|
-
(支持平台:H5)
|
|
111
|
-
8、节点缩放监听 resizeObserver
|
|
112
|
-
(支持平台:H5)
|
|
113
|
-
9、节流函数 throttle
|
|
114
|
-
10、布局
|
|
115
|
-
* 树布局 treeLayout
|
|
116
|
-
11、着色器compile方法丰富参数(添加color、colors、image、cube四种内置着色器程序)
|
|
117
|
-
v0.5.0:
|
|
118
|
-
date:2023-10-01
|
|
119
|
-
changes:
|
|
120
|
-
- 修复bug
|
|
121
|
-
1、SVG画笔
|
|
122
|
-
* 修改文字默认值错误(50恢复成16)
|
|
123
|
-
- 优化改造
|
|
124
|
-
1、一些types定义优化(比如 Array<number> 改成更具体的 [number, number] 类型)
|
|
125
|
-
- 新增功能
|
|
126
|
-
1、Geometry 立方体运算
|
|
127
|
-
* cylinder 圆柱体
|
|
128
|
-
* prism 棱柱体
|
|
129
|
-
* sphere 球体
|
|
130
|
-
2、SVG画笔
|
|
131
|
-
* bind 绑定事件
|
|
132
|
-
3、布局的bind和use方法新增第二个可选参数noOpens,用于控制结点默认是否闭合
|
|
133
|
-
v0.5.2:
|
|
134
|
-
date:2023-11-04
|
|
135
|
-
changes:
|
|
136
|
-
- 修复bug
|
|
137
|
-
1、修复ui-canvas在支付宝小程序模拟器中的错误
|
|
138
|
-
- 新增功能
|
|
139
|
-
1、move 移动
|
|
140
|
-
2、scale 缩放
|
|
141
|
-
3、SVG画笔
|
|
142
|
-
* createLinearGradient 线性渐变色
|
|
143
|
-
* createRadialGradient 环形渐变色
|
|
144
|
-
v0.6.0:
|
|
145
|
-
date:2023-12-17
|
|
146
|
-
changes:
|
|
147
|
-
- 修复bug
|
|
148
|
-
1、修复ruler值出现浮点“不精确”问题
|
|
149
|
-
- 优化改造
|
|
150
|
-
1、uni-app平台的ui-canvas明确为inline-block盒子
|
|
151
|
-
2、开发环境添加了eslint
|
|
152
|
-
- 新增功能
|
|
153
|
-
1、Canvas画笔
|
|
154
|
-
* getInfo 获取画布信息
|
|
155
|
-
* H5环境下创建的时候添加willReadFrequently配置
|
|
156
|
-
2、Matrix4 变换矩阵
|
|
157
|
-
* setValue 设置内置矩阵
|
|
158
|
-
v0.7.0:
|
|
159
|
-
date:2024-01-14
|
|
160
|
-
changes:
|
|
161
|
-
- 修复bug
|
|
162
|
-
1、修复ui-canvas在HBuilderX中使用“发行”打包成H5后css代码未生效问题
|
|
163
|
-
(这应该是HBuilderX自身的BUG,但为了快速修复,内部消化)
|
|
164
|
-
- 优化改造
|
|
165
|
-
1、一些types定义优化
|
|
166
|
-
* 针对svg新增:svgElType、svgBoardType
|
|
167
|
-
2、Geometry 立方体运算
|
|
168
|
-
* 针对 “prism 棱柱体” 和 “cylinder 圆柱体” 新增直接设置起终点方式
|
|
169
|
-
* 给拼接成立方体的每个小片定义一个名称
|
|
170
|
-
3、开启严格模式并进行相关代码调整
|
|
171
|
-
(使得更多问题提前暴露出来,提高代码质量)
|
|
172
|
-
v0.7.1:
|
|
173
|
-
date:
|
|
174
|
-
changes:
|
|
175
|
-
- 修复bug
|
|
176
|
-
1、修复types中类型定义错误
|
|
177
|
-
* Object3D.d.ts中LINE_STRIP被误写成INE_STRIP
|
|
1
|
+
v0.1.0:
|
|
2
|
+
date:2023-04-29
|
|
3
|
+
changes:
|
|
4
|
+
- 初始化版本
|
|
5
|
+
1、Canvas
|
|
6
|
+
(支持平台:H5、uni-app(包括:H5、微信小程序、支付宝小程序)、微信小程序)
|
|
7
|
+
2、SVG画笔
|
|
8
|
+
(支持平台:H5)
|
|
9
|
+
3、Eoap 等角斜方位投影
|
|
10
|
+
4、rotate 旋转
|
|
11
|
+
5、Matrix4 变换矩阵
|
|
12
|
+
6、插值函数
|
|
13
|
+
(包括:Hermite、Cardinal)
|
|
14
|
+
7、getLoopColors 循环色彩
|
|
15
|
+
8、animation 动画
|
|
16
|
+
9、ruler 刻度尺
|
|
17
|
+
v0.1.1:
|
|
18
|
+
date:2023-05-07
|
|
19
|
+
changes:
|
|
20
|
+
- 修复bug
|
|
21
|
+
1、解决uni-app和微信小程序组件ui-canvas未绑定事件点击报错问题
|
|
22
|
+
v0.2.0:
|
|
23
|
+
date:2023-06-03
|
|
24
|
+
changes:
|
|
25
|
+
- 修复bug
|
|
26
|
+
1、为解决this问题,同时优化参数内容,修改了uni-app和微信小程序组件ui-canvas事件语法
|
|
27
|
+
(对旧语法进行了向下兼容)
|
|
28
|
+
2、校对types中定义的类型信息
|
|
29
|
+
3、修复uni-app组件ui-canvas在支付宝小程序区域计算相关错误
|
|
30
|
+
- 优化改造
|
|
31
|
+
1、针对Canvas和SVG的画笔配置config的属性名,统一使用小驼峰
|
|
32
|
+
(对旧语法进行了向下兼容)
|
|
33
|
+
- 新增功能
|
|
34
|
+
1、WebGL画笔
|
|
35
|
+
(支持平台:H5)
|
|
36
|
+
2、Mercator 墨卡托投影
|
|
37
|
+
3、Canvas新增功能
|
|
38
|
+
* 多行文字:fillTexts、strokeTexts、fullTexts
|
|
39
|
+
* 获取原始画笔:getContext
|
|
40
|
+
4、uni-app平台的ui-canvas新增cover属性配置,支持非原生渲染模式
|
|
41
|
+
5、控制信息捕获 viewHandler
|
|
42
|
+
(支持平台:H5)
|
|
43
|
+
v0.3.0:
|
|
44
|
+
date:2023-07-01
|
|
45
|
+
changes:
|
|
46
|
+
- 修复bug
|
|
47
|
+
1、Canvas画笔
|
|
48
|
+
* 在部分安卓手机上可能绘制失败问题
|
|
49
|
+
2、SVG画笔
|
|
50
|
+
* 部分情况下文字大小设置失败问题
|
|
51
|
+
* 配置失效问题
|
|
52
|
+
* 圆弧系列(fillArc、strokeArc、fullArc)和路径arc角度未正确使用角度值问题
|
|
53
|
+
3、WebGL画笔
|
|
54
|
+
* render方法中itemSize设置无效问题
|
|
55
|
+
4、修复Cardinal插值超过界限的值问题
|
|
56
|
+
- 新增功能
|
|
57
|
+
1、Canvas画笔
|
|
58
|
+
* createLinearGradient 线性渐变色
|
|
59
|
+
* createRadialGradient 环形渐变色
|
|
60
|
+
* clip 裁剪
|
|
61
|
+
* 绘制圆弧系列(fillArc、strokeArc、fullArc)的闭合方式添加```-round```选项
|
|
62
|
+
* getColor 获取指定位置颜色
|
|
63
|
+
2、SVG画笔
|
|
64
|
+
* 绘制圆弧系列(fillArc、strokeArc、fullArc)的闭合方式添加```-round```选项
|
|
65
|
+
3、WebGL画笔
|
|
66
|
+
* 材料material新增多颜色值colors
|
|
67
|
+
4、朴素的WebGL接口集合
|
|
68
|
+
* getWebGLContext 画笔
|
|
69
|
+
* Shader 着色器
|
|
70
|
+
* Buffer 缓冲区
|
|
71
|
+
* Texture 纹理
|
|
72
|
+
v0.3.1:
|
|
73
|
+
date:2023-07-08
|
|
74
|
+
changes:
|
|
75
|
+
- 修复bug
|
|
76
|
+
1、Canvas画笔
|
|
77
|
+
* 优化区域计算有时候出错问题
|
|
78
|
+
v0.4.0:
|
|
79
|
+
date:2023-07-22
|
|
80
|
+
changes:
|
|
81
|
+
- 新增功能
|
|
82
|
+
1、Canvas画笔
|
|
83
|
+
* textWidth 计算文字宽
|
|
84
|
+
v0.4.1:
|
|
85
|
+
date:2023-09-03
|
|
86
|
+
changes:
|
|
87
|
+
- 修复bug
|
|
88
|
+
1、uni-app平台的ui-canvas在微信小程序环境下有时会绘制失败并渲染过慢问题
|
|
89
|
+
2、Canvas画笔
|
|
90
|
+
* 多行文字(fillTexts、strokeTexts、fullTexts)在处理有换行文字时的未正确处理
|
|
91
|
+
3、SVG画笔
|
|
92
|
+
* 部分默认值失效
|
|
93
|
+
- 优化改造
|
|
94
|
+
1、优化WebGL区域计算设计
|
|
95
|
+
2、丰富types并暴露更多有用的类型对象
|
|
96
|
+
- 新增功能
|
|
97
|
+
1、Canvas画笔
|
|
98
|
+
* 添加region配置,可以控制是否支持区域管理
|
|
99
|
+
* onlyRegion 区域模式
|
|
100
|
+
2、WebGL画笔
|
|
101
|
+
* 添加region配置,可以控制是否支持区域管理
|
|
102
|
+
3、uni-app平台的ui-canvas
|
|
103
|
+
* 画笔的draw方法对外暴露更丰富的参数
|
|
104
|
+
* 添加region属性,可以控制是否支持区域管理
|
|
105
|
+
4、微信小程序平台的ui-canvas
|
|
106
|
+
* 添加region属性,可以控制是否支持区域管理
|
|
107
|
+
5、viewHandler新增对悬浮hover事件的捕获并统一添加event参数
|
|
108
|
+
6、刻度尺算法ruler新增可选上下界约束
|
|
109
|
+
7、颜色格式化 formatColor
|
|
110
|
+
(支持平台:H5)
|
|
111
|
+
8、节点缩放监听 resizeObserver
|
|
112
|
+
(支持平台:H5)
|
|
113
|
+
9、节流函数 throttle
|
|
114
|
+
10、布局
|
|
115
|
+
* 树布局 treeLayout
|
|
116
|
+
11、着色器compile方法丰富参数(添加color、colors、image、cube四种内置着色器程序)
|
|
117
|
+
v0.5.0:
|
|
118
|
+
date:2023-10-01
|
|
119
|
+
changes:
|
|
120
|
+
- 修复bug
|
|
121
|
+
1、SVG画笔
|
|
122
|
+
* 修改文字默认值错误(50恢复成16)
|
|
123
|
+
- 优化改造
|
|
124
|
+
1、一些types定义优化(比如 Array<number> 改成更具体的 [number, number] 类型)
|
|
125
|
+
- 新增功能
|
|
126
|
+
1、Geometry 立方体运算
|
|
127
|
+
* cylinder 圆柱体
|
|
128
|
+
* prism 棱柱体
|
|
129
|
+
* sphere 球体
|
|
130
|
+
2、SVG画笔
|
|
131
|
+
* bind 绑定事件
|
|
132
|
+
3、布局的bind和use方法新增第二个可选参数noOpens,用于控制结点默认是否闭合
|
|
133
|
+
v0.5.2:
|
|
134
|
+
date:2023-11-04
|
|
135
|
+
changes:
|
|
136
|
+
- 修复bug
|
|
137
|
+
1、修复ui-canvas在支付宝小程序模拟器中的错误
|
|
138
|
+
- 新增功能
|
|
139
|
+
1、move 移动
|
|
140
|
+
2、scale 缩放
|
|
141
|
+
3、SVG画笔
|
|
142
|
+
* createLinearGradient 线性渐变色
|
|
143
|
+
* createRadialGradient 环形渐变色
|
|
144
|
+
v0.6.0:
|
|
145
|
+
date:2023-12-17
|
|
146
|
+
changes:
|
|
147
|
+
- 修复bug
|
|
148
|
+
1、修复ruler值出现浮点“不精确”问题
|
|
149
|
+
- 优化改造
|
|
150
|
+
1、uni-app平台的ui-canvas明确为inline-block盒子
|
|
151
|
+
2、开发环境添加了eslint
|
|
152
|
+
- 新增功能
|
|
153
|
+
1、Canvas画笔
|
|
154
|
+
* getInfo 获取画布信息
|
|
155
|
+
* H5环境下创建的时候添加willReadFrequently配置
|
|
156
|
+
2、Matrix4 变换矩阵
|
|
157
|
+
* setValue 设置内置矩阵
|
|
158
|
+
v0.7.0:
|
|
159
|
+
date:2024-01-14
|
|
160
|
+
changes:
|
|
161
|
+
- 修复bug
|
|
162
|
+
1、修复ui-canvas在HBuilderX中使用“发行”打包成H5后css代码未生效问题
|
|
163
|
+
(这应该是HBuilderX自身的BUG,但为了快速修复,内部消化)
|
|
164
|
+
- 优化改造
|
|
165
|
+
1、一些types定义优化
|
|
166
|
+
* 针对svg新增:svgElType、svgBoardType
|
|
167
|
+
2、Geometry 立方体运算
|
|
168
|
+
* 针对 “prism 棱柱体” 和 “cylinder 圆柱体” 新增直接设置起终点方式
|
|
169
|
+
* 给拼接成立方体的每个小片定义一个名称
|
|
170
|
+
3、开启严格模式并进行相关代码调整
|
|
171
|
+
(使得更多问题提前暴露出来,提高代码质量)
|
|
172
|
+
v0.7.1:
|
|
173
|
+
date:2024-01-20
|
|
174
|
+
changes:
|
|
175
|
+
- 修复bug
|
|
176
|
+
1、修复types中类型定义错误
|
|
177
|
+
* Object3D.d.ts中LINE_STRIP被误写成INE_STRIP
|
|
178
|
+
- 优化改造
|
|
179
|
+
1、提高Canvas绘图清晰度
|
|
180
|
+
* 普通H5端
|
|
181
|
+
* uniapp端(支付宝小程序)
|
package/lib/Buffer/index.umd.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* VISLite JavaScript Library v0.7.1
|
|
2
|
+
* VISLite JavaScript Library v0.7.1
|
|
3
3
|
* git+https://github.com/oi-contrib/VISLite.git
|
|
4
4
|
*
|
|
5
5
|
* Copyright zxl20070701
|
|
6
6
|
* Released under the MIT license
|
|
7
7
|
* https://zxl20070701.github.io/notebook/home.html
|
|
8
8
|
*
|
|
9
|
-
* Publish Date:
|
|
9
|
+
* Publish Date: Sat Jan 20 2024 00:04:36 GMT+0800 (中国标准时间)
|
|
10
10
|
*/
|
|
11
11
|
(function (global, factory) {
|
|
12
12
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* VISLite JavaScript Library v0.7.1
|
|
2
|
+
* VISLite JavaScript Library v0.7.1
|
|
3
3
|
* git+https://github.com/oi-contrib/VISLite.git
|
|
4
4
|
*
|
|
5
5
|
* Copyright zxl20070701
|
|
6
6
|
* Released under the MIT license
|
|
7
7
|
* https://zxl20070701.github.io/notebook/home.html
|
|
8
8
|
*
|
|
9
|
-
* Publish Date:
|
|
9
|
+
* Publish Date: Sat Jan 20 2024 00:04:36 GMT+0800 (中国标准时间)
|
|
10
10
|
*/
|
|
11
11
|
var t,e;t=this,e=function(){"use strict";return function(){function t(t,e){void 0===e&&(e=!1),this.__painter=t,this.__isElement=e,this.__buffer=function(t){return t.createBuffer()}(t),this.__type=e?t.ELEMENT_ARRAY_BUFFER:t.ARRAY_BUFFER}return t.prototype.use=function(){return this.__painter.bindBuffer(this.__type,this.__buffer),this},t.prototype.write=function(t){return function(t,e,i,n){var r=i?t.ELEMENT_ARRAY_BUFFER:t.ARRAY_BUFFER;t.bufferData(r,e,n)}(this.__painter,t,this.__isElement,this.__painter.STATIC_DRAW),this.__fsize=t.BYTES_PER_ELEMENT,this},t.prototype.divide=function(t,e,i,n){return void 0===n&&(n=0),function(t,e,i,n,r,_,f){t.vertexAttribPointer(e,i,n,f,r,_),t.enableVertexAttribArray(e)}(this.__painter,t,e,this.__painter.FLOAT,i*this.__fsize,n*this.__fsize,!1),this},t}()},"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).VISLite_Buffer=e();
|
package/lib/Canvas/index.umd.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* VISLite JavaScript Library v0.7.1
|
|
2
|
+
* VISLite JavaScript Library v0.7.1
|
|
3
3
|
* git+https://github.com/oi-contrib/VISLite.git
|
|
4
4
|
*
|
|
5
5
|
* Copyright zxl20070701
|
|
6
6
|
* Released under the MIT license
|
|
7
7
|
* https://zxl20070701.github.io/notebook/home.html
|
|
8
8
|
*
|
|
9
|
-
* Publish Date:
|
|
9
|
+
* Publish Date: Sat Jan 20 2024 00:04:36 GMT+0800 (中国标准时间)
|
|
10
10
|
*/
|
|
11
11
|
(function (global, factory) {
|
|
12
12
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
var Painter = (function () {
|
|
165
|
-
function Painter(canvas, opts, region, isPainter) {
|
|
165
|
+
function Painter(canvas, opts, region, isPainter, scaleSize) {
|
|
166
166
|
if (opts === void 0) { opts = {}; }
|
|
167
167
|
if (isPainter === void 0) { isPainter = false; }
|
|
168
168
|
this.__region = null;
|
|
@@ -554,14 +554,16 @@
|
|
|
554
554
|
};
|
|
555
555
|
var Canvas$1 = (function (_super) {
|
|
556
556
|
__extends(Canvas, _super);
|
|
557
|
-
function Canvas(ViewCanvas, RegionCanvas, opts) {
|
|
557
|
+
function Canvas(ViewCanvas, RegionCanvas, opts, scaleSize) {
|
|
558
558
|
if (opts === void 0) { opts = {}; }
|
|
559
|
+
if (scaleSize === void 0) { scaleSize = 1; }
|
|
559
560
|
var _this = _super.call(this, ViewCanvas, opts, RegionCanvas ? new Painter(RegionCanvas, {
|
|
560
561
|
willReadFrequently: true,
|
|
561
|
-
}) : undefined, true) || this;
|
|
562
|
+
}) : undefined, true, scaleSize) || this;
|
|
562
563
|
_this.name = "Canvas";
|
|
563
564
|
_this.__regionList = {};
|
|
564
565
|
_this.__regionAssemble = assemble(0, 255, 10, 3);
|
|
566
|
+
_this.__scaleSize = scaleSize;
|
|
565
567
|
_this.setRegion("");
|
|
566
568
|
return _this;
|
|
567
569
|
}
|
|
@@ -643,8 +645,8 @@
|
|
|
643
645
|
};
|
|
644
646
|
Canvas.prototype.getInfo = function () {
|
|
645
647
|
return {
|
|
646
|
-
width: this.painter.canvas.width,
|
|
647
|
-
height: this.painter.canvas.height
|
|
648
|
+
width: this.painter.canvas.width / this.__scaleSize,
|
|
649
|
+
height: this.painter.canvas.height / this.__scaleSize
|
|
648
650
|
};
|
|
649
651
|
};
|
|
650
652
|
Canvas.prototype.createLinearGradient = function (x0, y0, x1, y1) {
|
|
@@ -654,6 +656,8 @@
|
|
|
654
656
|
return radialGradient(this.painter, cx, cy, r);
|
|
655
657
|
};
|
|
656
658
|
Canvas.prototype.getColor = function (x, y) {
|
|
659
|
+
x *= this.__scaleSize;
|
|
660
|
+
y *= this.__scaleSize;
|
|
657
661
|
var currentRGBA = this.painter.getImageData(x - 0.5, y - 0.5, 1, 1).data;
|
|
658
662
|
return ("rgba(" +
|
|
659
663
|
currentRGBA[0] +
|
|
@@ -703,19 +707,21 @@
|
|
|
703
707
|
_el._vislite_canvas_ = [ViewCanvas, RegionCanvas];
|
|
704
708
|
el.setAttribute('vislite', 'Canvas');
|
|
705
709
|
}
|
|
706
|
-
|
|
707
|
-
|
|
710
|
+
var canvasArray = [RegionCanvas, ViewCanvas];
|
|
711
|
+
for (var index = 0; index < canvasArray.length; index++) {
|
|
712
|
+
var canvas = canvasArray[index];
|
|
708
713
|
if (canvas) {
|
|
709
714
|
canvas.style.width = width + "px";
|
|
710
|
-
canvas.setAttribute('width', width + "");
|
|
715
|
+
canvas.setAttribute('width', (index * width + width) + "");
|
|
711
716
|
canvas.style.height = height + "px";
|
|
712
|
-
canvas.setAttribute('height', height + "");
|
|
717
|
+
canvas.setAttribute('height', (index * height + height) + "");
|
|
713
718
|
}
|
|
714
719
|
}
|
|
715
720
|
_this = _super.call(this, ViewCanvas, RegionCanvas, {
|
|
716
|
-
willReadFrequently: option.willReadFrequently
|
|
717
|
-
}) || this;
|
|
721
|
+
willReadFrequently: option.willReadFrequently,
|
|
722
|
+
}, 2) || this;
|
|
718
723
|
_this.__canvas = ViewCanvas;
|
|
724
|
+
_this.painter.scale(2, 2);
|
|
719
725
|
return _this;
|
|
720
726
|
}
|
|
721
727
|
Canvas.prototype.toDataURL = function () {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* VISLite JavaScript Library v0.7.1
|
|
2
|
+
* VISLite JavaScript Library v0.7.1
|
|
3
3
|
* git+https://github.com/oi-contrib/VISLite.git
|
|
4
4
|
*
|
|
5
5
|
* Copyright zxl20070701
|
|
6
6
|
* Released under the MIT license
|
|
7
7
|
* https://zxl20070701.github.io/notebook/home.html
|
|
8
8
|
*
|
|
9
|
-
* Publish Date:
|
|
9
|
+
* Publish Date: Sat Jan 20 2024 00:04:36 GMT+0800 (中国标准时间)
|
|
10
10
|
*/
|
|
11
|
-
var t,i;t=this,i=function(){"use strict";var t=function(i,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])},t(i,e)};function i(i,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=i}t(i,e),i.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}"function"==typeof SuppressedError&&SuppressedError;var e=function(t,i,e,n,r){var o=Math.cos(e),s=Math.sin(e);return[+((n-t)*o-(r-i)*s+t).toFixed(7),+((n-t)*s+(r-i)*o+i).toFixed(7)]},n=function(t,i,e,n,r){return t.beginPath(),t.translate(e,n),t.rotate(r),t.font=i.fontStyle+" "+i.fontWeight+" "+i.fontSize+"px "+i.fontFamily,t},r=function(t,i,n,r,o,s,a,_){if(o>s){var h=o;o=s,s=h}return a%=2*Math.PI,_>=1.999999*Math.PI||_<=1.999999*-Math.PI?_=2*Math.PI:_%=2*Math.PI,function(t,i,n,r,o,s,a){i<0&&(t+=i,i*=-1);var _,h=[];_=e(0,0,t,o,0),h[0]=_[0],h[1]=_[1],_=e(0,0,i,_[0],_[1]),h[2]=_[0],h[3]=_[1],_=e(0,0,t,s,0),h[4]=_[0],h[5]=_[1],_=e(0,0,i,_[0],_[1]),h[6]=_[0],h[7]=_[1],a(t,t+i,h[0]+n,h[1]+r,h[4]+n,h[5]+r,h[2]+n,h[3]+r,h[6]+n,h[7]+r,.5*(s-o))}(a,_,n,r,o,s,(function(e,a,_,h,l,u,p,f,c,g,y){y<0&&(y=-y),t.beginPath(),t.moveTo(_,h),t.arc(n,r,o,e,a,!1),"round"==i.arcEndCap?t.arc(.5*(p+c),.5*(f+g),y,a-Math.PI,a,!0):"-round"==i.arcEndCap?t.arc(.5*(p+c),.5*(f+g),y,a-Math.PI,a,!1):t.lineTo(c,g),t.arc(n,r,s,a,e,!0),"round"==i.arcStartCap?t.arc(.5*(_+l),.5*(h+u),y,e,e-Math.PI,!0):"-round"==i.arcStartCap?t.arc(.5*(_+l),.5*(h+u),y,e,e-Math.PI,!1):t.lineTo(_,h)})),"butt"==i.arcStartCap&&t.closePath(),t},o=function(t,i,e,n){return t.beginPath(),t.moveTo(i+n,e),t.arc(i,e,n,0,2*Math.PI),t},s=function(t,i,e,n,r){return t.beginPath(),t.rect(i,e,n,r),t};function a(t,i,e,n,r){for(var o=0,s="",a=0;a<i.length;a++)t.measureText(s+i[a]).width>e||/\n$/.test(s)?(r(s,((o+=1)-.5)*n),s=i[a]):a==i.length-1?(o+=1,r(s+i[a],(o-.5)*n)):s+=i[a];return o*n}var _=function(){function t(t,i,e,n){void 0===i&&(i={}),void 0===n&&(n=!1),this.__region=null,this.__onlyRegion=!1,this.__specialConfig={fontSize:16,fontFamily:"sans-serif",fontWeight:400,fontStyle:"normal",arcStartCap:"butt",arcEndCap:"butt"},this.__initConfig={fillStyle:"black",strokeStyle:"black",lineWidth:1,textAlign:"left",textBaseline:"middle",lineDash:[],shadowBlur:0,shadowColor:"black"},this.painter=t.getContext("2d",i),this.__region=e,this.__isPainter=n,this.painter.textBaseline="middle",this.painter.textAlign="left"}return t.prototype.useConfig=function(t,i){if(this.__region&&["fillStyle","strokeStyle","shadowBlur","shadowColor"].indexOf(t)<0&&this.__region.useConfig(t,i),this.__isPainter&&this.__onlyRegion)return this;if("lineDash"==t)this.painter.setLineDash&&this.painter.setLineDash(i);else if(t in this.__specialConfig)"fontSize"==t&&(i=Math.round(i)),this.__specialConfig[t]=i;else{if(!(t in this.__initConfig))throw new Error("Illegal configuration item of painter : "+t+" !");this.painter[t]=i}return this},t.prototype.fillText=function(t,i,e,r){return void 0===r&&(r=0),this.__region&&this.__region.fillText(t,i,e,r),this.__isPainter&&this.__onlyRegion||(this.painter.save(),n(this.painter,this.__specialConfig,i,e,r).fillText(t,0,0),this.painter.restore()),this},t.prototype.strokeText=function(t,i,e,r){return void 0===r&&(r=0),this.__region&&this.__region.strokeText(t,i,e,r),this.__isPainter&&this.__onlyRegion||(this.painter.save(),n(this.painter,this.__specialConfig,i,e,r).strokeText(t,0,0),this.painter.restore()),this},t.prototype.fullText=function(t,i,e,r){return void 0===r&&(r=0),this.__region&&this.__region.fullText(t,i,e,r),this.__isPainter&&this.__onlyRegion||(this.painter.save(),n(this.painter,this.__specialConfig,i,e,r),this.painter.fillText(t,0,0),this.painter.strokeText(t,0,0),this.painter.restore()),this},t.prototype.fillTexts=function(t,i,e,r,o,s){var _=this;void 0===o&&(o=1.2),void 0===s&&(s=0);var h=0;if(this.__region&&(h=this.__region.fillTexts(t,i,e,r,o)),this.__isPainter&&this.__onlyRegion)return h;this.painter.save(),n(this.painter,this.__specialConfig,i,e,s);var l=a(this.painter,t,r,this.__specialConfig.fontSize*o,(function(t,i){_.painter.fillText(t,0,i)}));return this.painter.restore(),l},t.prototype.strokeTexts=function(t,i,e,r,o,s){var _=this;void 0===o&&(o=1.2),void 0===s&&(s=0);var h=0;if(this.__region&&(h=this.__region.fillTexts(t,i,e,r,o)),this.__isPainter&&this.__onlyRegion)return h;this.painter.save(),n(this.painter,this.__specialConfig,i,e,s);var l=a(this.painter,t,r,this.__specialConfig.fontSize*o,(function(t,i){_.painter.strokeText(t,0,i)}));return this.painter.restore(),l},t.prototype.fullTexts=function(t,i,e,r,o,s){var _=this;void 0===o&&(o=1.2),void 0===s&&(s=0);var h=0;if(this.__region&&(h=this.__region.fillTexts(t,i,e,r,o)),this.__isPainter&&this.__onlyRegion)return h;this.painter.save(),n(this.painter,this.__specialConfig,i,e,s);var l=a(this.painter,t,r,this.__specialConfig.fontSize*o,(function(t,i){_.painter.fillText(t,0,i),_.painter.strokeText(t,0,i)}));return this.painter.restore(),l},t.prototype.beginPath=function(){return this.__region&&this.__region.beginPath(),this.__isPainter&&this.__onlyRegion||this.painter.beginPath(),this},t.prototype.closePath=function(){return this.__region&&this.__region.closePath(),this.__isPainter&&this.__onlyRegion||this.painter.closePath(),this},t.prototype.moveTo=function(t,i){return this.__region&&this.__region.moveTo(t,i),this.__isPainter&&this.__onlyRegion||this.painter.moveTo(Math.round(t)+.5,Math.round(i)+.5),this},t.prototype.lineTo=function(t,i){return this.__region&&this.__region.lineTo(t,i),this.__isPainter&&this.__onlyRegion||this.painter.lineTo(Math.round(t)+.5,Math.round(i)+.5),this},t.prototype.arc=function(t,i,e,n,r){return this.__region&&this.__region.arc(t,i,e,n,r),this.__isPainter&&this.__onlyRegion||this.painter.arc(t,i,e,n,n+r,r<0),this},t.prototype.fill=function(){return this.__region&&this.__region.fill(),this.__isPainter&&this.__onlyRegion||this.painter.fill(),this},t.prototype.stroke=function(){return this.__region&&this.__region.stroke(),this.__isPainter&&this.__onlyRegion||this.painter.stroke(),this},t.prototype.full=function(){return this.__region&&this.__region.full(),this.__isPainter&&this.__onlyRegion||(this.painter.fill(),this.painter.stroke()),this},t.prototype.save=function(){return this.__region&&this.__region.save(),this.__isPainter&&this.__onlyRegion||this.painter.save(),this},t.prototype.restore=function(){return this.__region&&this.__region.restore(),this.__isPainter&&this.__onlyRegion||this.painter.restore(),this},t.prototype.clip=function(){return this.__region&&this.__region.clip(),this.__isPainter&&this.__onlyRegion||this.painter.clip(),this},t.prototype.quadraticCurveTo=function(t,i,e,n){return this.__region&&this.__region.quadraticCurveTo(t,i,e,n),this.__isPainter&&this.__onlyRegion||this.painter.quadraticCurveTo(t,i,e,n),this},t.prototype.bezierCurveTo=function(t,i,e,n,r,o){return this.__region&&this.__region.bezierCurveTo(t,i,e,n,r,o),this.__isPainter&&this.__onlyRegion||this.painter.bezierCurveTo(t,i,e,n,r,o),this},t.prototype.clearRect=function(t,i,e,n){return this.__region&&this.__region.clearRect(t,i,e,n),this.__isPainter&&this.__onlyRegion||this.painter.clearRect(t,i,e,n),this},t.prototype.fillArc=function(t,i,e,n,o,s){return this.__region&&this.__region.fillArc(t,i,e,n,o,s),this.__isPainter&&this.__onlyRegion||r(this.painter,this.__specialConfig,t,i,e,n,o,s).fill(),this},t.prototype.strokeArc=function(t,i,e,n,o,s){return this.__region&&this.__region.strokeArc(t,i,e,n,o,s),this.__isPainter&&this.__onlyRegion||r(this.painter,this.__specialConfig,t,i,e,n,o,s).stroke(),this},t.prototype.fullArc=function(t,i,e,n,o,s){return this.__region&&this.__region.fullArc(t,i,e,n,o,s),this.__isPainter&&this.__onlyRegion||(r(this.painter,this.__specialConfig,t,i,e,n,o,s),this.painter.fill(),this.painter.stroke()),this},t.prototype.fillCircle=function(t,i,e){return this.__region&&this.__region.fillCircle(t,i,e),this.__isPainter&&this.__onlyRegion||o(this.painter,t,i,e).fill(),this},t.prototype.strokeCircle=function(t,i,e){return this.__region&&this.__region.strokeCircle(t,i,e),this.__isPainter&&this.__onlyRegion||o(this.painter,t,i,e).stroke(),this},t.prototype.fullCircle=function(t,i,e){return this.__region&&this.__region.fullCircle(t,i,e),this.__isPainter&&this.__onlyRegion||(o(this.painter,t,i,e),this.painter.fill(),this.painter.stroke()),this},t.prototype.fillRect=function(t,i,e,n){return this.__region&&this.__region.fillRect(t,i,e,n),this.__isPainter&&this.__onlyRegion||s(this.painter,t,i,e,n).fill(),this},t.prototype.strokeRect=function(t,i,e,n){return this.__region&&this.__region.strokeRect(t,i,e,n),this.__isPainter&&this.__onlyRegion||s(this.painter,t,i,e,n).stroke(),this},t.prototype.fullRect=function(t,i,e,n){return this.__region&&this.__region.fullRect(t,i,e,n),this.__isPainter&&this.__onlyRegion||(s(this.painter,t,i,e,n),this.painter.fill(),this.painter.stroke()),this},t.prototype.draw=function(){},t}(),h={"font-size":"fontSize","font-family":"fontFamily","font-weight":"fontWeight","font-style":"fontStyle","arc-start-cap":"arcStartCap","arc-end-cap":"arcEndCap"},l=function(t){function e(i,e,n){void 0===n&&(n={});var r=t.call(this,i,n,e?new _(e,{willReadFrequently:!0}):void 0,!0)||this;return r.name="Canvas",r.__regionList={},r.__regionAssemble=function(t,i,e,n){for(var r=[],o=0;o<n;o++)r[o]=t;return function(){for(var o=0;o<n;o++){if(r[o]+e<i){r[o]=+(r[o]+e).toFixed(7);break}o<n-1&&(r[o]=t)}return r}}(0,255,10,3),r.setRegion(""),r}return i(e,t),e.prototype.config=function(t){for(var i in t){var e=h[i]||i;this.useConfig(e,t[i])}return this},e.prototype.onlyRegion=function(t){return this.__onlyRegion=t,this},e.prototype.setRegion=function(t){if(this.__region)if(t){if(null==this.__regionList[t]){var i=this.__regionAssemble();this.__regionList[t]="rgb("+i[0]+","+i[1]+","+i[2]+")"}this.__region.useConfig("fillStyle",this.__regionList[t])&&this.__region.useConfig("strokeStyle",this.__regionList[t])}else this.__region.useConfig("fillStyle","#000000")&&this.__region.useConfig("strokeStyle","#000000");return this},e.prototype.getRegion=function(t,i){var e=this;return new Promise((function(n){var r=e.__region?e.__region.painter.getImageData(t-.5,i-.5,1,1):{data:[0,0,0,0]},o=r.data,s=function(){if(e.__region)for(var t in e.__regionList)if("rgb("+o[0]+","+o[1]+","+o[2]+")"==e.__regionList[t]){n(t);break}n("")};o?s():r.then((function(t){o=t,s()}))}))},e.prototype.textWidth=function(t){this.painter.save(),n(this.painter,this.__specialConfig,0,0,0);var i=this.painter.measureText(t+"").width;return this.painter.restore(),i},e.prototype.getContext=function(t){return void 0===t&&(t=!1),t?this.__region?this.__region.painter:null:this.painter},e.prototype.getInfo=function(){return{width:this.painter.canvas.width,height:this.painter.canvas.height}},e.prototype.createLinearGradient=function(t,i,e,n){return function(t,i,e,n,r){var o=t.createLinearGradient(i,e,n,r),s={value:function(){return o},setColor:function(t,i){return o.addColorStop(t,i),s}};return s}(this.painter,t,i,e,n)},e.prototype.createRadialGradient=function(t,i,e){return function(t,i,e,n){var r=t.createRadialGradient(i,e,0,i,e,n),o={value:function(){return r},setColor:function(t,i){return r.addColorStop(t,i),o}};return o}(this.painter,t,i,e)},e.prototype.getColor=function(t,i){var e=this.painter.getImageData(t-.5,i-.5,1,1).data;return"rgba("+e[0]+","+e[1]+","+e[2]+","+e[3]+")"},e}(_);return function(t){function e(i,e){void 0===e&&(e={});var n=this;if(!i)throw new Error("VISLite Canvas:The mount point requires an HTMLElement type but encountered null.");e=function(t,i){for(var e in t)i[e]=t[e];return i}(e,{region:!0,willReadFrequently:!1});var r,o=i.clientWidth,s=i.clientHeight,a=null,_=i;_._vislite_canvas_?(r=_._vislite_canvas_[0],a=_._vislite_canvas_[1]):(r=document.createElement("canvas"),i.appendChild(r),e.region&&(a=document.createElement("canvas")),_._vislite_canvas_=[r,a],i.setAttribute("vislite","Canvas"));for(var h=0,l=[r,a];h<l.length;h++){var u=l[h];u&&(u.style.width=o+"px",u.setAttribute("width",o+""),u.style.height=s+"px",u.setAttribute("height",s+""))}return(n=t.call(this,r,a,{willReadFrequently:e.willReadFrequently})||this).__canvas=r,n}return i(e,t),e.prototype.toDataURL=function(){var t=this;return new Promise((function(i){i(t.__canvas.toDataURL())}))},e}(l)},"object"==typeof exports&&"undefined"!=typeof module?module.exports=i():"function"==typeof define&&define.amd?define(i):(t="undefined"!=typeof globalThis?globalThis:t||self).VISLite_Canvas=i();
|
|
11
|
+
var t,i;t=this,i=function(){"use strict";var t=function(i,e){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var e in i)Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e])},t(i,e)};function i(i,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=i}t(i,e),i.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}"function"==typeof SuppressedError&&SuppressedError;var e=function(t,i,e,n,r){var o=Math.cos(e),s=Math.sin(e);return[+((n-t)*o-(r-i)*s+t).toFixed(7),+((n-t)*s+(r-i)*o+i).toFixed(7)]},n=function(t,i,e,n,r){return t.beginPath(),t.translate(e,n),t.rotate(r),t.font=i.fontStyle+" "+i.fontWeight+" "+i.fontSize+"px "+i.fontFamily,t},r=function(t,i,n,r,o,s,a,_){if(o>s){var h=o;o=s,s=h}return a%=2*Math.PI,_>=1.999999*Math.PI||_<=1.999999*-Math.PI?_=2*Math.PI:_%=2*Math.PI,function(t,i,n,r,o,s,a){i<0&&(t+=i,i*=-1);var _,h=[];_=e(0,0,t,o,0),h[0]=_[0],h[1]=_[1],_=e(0,0,i,_[0],_[1]),h[2]=_[0],h[3]=_[1],_=e(0,0,t,s,0),h[4]=_[0],h[5]=_[1],_=e(0,0,i,_[0],_[1]),h[6]=_[0],h[7]=_[1],a(t,t+i,h[0]+n,h[1]+r,h[4]+n,h[5]+r,h[2]+n,h[3]+r,h[6]+n,h[7]+r,.5*(s-o))}(a,_,n,r,o,s,(function(e,a,_,h,l,p,u,f,c,g,y){y<0&&(y=-y),t.beginPath(),t.moveTo(_,h),t.arc(n,r,o,e,a,!1),"round"==i.arcEndCap?t.arc(.5*(u+c),.5*(f+g),y,a-Math.PI,a,!0):"-round"==i.arcEndCap?t.arc(.5*(u+c),.5*(f+g),y,a-Math.PI,a,!1):t.lineTo(c,g),t.arc(n,r,s,a,e,!0),"round"==i.arcStartCap?t.arc(.5*(_+l),.5*(h+p),y,e,e-Math.PI,!0):"-round"==i.arcStartCap?t.arc(.5*(_+l),.5*(h+p),y,e,e-Math.PI,!1):t.lineTo(_,h)})),"butt"==i.arcStartCap&&t.closePath(),t},o=function(t,i,e,n){return t.beginPath(),t.moveTo(i+n,e),t.arc(i,e,n,0,2*Math.PI),t},s=function(t,i,e,n,r){return t.beginPath(),t.rect(i,e,n,r),t};function a(t,i,e,n,r){for(var o=0,s="",a=0;a<i.length;a++)t.measureText(s+i[a]).width>e||/\n$/.test(s)?(r(s,((o+=1)-.5)*n),s=i[a]):a==i.length-1?(o+=1,r(s+i[a],(o-.5)*n)):s+=i[a];return o*n}var _=function(){function t(t,i,e,n,r){void 0===i&&(i={}),void 0===n&&(n=!1),this.__region=null,this.__onlyRegion=!1,this.__specialConfig={fontSize:16,fontFamily:"sans-serif",fontWeight:400,fontStyle:"normal",arcStartCap:"butt",arcEndCap:"butt"},this.__initConfig={fillStyle:"black",strokeStyle:"black",lineWidth:1,textAlign:"left",textBaseline:"middle",lineDash:[],shadowBlur:0,shadowColor:"black"},this.painter=t.getContext("2d",i),this.__region=e,this.__isPainter=n,this.painter.textBaseline="middle",this.painter.textAlign="left"}return t.prototype.useConfig=function(t,i){if(this.__region&&["fillStyle","strokeStyle","shadowBlur","shadowColor"].indexOf(t)<0&&this.__region.useConfig(t,i),this.__isPainter&&this.__onlyRegion)return this;if("lineDash"==t)this.painter.setLineDash&&this.painter.setLineDash(i);else if(t in this.__specialConfig)"fontSize"==t&&(i=Math.round(i)),this.__specialConfig[t]=i;else{if(!(t in this.__initConfig))throw new Error("Illegal configuration item of painter : "+t+" !");this.painter[t]=i}return this},t.prototype.fillText=function(t,i,e,r){return void 0===r&&(r=0),this.__region&&this.__region.fillText(t,i,e,r),this.__isPainter&&this.__onlyRegion||(this.painter.save(),n(this.painter,this.__specialConfig,i,e,r).fillText(t,0,0),this.painter.restore()),this},t.prototype.strokeText=function(t,i,e,r){return void 0===r&&(r=0),this.__region&&this.__region.strokeText(t,i,e,r),this.__isPainter&&this.__onlyRegion||(this.painter.save(),n(this.painter,this.__specialConfig,i,e,r).strokeText(t,0,0),this.painter.restore()),this},t.prototype.fullText=function(t,i,e,r){return void 0===r&&(r=0),this.__region&&this.__region.fullText(t,i,e,r),this.__isPainter&&this.__onlyRegion||(this.painter.save(),n(this.painter,this.__specialConfig,i,e,r),this.painter.fillText(t,0,0),this.painter.strokeText(t,0,0),this.painter.restore()),this},t.prototype.fillTexts=function(t,i,e,r,o,s){var _=this;void 0===o&&(o=1.2),void 0===s&&(s=0);var h=0;if(this.__region&&(h=this.__region.fillTexts(t,i,e,r,o)),this.__isPainter&&this.__onlyRegion)return h;this.painter.save(),n(this.painter,this.__specialConfig,i,e,s);var l=a(this.painter,t,r,this.__specialConfig.fontSize*o,(function(t,i){_.painter.fillText(t,0,i)}));return this.painter.restore(),l},t.prototype.strokeTexts=function(t,i,e,r,o,s){var _=this;void 0===o&&(o=1.2),void 0===s&&(s=0);var h=0;if(this.__region&&(h=this.__region.fillTexts(t,i,e,r,o)),this.__isPainter&&this.__onlyRegion)return h;this.painter.save(),n(this.painter,this.__specialConfig,i,e,s);var l=a(this.painter,t,r,this.__specialConfig.fontSize*o,(function(t,i){_.painter.strokeText(t,0,i)}));return this.painter.restore(),l},t.prototype.fullTexts=function(t,i,e,r,o,s){var _=this;void 0===o&&(o=1.2),void 0===s&&(s=0);var h=0;if(this.__region&&(h=this.__region.fillTexts(t,i,e,r,o)),this.__isPainter&&this.__onlyRegion)return h;this.painter.save(),n(this.painter,this.__specialConfig,i,e,s);var l=a(this.painter,t,r,this.__specialConfig.fontSize*o,(function(t,i){_.painter.fillText(t,0,i),_.painter.strokeText(t,0,i)}));return this.painter.restore(),l},t.prototype.beginPath=function(){return this.__region&&this.__region.beginPath(),this.__isPainter&&this.__onlyRegion||this.painter.beginPath(),this},t.prototype.closePath=function(){return this.__region&&this.__region.closePath(),this.__isPainter&&this.__onlyRegion||this.painter.closePath(),this},t.prototype.moveTo=function(t,i){return this.__region&&this.__region.moveTo(t,i),this.__isPainter&&this.__onlyRegion||this.painter.moveTo(Math.round(t)+.5,Math.round(i)+.5),this},t.prototype.lineTo=function(t,i){return this.__region&&this.__region.lineTo(t,i),this.__isPainter&&this.__onlyRegion||this.painter.lineTo(Math.round(t)+.5,Math.round(i)+.5),this},t.prototype.arc=function(t,i,e,n,r){return this.__region&&this.__region.arc(t,i,e,n,r),this.__isPainter&&this.__onlyRegion||this.painter.arc(t,i,e,n,n+r,r<0),this},t.prototype.fill=function(){return this.__region&&this.__region.fill(),this.__isPainter&&this.__onlyRegion||this.painter.fill(),this},t.prototype.stroke=function(){return this.__region&&this.__region.stroke(),this.__isPainter&&this.__onlyRegion||this.painter.stroke(),this},t.prototype.full=function(){return this.__region&&this.__region.full(),this.__isPainter&&this.__onlyRegion||(this.painter.fill(),this.painter.stroke()),this},t.prototype.save=function(){return this.__region&&this.__region.save(),this.__isPainter&&this.__onlyRegion||this.painter.save(),this},t.prototype.restore=function(){return this.__region&&this.__region.restore(),this.__isPainter&&this.__onlyRegion||this.painter.restore(),this},t.prototype.clip=function(){return this.__region&&this.__region.clip(),this.__isPainter&&this.__onlyRegion||this.painter.clip(),this},t.prototype.quadraticCurveTo=function(t,i,e,n){return this.__region&&this.__region.quadraticCurveTo(t,i,e,n),this.__isPainter&&this.__onlyRegion||this.painter.quadraticCurveTo(t,i,e,n),this},t.prototype.bezierCurveTo=function(t,i,e,n,r,o){return this.__region&&this.__region.bezierCurveTo(t,i,e,n,r,o),this.__isPainter&&this.__onlyRegion||this.painter.bezierCurveTo(t,i,e,n,r,o),this},t.prototype.clearRect=function(t,i,e,n){return this.__region&&this.__region.clearRect(t,i,e,n),this.__isPainter&&this.__onlyRegion||this.painter.clearRect(t,i,e,n),this},t.prototype.fillArc=function(t,i,e,n,o,s){return this.__region&&this.__region.fillArc(t,i,e,n,o,s),this.__isPainter&&this.__onlyRegion||r(this.painter,this.__specialConfig,t,i,e,n,o,s).fill(),this},t.prototype.strokeArc=function(t,i,e,n,o,s){return this.__region&&this.__region.strokeArc(t,i,e,n,o,s),this.__isPainter&&this.__onlyRegion||r(this.painter,this.__specialConfig,t,i,e,n,o,s).stroke(),this},t.prototype.fullArc=function(t,i,e,n,o,s){return this.__region&&this.__region.fullArc(t,i,e,n,o,s),this.__isPainter&&this.__onlyRegion||(r(this.painter,this.__specialConfig,t,i,e,n,o,s),this.painter.fill(),this.painter.stroke()),this},t.prototype.fillCircle=function(t,i,e){return this.__region&&this.__region.fillCircle(t,i,e),this.__isPainter&&this.__onlyRegion||o(this.painter,t,i,e).fill(),this},t.prototype.strokeCircle=function(t,i,e){return this.__region&&this.__region.strokeCircle(t,i,e),this.__isPainter&&this.__onlyRegion||o(this.painter,t,i,e).stroke(),this},t.prototype.fullCircle=function(t,i,e){return this.__region&&this.__region.fullCircle(t,i,e),this.__isPainter&&this.__onlyRegion||(o(this.painter,t,i,e),this.painter.fill(),this.painter.stroke()),this},t.prototype.fillRect=function(t,i,e,n){return this.__region&&this.__region.fillRect(t,i,e,n),this.__isPainter&&this.__onlyRegion||s(this.painter,t,i,e,n).fill(),this},t.prototype.strokeRect=function(t,i,e,n){return this.__region&&this.__region.strokeRect(t,i,e,n),this.__isPainter&&this.__onlyRegion||s(this.painter,t,i,e,n).stroke(),this},t.prototype.fullRect=function(t,i,e,n){return this.__region&&this.__region.fullRect(t,i,e,n),this.__isPainter&&this.__onlyRegion||(s(this.painter,t,i,e,n),this.painter.fill(),this.painter.stroke()),this},t.prototype.draw=function(){},t}(),h={"font-size":"fontSize","font-family":"fontFamily","font-weight":"fontWeight","font-style":"fontStyle","arc-start-cap":"arcStartCap","arc-end-cap":"arcEndCap"},l=function(t){function e(i,e,n,r){void 0===n&&(n={}),void 0===r&&(r=1);var o=t.call(this,i,n,e?new _(e,{willReadFrequently:!0}):void 0,!0,r)||this;return o.name="Canvas",o.__regionList={},o.__regionAssemble=function(t,i,e,n){for(var r=[],o=0;o<n;o++)r[o]=t;return function(){for(var o=0;o<n;o++){if(r[o]+e<i){r[o]=+(r[o]+e).toFixed(7);break}o<n-1&&(r[o]=t)}return r}}(0,255,10,3),o.__scaleSize=r,o.setRegion(""),o}return i(e,t),e.prototype.config=function(t){for(var i in t){var e=h[i]||i;this.useConfig(e,t[i])}return this},e.prototype.onlyRegion=function(t){return this.__onlyRegion=t,this},e.prototype.setRegion=function(t){if(this.__region)if(t){if(null==this.__regionList[t]){var i=this.__regionAssemble();this.__regionList[t]="rgb("+i[0]+","+i[1]+","+i[2]+")"}this.__region.useConfig("fillStyle",this.__regionList[t])&&this.__region.useConfig("strokeStyle",this.__regionList[t])}else this.__region.useConfig("fillStyle","#000000")&&this.__region.useConfig("strokeStyle","#000000");return this},e.prototype.getRegion=function(t,i){var e=this;return new Promise((function(n){var r=e.__region?e.__region.painter.getImageData(t-.5,i-.5,1,1):{data:[0,0,0,0]},o=r.data,s=function(){if(e.__region)for(var t in e.__regionList)if("rgb("+o[0]+","+o[1]+","+o[2]+")"==e.__regionList[t]){n(t);break}n("")};o?s():r.then((function(t){o=t,s()}))}))},e.prototype.textWidth=function(t){this.painter.save(),n(this.painter,this.__specialConfig,0,0,0);var i=this.painter.measureText(t+"").width;return this.painter.restore(),i},e.prototype.getContext=function(t){return void 0===t&&(t=!1),t?this.__region?this.__region.painter:null:this.painter},e.prototype.getInfo=function(){return{width:this.painter.canvas.width/this.__scaleSize,height:this.painter.canvas.height/this.__scaleSize}},e.prototype.createLinearGradient=function(t,i,e,n){return function(t,i,e,n,r){var o=t.createLinearGradient(i,e,n,r),s={value:function(){return o},setColor:function(t,i){return o.addColorStop(t,i),s}};return s}(this.painter,t,i,e,n)},e.prototype.createRadialGradient=function(t,i,e){return function(t,i,e,n){var r=t.createRadialGradient(i,e,0,i,e,n),o={value:function(){return r},setColor:function(t,i){return r.addColorStop(t,i),o}};return o}(this.painter,t,i,e)},e.prototype.getColor=function(t,i){t*=this.__scaleSize,i*=this.__scaleSize;var e=this.painter.getImageData(t-.5,i-.5,1,1).data;return"rgba("+e[0]+","+e[1]+","+e[2]+","+e[3]+")"},e}(_);return function(t){function e(i,e){void 0===e&&(e={});var n=this;if(!i)throw new Error("VISLite Canvas:The mount point requires an HTMLElement type but encountered null.");e=function(t,i){for(var e in t)i[e]=t[e];return i}(e,{region:!0,willReadFrequently:!1});var r,o=i.clientWidth,s=i.clientHeight,a=null,_=i;_._vislite_canvas_?(r=_._vislite_canvas_[0],a=_._vislite_canvas_[1]):(r=document.createElement("canvas"),i.appendChild(r),e.region&&(a=document.createElement("canvas")),_._vislite_canvas_=[r,a],i.setAttribute("vislite","Canvas"));for(var h=[a,r],l=0;l<h.length;l++){var p=h[l];p&&(p.style.width=o+"px",p.setAttribute("width",l*o+o+""),p.style.height=s+"px",p.setAttribute("height",l*s+s+""))}return(n=t.call(this,r,a,{willReadFrequently:e.willReadFrequently},2)||this).__canvas=r,n.painter.scale(2,2),n}return i(e,t),e.prototype.toDataURL=function(){var t=this;return new Promise((function(i){i(t.__canvas.toDataURL())}))},e}(l)},"object"==typeof exports&&"undefined"!=typeof module?module.exports=i():"function"==typeof define&&define.amd?define(i):(t="undefined"!=typeof globalThis?globalThis:t||self).VISLite_Canvas=i();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* VISLite JavaScript Library v0.7.1
|
|
2
|
+
* VISLite JavaScript Library v0.7.1
|
|
3
3
|
* git+https://github.com/oi-contrib/VISLite.git
|
|
4
4
|
*
|
|
5
5
|
* Copyright zxl20070701
|
|
6
6
|
* Released under the MIT license
|
|
7
7
|
* https://zxl20070701.github.io/notebook/home.html
|
|
8
8
|
*
|
|
9
|
-
* Publish Date:
|
|
9
|
+
* Publish Date: Sat Jan 20 2024 00:04:36 GMT+0800 (中国标准时间)
|
|
10
10
|
*/
|
|
11
11
|
(function (global, factory) {
|
|
12
12
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* VISLite JavaScript Library v0.7.1
|
|
2
|
+
* VISLite JavaScript Library v0.7.1
|
|
3
3
|
* git+https://github.com/oi-contrib/VISLite.git
|
|
4
4
|
*
|
|
5
5
|
* Copyright zxl20070701
|
|
6
6
|
* Released under the MIT license
|
|
7
7
|
* https://zxl20070701.github.io/notebook/home.html
|
|
8
8
|
*
|
|
9
|
-
* Publish Date:
|
|
9
|
+
* Publish Date: Sat Jan 20 2024 00:04:36 GMT+0800 (中国标准时间)
|
|
10
10
|
*/
|
|
11
11
|
var t,i;t=this,i=function(){"use strict";var t=function(){function t(t){void 0===t&&(t=.5),this.name="Hermite",this.__u=t}return t.prototype.setP=function(t,i,_,h,s,e){if(!(t<_))throw new Error("The point x-position should be increamented!");this.__a=t,this.__b=_;var n=this.__u*s,o=this.__u*e;return i/=_-t,h/=_-t,this.__MR=[2*i-2*h+n+o,3*h-3*i-2*n-o,n,i],this},t.prototype.use=function(t){if(this.__MR){var i=(t-this.__a)/(this.__b-this.__a),_=i*i;return(i*_*this.__MR[0]+_*this.__MR[1]+i*this.__MR[2]+this.__MR[3])*(this.__b-this.__a)}throw new Error("You shoud first set the position!")},t}();return function(){function i(t){void 0===t&&(t=0),this.name="Cardinal",this.__t=t}return i.prototype.setP=function(i){this.__HS={x:[],h:[]};var _,h,s=(i[1][1]-i[0][1])/(i[1][0]-i[0][0]);for(this.__HS.x[0]=i[0][0],_=1;_<i.length;_++){if(i[_][0]<=i[_-1][0])throw new Error("The point position should be increamented!");this.__HS.x[_]=i[_][0],h=_<i.length-1?i[_+1][1]>i[_][1]&&i[_-1][1]>i[_][1]||i[_+1][1]<i[_][1]&&i[_-1][1]<i[_][1]||i[_+1][1]==i[_][1]||i[_-1][1]==i[_][1]?0:(i[_+1][1]-i[_-1][1])/(i[_+1][0]-i[_-1][0]):(i[_][1]-i[_-1][1])/(i[_][0]-i[_-1][0]),this.__HS.h[_-1]=new t(.5*(1-this.__t)).setP(i[_-1][0],i[_-1][1],i[_][0],i[_][1],s,h),s=h}return this},i.prototype.use=function(t){if(this.__HS){for(this.__i=-1;this.__i+1<this.__HS.x.length&&(t>this.__HS.x[this.__i+1]||-1==this.__i&&t>=this.__HS.x[this.__i+1]);)this.__i+=1;return this.__i<0?this.__HS.h[0].use(this.__HS.x[0]):this.__i>=this.__HS.h.length?this.__HS.h[this.__HS.h.length-1].use(this.__HS.x[this.__HS.x.length-1]):this.__HS.h[this.__i].use(t)}throw new Error("You shoud first set the position!")},i}()},"object"==typeof exports&&"undefined"!=typeof module?module.exports=i():"function"==typeof define&&define.amd?define(i):(t="undefined"!=typeof globalThis?globalThis:t||self).VISLite_Cardinal=i();
|
package/lib/Eoap/index.umd.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* VISLite JavaScript Library v0.7.1
|
|
2
|
+
* VISLite JavaScript Library v0.7.1
|
|
3
3
|
* git+https://github.com/oi-contrib/VISLite.git
|
|
4
4
|
*
|
|
5
5
|
* Copyright zxl20070701
|
|
6
6
|
* Released under the MIT license
|
|
7
7
|
* https://zxl20070701.github.io/notebook/home.html
|
|
8
8
|
*
|
|
9
|
-
* Publish Date:
|
|
9
|
+
* Publish Date: Sat Jan 20 2024 00:04:36 GMT+0800 (中国标准时间)
|
|
10
10
|
*/
|
|
11
11
|
(function (global, factory) {
|
|
12
12
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* VISLite JavaScript Library v0.7.1
|
|
2
|
+
* VISLite JavaScript Library v0.7.1
|
|
3
3
|
* git+https://github.com/oi-contrib/VISLite.git
|
|
4
4
|
*
|
|
5
5
|
* Copyright zxl20070701
|
|
6
6
|
* Released under the MIT license
|
|
7
7
|
* https://zxl20070701.github.io/notebook/home.html
|
|
8
8
|
*
|
|
9
|
-
* Publish Date:
|
|
9
|
+
* Publish Date: Sat Jan 20 2024 00:04:36 GMT+0800 (中国标准时间)
|
|
10
10
|
*/
|
|
11
11
|
var t,e;t=this,e=function(){"use strict";var t=function(t,e,n,i){var o=Math.cos(t),a=Math.sin(t);return[e*o-n*a,e*a+n*o,i]};return function(){function e(t,e){void 0===t&&(t=7),void 0===e&&(e=[107,36]),this.name="Eoap",this.__scale=t,this.__center=e}return e.prototype.use=function(e,n){var i,o,a,s,r,h,u=(i=(360-n)/180*Math.PI,o=100*this.__scale,a=0,s=0,r=Math.cos(i),h=Math.sin(i),[s*h+o*r,a,s*r-o*h]);return u=t(e/180*Math.PI,u[0],u[1],u[2]),u=t((90-this.__center[0])/180*Math.PI,u[0],u[1],u[2]),u=function(t,e,n,i){var o=Math.cos(t),a=Math.sin(t);return[e,n*o-i*a,n*a+i*o]}((90-this.__center[1])/180*Math.PI,u[0],u[1],u[2]),[-u[0],u[1],u[2]]},e}()},"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).VISLite_Eoap=e();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* VISLite JavaScript Library v0.7.1
|
|
2
|
+
* VISLite JavaScript Library v0.7.1
|
|
3
3
|
* git+https://github.com/oi-contrib/VISLite.git
|
|
4
4
|
*
|
|
5
5
|
* Copyright zxl20070701
|
|
6
6
|
* Released under the MIT license
|
|
7
7
|
* https://zxl20070701.github.io/notebook/home.html
|
|
8
8
|
*
|
|
9
|
-
* Publish Date:
|
|
9
|
+
* Publish Date: Sat Jan 20 2024 00:04:36 GMT+0800 (中国标准时间)
|
|
10
10
|
*/
|
|
11
11
|
(function (global, factory) {
|
|
12
12
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|