@shopify/react-native-skia 0.1.208 → 0.1.210

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. package/android/src/main/java/com/shopify/reactnative/skia/SkiaBaseView.java +19 -12
  2. package/android/src/main/java/com/shopify/reactnative/skia/SkiaBaseViewManager.java +1 -1
  3. package/android/src/main/java/com/shopify/reactnative/skia/SkiaDomView.java +1 -1
  4. package/android/src/main/java/com/shopify/reactnative/skia/SkiaDrawView.java +1 -1
  5. package/android/src/main/java/com/shopify/reactnative/skia/SkiaPictureView.java +1 -1
  6. package/android/src/main/java/com/shopify/reactnative/skia/ViewScreenshotService.java +2 -0
  7. package/cpp/api/JsiSkFont.h +17 -0
  8. package/cpp/api/JsiSkPaint.h +7 -0
  9. package/cpp/api/JsiSkPath.h +10 -7
  10. package/cpp/rnskia/dom/base/JsiDomRenderNode.h +1 -1
  11. package/cpp/rnskia/dom/nodes/JsiPaintNode.h +4 -0
  12. package/cpp/rnskia/dom/props/FontProp.h +3 -1
  13. package/cpp/rnskia/dom/props/PaintProps.h +3 -0
  14. package/lib/commonjs/dom/nodes/PaintNode.js +6 -1
  15. package/lib/commonjs/dom/nodes/PaintNode.js.map +1 -1
  16. package/lib/commonjs/dom/nodes/RenderNode.js +1 -1
  17. package/lib/commonjs/dom/nodes/RenderNode.js.map +1 -1
  18. package/lib/commonjs/dom/nodes/drawings/Text.d.ts +3 -3
  19. package/lib/commonjs/dom/nodes/drawings/Text.js +26 -4
  20. package/lib/commonjs/dom/nodes/drawings/Text.js.map +1 -1
  21. package/lib/commonjs/dom/types/Common.d.ts +1 -0
  22. package/lib/commonjs/dom/types/Common.js.map +1 -1
  23. package/lib/commonjs/dom/types/DrawingContext.js +15 -0
  24. package/lib/commonjs/dom/types/DrawingContext.js.map +1 -1
  25. package/lib/commonjs/dom/types/Drawings.d.ts +1 -1
  26. package/lib/commonjs/dom/types/Drawings.js.map +1 -1
  27. package/lib/commonjs/skia/types/Font/Font.d.ts +9 -0
  28. package/lib/commonjs/skia/types/Font/Font.js.map +1 -1
  29. package/lib/commonjs/skia/types/Image/ImageFactory.d.ts +12 -11
  30. package/lib/commonjs/skia/types/Image/ImageFactory.js +12 -11
  31. package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -1
  32. package/lib/commonjs/skia/types/Paint/Paint.d.ts +5 -0
  33. package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -1
  34. package/lib/commonjs/skia/web/JsiSkFont.d.ts +2 -1
  35. package/lib/commonjs/skia/web/JsiSkFont.js +4 -0
  36. package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -1
  37. package/lib/commonjs/skia/web/JsiSkPaint.d.ts +1 -0
  38. package/lib/commonjs/skia/web/JsiSkPaint.js +4 -0
  39. package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -1
  40. package/lib/commonjs/skia/web/JsiSkPath.d.ts +1 -1
  41. package/lib/commonjs/skia/web/JsiSkPath.js +10 -1
  42. package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -1
  43. package/lib/module/dom/nodes/PaintNode.js +6 -1
  44. package/lib/module/dom/nodes/PaintNode.js.map +1 -1
  45. package/lib/module/dom/nodes/RenderNode.js +1 -1
  46. package/lib/module/dom/nodes/RenderNode.js.map +1 -1
  47. package/lib/module/dom/nodes/drawings/Text.d.ts +3 -3
  48. package/lib/module/dom/nodes/drawings/Text.js +26 -4
  49. package/lib/module/dom/nodes/drawings/Text.js.map +1 -1
  50. package/lib/module/dom/types/Common.d.ts +1 -0
  51. package/lib/module/dom/types/Common.js.map +1 -1
  52. package/lib/module/dom/types/DrawingContext.js +15 -0
  53. package/lib/module/dom/types/DrawingContext.js.map +1 -1
  54. package/lib/module/dom/types/Drawings.d.ts +1 -1
  55. package/lib/module/dom/types/Drawings.js.map +1 -1
  56. package/lib/module/skia/types/Font/Font.d.ts +9 -0
  57. package/lib/module/skia/types/Font/Font.js.map +1 -1
  58. package/lib/module/skia/types/Image/ImageFactory.d.ts +12 -11
  59. package/lib/module/skia/types/Image/ImageFactory.js +12 -11
  60. package/lib/module/skia/types/Image/ImageFactory.js.map +1 -1
  61. package/lib/module/skia/types/Paint/Paint.d.ts +5 -0
  62. package/lib/module/skia/types/Paint/Paint.js.map +1 -1
  63. package/lib/module/skia/web/JsiSkFont.d.ts +2 -1
  64. package/lib/module/skia/web/JsiSkFont.js +5 -1
  65. package/lib/module/skia/web/JsiSkFont.js.map +1 -1
  66. package/lib/module/skia/web/JsiSkPaint.d.ts +1 -0
  67. package/lib/module/skia/web/JsiSkPaint.js +4 -0
  68. package/lib/module/skia/web/JsiSkPaint.js.map +1 -1
  69. package/lib/module/skia/web/JsiSkPath.d.ts +1 -1
  70. package/lib/module/skia/web/JsiSkPath.js +11 -1
  71. package/lib/module/skia/web/JsiSkPath.js.map +1 -1
  72. package/lib/typescript/src/dom/nodes/drawings/Text.d.ts +3 -3
  73. package/lib/typescript/src/dom/types/Common.d.ts +1 -0
  74. package/lib/typescript/src/dom/types/Drawings.d.ts +1 -1
  75. package/lib/typescript/src/skia/types/Font/Font.d.ts +9 -0
  76. package/lib/typescript/src/skia/types/Image/ImageFactory.d.ts +12 -11
  77. package/lib/typescript/src/skia/types/Paint/Paint.d.ts +5 -0
  78. package/lib/typescript/src/skia/web/JsiSkFont.d.ts +2 -1
  79. package/lib/typescript/src/skia/web/JsiSkPaint.d.ts +1 -0
  80. package/lib/typescript/src/skia/web/JsiSkPath.d.ts +1 -1
  81. package/package.json +2 -2
  82. package/src/dom/nodes/PaintNode.ts +4 -0
  83. package/src/dom/nodes/RenderNode.ts +1 -0
  84. package/src/dom/nodes/drawings/Text.ts +31 -5
  85. package/src/dom/types/Common.ts +1 -0
  86. package/src/dom/types/DrawingContext.ts +13 -0
  87. package/src/dom/types/Drawings.ts +1 -1
  88. package/src/skia/types/Font/Font.ts +10 -0
  89. package/src/skia/types/Image/ImageFactory.ts +1 -0
  90. package/src/skia/types/Paint/Paint.ts +6 -0
  91. package/src/skia/web/JsiSkFont.ts +6 -1
  92. package/src/skia/web/JsiSkPaint.ts +4 -0
  93. package/src/skia/web/JsiSkPath.ts +8 -1
  94. package/lib/commonjs/dom/nodes/PaintContext.d.ts +0 -18
  95. package/lib/commonjs/dom/nodes/PaintContext.js +0 -6
  96. package/lib/commonjs/dom/nodes/PaintContext.js.map +0 -1
  97. package/lib/module/dom/nodes/PaintContext.d.ts +0 -18
  98. package/lib/module/dom/nodes/PaintContext.js +0 -2
  99. package/lib/module/dom/nodes/PaintContext.js.map +0 -1
  100. package/lib/typescript/src/dom/nodes/PaintContext.d.ts +0 -18
  101. package/src/dom/nodes/PaintContext.ts +0 -31
@@ -1,18 +0,0 @@
1
- import type { BlendMode, PaintStyle, SkColorFilter, SkImageFilter, SkMaskFilter, SkPathEffect, SkShader, StrokeCap, StrokeJoin } from "../../skia/types";
2
- import type { SkColor } from "../../skia/types/Color";
3
- export interface PaintContext {
4
- color?: SkColor;
5
- strokeWidth?: number;
6
- blendMode?: BlendMode;
7
- style?: PaintStyle;
8
- strokeJoin?: StrokeJoin;
9
- strokeCap?: StrokeCap;
10
- strokeMiter?: number;
11
- opacity?: number;
12
- antiAlias?: boolean;
13
- shader?: SkShader;
14
- colorFilter?: SkColorFilter;
15
- imageFilter?: SkImageFilter;
16
- maskFilter?: SkMaskFilter;
17
- pathEffect?: SkPathEffect;
18
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- //# sourceMappingURL=PaintContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["PaintContext.ts"],"sourcesContent":["import type {\n BlendMode,\n PaintStyle,\n SkColorFilter,\n SkImageFilter,\n SkMaskFilter,\n SkPathEffect,\n SkShader,\n StrokeCap,\n StrokeJoin,\n} from \"../../skia/types\";\nimport type { SkColor } from \"../../skia/types/Color\";\n\n// TODO: to remove\nexport interface PaintContext {\n color?: SkColor;\n strokeWidth?: number;\n blendMode?: BlendMode;\n style?: PaintStyle;\n strokeJoin?: StrokeJoin;\n strokeCap?: StrokeCap;\n strokeMiter?: number;\n opacity?: number;\n antiAlias?: boolean;\n\n shader?: SkShader;\n colorFilter?: SkColorFilter;\n imageFilter?: SkImageFilter;\n maskFilter?: SkMaskFilter;\n pathEffect?: SkPathEffect;\n}\n"],"mappings":""}
@@ -1,18 +0,0 @@
1
- import type { BlendMode, PaintStyle, SkColorFilter, SkImageFilter, SkMaskFilter, SkPathEffect, SkShader, StrokeCap, StrokeJoin } from "../../skia/types";
2
- import type { SkColor } from "../../skia/types/Color";
3
- export interface PaintContext {
4
- color?: SkColor;
5
- strokeWidth?: number;
6
- blendMode?: BlendMode;
7
- style?: PaintStyle;
8
- strokeJoin?: StrokeJoin;
9
- strokeCap?: StrokeCap;
10
- strokeMiter?: number;
11
- opacity?: number;
12
- antiAlias?: boolean;
13
- shader?: SkShader;
14
- colorFilter?: SkColorFilter;
15
- imageFilter?: SkImageFilter;
16
- maskFilter?: SkMaskFilter;
17
- pathEffect?: SkPathEffect;
18
- }
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=PaintContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["PaintContext.ts"],"sourcesContent":["import type {\n BlendMode,\n PaintStyle,\n SkColorFilter,\n SkImageFilter,\n SkMaskFilter,\n SkPathEffect,\n SkShader,\n StrokeCap,\n StrokeJoin,\n} from \"../../skia/types\";\nimport type { SkColor } from \"../../skia/types/Color\";\n\n// TODO: to remove\nexport interface PaintContext {\n color?: SkColor;\n strokeWidth?: number;\n blendMode?: BlendMode;\n style?: PaintStyle;\n strokeJoin?: StrokeJoin;\n strokeCap?: StrokeCap;\n strokeMiter?: number;\n opacity?: number;\n antiAlias?: boolean;\n\n shader?: SkShader;\n colorFilter?: SkColorFilter;\n imageFilter?: SkImageFilter;\n maskFilter?: SkMaskFilter;\n pathEffect?: SkPathEffect;\n}\n"],"mappings":""}
@@ -1,18 +0,0 @@
1
- import type { BlendMode, PaintStyle, SkColorFilter, SkImageFilter, SkMaskFilter, SkPathEffect, SkShader, StrokeCap, StrokeJoin } from "../../skia/types";
2
- import type { SkColor } from "../../skia/types/Color";
3
- export interface PaintContext {
4
- color?: SkColor;
5
- strokeWidth?: number;
6
- blendMode?: BlendMode;
7
- style?: PaintStyle;
8
- strokeJoin?: StrokeJoin;
9
- strokeCap?: StrokeCap;
10
- strokeMiter?: number;
11
- opacity?: number;
12
- antiAlias?: boolean;
13
- shader?: SkShader;
14
- colorFilter?: SkColorFilter;
15
- imageFilter?: SkImageFilter;
16
- maskFilter?: SkMaskFilter;
17
- pathEffect?: SkPathEffect;
18
- }
@@ -1,31 +0,0 @@
1
- import type {
2
- BlendMode,
3
- PaintStyle,
4
- SkColorFilter,
5
- SkImageFilter,
6
- SkMaskFilter,
7
- SkPathEffect,
8
- SkShader,
9
- StrokeCap,
10
- StrokeJoin,
11
- } from "../../skia/types";
12
- import type { SkColor } from "../../skia/types/Color";
13
-
14
- // TODO: to remove
15
- export interface PaintContext {
16
- color?: SkColor;
17
- strokeWidth?: number;
18
- blendMode?: BlendMode;
19
- style?: PaintStyle;
20
- strokeJoin?: StrokeJoin;
21
- strokeCap?: StrokeCap;
22
- strokeMiter?: number;
23
- opacity?: number;
24
- antiAlias?: boolean;
25
-
26
- shader?: SkShader;
27
- colorFilter?: SkColorFilter;
28
- imageFilter?: SkImageFilter;
29
- maskFilter?: SkMaskFilter;
30
- pathEffect?: SkPathEffect;
31
- }