@shopify/react-native-skia 1.12.2 → 1.12.4

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.
Files changed (67) hide show
  1. package/android/build.gradle +15 -11
  2. package/cpp/api/JsiSkCanvas.h +45 -2
  3. package/cpp/api/JsiSkShaderFactory.h +43 -8
  4. package/cpp/api/JsiSkVertices.h +14 -3
  5. package/cpp/api/recorder/Drawings.h +31 -2
  6. package/cpp/api/recorder/Shaders.h +40 -0
  7. package/lib/commonjs/__tests__/setup.d.ts +18 -0
  8. package/lib/commonjs/headless/index.d.ts +1 -0
  9. package/lib/commonjs/headless/index.js +12 -0
  10. package/lib/commonjs/headless/index.js.map +1 -1
  11. package/lib/commonjs/renderer/Canvas.d.ts +1 -2
  12. package/lib/commonjs/renderer/Canvas.js.map +1 -1
  13. package/lib/commonjs/sksg/Recorder/Player.d.ts +1 -1
  14. package/lib/commonjs/sksg/Recorder/Player.js.map +1 -1
  15. package/lib/commonjs/sksg/Recorder/commands/Box.js +2 -2
  16. package/lib/commonjs/sksg/Recorder/commands/Box.js.map +1 -1
  17. package/lib/commonjs/sksg/Recorder/commands/Drawing.d.ts +1 -3
  18. package/lib/commonjs/sksg/Recorder/commands/Drawing.js +1 -58
  19. package/lib/commonjs/sksg/Recorder/commands/Drawing.js.map +1 -1
  20. package/lib/module/__tests__/setup.d.ts +18 -0
  21. package/lib/module/headless/index.d.ts +1 -0
  22. package/lib/module/headless/index.js +1 -0
  23. package/lib/module/headless/index.js.map +1 -1
  24. package/lib/module/renderer/Canvas.d.ts +1 -2
  25. package/lib/module/renderer/Canvas.js.map +1 -1
  26. package/lib/module/sksg/Recorder/Player.d.ts +1 -1
  27. package/lib/module/sksg/Recorder/Player.js.map +1 -1
  28. package/lib/module/sksg/Recorder/commands/Box.js +2 -2
  29. package/lib/module/sksg/Recorder/commands/Box.js.map +1 -1
  30. package/lib/module/sksg/Recorder/commands/Drawing.d.ts +1 -3
  31. package/lib/module/sksg/Recorder/commands/Drawing.js +2 -58
  32. package/lib/module/sksg/Recorder/commands/Drawing.js.map +1 -1
  33. package/lib/typescript/lib/commonjs/mock/index.d.ts +1 -1
  34. package/lib/typescript/lib/commonjs/skia/index.d.ts +1 -1
  35. package/lib/typescript/lib/commonjs/sksg/Recorder/commands/Drawing.d.ts +0 -1
  36. package/lib/typescript/lib/module/headless/index.d.ts +1 -0
  37. package/lib/typescript/lib/module/mock/index.d.ts +1 -1
  38. package/lib/typescript/lib/module/skia/Skia.d.ts +1 -1
  39. package/lib/typescript/lib/module/sksg/Recorder/commands/Drawing.d.ts +0 -1
  40. package/lib/typescript/src/__tests__/setup.d.ts +18 -0
  41. package/lib/typescript/src/headless/index.d.ts +1 -0
  42. package/lib/typescript/src/renderer/Canvas.d.ts +1 -2
  43. package/lib/typescript/src/sksg/Recorder/Player.d.ts +1 -1
  44. package/lib/typescript/src/sksg/Recorder/commands/Drawing.d.ts +1 -3
  45. package/package.json +3 -3
  46. package/src/__tests__/setup.ts +67 -1
  47. package/src/__tests__/snapshots/box/box-shadow-opacity.png +0 -0
  48. package/src/headless/index.ts +2 -1
  49. package/src/renderer/Canvas.tsx +1 -1
  50. package/src/renderer/__tests__/e2e/Box.spec.tsx +22 -0
  51. package/src/renderer/__tests__/e2e/Matrix4.spec.tsx +1 -2
  52. package/src/renderer/__tests__/e2e/Paths.spec.tsx +13 -11
  53. package/src/skia/__tests__/Enums.spec.ts +11 -23
  54. package/src/skia/__tests__/Path.spec.ts +2 -2
  55. package/src/sksg/Recorder/Player.ts +1 -1
  56. package/src/sksg/Recorder/commands/Box.ts +2 -2
  57. package/src/sksg/Recorder/commands/Drawing.ts +0 -65
  58. package/lib/commonjs/skia/types/Image/ColorType.web.d.ts +0 -19
  59. package/lib/commonjs/skia/types/Image/ColorType.web.js +0 -43
  60. package/lib/commonjs/skia/types/Image/ColorType.web.js.map +0 -1
  61. package/lib/module/skia/types/Image/ColorType.web.d.ts +0 -19
  62. package/lib/module/skia/types/Image/ColorType.web.js +0 -37
  63. package/lib/module/skia/types/Image/ColorType.web.js.map +0 -1
  64. package/lib/typescript/lib/commonjs/skia/types/Image/ColorType.web.d.ts +0 -2
  65. package/lib/typescript/lib/module/skia/types/Image/ColorType.web.d.ts +0 -1
  66. package/lib/typescript/src/skia/types/Image/ColorType.web.d.ts +0 -19
  67. package/src/skia/types/Image/ColorType.web.ts +0 -19
@@ -1,9 +1,6 @@
1
1
  import {
2
- deflate,
3
2
  enumKey,
4
3
  fitRects,
5
- inflate,
6
- NodeType,
7
4
  processCircle,
8
5
  processColor,
9
6
  processPath,
@@ -12,8 +9,6 @@ import {
12
9
  } from "../../../dom/nodes";
13
10
  import type {
14
11
  AtlasProps,
15
- BoxProps,
16
- BoxShadowProps,
17
12
  CircleProps,
18
13
  DiffRectProps,
19
14
  DrawingNodeProps,
@@ -38,18 +33,13 @@ import { saturate } from "../../../renderer/processors";
38
33
  import type { SkPoint, SkRSXform } from "../../../skia/types";
39
34
  import {
40
35
  BlendMode,
41
- BlurStyle,
42
- ClipOp,
43
36
  FillType,
44
37
  FilterMode,
45
38
  isCubicSampling,
46
- isRRect,
47
39
  MipmapMode,
48
40
  PointMode,
49
41
  VertexMode,
50
42
  } from "../../../skia/types";
51
- import type { Node } from "../../Node";
52
- import { materialize } from "../../utils";
53
43
  import type { DrawingContext } from "../DrawingContext";
54
44
 
55
45
  export const drawLine = (ctx: DrawingContext, props: LineProps) => {
@@ -64,61 +54,6 @@ export const drawOval = (ctx: DrawingContext, props: OvalProps) => {
64
54
  ctx.canvas.drawOval(rect, ctx.paint);
65
55
  };
66
56
 
67
- export const drawBox = (
68
- ctx: DrawingContext,
69
- props: BoxProps,
70
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
71
- children: Node<any>[]
72
- ) => {
73
- "worklet";
74
- const { paint, Skia, canvas } = ctx;
75
- const { box: defaultBox } = props;
76
- const opacity = paint.getAlphaf();
77
- const box = isRRect(defaultBox) ? defaultBox : Skia.RRectXY(defaultBox, 0, 0);
78
- const shadows = children
79
- .map((node) => {
80
- if (node.type === NodeType.BoxShadow) {
81
- return materialize(node.props);
82
- }
83
- return null;
84
- })
85
- .filter((n): n is BoxShadowProps => n !== null);
86
- shadows
87
- .filter((shadow) => !shadow.inner)
88
- .map((shadow) => {
89
- const { color = "black", blur, spread = 0, dx = 0, dy = 0 } = shadow;
90
- const lPaint = Skia.Paint();
91
- lPaint.setColor(processColor(Skia, color));
92
- lPaint.setAlphaf(paint.getAlphaf() * opacity);
93
- lPaint.setMaskFilter(
94
- Skia.MaskFilter.MakeBlur(BlurStyle.Normal, blur, true)
95
- );
96
- canvas.drawRRect(inflate(Skia, box, spread, spread, dx, dy), lPaint);
97
- });
98
-
99
- canvas.drawRRect(box, paint);
100
-
101
- shadows
102
- .filter((shadow) => shadow.inner)
103
- .map((shadow) => {
104
- const { color = "black", blur, spread = 0, dx = 0, dy = 0 } = shadow;
105
- const delta = Skia.Point(10 + Math.abs(dx), 10 + Math.abs(dy));
106
- canvas.save();
107
- canvas.clipRRect(box, ClipOp.Intersect, false);
108
- const lPaint = Skia.Paint();
109
- lPaint.setColor(processColor(Skia, color));
110
- lPaint.setAlphaf(paint.getAlphaf() * opacity);
111
-
112
- lPaint.setMaskFilter(
113
- Skia.MaskFilter.MakeBlur(BlurStyle.Normal, blur, true)
114
- );
115
- const inner = deflate(Skia, box, spread, spread, dx, dy);
116
- const outer = inflate(Skia, box, delta.x, delta.y);
117
- canvas.drawDRRect(outer, inner, lPaint);
118
- canvas.restore();
119
- });
120
- };
121
-
122
57
  export const drawImage = (ctx: DrawingContext, props: ImageProps) => {
123
58
  "worklet";
124
59
  const { image, sampling } = props;
@@ -1,19 +0,0 @@
1
- export declare enum ColorTypeCanvasKit {
2
- Unknown = 0,// uninitialized
3
- Alpha_8 = 1,// pixel with alpha in 8-bit byte
4
- RGB_565 = 2,// pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word
5
- ARGB_4444 = 3,// pixel with 4 bits for alpha, red, green, blue; in 16-bit word
6
- RGBA_8888 = 4,// pixel with 8 bits for red, green, blue, alpha; in 32-bit word
7
- RGB_888x = 5,// pixel with 8 bits each for red, green, blue; in 32-bit word
8
- BGRA_8888 = 6,// pixel with 8 bits for blue, green, red, alpha; in 32-bit word
9
- RGBA_1010102 = 7,// 10 bits for red, green, blue; 2 bits for alpha; in 32-bit word
10
- BGRA_1010102 = 8,// 10 bits for blue, green, red; 2 bits for alpha; in 32-bit word
11
- RGB_101010x = 9,// pixel with 10 bits each for red, green, blue; in 32-bit word
12
- BGR_101010x = 10,// pixel with 10 bits each for blue, green, red; in 32-bit word
13
- BGR_101010x_XR = 11,// pixel with 10 bits each for blue, green, red; in 32-bit word, extended range
14
- RGBA_10x6 = 12,// pixel with 10 used bits (most significant) followed by 6 unused
15
- Gray_8 = 13,// pixel with grayscale level in 8-bit byte
16
- RGBA_F16Norm = 14,// pixel with half floats in [0,1] for red, green, blue, alpha; in 64-bit word
17
- RGBA_F16 = 15,// pixel with half floats for red, green, blue, alpha; in 64-bit word
18
- RGBA_F32 = 16
19
- }
@@ -1,43 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ColorTypeCanvasKit = void 0;
7
- let ColorTypeCanvasKit = exports.ColorTypeCanvasKit = /*#__PURE__*/function (ColorTypeCanvasKit) {
8
- ColorTypeCanvasKit[ColorTypeCanvasKit["Unknown"] = 0] = "Unknown";
9
- // uninitialized
10
- ColorTypeCanvasKit[ColorTypeCanvasKit["Alpha_8"] = 1] = "Alpha_8";
11
- // pixel with alpha in 8-bit byte
12
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGB_565"] = 2] = "RGB_565";
13
- // pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word
14
- ColorTypeCanvasKit[ColorTypeCanvasKit["ARGB_4444"] = 3] = "ARGB_4444";
15
- // pixel with 4 bits for alpha, red, green, blue; in 16-bit word
16
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_8888"] = 4] = "RGBA_8888";
17
- // pixel with 8 bits for red, green, blue, alpha; in 32-bit word
18
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGB_888x"] = 5] = "RGB_888x";
19
- // pixel with 8 bits each for red, green, blue; in 32-bit word
20
- ColorTypeCanvasKit[ColorTypeCanvasKit["BGRA_8888"] = 6] = "BGRA_8888";
21
- // pixel with 8 bits for blue, green, red, alpha; in 32-bit word
22
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_1010102"] = 7] = "RGBA_1010102";
23
- // 10 bits for red, green, blue; 2 bits for alpha; in 32-bit word
24
- ColorTypeCanvasKit[ColorTypeCanvasKit["BGRA_1010102"] = 8] = "BGRA_1010102";
25
- // 10 bits for blue, green, red; 2 bits for alpha; in 32-bit word
26
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGB_101010x"] = 9] = "RGB_101010x";
27
- // pixel with 10 bits each for red, green, blue; in 32-bit word
28
- ColorTypeCanvasKit[ColorTypeCanvasKit["BGR_101010x"] = 10] = "BGR_101010x";
29
- // pixel with 10 bits each for blue, green, red; in 32-bit word
30
- ColorTypeCanvasKit[ColorTypeCanvasKit["BGR_101010x_XR"] = 11] = "BGR_101010x_XR";
31
- // pixel with 10 bits each for blue, green, red; in 32-bit word, extended range
32
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_10x6"] = 12] = "RGBA_10x6";
33
- // pixel with 10 used bits (most significant) followed by 6 unused
34
- ColorTypeCanvasKit[ColorTypeCanvasKit["Gray_8"] = 13] = "Gray_8";
35
- // pixel with grayscale level in 8-bit byte
36
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_F16Norm"] = 14] = "RGBA_F16Norm";
37
- // pixel with half floats in [0,1] for red, green, blue, alpha; in 64-bit word
38
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_F16"] = 15] = "RGBA_F16";
39
- // pixel with half floats for red, green, blue, alpha; in 64-bit word
40
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_F32"] = 16] = "RGBA_F32"; // pixel using C float for red, green, blue, alpha; in 128-bit word
41
- return ColorTypeCanvasKit;
42
- }({});
43
- //# sourceMappingURL=ColorType.web.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["ColorTypeCanvasKit","exports"],"sources":["ColorType.web.ts"],"sourcesContent":["export enum ColorTypeCanvasKit {\n Unknown, // uninitialized\n Alpha_8, // pixel with alpha in 8-bit byte\n RGB_565, // pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word\n ARGB_4444, // pixel with 4 bits for alpha, red, green, blue; in 16-bit word\n RGBA_8888, // pixel with 8 bits for red, green, blue, alpha; in 32-bit word\n RGB_888x, // pixel with 8 bits each for red, green, blue; in 32-bit word\n BGRA_8888, // pixel with 8 bits for blue, green, red, alpha; in 32-bit word\n RGBA_1010102, // 10 bits for red, green, blue; 2 bits for alpha; in 32-bit word\n BGRA_1010102, // 10 bits for blue, green, red; 2 bits for alpha; in 32-bit word\n RGB_101010x, // pixel with 10 bits each for red, green, blue; in 32-bit word\n BGR_101010x, // pixel with 10 bits each for blue, green, red; in 32-bit word\n BGR_101010x_XR, // pixel with 10 bits each for blue, green, red; in 32-bit word, extended range\n RGBA_10x6, // pixel with 10 used bits (most significant) followed by 6 unused\n Gray_8, // pixel with grayscale level in 8-bit byte\n RGBA_F16Norm, // pixel with half floats in [0,1] for red, green, blue, alpha; in 64-bit word\n RGBA_F16, // pixel with half floats for red, green, blue, alpha; in 64-bit word\n RGBA_F32, // pixel using C float for red, green, blue, alpha; in 128-bit word\n}\n"],"mappings":";;;;;;IAAYA,kBAAkB,GAAAC,OAAA,CAAAD,kBAAA,0BAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EACnB;EADCA,kBAAkB,CAAlBA,kBAAkB;EAEnB;EAFCA,kBAAkB,CAAlBA,kBAAkB;EAGnB;EAHCA,kBAAkB,CAAlBA,kBAAkB;EAIjB;EAJDA,kBAAkB,CAAlBA,kBAAkB;EAKjB;EALDA,kBAAkB,CAAlBA,kBAAkB;EAMlB;EANAA,kBAAkB,CAAlBA,kBAAkB;EAOjB;EAPDA,kBAAkB,CAAlBA,kBAAkB;EAQd;EARJA,kBAAkB,CAAlBA,kBAAkB;EASd;EATJA,kBAAkB,CAAlBA,kBAAkB;EAUf;EAVHA,kBAAkB,CAAlBA,kBAAkB;EAWf;EAXHA,kBAAkB,CAAlBA,kBAAkB;EAYZ;EAZNA,kBAAkB,CAAlBA,kBAAkB;EAajB;EAbDA,kBAAkB,CAAlBA,kBAAkB;EAcpB;EAdEA,kBAAkB,CAAlBA,kBAAkB;EAed;EAfJA,kBAAkB,CAAlBA,kBAAkB;EAgBlB;EAhBAA,kBAAkB,CAAlBA,kBAAkB,iCAiBlB;EAAA,OAjBAA,kBAAkB;AAAA","ignoreList":[]}
@@ -1,19 +0,0 @@
1
- export declare enum ColorTypeCanvasKit {
2
- Unknown = 0,// uninitialized
3
- Alpha_8 = 1,// pixel with alpha in 8-bit byte
4
- RGB_565 = 2,// pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word
5
- ARGB_4444 = 3,// pixel with 4 bits for alpha, red, green, blue; in 16-bit word
6
- RGBA_8888 = 4,// pixel with 8 bits for red, green, blue, alpha; in 32-bit word
7
- RGB_888x = 5,// pixel with 8 bits each for red, green, blue; in 32-bit word
8
- BGRA_8888 = 6,// pixel with 8 bits for blue, green, red, alpha; in 32-bit word
9
- RGBA_1010102 = 7,// 10 bits for red, green, blue; 2 bits for alpha; in 32-bit word
10
- BGRA_1010102 = 8,// 10 bits for blue, green, red; 2 bits for alpha; in 32-bit word
11
- RGB_101010x = 9,// pixel with 10 bits each for red, green, blue; in 32-bit word
12
- BGR_101010x = 10,// pixel with 10 bits each for blue, green, red; in 32-bit word
13
- BGR_101010x_XR = 11,// pixel with 10 bits each for blue, green, red; in 32-bit word, extended range
14
- RGBA_10x6 = 12,// pixel with 10 used bits (most significant) followed by 6 unused
15
- Gray_8 = 13,// pixel with grayscale level in 8-bit byte
16
- RGBA_F16Norm = 14,// pixel with half floats in [0,1] for red, green, blue, alpha; in 64-bit word
17
- RGBA_F16 = 15,// pixel with half floats for red, green, blue, alpha; in 64-bit word
18
- RGBA_F32 = 16
19
- }
@@ -1,37 +0,0 @@
1
- export let ColorTypeCanvasKit = /*#__PURE__*/function (ColorTypeCanvasKit) {
2
- ColorTypeCanvasKit[ColorTypeCanvasKit["Unknown"] = 0] = "Unknown";
3
- // uninitialized
4
- ColorTypeCanvasKit[ColorTypeCanvasKit["Alpha_8"] = 1] = "Alpha_8";
5
- // pixel with alpha in 8-bit byte
6
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGB_565"] = 2] = "RGB_565";
7
- // pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word
8
- ColorTypeCanvasKit[ColorTypeCanvasKit["ARGB_4444"] = 3] = "ARGB_4444";
9
- // pixel with 4 bits for alpha, red, green, blue; in 16-bit word
10
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_8888"] = 4] = "RGBA_8888";
11
- // pixel with 8 bits for red, green, blue, alpha; in 32-bit word
12
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGB_888x"] = 5] = "RGB_888x";
13
- // pixel with 8 bits each for red, green, blue; in 32-bit word
14
- ColorTypeCanvasKit[ColorTypeCanvasKit["BGRA_8888"] = 6] = "BGRA_8888";
15
- // pixel with 8 bits for blue, green, red, alpha; in 32-bit word
16
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_1010102"] = 7] = "RGBA_1010102";
17
- // 10 bits for red, green, blue; 2 bits for alpha; in 32-bit word
18
- ColorTypeCanvasKit[ColorTypeCanvasKit["BGRA_1010102"] = 8] = "BGRA_1010102";
19
- // 10 bits for blue, green, red; 2 bits for alpha; in 32-bit word
20
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGB_101010x"] = 9] = "RGB_101010x";
21
- // pixel with 10 bits each for red, green, blue; in 32-bit word
22
- ColorTypeCanvasKit[ColorTypeCanvasKit["BGR_101010x"] = 10] = "BGR_101010x";
23
- // pixel with 10 bits each for blue, green, red; in 32-bit word
24
- ColorTypeCanvasKit[ColorTypeCanvasKit["BGR_101010x_XR"] = 11] = "BGR_101010x_XR";
25
- // pixel with 10 bits each for blue, green, red; in 32-bit word, extended range
26
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_10x6"] = 12] = "RGBA_10x6";
27
- // pixel with 10 used bits (most significant) followed by 6 unused
28
- ColorTypeCanvasKit[ColorTypeCanvasKit["Gray_8"] = 13] = "Gray_8";
29
- // pixel with grayscale level in 8-bit byte
30
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_F16Norm"] = 14] = "RGBA_F16Norm";
31
- // pixel with half floats in [0,1] for red, green, blue, alpha; in 64-bit word
32
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_F16"] = 15] = "RGBA_F16";
33
- // pixel with half floats for red, green, blue, alpha; in 64-bit word
34
- ColorTypeCanvasKit[ColorTypeCanvasKit["RGBA_F32"] = 16] = "RGBA_F32"; // pixel using C float for red, green, blue, alpha; in 128-bit word
35
- return ColorTypeCanvasKit;
36
- }({});
37
- //# sourceMappingURL=ColorType.web.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["ColorTypeCanvasKit"],"sources":["ColorType.web.ts"],"sourcesContent":["export enum ColorTypeCanvasKit {\n Unknown, // uninitialized\n Alpha_8, // pixel with alpha in 8-bit byte\n RGB_565, // pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word\n ARGB_4444, // pixel with 4 bits for alpha, red, green, blue; in 16-bit word\n RGBA_8888, // pixel with 8 bits for red, green, blue, alpha; in 32-bit word\n RGB_888x, // pixel with 8 bits each for red, green, blue; in 32-bit word\n BGRA_8888, // pixel with 8 bits for blue, green, red, alpha; in 32-bit word\n RGBA_1010102, // 10 bits for red, green, blue; 2 bits for alpha; in 32-bit word\n BGRA_1010102, // 10 bits for blue, green, red; 2 bits for alpha; in 32-bit word\n RGB_101010x, // pixel with 10 bits each for red, green, blue; in 32-bit word\n BGR_101010x, // pixel with 10 bits each for blue, green, red; in 32-bit word\n BGR_101010x_XR, // pixel with 10 bits each for blue, green, red; in 32-bit word, extended range\n RGBA_10x6, // pixel with 10 used bits (most significant) followed by 6 unused\n Gray_8, // pixel with grayscale level in 8-bit byte\n RGBA_F16Norm, // pixel with half floats in [0,1] for red, green, blue, alpha; in 64-bit word\n RGBA_F16, // pixel with half floats for red, green, blue, alpha; in 64-bit word\n RGBA_F32, // pixel using C float for red, green, blue, alpha; in 128-bit word\n}\n"],"mappings":"AAAA,WAAYA,kBAAkB,0BAAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EACnB;EADCA,kBAAkB,CAAlBA,kBAAkB;EAEnB;EAFCA,kBAAkB,CAAlBA,kBAAkB;EAGnB;EAHCA,kBAAkB,CAAlBA,kBAAkB;EAIjB;EAJDA,kBAAkB,CAAlBA,kBAAkB;EAKjB;EALDA,kBAAkB,CAAlBA,kBAAkB;EAMlB;EANAA,kBAAkB,CAAlBA,kBAAkB;EAOjB;EAPDA,kBAAkB,CAAlBA,kBAAkB;EAQd;EARJA,kBAAkB,CAAlBA,kBAAkB;EASd;EATJA,kBAAkB,CAAlBA,kBAAkB;EAUf;EAVHA,kBAAkB,CAAlBA,kBAAkB;EAWf;EAXHA,kBAAkB,CAAlBA,kBAAkB;EAYZ;EAZNA,kBAAkB,CAAlBA,kBAAkB;EAajB;EAbDA,kBAAkB,CAAlBA,kBAAkB;EAcpB;EAdEA,kBAAkB,CAAlBA,kBAAkB;EAed;EAfJA,kBAAkB,CAAlBA,kBAAkB;EAgBlB;EAhBAA,kBAAkB,CAAlBA,kBAAkB,iCAiBlB;EAAA,OAjBAA,kBAAkB;AAAA","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export const __esModule: boolean;
2
- export const ColorTypeCanvasKit: {};
@@ -1 +0,0 @@
1
- export let ColorTypeCanvasKit: {};
@@ -1,19 +0,0 @@
1
- export declare enum ColorTypeCanvasKit {
2
- Unknown = 0,// uninitialized
3
- Alpha_8 = 1,// pixel with alpha in 8-bit byte
4
- RGB_565 = 2,// pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word
5
- ARGB_4444 = 3,// pixel with 4 bits for alpha, red, green, blue; in 16-bit word
6
- RGBA_8888 = 4,// pixel with 8 bits for red, green, blue, alpha; in 32-bit word
7
- RGB_888x = 5,// pixel with 8 bits each for red, green, blue; in 32-bit word
8
- BGRA_8888 = 6,// pixel with 8 bits for blue, green, red, alpha; in 32-bit word
9
- RGBA_1010102 = 7,// 10 bits for red, green, blue; 2 bits for alpha; in 32-bit word
10
- BGRA_1010102 = 8,// 10 bits for blue, green, red; 2 bits for alpha; in 32-bit word
11
- RGB_101010x = 9,// pixel with 10 bits each for red, green, blue; in 32-bit word
12
- BGR_101010x = 10,// pixel with 10 bits each for blue, green, red; in 32-bit word
13
- BGR_101010x_XR = 11,// pixel with 10 bits each for blue, green, red; in 32-bit word, extended range
14
- RGBA_10x6 = 12,// pixel with 10 used bits (most significant) followed by 6 unused
15
- Gray_8 = 13,// pixel with grayscale level in 8-bit byte
16
- RGBA_F16Norm = 14,// pixel with half floats in [0,1] for red, green, blue, alpha; in 64-bit word
17
- RGBA_F16 = 15,// pixel with half floats for red, green, blue, alpha; in 64-bit word
18
- RGBA_F32 = 16
19
- }
@@ -1,19 +0,0 @@
1
- export enum ColorTypeCanvasKit {
2
- Unknown, // uninitialized
3
- Alpha_8, // pixel with alpha in 8-bit byte
4
- RGB_565, // pixel with 5 bits red, 6 bits green, 5 bits blue, in 16-bit word
5
- ARGB_4444, // pixel with 4 bits for alpha, red, green, blue; in 16-bit word
6
- RGBA_8888, // pixel with 8 bits for red, green, blue, alpha; in 32-bit word
7
- RGB_888x, // pixel with 8 bits each for red, green, blue; in 32-bit word
8
- BGRA_8888, // pixel with 8 bits for blue, green, red, alpha; in 32-bit word
9
- RGBA_1010102, // 10 bits for red, green, blue; 2 bits for alpha; in 32-bit word
10
- BGRA_1010102, // 10 bits for blue, green, red; 2 bits for alpha; in 32-bit word
11
- RGB_101010x, // pixel with 10 bits each for red, green, blue; in 32-bit word
12
- BGR_101010x, // pixel with 10 bits each for blue, green, red; in 32-bit word
13
- BGR_101010x_XR, // pixel with 10 bits each for blue, green, red; in 32-bit word, extended range
14
- RGBA_10x6, // pixel with 10 used bits (most significant) followed by 6 unused
15
- Gray_8, // pixel with grayscale level in 8-bit byte
16
- RGBA_F16Norm, // pixel with half floats in [0,1] for red, green, blue, alpha; in 64-bit word
17
- RGBA_F16, // pixel with half floats for red, green, blue, alpha; in 64-bit word
18
- RGBA_F32, // pixel using C float for red, green, blue, alpha; in 128-bit word
19
- }