@visactor/vrender-kits 0.22.12 → 0.22.13
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/cjs/canvas/contributions/browser/context.d.ts +2 -3
- package/cjs/canvas/contributions/browser/context.js +16 -23
- package/cjs/canvas/contributions/browser/context.js.map +1 -1
- package/cjs/render/contributions/rough/base-render.d.ts +1 -3
- package/cjs/render/contributions/rough/base-render.js +0 -49
- package/cjs/render/contributions/rough/base-render.js.map +1 -1
- package/cjs/render/contributions/rough/config.js +4 -4
- package/cjs/render/contributions/rough/config.js.map +1 -1
- package/cjs/render/contributions/rough/rough-line.d.ts +4 -6
- package/cjs/render/contributions/rough/rough-line.js +48 -14
- package/cjs/render/contributions/rough/rough-line.js.map +1 -1
- package/cjs/render/contributions/rough/rough-rect.d.ts +1 -1
- package/cjs/render/contributions/rough/rough-rect.js +44 -2
- package/cjs/render/contributions/rough/rough-rect.js.map +1 -1
- package/cjs/render/contributions/rough/rough-symbol.d.ts +4 -3
- package/cjs/render/contributions/rough/rough-symbol.js +47 -3
- package/cjs/render/contributions/rough/rough-symbol.js.map +1 -1
- package/dist/index.es.js +186 -505
- package/es/canvas/contributions/browser/context.d.ts +2 -3
- package/es/canvas/contributions/browser/context.js +16 -23
- package/es/canvas/contributions/browser/context.js.map +1 -1
- package/es/render/contributions/rough/base-render.d.ts +1 -3
- package/es/render/contributions/rough/base-render.js +0 -49
- package/es/render/contributions/rough/base-render.js.map +1 -1
- package/es/render/contributions/rough/config.js +4 -4
- package/es/render/contributions/rough/config.js.map +1 -1
- package/es/render/contributions/rough/rough-line.d.ts +4 -6
- package/es/render/contributions/rough/rough-line.js +48 -15
- package/es/render/contributions/rough/rough-line.js.map +1 -1
- package/es/render/contributions/rough/rough-rect.d.ts +1 -1
- package/es/render/contributions/rough/rough-rect.js +43 -1
- package/es/render/contributions/rough/rough-rect.js.map +1 -1
- package/es/render/contributions/rough/rough-symbol.d.ts +4 -3
- package/es/render/contributions/rough/rough-symbol.js +46 -4
- package/es/render/contributions/rough/rough-symbol.js.map +1 -1
- package/package.json +3 -3
- package/cjs/render/contributions/rough/context.d.ts +0 -142
- package/cjs/render/contributions/rough/context.js +0 -408
- package/cjs/render/contributions/rough/context.js.map +0 -1
- package/es/render/contributions/rough/context.d.ts +0 -142
- package/es/render/contributions/rough/context.js +0 -402
- package/es/render/contributions/rough/context.js.map +0 -1
|
@@ -1,408 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: !0
|
|
5
|
-
}), exports.RoughContext2d = void 0;
|
|
6
|
-
|
|
7
|
-
class RoughContext2d {
|
|
8
|
-
constructor(originContext, customPath) {
|
|
9
|
-
this.originContext = originContext, this.customPath = customPath;
|
|
10
|
-
}
|
|
11
|
-
reset(setTransform = !0) {
|
|
12
|
-
return this.originContext.reset(setTransform);
|
|
13
|
-
}
|
|
14
|
-
beginPath() {
|
|
15
|
-
this.originContext.beginPath(), this.customPath.beginPath();
|
|
16
|
-
}
|
|
17
|
-
moveTo(x, y, z) {
|
|
18
|
-
this.originContext.moveTo(x, y, z), this.customPath.moveTo(x, y);
|
|
19
|
-
}
|
|
20
|
-
lineTo(x, y, z) {
|
|
21
|
-
this.originContext.lineTo(x, y, z), this.customPath.lineTo(x, y);
|
|
22
|
-
}
|
|
23
|
-
bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y, z) {
|
|
24
|
-
this.originContext.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y, z), this.customPath.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y);
|
|
25
|
-
}
|
|
26
|
-
quadraticCurveTo(cpx, cpy, x, y, z) {
|
|
27
|
-
this.originContext.quadraticCurveTo(cpx, cpy, x, y, z), this.customPath.quadraticCurveTo(cpx, cpy, x, y);
|
|
28
|
-
}
|
|
29
|
-
arc(x, y, radius, startAngle, endAngle, anticlockwise, z) {
|
|
30
|
-
this.originContext.arc(x, y, radius, startAngle, endAngle, anticlockwise, z), this.customPath.arc(x, y, radius, startAngle, endAngle, anticlockwise);
|
|
31
|
-
}
|
|
32
|
-
arcTo(x1, y1, x2, y2, radius) {
|
|
33
|
-
this.originContext.arcTo(x1, y1, x2, y2, radius), this.customPath.arcTo(x1, y1, x2, y2, radius);
|
|
34
|
-
}
|
|
35
|
-
ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise) {
|
|
36
|
-
this.originContext.ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise),
|
|
37
|
-
this.customPath.ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise);
|
|
38
|
-
}
|
|
39
|
-
rect(x, y, w, h, z) {
|
|
40
|
-
this.originContext.rect(x, y, w, h, z), this.customPath.rect(x, y, w, h);
|
|
41
|
-
}
|
|
42
|
-
closePath() {
|
|
43
|
-
this.originContext.closePath(), this.customPath.closePath();
|
|
44
|
-
}
|
|
45
|
-
get canvas() {
|
|
46
|
-
return this.originContext.canvas;
|
|
47
|
-
}
|
|
48
|
-
set canvas(value) {
|
|
49
|
-
this.originContext.canvas = value;
|
|
50
|
-
}
|
|
51
|
-
get camera() {
|
|
52
|
-
return this.originContext.camera;
|
|
53
|
-
}
|
|
54
|
-
set camera(value) {
|
|
55
|
-
this.originContext.camera = value;
|
|
56
|
-
}
|
|
57
|
-
get modelMatrix() {
|
|
58
|
-
return this.originContext.modelMatrix;
|
|
59
|
-
}
|
|
60
|
-
set modelMatrix(value) {
|
|
61
|
-
this.originContext.modelMatrix = value;
|
|
62
|
-
}
|
|
63
|
-
get nativeContext() {
|
|
64
|
-
return this.originContext.nativeContext;
|
|
65
|
-
}
|
|
66
|
-
set nativeContext(value) {
|
|
67
|
-
this.originContext.nativeContext = value;
|
|
68
|
-
}
|
|
69
|
-
get _inuse() {
|
|
70
|
-
return this.originContext._inuse;
|
|
71
|
-
}
|
|
72
|
-
set _inuse(value) {
|
|
73
|
-
this.originContext._inuse = value;
|
|
74
|
-
}
|
|
75
|
-
get inuse() {
|
|
76
|
-
return this.originContext.inuse;
|
|
77
|
-
}
|
|
78
|
-
set inuse(value) {
|
|
79
|
-
this.originContext.inuse = value;
|
|
80
|
-
}
|
|
81
|
-
get stack() {
|
|
82
|
-
return this.originContext.stack;
|
|
83
|
-
}
|
|
84
|
-
set stack(value) {
|
|
85
|
-
this.originContext.stack = value;
|
|
86
|
-
}
|
|
87
|
-
get disableFill() {
|
|
88
|
-
return this.originContext.disableFill;
|
|
89
|
-
}
|
|
90
|
-
set disableFill(value) {
|
|
91
|
-
this.originContext.disableFill = value;
|
|
92
|
-
}
|
|
93
|
-
get disableStroke() {
|
|
94
|
-
return this.originContext.disableStroke;
|
|
95
|
-
}
|
|
96
|
-
set disableStroke(value) {
|
|
97
|
-
this.originContext.disableStroke = value;
|
|
98
|
-
}
|
|
99
|
-
get disableBeginPath() {
|
|
100
|
-
return this.originContext.disableBeginPath;
|
|
101
|
-
}
|
|
102
|
-
set disableBeginPath(value) {
|
|
103
|
-
this.originContext.disableBeginPath = value;
|
|
104
|
-
}
|
|
105
|
-
get fontFamily() {
|
|
106
|
-
return this.originContext.fontFamily;
|
|
107
|
-
}
|
|
108
|
-
set fontFamily(value) {
|
|
109
|
-
this.originContext.fontFamily = value;
|
|
110
|
-
}
|
|
111
|
-
get fontSize() {
|
|
112
|
-
return this.originContext.fontSize;
|
|
113
|
-
}
|
|
114
|
-
set fontSize(value) {
|
|
115
|
-
this.originContext.fontSize = value;
|
|
116
|
-
}
|
|
117
|
-
get _clearMatrix() {
|
|
118
|
-
return this.originContext._clearMatrix;
|
|
119
|
-
}
|
|
120
|
-
set _clearMatrix(value) {
|
|
121
|
-
this.originContext._clearMatrix = value;
|
|
122
|
-
}
|
|
123
|
-
get dpr() {
|
|
124
|
-
return this.originContext.dpr;
|
|
125
|
-
}
|
|
126
|
-
set dpr(value) {
|
|
127
|
-
this.originContext.dpr = value;
|
|
128
|
-
}
|
|
129
|
-
get baseGlobalAlpha() {
|
|
130
|
-
return this.originContext.baseGlobalAlpha;
|
|
131
|
-
}
|
|
132
|
-
set baseGlobalAlpha(value) {
|
|
133
|
-
this.originContext.baseGlobalAlpha = value;
|
|
134
|
-
}
|
|
135
|
-
get drawPromise() {
|
|
136
|
-
return this.originContext.drawPromise;
|
|
137
|
-
}
|
|
138
|
-
set drawPromise(value) {
|
|
139
|
-
this.originContext.drawPromise = value;
|
|
140
|
-
}
|
|
141
|
-
get mathTextMeasure() {
|
|
142
|
-
return this.originContext.mathTextMeasure;
|
|
143
|
-
}
|
|
144
|
-
set mathTextMeasure(value) {
|
|
145
|
-
this.originContext.mathTextMeasure = value;
|
|
146
|
-
}
|
|
147
|
-
get fillStyle() {
|
|
148
|
-
return this.originContext.fillStyle;
|
|
149
|
-
}
|
|
150
|
-
set fillStyle(value) {
|
|
151
|
-
this.originContext.fillStyle = value;
|
|
152
|
-
}
|
|
153
|
-
get font() {
|
|
154
|
-
return this.originContext.font;
|
|
155
|
-
}
|
|
156
|
-
set font(value) {
|
|
157
|
-
this.originContext.font = value;
|
|
158
|
-
}
|
|
159
|
-
get globalAlpha() {
|
|
160
|
-
return this.originContext.globalAlpha;
|
|
161
|
-
}
|
|
162
|
-
set globalAlpha(value) {
|
|
163
|
-
this.originContext.globalAlpha = value;
|
|
164
|
-
}
|
|
165
|
-
get lineCap() {
|
|
166
|
-
return this.originContext.lineCap;
|
|
167
|
-
}
|
|
168
|
-
set lineCap(value) {
|
|
169
|
-
this.originContext.lineCap = value;
|
|
170
|
-
}
|
|
171
|
-
get lineDashOffset() {
|
|
172
|
-
return this.originContext.lineDashOffset;
|
|
173
|
-
}
|
|
174
|
-
set lineDashOffset(value) {
|
|
175
|
-
this.originContext.lineDashOffset = value;
|
|
176
|
-
}
|
|
177
|
-
get lineJoin() {
|
|
178
|
-
return this.originContext.lineJoin;
|
|
179
|
-
}
|
|
180
|
-
set lineJoin(value) {
|
|
181
|
-
this.originContext.lineJoin = value;
|
|
182
|
-
}
|
|
183
|
-
get lineWidth() {
|
|
184
|
-
return this.originContext.lineWidth;
|
|
185
|
-
}
|
|
186
|
-
set lineWidth(value) {
|
|
187
|
-
this.originContext.lineWidth = value;
|
|
188
|
-
}
|
|
189
|
-
get miterLimit() {
|
|
190
|
-
return this.originContext.miterLimit;
|
|
191
|
-
}
|
|
192
|
-
set miterLimit(value) {
|
|
193
|
-
this.originContext.miterLimit = value;
|
|
194
|
-
}
|
|
195
|
-
get shadowBlur() {
|
|
196
|
-
return this.originContext.shadowBlur;
|
|
197
|
-
}
|
|
198
|
-
set shadowBlur(value) {
|
|
199
|
-
this.originContext.shadowBlur = value;
|
|
200
|
-
}
|
|
201
|
-
get shadowColor() {
|
|
202
|
-
return this.originContext.shadowColor;
|
|
203
|
-
}
|
|
204
|
-
set shadowColor(value) {
|
|
205
|
-
this.originContext.shadowColor = value;
|
|
206
|
-
}
|
|
207
|
-
get shadowOffsetX() {
|
|
208
|
-
return this.originContext.shadowOffsetX;
|
|
209
|
-
}
|
|
210
|
-
set shadowOffsetX(value) {
|
|
211
|
-
this.originContext.shadowOffsetX = value;
|
|
212
|
-
}
|
|
213
|
-
get shadowOffsetY() {
|
|
214
|
-
return this.originContext.shadowOffsetY;
|
|
215
|
-
}
|
|
216
|
-
set shadowOffsetY(value) {
|
|
217
|
-
this.originContext.shadowOffsetY = value;
|
|
218
|
-
}
|
|
219
|
-
get strokeStyle() {
|
|
220
|
-
return this.originContext.strokeStyle;
|
|
221
|
-
}
|
|
222
|
-
set strokeStyle(value) {
|
|
223
|
-
this.originContext.strokeStyle = value;
|
|
224
|
-
}
|
|
225
|
-
get textAlign() {
|
|
226
|
-
return this.originContext.textAlign;
|
|
227
|
-
}
|
|
228
|
-
set textAlign(value) {
|
|
229
|
-
this.originContext.textAlign = value;
|
|
230
|
-
}
|
|
231
|
-
get textBaseline() {
|
|
232
|
-
return this.originContext.textBaseline;
|
|
233
|
-
}
|
|
234
|
-
set textBaseline(value) {
|
|
235
|
-
this.originContext.textBaseline = value;
|
|
236
|
-
}
|
|
237
|
-
get currentMatrix() {
|
|
238
|
-
return this.originContext.currentMatrix;
|
|
239
|
-
}
|
|
240
|
-
save() {
|
|
241
|
-
return this.originContext.save();
|
|
242
|
-
}
|
|
243
|
-
restore() {
|
|
244
|
-
return this.originContext.restore();
|
|
245
|
-
}
|
|
246
|
-
highPerformanceSave() {
|
|
247
|
-
return this.originContext.highPerformanceSave();
|
|
248
|
-
}
|
|
249
|
-
highPerformanceRestore() {
|
|
250
|
-
return this.originContext.highPerformanceRestore();
|
|
251
|
-
}
|
|
252
|
-
rotate(rad, setTransform) {
|
|
253
|
-
return this.originContext.rotate(rad, setTransform);
|
|
254
|
-
}
|
|
255
|
-
scale(sx, sy, setTransform) {
|
|
256
|
-
return this.originContext.scale(sx, sy, setTransform);
|
|
257
|
-
}
|
|
258
|
-
setScale(sx, sy, setTransform) {
|
|
259
|
-
return this.originContext.setScale(sx, sy, setTransform);
|
|
260
|
-
}
|
|
261
|
-
scalePoint(sx, sy, px, py, setTransform) {
|
|
262
|
-
return this.originContext.scalePoint(sx, sy, px, py, setTransform);
|
|
263
|
-
}
|
|
264
|
-
setTransform(a, b, c, d, e, f, setTransform, dpr) {
|
|
265
|
-
return this.originContext.setTransform(a, b, c, d, e, f, setTransform, dpr);
|
|
266
|
-
}
|
|
267
|
-
setTransformFromMatrix(matrix, setTransform, dpr) {
|
|
268
|
-
return this.originContext.setTransformFromMatrix(matrix, setTransform, dpr);
|
|
269
|
-
}
|
|
270
|
-
resetTransform(setTransform, dpr) {
|
|
271
|
-
return this.originContext.resetTransform(setTransform, dpr);
|
|
272
|
-
}
|
|
273
|
-
transform(a, b, c, d, e, f, setTransform) {
|
|
274
|
-
return this.originContext.transform(a, b, c, d, e, f, setTransform);
|
|
275
|
-
}
|
|
276
|
-
transformFromMatrix(matrix, setTransform) {
|
|
277
|
-
return this.originContext.transformFromMatrix(matrix, setTransform);
|
|
278
|
-
}
|
|
279
|
-
translate(x, y, setTransform) {
|
|
280
|
-
return this.originContext.translate(x, y, setTransform);
|
|
281
|
-
}
|
|
282
|
-
rotateDegrees(deg, setTransform) {
|
|
283
|
-
return this.originContext.rotateDegrees(deg, setTransform);
|
|
284
|
-
}
|
|
285
|
-
rotateAbout(rad, x, y, setTransform) {
|
|
286
|
-
return this.originContext.rotateAbout(rad, x, y, setTransform);
|
|
287
|
-
}
|
|
288
|
-
rotateDegreesAbout(deg, x, y, setTransform) {
|
|
289
|
-
return this.originContext.rotateDegreesAbout(deg, x, y, setTransform);
|
|
290
|
-
}
|
|
291
|
-
setTransformForCurrent(force = !1) {
|
|
292
|
-
return this.originContext.setTransformForCurrent(force);
|
|
293
|
-
}
|
|
294
|
-
clip(path, fillRule) {
|
|
295
|
-
return this.originContext.clip(path, fillRule);
|
|
296
|
-
}
|
|
297
|
-
fill(path, fillRule) {
|
|
298
|
-
return this.originContext.fill(path, fillRule);
|
|
299
|
-
}
|
|
300
|
-
stroke(path) {
|
|
301
|
-
return this.originContext.stroke(path);
|
|
302
|
-
}
|
|
303
|
-
fillRect(x, y, width, height) {
|
|
304
|
-
return this.originContext.fillRect(x, y, width, height);
|
|
305
|
-
}
|
|
306
|
-
strokeRect(x, y, width, height) {
|
|
307
|
-
return this.originContext.strokeRect(x, y, width, height);
|
|
308
|
-
}
|
|
309
|
-
fillText(text, x, y, z) {
|
|
310
|
-
return this.originContext.fillText(text, x, y, z);
|
|
311
|
-
}
|
|
312
|
-
strokeText(text, x, y, z) {
|
|
313
|
-
return this.originContext.strokeText(text, x, y, z);
|
|
314
|
-
}
|
|
315
|
-
clearRect(x, y, w, h) {
|
|
316
|
-
return this.originContext.clearRect(x, y, w, h);
|
|
317
|
-
}
|
|
318
|
-
drawImage(...args) {
|
|
319
|
-
return this.originContext.drawImage(...args);
|
|
320
|
-
}
|
|
321
|
-
createImageData(...args) {
|
|
322
|
-
return this.originContext.createImageData(...args);
|
|
323
|
-
}
|
|
324
|
-
getImageData(sx, sy, sw, sh) {
|
|
325
|
-
return this.originContext.getImageData(sx, sy, sw, sh);
|
|
326
|
-
}
|
|
327
|
-
putImageData(imagedata, dx, dy) {
|
|
328
|
-
return this.originContext.putImageData(imagedata, dx, dy);
|
|
329
|
-
}
|
|
330
|
-
createLinearGradient(x0, y0, x1, y1) {
|
|
331
|
-
return this.originContext.createLinearGradient(x0, y0, x1, y1);
|
|
332
|
-
}
|
|
333
|
-
createRadialGradient(x0, y0, r0, x1, y1, r1) {
|
|
334
|
-
return this.originContext.createRadialGradient(x0, y0, r0, x1, y1, r1);
|
|
335
|
-
}
|
|
336
|
-
createConicGradient(x, y, startAngle, endAngle) {
|
|
337
|
-
return this.originContext.createConicGradient(x, y, startAngle, endAngle);
|
|
338
|
-
}
|
|
339
|
-
createPattern(image, repetition) {
|
|
340
|
-
return this.originContext.createPattern(image, repetition);
|
|
341
|
-
}
|
|
342
|
-
getLineDash() {
|
|
343
|
-
return this.originContext.getLineDash();
|
|
344
|
-
}
|
|
345
|
-
setLineDash(segments) {
|
|
346
|
-
return this.originContext.setLineDash(segments);
|
|
347
|
-
}
|
|
348
|
-
clear() {
|
|
349
|
-
return this.originContext.clear();
|
|
350
|
-
}
|
|
351
|
-
measureText(text, method) {
|
|
352
|
-
return this.originContext.measureText(text, method);
|
|
353
|
-
}
|
|
354
|
-
isPointInPath(x, y) {
|
|
355
|
-
return this.originContext.isPointInPath(x, y);
|
|
356
|
-
}
|
|
357
|
-
isPointInStroke(x, y) {
|
|
358
|
-
return this.originContext.isPointInStroke(x, y);
|
|
359
|
-
}
|
|
360
|
-
project(x, y, z) {
|
|
361
|
-
return this.originContext.project(x, y, z);
|
|
362
|
-
}
|
|
363
|
-
view(x, y, z) {
|
|
364
|
-
return this.originContext.view(x, y, z);
|
|
365
|
-
}
|
|
366
|
-
getCanvas() {
|
|
367
|
-
return this.originContext.getCanvas();
|
|
368
|
-
}
|
|
369
|
-
getContext() {
|
|
370
|
-
return this.originContext.getContext();
|
|
371
|
-
}
|
|
372
|
-
setCommonStyle(params, attribute, offsetX, offsetY, defaultParams) {
|
|
373
|
-
return this.originContext.setCommonStyle(params, attribute, offsetX, offsetY, defaultParams);
|
|
374
|
-
}
|
|
375
|
-
setShadowBlendStyle(params, attribute, defaultParams) {
|
|
376
|
-
return this.originContext.setShadowBlendStyle(params, attribute, defaultParams);
|
|
377
|
-
}
|
|
378
|
-
setStrokeStyle(params, attribute, offsetX, offsetY, defaultParams) {
|
|
379
|
-
return this.originContext.setStrokeStyle(params, attribute, offsetX, offsetY, defaultParams);
|
|
380
|
-
}
|
|
381
|
-
setTextStyle(params, defaultParams, z) {
|
|
382
|
-
return this.originContext.setTextStyle(params, defaultParams, z);
|
|
383
|
-
}
|
|
384
|
-
setTextStyleWithoutAlignBaseline(params, defaultParams, z) {
|
|
385
|
-
return this.originContext.setTextStyleWithoutAlignBaseline(params, defaultParams, z);
|
|
386
|
-
}
|
|
387
|
-
clearMatrix(setTransform, dpr) {
|
|
388
|
-
return this.originContext.clearMatrix(setTransform, dpr);
|
|
389
|
-
}
|
|
390
|
-
setClearMatrix(a, b, c, d, e, f) {
|
|
391
|
-
return this.originContext.setClearMatrix(a, b, c, d, e, f);
|
|
392
|
-
}
|
|
393
|
-
onlyTranslate(dpr) {
|
|
394
|
-
return this.originContext.onlyTranslate(dpr);
|
|
395
|
-
}
|
|
396
|
-
cloneMatrix(m) {
|
|
397
|
-
return this.originContext.cloneMatrix(m);
|
|
398
|
-
}
|
|
399
|
-
draw() {
|
|
400
|
-
return this.originContext.draw();
|
|
401
|
-
}
|
|
402
|
-
release(...params) {
|
|
403
|
-
return this.originContext.release(...params);
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
exports.RoughContext2d = RoughContext2d, RoughContext2d.env = "browser";
|
|
408
|
-
//# sourceMappingURL=context.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/render/contributions/rough/context.ts"],"names":[],"mapp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CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7D,CAAC;IACD,aAAa,CAAC,GAAY;QACxB,OAAO,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAC/C,CAAC;IACD,WAAW,CAAC,CAAS;QACnB,OAAO,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAC3C,CAAC;IACD,IAAI;QACF,OAAO,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;IACnC,CAAC;IACD,OAAO,CAAC,GAAG,MAAW;QACpB,OAAO,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,CAAC;IAC/C,CAAC;;AAvhBH,wCAwhBC;AAvhBQ,kBAAG,GAAY,SAAS,CAAC","file":"context.js","sourcesContent":["/**\n * 部分源码参考konva\n * MIT License\n\n Original work Copyright (C) 2011 - 2013 by Eric Rowell (KineticJS)\n Modified work Copyright (C) 2014 - present by Anton Lavrenov (Konva)\n\n Permission is hereby granted, free of charge, to any person obtaining a copy\n of this software and associated documentation files (the \"Software\"), to deal\n in the Software without restriction, including without limitation the rights\n to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n copies of the Software, and to permit persons to whom the Software is\n furnished to do so, subject to the following conditions:\n\n The above copyright notice and this permission notice shall be included in all\n copies or substantial portions of the Software.\n\n THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n SOFTWARE.\n */\nimport type { IPointLike, TextMeasure, ITextMeasureSpec, IMatrix, Matrix } from '@visactor/vutils';\nimport type {\n ICamera,\n ICanvas,\n ICommonStyleParams,\n IConicalGradientData,\n IContext2d,\n ISetCommonStyleParams,\n ISetStrokeStyleParams,\n IStrokeStyleParams,\n ITextStyleParams,\n mat4,\n EnvType,\n vec3,\n CustomPath2D\n} from '@visactor/vrender-core';\n\n/**\n * RoughContext2d serves as a proxy to the original context (BrowserContext2d)\n * while also updating a custom path for path-related operations\n */\nexport class RoughContext2d implements IContext2d {\n static env: EnvType = 'browser';\n originContext: IContext2d;\n customPath: CustomPath2D;\n\n constructor(originContext: IContext2d, customPath: CustomPath2D) {\n this.originContext = originContext;\n this.customPath = customPath;\n }\n\n reset(setTransform: boolean = true) {\n return this.originContext.reset(setTransform);\n }\n\n // Path-related methods that affect both the original context and the custom path\n beginPath(): void {\n this.originContext.beginPath();\n this.customPath.beginPath();\n }\n\n moveTo(x: number, y: number, z?: number): void {\n this.originContext.moveTo(x, y, z);\n this.customPath.moveTo(x, y);\n }\n\n lineTo(x: number, y: number, z?: number): void {\n this.originContext.lineTo(x, y, z);\n this.customPath.lineTo(x, y);\n }\n\n bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number, z?: number): void {\n (this.originContext.bezierCurveTo as any)(cp1x, cp1y, cp2x, cp2y, x, y, z);\n this.customPath.bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y);\n }\n\n quadraticCurveTo(cpx: number, cpy: number, x: number, y: number, z?: number): void {\n this.originContext.quadraticCurveTo(cpx, cpy, x, y, z);\n this.customPath.quadraticCurveTo(cpx, cpy, x, y);\n }\n\n arc(\n x: number,\n y: number,\n radius: number,\n startAngle: number,\n endAngle: number,\n anticlockwise?: boolean,\n z?: number\n ): void {\n this.originContext.arc(x, y, radius, startAngle, endAngle, anticlockwise, z);\n this.customPath.arc(x, y, radius, startAngle, endAngle, anticlockwise);\n }\n\n arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void {\n this.originContext.arcTo(x1, y1, x2, y2, radius);\n this.customPath.arcTo(x1, y1, x2, y2, radius);\n }\n\n ellipse(\n x: number,\n y: number,\n radiusX: number,\n radiusY: number,\n rotation: number,\n startAngle: number,\n endAngle: number,\n anticlockwise?: boolean\n ): void {\n this.originContext.ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise);\n this.customPath.ellipse(x, y, radiusX, radiusY, rotation, startAngle, endAngle, anticlockwise);\n }\n\n rect(x: number, y: number, w: number, h: number, z?: number): void {\n this.originContext.rect(x, y, w, h, z);\n this.customPath.rect(x, y, w, h);\n }\n\n closePath(): void {\n this.originContext.closePath();\n this.customPath.closePath();\n }\n\n // Property forwarding using getters and setters\n // Define getters and setters for all properties to forward to originContext\n // Canvas\n get canvas(): ICanvas {\n return this.originContext.canvas;\n }\n set canvas(value: ICanvas) {\n this.originContext.canvas = value;\n }\n\n // Camera\n get camera(): ICamera | undefined {\n return this.originContext.camera;\n }\n set camera(value: ICamera | undefined) {\n this.originContext.camera = value;\n }\n\n // ModelMatrix\n get modelMatrix(): mat4 | undefined {\n return this.originContext.modelMatrix;\n }\n set modelMatrix(value: mat4 | undefined) {\n this.originContext.modelMatrix = value;\n }\n\n // NativeContext\n get nativeContext(): CanvasRenderingContext2D | any {\n return this.originContext.nativeContext;\n }\n set nativeContext(value: CanvasRenderingContext2D | any) {\n this.originContext.nativeContext = value;\n }\n\n // Inuse\n get _inuse(): boolean {\n return this.originContext._inuse;\n }\n set _inuse(value: boolean) {\n this.originContext._inuse = value;\n }\n\n get inuse(): boolean {\n return this.originContext.inuse;\n }\n set inuse(value: boolean) {\n this.originContext.inuse = value;\n }\n\n // Stack\n get stack(): Matrix[] {\n return this.originContext.stack;\n }\n set stack(value: Matrix[]) {\n this.originContext.stack = value;\n }\n\n // Disable flags\n get disableFill(): boolean | undefined {\n return this.originContext.disableFill;\n }\n set disableFill(value: boolean | undefined) {\n this.originContext.disableFill = value;\n }\n\n get disableStroke(): boolean | undefined {\n return this.originContext.disableStroke;\n }\n set disableStroke(value: boolean | undefined) {\n this.originContext.disableStroke = value;\n }\n\n get disableBeginPath(): boolean | undefined {\n return this.originContext.disableBeginPath;\n }\n set disableBeginPath(value: boolean | undefined) {\n this.originContext.disableBeginPath = value;\n }\n\n // Font properties\n get fontFamily(): string {\n return this.originContext.fontFamily;\n }\n set fontFamily(value: string) {\n this.originContext.fontFamily = value;\n }\n\n get fontSize(): number {\n return this.originContext.fontSize;\n }\n set fontSize(value: number) {\n this.originContext.fontSize = value;\n }\n\n // Matrix\n get _clearMatrix(): IMatrix {\n return this.originContext._clearMatrix;\n }\n set _clearMatrix(value: IMatrix) {\n this.originContext._clearMatrix = value;\n }\n\n // DPR\n get dpr(): number {\n return this.originContext.dpr;\n }\n set dpr(value: number) {\n this.originContext.dpr = value;\n }\n\n // Other properties\n get baseGlobalAlpha(): number {\n return this.originContext.baseGlobalAlpha;\n }\n set baseGlobalAlpha(value: number) {\n this.originContext.baseGlobalAlpha = value;\n }\n\n get drawPromise(): Promise<any> | undefined {\n return this.originContext.drawPromise;\n }\n set drawPromise(value: Promise<any> | undefined) {\n this.originContext.drawPromise = value;\n }\n\n get mathTextMeasure(): TextMeasure<ITextMeasureSpec> {\n return this.originContext.mathTextMeasure;\n }\n set mathTextMeasure(value: TextMeasure<ITextMeasureSpec>) {\n this.originContext.mathTextMeasure = value;\n }\n\n // Canvas context style properties\n get fillStyle(): string | CanvasGradient | CanvasPattern {\n return this.originContext.fillStyle;\n }\n set fillStyle(value: string | CanvasGradient | CanvasPattern) {\n this.originContext.fillStyle = value;\n }\n\n get font(): string {\n return this.originContext.font;\n }\n set font(value: string) {\n this.originContext.font = value;\n }\n\n get globalAlpha(): number {\n return this.originContext.globalAlpha;\n }\n set globalAlpha(value: number) {\n this.originContext.globalAlpha = value;\n }\n\n get lineCap(): CanvasLineCap {\n return this.originContext.lineCap as any;\n }\n set lineCap(value: CanvasLineCap) {\n this.originContext.lineCap = value;\n }\n\n get lineDashOffset(): number {\n return this.originContext.lineDashOffset;\n }\n set lineDashOffset(value: number) {\n this.originContext.lineDashOffset = value;\n }\n\n get lineJoin(): CanvasLineJoin {\n return this.originContext.lineJoin as any;\n }\n set lineJoin(value: CanvasLineJoin) {\n this.originContext.lineJoin = value;\n }\n\n get lineWidth(): number {\n return this.originContext.lineWidth;\n }\n set lineWidth(value: number) {\n this.originContext.lineWidth = value;\n }\n\n get miterLimit(): number {\n return this.originContext.miterLimit;\n }\n set miterLimit(value: number) {\n this.originContext.miterLimit = value;\n }\n\n get shadowBlur(): number {\n return this.originContext.shadowBlur;\n }\n set shadowBlur(value: number) {\n this.originContext.shadowBlur = value;\n }\n\n get shadowColor(): string {\n return this.originContext.shadowColor;\n }\n set shadowColor(value: string) {\n this.originContext.shadowColor = value;\n }\n\n get shadowOffsetX(): number {\n return this.originContext.shadowOffsetX;\n }\n set shadowOffsetX(value: number) {\n this.originContext.shadowOffsetX = value;\n }\n\n get shadowOffsetY(): number {\n return this.originContext.shadowOffsetY;\n }\n set shadowOffsetY(value: number) {\n this.originContext.shadowOffsetY = value;\n }\n\n get strokeStyle(): string | CanvasGradient | CanvasPattern {\n return this.originContext.strokeStyle;\n }\n set strokeStyle(value: string | CanvasGradient | CanvasPattern) {\n this.originContext.strokeStyle = value;\n }\n\n get textAlign(): CanvasTextAlign {\n return this.originContext.textAlign as any;\n }\n set textAlign(value: CanvasTextAlign) {\n this.originContext.textAlign = value as any;\n }\n\n get textBaseline(): CanvasTextBaseline {\n return this.originContext.textBaseline as any;\n }\n set textBaseline(value: CanvasTextBaseline) {\n this.originContext.textBaseline = value;\n }\n\n // Matrix-related getter\n get currentMatrix() {\n return this.originContext.currentMatrix;\n }\n\n // Forward all other methods to originContext\n // Transform methods\n save(): void {\n return this.originContext.save();\n }\n restore(): void {\n return this.originContext.restore();\n }\n highPerformanceSave(): void {\n return this.originContext.highPerformanceSave();\n }\n highPerformanceRestore(): void {\n return this.originContext.highPerformanceRestore();\n }\n rotate(rad: number, setTransform?: boolean): void {\n return this.originContext.rotate(rad, setTransform);\n }\n scale(sx: number, sy: number, setTransform?: boolean): void {\n return this.originContext.scale(sx, sy, setTransform);\n }\n setScale(sx: number, sy: number, setTransform?: boolean): void {\n return this.originContext.setScale(sx, sy, setTransform);\n }\n scalePoint(sx: number, sy: number, px: number, py: number, setTransform?: boolean): void {\n return this.originContext.scalePoint(sx, sy, px, py, setTransform);\n }\n setTransform(\n a: number,\n b: number,\n c: number,\n d: number,\n e: number,\n f: number,\n setTransform?: boolean,\n dpr?: number\n ): void {\n return this.originContext.setTransform(a, b, c, d, e, f, setTransform, dpr);\n }\n setTransformFromMatrix(matrix: Matrix, setTransform?: boolean, dpr?: number): void {\n return this.originContext.setTransformFromMatrix(matrix, setTransform, dpr);\n }\n resetTransform(setTransform?: boolean, dpr?: number): void {\n return this.originContext.resetTransform(setTransform, dpr);\n }\n transform(a: number, b: number, c: number, d: number, e: number, f: number, setTransform?: boolean): void {\n return this.originContext.transform(a, b, c, d, e, f, setTransform);\n }\n transformFromMatrix(matrix: Matrix, setTransform?: boolean): void {\n return this.originContext.transformFromMatrix(matrix, setTransform);\n }\n translate(x: number, y: number, setTransform?: boolean): void {\n return this.originContext.translate(x, y, setTransform);\n }\n rotateDegrees(deg: number, setTransform?: boolean): void {\n return this.originContext.rotateDegrees(deg, setTransform);\n }\n rotateAbout(rad: number, x: number, y: number, setTransform?: boolean): void {\n return this.originContext.rotateAbout(rad, x, y, setTransform);\n }\n rotateDegreesAbout(deg: number, x: number, y: number, setTransform?: boolean): void {\n return this.originContext.rotateDegreesAbout(deg, x, y, setTransform);\n }\n\n setTransformForCurrent(force: boolean = false) {\n return this.originContext.setTransformForCurrent(force);\n }\n\n // Drawing methods\n clip(fillRule?: CanvasFillRule): void;\n clip(path: Path2D, fillRule?: CanvasFillRule): void;\n clip(path?: Path2D | CanvasFillRule, fillRule?: CanvasFillRule): void {\n return (this.originContext.clip as any)(path, fillRule);\n }\n fill(path?: Path2D, fillRule?: CanvasFillRule): void {\n return this.originContext.fill(path, fillRule);\n }\n stroke(path?: Path2D): void {\n return this.originContext.stroke(path);\n }\n fillRect(x: number, y: number, width: number, height: number): void {\n return this.originContext.fillRect(x, y, width, height);\n }\n strokeRect(x: number, y: number, width: number, height: number): void {\n return this.originContext.strokeRect(x, y, width, height);\n }\n fillText(text: string, x: number, y: number, z?: number): void {\n return this.originContext.fillText(text, x, y, z);\n }\n strokeText(text: string, x: number, y: number, z?: number): void {\n return this.originContext.strokeText(text, x, y, z);\n }\n clearRect(x: number, y: number, w: number, h: number): void {\n return this.originContext.clearRect(x, y, w, h);\n }\n\n // Image methods\n drawImage(...args: any[]): void {\n return (this.originContext.drawImage as any)(...args);\n }\n createImageData(...args: any[]): ImageData {\n return (this.originContext.createImageData as any)(...args);\n }\n getImageData(sx: number, sy: number, sw: number, sh: number): ImageData {\n return this.originContext.getImageData(sx, sy, sw, sh);\n }\n putImageData(imagedata: ImageData, dx: number, dy: number): void {\n return this.originContext.putImageData(imagedata, dx, dy);\n }\n\n // Gradient/Pattern methods\n createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient {\n return this.originContext.createLinearGradient(x0, y0, x1, y1);\n }\n createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient {\n return this.originContext.createRadialGradient(x0, y0, r0, x1, y1, r1);\n }\n createConicGradient(x: number, y: number, startAngle: number, endAngle: number): IConicalGradientData {\n return this.originContext.createConicGradient(x, y, startAngle, endAngle);\n }\n createPattern(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, repetition: string): CanvasPattern {\n return this.originContext.createPattern(image, repetition);\n }\n\n // Line style methods\n getLineDash(): number[] {\n return this.originContext.getLineDash();\n }\n setLineDash(segments: number[]): void {\n return this.originContext.setLineDash(segments);\n }\n\n // Utility methods\n clear(): void {\n return this.originContext.clear();\n }\n measureText(text: string, method?: 'native' | 'simple' | 'quick'): { width: number } {\n return this.originContext.measureText(text, method);\n }\n isPointInPath(x: number, y: number): boolean {\n return this.originContext.isPointInPath(x, y);\n }\n isPointInStroke(x: number, y: number): boolean {\n return this.originContext.isPointInStroke(x, y);\n }\n project(x: number, y: number, z?: number): IPointLike {\n return this.originContext.project(x, y, z);\n }\n view(x: number, y: number, z?: number): vec3 {\n return this.originContext.view(x, y, z);\n }\n\n // Helper methods\n getCanvas(): ICanvas {\n return this.originContext.getCanvas();\n }\n getContext(): CanvasRenderingContext2D | any {\n return this.originContext.getContext();\n }\n setCommonStyle(\n params: ISetCommonStyleParams,\n attribute: ICommonStyleParams,\n offsetX: number,\n offsetY: number,\n defaultParams?: ICommonStyleParams | Partial<ICommonStyleParams>[]\n ): void {\n return this.originContext.setCommonStyle(params, attribute, offsetX, offsetY, defaultParams);\n }\n setShadowBlendStyle(\n params: ISetCommonStyleParams,\n attribute: ICommonStyleParams,\n defaultParams?: ICommonStyleParams | Partial<ICommonStyleParams>[]\n ): void {\n return this.originContext.setShadowBlendStyle(params, attribute, defaultParams);\n }\n setStrokeStyle(\n params: ISetStrokeStyleParams,\n attribute: IStrokeStyleParams,\n offsetX: number,\n offsetY: number,\n defaultParams?: IStrokeStyleParams | any\n ): void {\n return this.originContext.setStrokeStyle(params, attribute, offsetX, offsetY, defaultParams);\n }\n setTextStyle(params: Partial<ITextStyleParams>, defaultParams?: ITextStyleParams, z?: number): void {\n return this.originContext.setTextStyle(params, defaultParams, z);\n }\n setTextStyleWithoutAlignBaseline(\n params: Partial<ITextStyleParams>,\n defaultParams?: ITextStyleParams,\n z?: number\n ): void {\n return this.originContext.setTextStyleWithoutAlignBaseline(params, defaultParams, z);\n }\n clearMatrix(setTransform?: boolean, dpr?: number): void {\n return this.originContext.clearMatrix(setTransform, dpr);\n }\n setClearMatrix(a: number, b: number, c: number, d: number, e: number, f: number): void {\n return this.originContext.setClearMatrix(a, b, c, d, e, f);\n }\n onlyTranslate(dpr?: number): boolean {\n return this.originContext.onlyTranslate(dpr);\n }\n cloneMatrix(m: Matrix): Matrix {\n return this.originContext.cloneMatrix(m);\n }\n draw(): void {\n return this.originContext.draw();\n }\n release(...params: any): void {\n return this.originContext.release(...params);\n }\n}\n"]}
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
import type { IPointLike, TextMeasure, ITextMeasureSpec, IMatrix, Matrix } from '@visactor/vutils';
|
|
2
|
-
import type { ICamera, ICanvas, ICommonStyleParams, IConicalGradientData, IContext2d, ISetCommonStyleParams, ISetStrokeStyleParams, IStrokeStyleParams, ITextStyleParams, mat4, EnvType, vec3, CustomPath2D } from '@visactor/vrender-core';
|
|
3
|
-
export declare class RoughContext2d implements IContext2d {
|
|
4
|
-
static env: EnvType;
|
|
5
|
-
originContext: IContext2d;
|
|
6
|
-
customPath: CustomPath2D;
|
|
7
|
-
constructor(originContext: IContext2d, customPath: CustomPath2D);
|
|
8
|
-
reset(setTransform?: boolean): void;
|
|
9
|
-
beginPath(): void;
|
|
10
|
-
moveTo(x: number, y: number, z?: number): void;
|
|
11
|
-
lineTo(x: number, y: number, z?: number): void;
|
|
12
|
-
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number, z?: number): void;
|
|
13
|
-
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number, z?: number): void;
|
|
14
|
-
arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, anticlockwise?: boolean, z?: number): void;
|
|
15
|
-
arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
|
|
16
|
-
ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, anticlockwise?: boolean): void;
|
|
17
|
-
rect(x: number, y: number, w: number, h: number, z?: number): void;
|
|
18
|
-
closePath(): void;
|
|
19
|
-
get canvas(): ICanvas;
|
|
20
|
-
set canvas(value: ICanvas);
|
|
21
|
-
get camera(): ICamera | undefined;
|
|
22
|
-
set camera(value: ICamera | undefined);
|
|
23
|
-
get modelMatrix(): mat4 | undefined;
|
|
24
|
-
set modelMatrix(value: mat4 | undefined);
|
|
25
|
-
get nativeContext(): CanvasRenderingContext2D | any;
|
|
26
|
-
set nativeContext(value: CanvasRenderingContext2D | any);
|
|
27
|
-
get _inuse(): boolean;
|
|
28
|
-
set _inuse(value: boolean);
|
|
29
|
-
get inuse(): boolean;
|
|
30
|
-
set inuse(value: boolean);
|
|
31
|
-
get stack(): Matrix[];
|
|
32
|
-
set stack(value: Matrix[]);
|
|
33
|
-
get disableFill(): boolean | undefined;
|
|
34
|
-
set disableFill(value: boolean | undefined);
|
|
35
|
-
get disableStroke(): boolean | undefined;
|
|
36
|
-
set disableStroke(value: boolean | undefined);
|
|
37
|
-
get disableBeginPath(): boolean | undefined;
|
|
38
|
-
set disableBeginPath(value: boolean | undefined);
|
|
39
|
-
get fontFamily(): string;
|
|
40
|
-
set fontFamily(value: string);
|
|
41
|
-
get fontSize(): number;
|
|
42
|
-
set fontSize(value: number);
|
|
43
|
-
get _clearMatrix(): IMatrix;
|
|
44
|
-
set _clearMatrix(value: IMatrix);
|
|
45
|
-
get dpr(): number;
|
|
46
|
-
set dpr(value: number);
|
|
47
|
-
get baseGlobalAlpha(): number;
|
|
48
|
-
set baseGlobalAlpha(value: number);
|
|
49
|
-
get drawPromise(): Promise<any> | undefined;
|
|
50
|
-
set drawPromise(value: Promise<any> | undefined);
|
|
51
|
-
get mathTextMeasure(): TextMeasure<ITextMeasureSpec>;
|
|
52
|
-
set mathTextMeasure(value: TextMeasure<ITextMeasureSpec>);
|
|
53
|
-
get fillStyle(): string | CanvasGradient | CanvasPattern;
|
|
54
|
-
set fillStyle(value: string | CanvasGradient | CanvasPattern);
|
|
55
|
-
get font(): string;
|
|
56
|
-
set font(value: string);
|
|
57
|
-
get globalAlpha(): number;
|
|
58
|
-
set globalAlpha(value: number);
|
|
59
|
-
get lineCap(): CanvasLineCap;
|
|
60
|
-
set lineCap(value: CanvasLineCap);
|
|
61
|
-
get lineDashOffset(): number;
|
|
62
|
-
set lineDashOffset(value: number);
|
|
63
|
-
get lineJoin(): CanvasLineJoin;
|
|
64
|
-
set lineJoin(value: CanvasLineJoin);
|
|
65
|
-
get lineWidth(): number;
|
|
66
|
-
set lineWidth(value: number);
|
|
67
|
-
get miterLimit(): number;
|
|
68
|
-
set miterLimit(value: number);
|
|
69
|
-
get shadowBlur(): number;
|
|
70
|
-
set shadowBlur(value: number);
|
|
71
|
-
get shadowColor(): string;
|
|
72
|
-
set shadowColor(value: string);
|
|
73
|
-
get shadowOffsetX(): number;
|
|
74
|
-
set shadowOffsetX(value: number);
|
|
75
|
-
get shadowOffsetY(): number;
|
|
76
|
-
set shadowOffsetY(value: number);
|
|
77
|
-
get strokeStyle(): string | CanvasGradient | CanvasPattern;
|
|
78
|
-
set strokeStyle(value: string | CanvasGradient | CanvasPattern);
|
|
79
|
-
get textAlign(): CanvasTextAlign;
|
|
80
|
-
set textAlign(value: CanvasTextAlign);
|
|
81
|
-
get textBaseline(): CanvasTextBaseline;
|
|
82
|
-
set textBaseline(value: CanvasTextBaseline);
|
|
83
|
-
get currentMatrix(): IMatrix;
|
|
84
|
-
save(): void;
|
|
85
|
-
restore(): void;
|
|
86
|
-
highPerformanceSave(): void;
|
|
87
|
-
highPerformanceRestore(): void;
|
|
88
|
-
rotate(rad: number, setTransform?: boolean): void;
|
|
89
|
-
scale(sx: number, sy: number, setTransform?: boolean): void;
|
|
90
|
-
setScale(sx: number, sy: number, setTransform?: boolean): void;
|
|
91
|
-
scalePoint(sx: number, sy: number, px: number, py: number, setTransform?: boolean): void;
|
|
92
|
-
setTransform(a: number, b: number, c: number, d: number, e: number, f: number, setTransform?: boolean, dpr?: number): void;
|
|
93
|
-
setTransformFromMatrix(matrix: Matrix, setTransform?: boolean, dpr?: number): void;
|
|
94
|
-
resetTransform(setTransform?: boolean, dpr?: number): void;
|
|
95
|
-
transform(a: number, b: number, c: number, d: number, e: number, f: number, setTransform?: boolean): void;
|
|
96
|
-
transformFromMatrix(matrix: Matrix, setTransform?: boolean): void;
|
|
97
|
-
translate(x: number, y: number, setTransform?: boolean): void;
|
|
98
|
-
rotateDegrees(deg: number, setTransform?: boolean): void;
|
|
99
|
-
rotateAbout(rad: number, x: number, y: number, setTransform?: boolean): void;
|
|
100
|
-
rotateDegreesAbout(deg: number, x: number, y: number, setTransform?: boolean): void;
|
|
101
|
-
setTransformForCurrent(force?: boolean): void;
|
|
102
|
-
clip(fillRule?: CanvasFillRule): void;
|
|
103
|
-
clip(path: Path2D, fillRule?: CanvasFillRule): void;
|
|
104
|
-
fill(path?: Path2D, fillRule?: CanvasFillRule): void;
|
|
105
|
-
stroke(path?: Path2D): void;
|
|
106
|
-
fillRect(x: number, y: number, width: number, height: number): void;
|
|
107
|
-
strokeRect(x: number, y: number, width: number, height: number): void;
|
|
108
|
-
fillText(text: string, x: number, y: number, z?: number): void;
|
|
109
|
-
strokeText(text: string, x: number, y: number, z?: number): void;
|
|
110
|
-
clearRect(x: number, y: number, w: number, h: number): void;
|
|
111
|
-
drawImage(...args: any[]): void;
|
|
112
|
-
createImageData(...args: any[]): ImageData;
|
|
113
|
-
getImageData(sx: number, sy: number, sw: number, sh: number): ImageData;
|
|
114
|
-
putImageData(imagedata: ImageData, dx: number, dy: number): void;
|
|
115
|
-
createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;
|
|
116
|
-
createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;
|
|
117
|
-
createConicGradient(x: number, y: number, startAngle: number, endAngle: number): IConicalGradientData;
|
|
118
|
-
createPattern(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement, repetition: string): CanvasPattern;
|
|
119
|
-
getLineDash(): number[];
|
|
120
|
-
setLineDash(segments: number[]): void;
|
|
121
|
-
clear(): void;
|
|
122
|
-
measureText(text: string, method?: 'native' | 'simple' | 'quick'): {
|
|
123
|
-
width: number;
|
|
124
|
-
};
|
|
125
|
-
isPointInPath(x: number, y: number): boolean;
|
|
126
|
-
isPointInStroke(x: number, y: number): boolean;
|
|
127
|
-
project(x: number, y: number, z?: number): IPointLike;
|
|
128
|
-
view(x: number, y: number, z?: number): vec3;
|
|
129
|
-
getCanvas(): ICanvas;
|
|
130
|
-
getContext(): CanvasRenderingContext2D | any;
|
|
131
|
-
setCommonStyle(params: ISetCommonStyleParams, attribute: ICommonStyleParams, offsetX: number, offsetY: number, defaultParams?: ICommonStyleParams | Partial<ICommonStyleParams>[]): void;
|
|
132
|
-
setShadowBlendStyle(params: ISetCommonStyleParams, attribute: ICommonStyleParams, defaultParams?: ICommonStyleParams | Partial<ICommonStyleParams>[]): void;
|
|
133
|
-
setStrokeStyle(params: ISetStrokeStyleParams, attribute: IStrokeStyleParams, offsetX: number, offsetY: number, defaultParams?: IStrokeStyleParams | any): void;
|
|
134
|
-
setTextStyle(params: Partial<ITextStyleParams>, defaultParams?: ITextStyleParams, z?: number): void;
|
|
135
|
-
setTextStyleWithoutAlignBaseline(params: Partial<ITextStyleParams>, defaultParams?: ITextStyleParams, z?: number): void;
|
|
136
|
-
clearMatrix(setTransform?: boolean, dpr?: number): void;
|
|
137
|
-
setClearMatrix(a: number, b: number, c: number, d: number, e: number, f: number): void;
|
|
138
|
-
onlyTranslate(dpr?: number): boolean;
|
|
139
|
-
cloneMatrix(m: Matrix): Matrix;
|
|
140
|
-
draw(): void;
|
|
141
|
-
release(...params: any): void;
|
|
142
|
-
}
|