-
Notifications
You must be signed in to change notification settings - Fork 22
/
index.d.ts
906 lines (580 loc) · 22.5 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
declare namespace karas {
let version: string;
enum mode {
CANVAS,
SVG,
WEBGL,
}
class Event {
on(id: string | [string], handle: Function): void
off(id: string | [string], handle: Function): void
once(id: string | [string], handle: Function): void
emit(id: string | [string]): void
static mix(...obj: [object]): void
}
class Node extends Event {
get x(): number
get y(): number
get width(): number
get height(): number
get clientWidth(): number
get clientHeight(): number
get offsetWidth(): number
get offsetHeight(): number
get outerWidth(): number
get outerHeight(): number
get prev(): Xom | Component | null
get next(): Xom | Component | null
get parent(): Xom | null
get domParent(): Dom | null
get root(): Root | null
get host(): Component | null
get hostRoot(): Component | null
get baseline(): number
get verticalBaseline(): number
get virtualDom(): object
get isDestroyed(): boolean
get isReplaced(): boolean
}
class Text extends Node {
constructor(content: string);
render(lv, ctx, dx: number, dy: number): void
remove(cb: Function): void
get content(): string
set content(v: string)
get textBoxes(): [object]
get charWidth(): number
get firstCharWidth(): number
get textWidth(): number
get currentStyle(): object
get computedStyle(): object
get cacheStyle(): object
get bbox(): [number]
get filterBbox(): [number]
get isShadowRoot(): boolean
get matrix(): [number]
get matrixEvent(): [number]
get perspectiveMatrix(): [number]
get fitFontSize(): number
}
class Xom extends Node {
constructor(tagName: string, props: object);
render(lv, ctx, dx: number, dy: number): void
calContent(currentStyle: object, computedStyle: object): boolean
refresh(lv: number, cb: Function): void
willResponseEvent(e: object, ignore: boolean): boolean
clearCache(onlyTotal: boolean): void
clearTopCache(): void
updateStyle(style: object, cb: Function): void
updateFormatStyle(style: object, cb: Function): void
animate(list: [object], options: object): void
removeAnimate(o: animate.Animation): void
clearAnimate(): void
frameAnimate(cb: Function): void
removeFrameAnimate(cb: Function): void
clearFrameAnimate(): void
getComputedStyle(key: string | [string]): object
getBoundingClientRect(includeBbox: boolean): {
left: number,
top: number,
right: number,
bottom: number,
points: [number],
}
remove(cb: Function): void
addEventListener(type: string, cb: Function): void
removeEventListener(type: string, cb: Function): void
get tagName(): string
get listener(): object
get opacity(): number
get currentStyle(): object
get computedStyle(): object
get cacheStyle(): object
get bbox(): [number]
get filterBbox(): [number]
get isShadowRoot(): boolean
get matrix(): [number]
get matrixEvent(): [number]
get perspectiveMatrix(): [number]
get contentBoxList(): [object]
get parentLineBox(): object
get mask(): Xom | Component
set mask(v: Xom | Component)
get clip(): Xom | Component
set clip(v: Xom | Component)
get cacheAsBitmap(): boolean
set cacheAsBitmap(v: boolean)
get env(): {
x: number,
y: number,
width: number,
height: number,
node: Dom,
} | null
}
class Dom extends Xom {
constructor(tagName: string, props: object, children: [Xom | Component])
appendChild(target: Node | Component, cb: Function): void
prependChild(target: Node | Component, cb: Function): void
insertBefore(target: Node | Component, cb: Function): void
insertAfter(target: Node | Component, cb: Function): void
removeChild(target: Node | Component, cb: Function): void
get children(): [Node | Component]
get flowChildren(): [Node | Component]
get absChildren(): [Node | Component]
get zIndexChildren(): [Node | Component]
}
class Img extends Dom {
constructor(tagName: string, props: object);
updateSrc(v: string, cb: Function): void
get src(): string
}
class Root extends Dom {
constructor(tagName: string, props: object, children: [Node | Component])
appendTo(dom: string | HTMLElement): void
draw(isFirst: boolean): void
destroy(): void
scale(x: number, y: number): void
resize(w: number, h: number, cb: Function): void
getTargetAtPoint(x: number, y: number, includeIgnore: boolean): Node | Component | null
freeze(): void
unFreeze(): void
pause(): void
resume(): void
get dom(): HTMLElement
get uuid(): number
get renderMode(): mode
get ctx(): CanvasRenderingContext2D | WebGLRenderingContext | WebGL2RenderingContext
get defs(): object
get ref(): object
get animateController(): animate.Animation
}
class Geom extends Xom {
constructor(tagName: string, props: object);
}
class Component extends Event {
constructor(props: object);
}
function render(root: Root, dom: string | Dom): Root
function createElement(tagName: string, props: object, ...children: [Node | Component]): Xom | Component
function parse(json: JSON, dom: string | Dom, options: object): Xom | Component
function loadAndParse(json: JSON, dom: string | Dom, options: object): Xom | Component
namespace util {
function isObject(o: any): boolean
function isString(o: any): boolean
function isFunction(o: any): boolean
function isNumber(o: any): boolean
function isBoolean(o: any): boolean
function isDate(o: any): boolean
function isNil(o: any): boolean
function isPrimitive(o: any): boolean
function isAuto(o: any): boolean
function isPlainObject(o: any): boolean
function stringify(o: any): string
function rgba2int(color: string | [number]): string
function int2rgba(color: [number]): [number]
function clone(o: any): any
function equalArr(a: [any], b: [any]): boolean
function equal(a: any, b: any): boolean
function extend(o: any): any
}
namespace inject {
function measureImg(url: string, cb: Function): void
function requestAnimationFrame(cb: Function): void
function cancelAnimationFrame(cb: Function): void
function now(): number
function isDom(o: any): boolean
function isWebGLTexture(o: any): boolean
let defaultFontFamily: string
function checkSupportFontFamily(ff: string): boolean
function loadFont(fontFamily: string, url: string, cb: Function): void
function loadFont(url: string, cb: Function): void
function loadFont(list: [{ fontFamily: string, url: string }], cb: Function): void
function loadComponent(url: string, cb: Function): void
function loadComponent(list: [string], cb: Function): void
}
namespace style {
namespace abbr {
function toFull(style: object, k: string): object
}
namespace reset {
const DOM: object
const GEOM: object
const DOM_KEY_SET: [object]
const GEOM_KEY_SET: [object]
const DOM_ENTRY_SET: [object]
const GEOM_ENTRY_SET: [object]
const INHERIT: object
const INHERIT_KEY_SET: [object]
function isValid(i: string): boolean
}
enum unit {
AUTO,
PX,
PERCENT,
NUMBER,
INHERIT,
DEG,
STRING,
RGBA,
REM,
EM,
VW,
VH,
VMAX,
VMIN,
GRADIENT,
}
namespace unit {
function calUnit(): { v: number, u: unit }
}
namespace font {
function support(ff: string): boolean
function register(name: string, url: string, data: object): void
function hasRegister(ff: string): boolean
function hasLoaded(ff: string): boolean
function onRegister(ff: string, node: Xom): void
function offRegister(ff: string, node: Xom): void
}
namespace css {
}
namespace transform {
}
}
namespace parser {
}
namespace animate {
namespace frame {
function onFrame(handle: Function): void
function offFrame(handle: Function): void
function nextFrame(handle: Function): void
function pause(): void
function resume(): void
let task: [object]
}
namespace easing {
function linear(): Function
function easeIn(): Function
function easeOut(): Function
function ease(): Function
function easeInOut(): Function
function cubicBezier(): Function
function getEasing(v: number | [number], v1: number, v2: number, v3: number): Function
}
class Animation {
constructor(target: Xom, list: [object], options: object)
play(cb: Function): void
pause(cb: Function): void
resume(cb: Function): void
finish(cb: Function): void
cancel(cb: Function): void
gotoAndStop(v: number, options: object, cb: Function): void
gotoAndPlay(v: number, options: object, cb: Function): void
addControl(): void
removeControl(): void
get id(): number
get target(): Xom
get root(): Root
get keys(): []
get options(): object
get duration(): number
get delay(): number
set delay(v: number)
get endDelay(): number
set endDelay(v: number)
get fps(): number
set fps(v: number)
get spf(): number
set spf(v: number)
get iterations(): number
set iterations(v: number)
get playbackRate(): number
set playbackRate(v: number)
get currentTime(): number
set currentTime(v: number)
get startTime(): number
get nextTime(): number
set nextTime(v: number)
get timestamp(): number
get fill(): string
set fill(v: string)
get easing(): string
set easing(v: string)
get direction(): string
set direction(v: string)
get frames(): [object]
get framesR(): [object]
get pending(): boolean
get finished(): boolean
get playState(): string
get playCount(): number
get isDestroyed(): boolean
get animating(): boolean
get spfLimit(): number
set spfLimit(v: number)
}
}
namespace math {
namespace bezier {
function bboxBezier(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, x3: number, y3: number): [number]
function bezierLength(points: [{ x: number, y: number }] | [[number, number]]): number
function pointAtBezier(points: [{ x: number, y: number }] | [[number, number]], percent: number, maxIterations: number, eps: number): number
function pointAtBezierWithLength(points: [{ x: number, y: number }] | [[number, number]], length: number, percent: number, maxIterations: number, eps: number): number
function sliceBezier(points: [{ x: number, y: number }] | [[number, number]], t: number): [[number, number]]
function sliceBezier2Both(points: [{ x: number, y: number }] | [[number, number]], start: number, end: number): [[number, number]]
function pointAtByT(points: [{ x: number, y: number }] | [[number, number]], t: number): [number, number]
function getPointT(points: [{ x: number, y: number }] | [[number, number]], x: number, y: number): number
function bezierSlope(points: [{ x: number, y: number }] | [[number, number]], t: number): number
}
namespace blur {
function kernelSize(sigma: number): number
function outerSize(sigma: number): number
function outerSizeByD(d: number): number
function gaussianWeight(sigma: number, d: number): number
}
namespace equation {
function getRoots(coefs: [number]): [number]
}
namespace geom {
function pointInConvexPolygon(x: number, y: number, vertexes: [[number, number]]): boolean
function pointInQuadrilateral(x: number, y: number, x1: number, y1: number, x2: number, y2: number, x4: number, y4: number, x3: number, y3: number, matrix: [number]): boolean
function d2r(n: number): number
function r2d(n: number): number
function h(deg: number): number
function angleBySide(a: number, b: number, c: number): number
function sideByAngle(alpha: number, a: number, b: number): number
function pointsDistance(x1: number, y1: number, x2: number, y2: number): number
function triangleIncentre(x1: number, y1: number, x2: number, y2: number, x3: number, y3: number): number
function ellipsePoints(x: number, y: number, a: number, b: number)
function sectorPoints(x: number, y: number, r: number, begin: number, end: number)
function getRectsIntersection(a: [number], b: [number])
function isRectsOverlap(a: [number], b: [number], includeIntersect: boolean)
function isRectsInside(a: [number], b: [number], includeIntersect: boolean)
function calCoordsInNode(x: number, y: number, node: Xom)
function calPercentInNode(x: number, y: number, node: Xom)
function pointOnCircle(x: number, y: number, r: number, deg: number)
function getPlainNormalEquation(points: [{ x: number, y: number, z: number }]): { a: number, b: number, c: number, d: number }
}
namespace isec {
function intersectBezier2Line(ax1: number, ay1: number, ax2: number, ay2: number, ax3: number, ay3: number, bx1: number, by1: number, bx2: number, by2: number): [{ x: number, y: number }]
function intersectBezier3Line(ax1: number, ay1: number, ax2: number, ay2: number, ax3: number, ay3: number, ax4: number, ay4: number, bx1: number, by1: number, bx2: number, by2: number): [{ x: number, y: number }]
function intersectBezier2Bezier2(ax1: number, ay1: number, ax2: number, ay2: number, ax3: number, ay3: number, bx1: number, by1: number, bx2: number, by2: number, bx3: number, by3: number): [{ x: number, y: number }]
function intersectBezier3Bezier3(ax1: number, ay1: number, ax2: number, ay2: number, ax3: number, ay3: number, ax4: number, ay4: number, bx1: number, by1: number, bx2: number, by2: number, bx3: number, by3: number, bx4: number, by4: number): [{ x: number, y: number }]
function intersectBezier2Bezier3(ax1: number, ay1: number, ax2: number, ay2: number, ax3: number, ay3: number, bx1: number, by1: number, bx2: number, by2: number, bx3: number, by3: number, bx4: number, by4: number): [{ x: number, y: number }]
function intersectLineLine3(ax1: number, ay1: number, ax2: number, ay2: number, bx1: number, by1: number, bx2: number, by2: number): [{ x: number, y: number }]
function intersectPlanePlane(p1: { x: number, y: number, z: number }, p2: { x: number, y: number, z: number }, p3: { x: number, y: number, z: number }, p4: { x: number, y: number, z: number }, p5: { x: number, y: number, z: number }, p6: { x: number, y: number, z: number }): [{ x: number, y: number, z: number }, { x: number, y: number, z: number }] | null
function pointOnLine3(p: { x: number, y: number, z: number }, p1: { x: number, y: number }, p2: { x: number, y: number, z: number }): boolean
}
namespace matrix {
function identity(): [number]
function multiply(a: [number], b: [number]): [number]
function multiplyTfo(m: [number], x: number, y: number): [number]
function tfoMultiply(x: number, y: number, m: [number]): [number]
function multiplyTranslateX(m: [number], v: number): [number]
function multiplyTranslateY(m: [number], v: number): [number]
function multiplyTranslateZ(m: [number], v: number): [number]
function multiplyRotateX(m: [number], v: number): [number]
function multiplyRotateY(m: [number], v: number): [number]
function multiplyRotateZ(m: [number], v: number): [number]
function multiplySkewX(m: [number], v: number): [number]
function multiplySkewY(m: [number], v: number): [number]
function multiplyScaleX(m: [number], v: number): [number]
function multiplyScaleY(m: [number], v: number): [number]
function multiplyScaleZ(m: [number], v: number): [number]
function multiplyPerspective(m: [number], v: number): [number]
function calPoint(point: { x: number, y: number, z: number, w: number }, m: [number]): { x: number, y: number, z: number, w: number }
function calRectPoint(xa: number, ya: number, xb: number, yb: number, m: [number]): [number]
function point2d(point: { x: number, y: number, z: number, w: number }): { x: number, y: number, z: number, w: number }
function inverse(m: [number]): [number]
function isE(m: [number] | null): boolean
function m2m6(m: [number]): [number]
}
namespace tar {
function exchangeOrder(source, target)
function isOverflow(source, target)
function transform(source, target)
}
namespace vector {
function dotProduct(x1: number, y1: number, x2: number, y2: number): number
function dotProduct3(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number): number
function crossProduct(x1: number, y1: number, x2: number, y2: number): number
function crossProduct3(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number): number
function unitize(x: number, y: number): { x: number, y: number }
function unitize3(x: number, y: number, z: number): { x: number, y: number, z: number }
function isParallel(x1: number, y1: number, x2: number, y2: number): boolean
function isParallel3(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number): boolean
function isZero(x1: number, y1: number, x2: number, y2: number): boolean
function isZero3(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number): boolean
function angle(x1: number, y1: number, x2: number, y2: number): number
function angle3(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number): number
function length(x1: number, y1: number, x2: number, y2: number): number
function length3(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number): number
function getPerpendicularVector3(x: number, y: number, z: number): { x: number, y: number }
}
}
namespace refresh {
enum level {
NONE = 0,
CACHE = 1,
TRANSLATE_X = 2,
TRANSLATE_Y = 4,
TRANSLATE_Z = 8,
TRANSLATE = 14,
ROTATE_Z = 16,
SCALE_X = 32,
SCALE_Y = 64,
SCALE_Z = 128,
SCALE = 224,
TRANSFORM = 256,
TRANSFORM_ALL = 510,
OPACITY = 512,
FILTER = 1024,
MIX_BLEND_MODE = 2048,
PERSPECTIVE = 4096,
MASK = 8192,
REPAINT = 16384,
REFLOW = 32768,
REBUILD = 65536,
}
namespace level {
function contain(lv: number, value: number): boolean
function exclude(lv: number, value: number): boolean
function getLevel(k: number): level
function isReflow(lv: number): boolean
function isRepaint(lv: number): boolean
}
namespace change {
function addGeom(tagName: string, ks: [string], cb: Function): void
function isIgnore(k: string): boolean
function isGeom(tagName: string, k: string): boolean
function isRepaint(k: string, tagName: string): boolean
function isValid(tagName: string, k: string): boolean
}
class Page {
constructor(renderMode: mode, ctx: CanvasRenderingContext2D | WebGLRenderingContext | WebGL2RenderingContext, size: number, number: number)
}
class Cache {
constructor(renderMode: mode, ctx: CanvasRenderingContext2D | WebGLRenderingContext | WebGL2RenderingContext, w: number, h: number, bbox: [number], page: Page, pos: number, x1: number, y1: number)
}
namespace webgl {
function initShaders(gl: WebGLRenderingContext | WebGL2RenderingContext, vShader: string, fShader: string)
function drawTextureCache(gl: WebGLRenderingContext | WebGL2RenderingContext, list: [{ cache: Cache, opacity: number, matrix: [number] }], cx: number, cy: number, dx: number, dy: number)
function createTexture(gl: WebGLRenderingContext | WebGL2RenderingContext, tex: HTMLCanvasElement | HTMLImageElement | WebGLTexture, n: number, width: number, height: number)
function bindTexture(gl: WebGLRenderingContext | WebGL2RenderingContext, tex: HTMLCanvasElement | HTMLImageElement | WebGLTexture, n: number)
}
}
namespace enums {
enum STYLE_KEY {
POSITION,
DISPLAY,
TOP,
RIGHT,
BOTTOM,
LEFT,
MARGIN_TOP,
MARGIN_RIGHT,
MARGIN_BOTTOM,
MARGIN_LEFT,
PADDING_TOP,
PADDING_RIGHT,
PADDING_BOTTOM,
PADDING_LEFT,
FONT_SIZE,
FONT_FAMILY,
COLOR,
FONT_STYLE,
FONT_WEIGHT,
LINE_HEIGHT,
BACKGROUND_IMAGE,
BACKGROUND_COLOR,
BACKGROUND_SIZE,
BACKGROUND_REPEAT,
BACKGROUND_POSITION_X,
BACKGROUND_POSITION_Y,
BORDER_TOP_WIDTH,
BORDER_RIGHT_WIDTH,
BORDER_BOTTOM_WIDTH,
BORDER_LEFT_WIDTH,
BORDER_TOP_COLOR,
BORDER_RIGHT_COLOR,
BORDER_BOTTOM_COLOR,
BORDER_LEFT_COLOR,
BORDER_TOP_STYLE,
BORDER_RIGHT_STYLE,
BORDER_BOTTOM_STYLE,
BORDER_LEFT_STYLE,
BORDER_TOP_LEFT_RADIUS,
BORDER_TOP_RIGHT_RADIUS,
BORDER_BOTTOM_RIGHT_RADIUS,
BORDER_BOTTOM_LEFT_RADIUS,
WIDTH,
HEIGHT,
FLEX_GROW,
FLEX_SHRINK,
FLEX_BASIS,
FLEX_DIRECTION,
JUSTIFY_CONTENT,
ALIGN_ITEMS,
ALIGN_SELF,
TEXT_ALIGN,
TRANSFORM_ORIGIN,
VISIBILITY,
OPACITY,
Z_INDEX,
TRANSFORM,
TRANSLATE_X,
TRANSLATE_Y,
TRANSLATE_Z,
SCALE_X,
SCALE_Y,
SCALE_Z,
SKEW_X,
SKEW_Y,
ROTATE_X,
ROTATE_Y,
ROTATE_Z,
ROTATE_3D,
PERSPECTIVE,
PERSPECTIVE_ORIGIN,
FILTER,
BOX_SHADOW,
POINTER_EVENTS,
OVERFLOW,
MIX_BLEND_MODE,
BACKGROUND_CLIP,
WHITE_SPACE,
TEXT_OVERFLOW,
LETTER_SPACING,
LINE_CLAMP,
ORDER,
FLEX_WRAP,
ALIGN_CONTENT,
TEXT_STROKE_WIDTH,
TEXT_STROKE_COLOR,
TEXT_STROKE_OVER,
WRITING_MODE,
TRANSFORM_STYLE,
BACKFACE_VISIBILITY,
BOX_SIZING,
FONT_SIZE_SHRINK,
// GEOM
FILL,
STROKE,
STROKE_WIDTH,
STROKE_DASHARRAY,
STROKE_DASHARRAY_STR,
STROKE_LINECAP,
STROKE_LINEJOIN,
STROKE_MITERLIMIT,
FILL_RULE,
// 无此样式,仅cache或特殊情况需要
MATRIX,
BORDER_TOP,
BORDER_RIGHT,
BORDER_BOTTOM,
BORDER_LEFT,
TRANSLATE_PATH,
}
}
let debug: boolean;
}