@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.
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaBaseView.java +19 -12
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaBaseViewManager.java +1 -1
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaDomView.java +1 -1
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaDrawView.java +1 -1
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaPictureView.java +1 -1
- package/android/src/main/java/com/shopify/reactnative/skia/ViewScreenshotService.java +2 -0
- package/cpp/api/JsiSkFont.h +17 -0
- package/cpp/api/JsiSkPaint.h +7 -0
- package/cpp/api/JsiSkPath.h +10 -7
- package/cpp/rnskia/dom/base/JsiDomRenderNode.h +1 -1
- package/cpp/rnskia/dom/nodes/JsiPaintNode.h +4 -0
- package/cpp/rnskia/dom/props/FontProp.h +3 -1
- package/cpp/rnskia/dom/props/PaintProps.h +3 -0
- package/lib/commonjs/dom/nodes/PaintNode.js +6 -1
- package/lib/commonjs/dom/nodes/PaintNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/RenderNode.js +1 -1
- package/lib/commonjs/dom/nodes/RenderNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/Text.d.ts +3 -3
- package/lib/commonjs/dom/nodes/drawings/Text.js +26 -4
- package/lib/commonjs/dom/nodes/drawings/Text.js.map +1 -1
- package/lib/commonjs/dom/types/Common.d.ts +1 -0
- package/lib/commonjs/dom/types/Common.js.map +1 -1
- package/lib/commonjs/dom/types/DrawingContext.js +15 -0
- package/lib/commonjs/dom/types/DrawingContext.js.map +1 -1
- package/lib/commonjs/dom/types/Drawings.d.ts +1 -1
- package/lib/commonjs/dom/types/Drawings.js.map +1 -1
- package/lib/commonjs/skia/types/Font/Font.d.ts +9 -0
- package/lib/commonjs/skia/types/Font/Font.js.map +1 -1
- package/lib/commonjs/skia/types/Image/ImageFactory.d.ts +12 -11
- package/lib/commonjs/skia/types/Image/ImageFactory.js +12 -11
- package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -1
- package/lib/commonjs/skia/types/Paint/Paint.d.ts +5 -0
- package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkFont.d.ts +2 -1
- package/lib/commonjs/skia/web/JsiSkFont.js +4 -0
- package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPaint.d.ts +1 -0
- package/lib/commonjs/skia/web/JsiSkPaint.js +4 -0
- package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPath.d.ts +1 -1
- package/lib/commonjs/skia/web/JsiSkPath.js +10 -1
- package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -1
- package/lib/module/dom/nodes/PaintNode.js +6 -1
- package/lib/module/dom/nodes/PaintNode.js.map +1 -1
- package/lib/module/dom/nodes/RenderNode.js +1 -1
- package/lib/module/dom/nodes/RenderNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/Text.d.ts +3 -3
- package/lib/module/dom/nodes/drawings/Text.js +26 -4
- package/lib/module/dom/nodes/drawings/Text.js.map +1 -1
- package/lib/module/dom/types/Common.d.ts +1 -0
- package/lib/module/dom/types/Common.js.map +1 -1
- package/lib/module/dom/types/DrawingContext.js +15 -0
- package/lib/module/dom/types/DrawingContext.js.map +1 -1
- package/lib/module/dom/types/Drawings.d.ts +1 -1
- package/lib/module/dom/types/Drawings.js.map +1 -1
- package/lib/module/skia/types/Font/Font.d.ts +9 -0
- package/lib/module/skia/types/Font/Font.js.map +1 -1
- package/lib/module/skia/types/Image/ImageFactory.d.ts +12 -11
- package/lib/module/skia/types/Image/ImageFactory.js +12 -11
- package/lib/module/skia/types/Image/ImageFactory.js.map +1 -1
- package/lib/module/skia/types/Paint/Paint.d.ts +5 -0
- package/lib/module/skia/types/Paint/Paint.js.map +1 -1
- package/lib/module/skia/web/JsiSkFont.d.ts +2 -1
- package/lib/module/skia/web/JsiSkFont.js +5 -1
- package/lib/module/skia/web/JsiSkFont.js.map +1 -1
- package/lib/module/skia/web/JsiSkPaint.d.ts +1 -0
- package/lib/module/skia/web/JsiSkPaint.js +4 -0
- package/lib/module/skia/web/JsiSkPaint.js.map +1 -1
- package/lib/module/skia/web/JsiSkPath.d.ts +1 -1
- package/lib/module/skia/web/JsiSkPath.js +11 -1
- package/lib/module/skia/web/JsiSkPath.js.map +1 -1
- package/lib/typescript/src/dom/nodes/drawings/Text.d.ts +3 -3
- package/lib/typescript/src/dom/types/Common.d.ts +1 -0
- package/lib/typescript/src/dom/types/Drawings.d.ts +1 -1
- package/lib/typescript/src/skia/types/Font/Font.d.ts +9 -0
- package/lib/typescript/src/skia/types/Image/ImageFactory.d.ts +12 -11
- package/lib/typescript/src/skia/types/Paint/Paint.d.ts +5 -0
- package/lib/typescript/src/skia/web/JsiSkFont.d.ts +2 -1
- package/lib/typescript/src/skia/web/JsiSkPaint.d.ts +1 -0
- package/lib/typescript/src/skia/web/JsiSkPath.d.ts +1 -1
- package/package.json +2 -2
- package/src/dom/nodes/PaintNode.ts +4 -0
- package/src/dom/nodes/RenderNode.ts +1 -0
- package/src/dom/nodes/drawings/Text.ts +31 -5
- package/src/dom/types/Common.ts +1 -0
- package/src/dom/types/DrawingContext.ts +13 -0
- package/src/dom/types/Drawings.ts +1 -1
- package/src/skia/types/Font/Font.ts +10 -0
- package/src/skia/types/Image/ImageFactory.ts +1 -0
- package/src/skia/types/Paint/Paint.ts +6 -0
- package/src/skia/web/JsiSkFont.ts +6 -1
- package/src/skia/web/JsiSkPaint.ts +4 -0
- package/src/skia/web/JsiSkPath.ts +8 -1
- package/lib/commonjs/dom/nodes/PaintContext.d.ts +0 -18
- package/lib/commonjs/dom/nodes/PaintContext.js +0 -6
- package/lib/commonjs/dom/nodes/PaintContext.js.map +0 -1
- package/lib/module/dom/nodes/PaintContext.d.ts +0 -18
- package/lib/module/dom/nodes/PaintContext.js +0 -2
- package/lib/module/dom/nodes/PaintContext.js.map +0 -1
- package/lib/typescript/src/dom/nodes/PaintContext.d.ts +0 -18
- 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 +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 +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
|
-
}
|