@shopify/react-native-skia 0.1.162 → 0.1.164
Sign up to get free protection for your applications and to get access to all the features.
- package/android/cpp/rnskia-android/RNSkAndroidPlatformContext.h +2 -0
- package/android/cpp/rnskia-android/RNSkOpenGLCanvasProvider.cpp +2 -2
- package/android/cpp/rnskia-android/RNSkOpenGLCanvasProvider.h +2 -2
- package/android/cpp/rnskia-android/SkiaOpenGLRenderer.h +5 -5
- package/cpp/api/JsiSkCanvas.h +8 -8
- package/cpp/api/JsiSkColor.h +1 -1
- package/cpp/api/JsiSkColorFilter.h +1 -1
- package/cpp/api/JsiSkColorFilterFactory.h +2 -2
- package/cpp/api/JsiSkContourMeasure.h +1 -1
- package/cpp/api/JsiSkContourMeasureIter.h +2 -2
- package/cpp/api/JsiSkData.h +2 -2
- package/cpp/api/JsiSkDataFactory.h +1 -1
- package/cpp/api/JsiSkFont.h +2 -2
- package/cpp/api/JsiSkImage.h +3 -3
- package/cpp/api/JsiSkImageFilter.h +1 -1
- package/cpp/api/JsiSkImageFilterFactory.h +1 -1
- package/cpp/api/JsiSkImageInfo.h +1 -1
- package/cpp/api/JsiSkMaskFilter.h +1 -1
- package/cpp/api/JsiSkMaskFilterFactory.h +1 -1
- package/cpp/api/JsiSkMatrix.h +1 -1
- package/cpp/api/JsiSkPaint.h +7 -1
- package/cpp/api/JsiSkPath.h +15 -15
- package/cpp/api/JsiSkPathEffect.h +1 -1
- package/cpp/api/JsiSkPathEffectFactory.h +4 -4
- package/cpp/api/JsiSkPathFactory.h +2 -2
- package/cpp/api/JsiSkPicture.h +1 -1
- package/cpp/api/JsiSkPictureFactory.h +2 -2
- package/cpp/api/JsiSkPictureRecorder.h +2 -2
- package/cpp/api/JsiSkPoint.h +1 -1
- package/cpp/api/JsiSkRRect.h +1 -1
- package/cpp/api/JsiSkRSXform.h +1 -1
- package/cpp/api/JsiSkRect.h +1 -1
- package/cpp/api/JsiSkRuntimeEffect.h +1 -1
- package/cpp/api/JsiSkRuntimeShaderBuilder.h +1 -1
- package/cpp/api/JsiSkSVGFactory.h +1 -1
- package/cpp/api/JsiSkShader.h +2 -2
- package/cpp/api/JsiSkShaderFactory.h +3 -3
- package/cpp/api/JsiSkSurface.h +1 -1
- package/cpp/api/JsiSkSurfaceFactory.h +2 -2
- package/cpp/api/JsiSkTextBlob.h +1 -1
- package/cpp/api/JsiSkTextBlobFactory.h +1 -1
- package/cpp/api/JsiSkTypeface.h +2 -2
- package/cpp/api/JsiSkVertices.h +1 -1
- package/cpp/jsi/JsiHostObject.h +25 -25
- package/cpp/rnskia/RNSkJsView.h +3 -3
- package/cpp/rnskia/RNSkPictureView.h +3 -3
- package/cpp/rnskia/RNSkPlatformContext.h +5 -3
- package/cpp/rnskia/RNSkView.h +2 -2
- package/cpp/rnskia/dom/base/DrawingContext.cpp +24 -9
- package/cpp/rnskia/dom/base/DrawingContext.h +3 -2
- package/cpp/rnskia/dom/base/JsiDomDeclarationNode.h +12 -2
- package/cpp/rnskia/dom/base/JsiDomDrawingNode.h +4 -4
- package/cpp/rnskia/dom/base/JsiDomNode.h +68 -10
- package/cpp/rnskia/dom/base/JsiDomRenderNode.h +26 -61
- package/cpp/rnskia/dom/base/NodeProp.h +2 -1
- package/cpp/rnskia/dom/base/NodePropsContainer.h +10 -0
- package/cpp/rnskia/dom/nodes/JsiBlendNode.h +7 -9
- package/cpp/rnskia/dom/nodes/JsiBlurMaskNode.h +3 -6
- package/cpp/rnskia/dom/nodes/JsiBoxNode.h +2 -4
- package/cpp/rnskia/dom/nodes/JsiBoxShadowNode.h +1 -2
- package/cpp/rnskia/dom/nodes/JsiCircleNode.h +2 -3
- package/cpp/rnskia/dom/nodes/JsiColorFilterNodes.h +4 -8
- package/cpp/rnskia/dom/nodes/JsiCustomDrawingNode.h +1 -2
- package/cpp/rnskia/dom/nodes/JsiDiffRectNode.h +2 -7
- package/cpp/rnskia/dom/nodes/JsiGlyphsNode.h +4 -8
- package/cpp/rnskia/dom/nodes/JsiImageFilterNodes.h +19 -37
- package/cpp/rnskia/dom/nodes/JsiImageNode.h +1 -1
- package/cpp/rnskia/dom/nodes/JsiImageSvgNode.h +2 -4
- package/cpp/rnskia/dom/nodes/JsiLineNode.h +2 -7
- package/cpp/rnskia/dom/nodes/JsiOvalNode.h +1 -3
- package/cpp/rnskia/dom/nodes/JsiPaintNode.h +2 -3
- package/cpp/rnskia/dom/nodes/JsiPatchNode.h +4 -8
- package/cpp/rnskia/dom/nodes/JsiPathEffectNodes.h +14 -28
- package/cpp/rnskia/dom/nodes/JsiPathNode.h +16 -24
- package/cpp/rnskia/dom/nodes/JsiPictureNode.h +1 -2
- package/cpp/rnskia/dom/nodes/JsiPointsNode.h +2 -5
- package/cpp/rnskia/dom/nodes/JsiRRectNode.h +1 -2
- package/cpp/rnskia/dom/nodes/JsiRectNode.h +1 -2
- package/cpp/rnskia/dom/nodes/JsiShaderNodes.h +37 -69
- package/cpp/rnskia/dom/nodes/JsiTextBlobNode.h +3 -6
- package/cpp/rnskia/dom/nodes/JsiTextNode.h +4 -8
- package/cpp/rnskia/dom/nodes/JsiTextPathNode.h +1 -2
- package/cpp/rnskia/dom/nodes/JsiVerticesNode.h +2 -4
- package/cpp/rnskia/dom/props/BlendModeProp.h +2 -2
- package/cpp/rnskia/dom/props/PaintProps.h +3 -0
- package/cpp/rnskia/dom/props/TransformProp.h +0 -2
- package/cpp/utils/RNSkLog.h +1 -1
- package/ios/RNSkia-iOS/RNSkMetalCanvasProvider.mm +8 -7
- package/ios/RNSkia-iOS/RNSkiOSPlatformContext.h +2 -1
- package/ios/RNSkia-iOS/SkiaDrawViewManager.mm +4 -4
- package/ios/RNSkia-iOS/SkiaManager.mm +5 -5
- package/ios/RNSkia-iOS/SkiaPictureViewManager.mm +3 -3
- package/ios/RNSkia-iOS/SkiaUIView.mm +10 -10
- package/lib/commonjs/dom/nodes/RenderNode.js +12 -16
- package/lib/commonjs/dom/nodes/RenderNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/datatypes/index.js +0 -13
- package/lib/commonjs/dom/nodes/datatypes/index.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/Box.js +6 -6
- package/lib/commonjs/dom/nodes/drawings/Box.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/PatchNode.js +3 -7
- package/lib/commonjs/dom/nodes/drawings/PatchNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/drawings/VerticesNode.js +1 -1
- package/lib/commonjs/dom/nodes/drawings/VerticesNode.js.map +1 -1
- package/lib/commonjs/dom/nodes/paint/ColorFilters.js +1 -3
- package/lib/commonjs/dom/nodes/paint/ColorFilters.js.map +1 -1
- package/lib/commonjs/dom/nodes/paint/ImageFilters.js +1 -1
- package/lib/commonjs/dom/nodes/paint/ImageFilters.js.map +1 -1
- package/lib/commonjs/dom/nodes/paint/Shaders.js +1 -3
- package/lib/commonjs/dom/nodes/paint/Shaders.js.map +1 -1
- package/lib/commonjs/dom/types/DrawingContext.js.map +1 -1
- package/lib/commonjs/renderer/Canvas.js +2 -11
- package/lib/commonjs/renderer/Canvas.js.map +1 -1
- package/lib/commonjs/renderer/Container.js +2 -1
- package/lib/commonjs/renderer/Container.js.map +1 -1
- package/lib/commonjs/renderer/DrawingContext.js.map +1 -1
- package/lib/commonjs/renderer/components/Mask.js +11 -25
- package/lib/commonjs/renderer/components/Mask.js.map +1 -1
- package/lib/commonjs/renderer/index.js +0 -13
- package/lib/commonjs/renderer/index.js.map +1 -1
- package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkPaint.js +4 -0
- package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -1
- package/lib/commonjs/web/LoadSkiaWeb.js +1 -1
- package/lib/commonjs/web/LoadSkiaWeb.js.map +1 -1
- package/lib/module/dom/nodes/RenderNode.js +12 -16
- package/lib/module/dom/nodes/RenderNode.js.map +1 -1
- package/lib/module/dom/nodes/datatypes/index.js +0 -1
- package/lib/module/dom/nodes/datatypes/index.js.map +1 -1
- package/lib/module/dom/nodes/drawings/Box.js +6 -5
- package/lib/module/dom/nodes/drawings/Box.js.map +1 -1
- package/lib/module/dom/nodes/drawings/PatchNode.js +4 -8
- package/lib/module/dom/nodes/drawings/PatchNode.js.map +1 -1
- package/lib/module/dom/nodes/drawings/VerticesNode.js +2 -2
- package/lib/module/dom/nodes/drawings/VerticesNode.js.map +1 -1
- package/lib/module/dom/nodes/paint/ColorFilters.js +1 -2
- package/lib/module/dom/nodes/paint/ColorFilters.js.map +1 -1
- package/lib/module/dom/nodes/paint/ImageFilters.js +2 -2
- package/lib/module/dom/nodes/paint/ImageFilters.js.map +1 -1
- package/lib/module/dom/nodes/paint/Shaders.js +1 -2
- package/lib/module/dom/nodes/paint/Shaders.js.map +1 -1
- package/lib/module/dom/types/DrawingContext.js.map +1 -1
- package/lib/module/renderer/Canvas.js +3 -10
- package/lib/module/renderer/Canvas.js.map +1 -1
- package/lib/module/renderer/Container.js +2 -1
- package/lib/module/renderer/Container.js.map +1 -1
- package/lib/module/renderer/DrawingContext.js.map +1 -1
- package/lib/module/renderer/components/Mask.js +9 -21
- package/lib/module/renderer/components/Mask.js.map +1 -1
- package/lib/module/renderer/index.js +0 -1
- package/lib/module/renderer/index.js.map +1 -1
- package/lib/module/skia/types/Paint/Paint.js.map +1 -1
- package/lib/module/skia/web/JsiSkPaint.js +4 -0
- package/lib/module/skia/web/JsiSkPaint.js.map +1 -1
- package/lib/module/web/LoadSkiaWeb.js +1 -1
- package/lib/module/web/LoadSkiaWeb.js.map +1 -1
- package/lib/typescript/src/dom/nodes/datatypes/index.d.ts +0 -1
- package/lib/typescript/src/dom/nodes/drawings/Box.d.ts +1 -1
- package/lib/typescript/src/dom/nodes/drawings/PatchNode.d.ts +1 -1
- package/lib/typescript/src/dom/types/DrawingContext.d.ts +0 -1
- package/lib/typescript/src/renderer/Container.d.ts +1 -1
- package/lib/typescript/src/renderer/DrawingContext.d.ts +3 -5
- package/lib/typescript/src/renderer/index.d.ts +0 -1
- package/lib/typescript/src/skia/types/Paint/Paint.d.ts +4 -0
- package/lib/typescript/src/skia/web/JsiSkPaint.d.ts +1 -0
- package/package.json +1 -1
- package/src/dom/nodes/RenderNode.ts +11 -21
- package/src/dom/nodes/datatypes/index.ts +0 -1
- package/src/dom/nodes/drawings/Box.ts +7 -4
- package/src/dom/nodes/drawings/PatchNode.ts +4 -18
- package/src/dom/nodes/drawings/VerticesNode.ts +2 -2
- package/src/dom/nodes/paint/ColorFilters.ts +1 -2
- package/src/dom/nodes/paint/ImageFilters.ts +2 -2
- package/src/dom/nodes/paint/Shaders.ts +1 -2
- package/src/dom/types/DrawingContext.ts +0 -1
- package/src/renderer/Canvas.tsx +2 -12
- package/src/renderer/Container.tsx +1 -1
- package/src/renderer/DrawingContext.ts +5 -5
- package/src/renderer/components/Mask.tsx +11 -20
- package/src/renderer/index.ts +0 -1
- package/src/skia/types/Paint/Paint.ts +5 -0
- package/src/skia/web/JsiSkPaint.ts +4 -0
- package/src/web/LoadSkiaWeb.tsx +1 -1
- package/lib/commonjs/dom/nodes/datatypes/Color.js +0 -27
- package/lib/commonjs/dom/nodes/datatypes/Color.js.map +0 -1
- package/lib/commonjs/renderer/useCanvas.js +0 -32
- package/lib/commonjs/renderer/useCanvas.js.map +0 -1
- package/lib/module/dom/nodes/datatypes/Color.js +0 -11
- package/lib/module/dom/nodes/datatypes/Color.js.map +0 -1
- package/lib/module/renderer/useCanvas.js +0 -15
- package/lib/module/renderer/useCanvas.js.map +0 -1
- package/lib/typescript/src/dom/nodes/datatypes/Color.d.ts +0 -7
- package/lib/typescript/src/renderer/useCanvas.d.ts +0 -9
- package/src/dom/nodes/datatypes/Color.ts +0 -15
- package/src/renderer/useCanvas.ts +0 -21
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
#include <RNSkJsView.h>
|
8
8
|
|
9
|
-
#include
|
9
|
+
#include "SkiaOpenGLRenderer.h"
|
10
10
|
#include <android/native_window.h>
|
11
11
|
|
12
12
|
namespace RNSkia {
|
@@ -39,4 +39,4 @@ private:
|
|
39
39
|
float _width = -1;
|
40
40
|
float _height = -1;
|
41
41
|
};
|
42
|
-
} // namespace RNSkia
|
42
|
+
} // namespace RNSkia
|
@@ -16,12 +16,12 @@
|
|
16
16
|
#pragma clang diagnostic push
|
17
17
|
#pragma clang diagnostic ignored "-Wdocumentation"
|
18
18
|
|
19
|
+
#include "SkCanvas.h"
|
20
|
+
#include "SkColorSpace.h"
|
21
|
+
#include "SkPicture.h"
|
22
|
+
#include "SkSurface.h"
|
19
23
|
#include "include/gpu/GrDirectContext.h"
|
20
24
|
#include "include/gpu/gl/GrGLInterface.h"
|
21
|
-
#include <SkCanvas.h>
|
22
|
-
#include <SkColorSpace.h>
|
23
|
-
#include <SkPicture.h>
|
24
|
-
#include <SkSurface.h>
|
25
25
|
|
26
26
|
#pragma clang diagnostic pop
|
27
27
|
|
@@ -127,4 +127,4 @@ private:
|
|
127
127
|
|
128
128
|
std::atomic<RenderState> _renderState = {RenderState::Initializing};
|
129
129
|
};
|
130
|
-
} // namespace RNSkia
|
130
|
+
} // namespace RNSkia
|
package/cpp/api/JsiSkCanvas.h
CHANGED
@@ -22,14 +22,14 @@
|
|
22
22
|
#pragma clang diagnostic push
|
23
23
|
#pragma clang diagnostic ignored "-Wdocumentation"
|
24
24
|
|
25
|
-
#include
|
26
|
-
#include
|
27
|
-
#include
|
28
|
-
#include
|
29
|
-
#include
|
30
|
-
#include
|
31
|
-
#include
|
32
|
-
#include
|
25
|
+
#include "SkCanvas.h"
|
26
|
+
#include "SkFont.h"
|
27
|
+
#include "SkPaint.h"
|
28
|
+
#include "SkPath.h"
|
29
|
+
#include "SkPicture.h"
|
30
|
+
#include "SkRegion.h"
|
31
|
+
#include "SkSurface.h"
|
32
|
+
#include "SkTypeface.h"
|
33
33
|
|
34
34
|
#pragma clang diagnostic pop
|
35
35
|
|
package/cpp/api/JsiSkColor.h
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
#pragma clang diagnostic push
|
10
10
|
#pragma clang diagnostic ignored "-Wdocumentation"
|
11
11
|
|
12
|
-
#include
|
12
|
+
#include "SkContourMeasure.h"
|
13
13
|
|
14
14
|
#include "JsiSkPath.h"
|
15
15
|
|
@@ -80,4 +80,4 @@ public:
|
|
80
80
|
};
|
81
81
|
}
|
82
82
|
};
|
83
|
-
} // namespace RNSkia
|
83
|
+
} // namespace RNSkia
|
package/cpp/api/JsiSkData.h
CHANGED
package/cpp/api/JsiSkFont.h
CHANGED
package/cpp/api/JsiSkImage.h
CHANGED
@@ -11,9 +11,9 @@
|
|
11
11
|
#pragma clang diagnostic push
|
12
12
|
#pragma clang diagnostic ignored "-Wdocumentation"
|
13
13
|
|
14
|
-
#include
|
15
|
-
#include
|
16
|
-
#include
|
14
|
+
#include "SkBase64.h"
|
15
|
+
#include "SkImage.h"
|
16
|
+
#include "SkStream.h"
|
17
17
|
#include <include/codec/SkCodec.h>
|
18
18
|
|
19
19
|
#pragma clang diagnostic pop
|
package/cpp/api/JsiSkImageInfo.h
CHANGED
package/cpp/api/JsiSkMatrix.h
CHANGED
package/cpp/api/JsiSkPaint.h
CHANGED
@@ -16,7 +16,7 @@
|
|
16
16
|
#pragma clang diagnostic push
|
17
17
|
#pragma clang diagnostic ignored "-Wdocumentation"
|
18
18
|
|
19
|
-
#include
|
19
|
+
#include "SkPaint.h"
|
20
20
|
|
21
21
|
#pragma clang diagnostic pop
|
22
22
|
|
@@ -63,6 +63,11 @@ public:
|
|
63
63
|
return static_cast<double>(getObject()->getStrokeWidth());
|
64
64
|
}
|
65
65
|
|
66
|
+
JSI_HOST_FUNCTION(getAlphaf) {
|
67
|
+
float alphaf = getObject()->getAlphaf();
|
68
|
+
return jsi::Value(SkScalarToDouble(alphaf));
|
69
|
+
}
|
70
|
+
|
66
71
|
JSI_HOST_FUNCTION(setColor) {
|
67
72
|
SkColor color = JsiSkColor::fromValue(runtime, arguments[0]);
|
68
73
|
getObject()->setColor(color);
|
@@ -159,6 +164,7 @@ public:
|
|
159
164
|
|
160
165
|
JSI_EXPORT_FUNCTIONS(JSI_EXPORT_FUNC(JsiSkPaint, copy),
|
161
166
|
JSI_EXPORT_FUNC(JsiSkPaint, reset),
|
167
|
+
JSI_EXPORT_FUNC(JsiSkPaint, getAlphaf),
|
162
168
|
JSI_EXPORT_FUNC(JsiSkPaint, getColor),
|
163
169
|
JSI_EXPORT_FUNC(JsiSkPaint, getStrokeCap),
|
164
170
|
JSI_EXPORT_FUNC(JsiSkPaint, getStrokeJoin),
|
package/cpp/api/JsiSkPath.h
CHANGED
@@ -14,16 +14,16 @@
|
|
14
14
|
#pragma clang diagnostic push
|
15
15
|
#pragma clang diagnostic ignored "-Wdocumentation"
|
16
16
|
|
17
|
-
#include
|
18
|
-
#include
|
19
|
-
#include
|
20
|
-
#include
|
21
|
-
#include
|
22
|
-
#include
|
23
|
-
#include
|
24
|
-
#include
|
25
|
-
#include
|
26
|
-
#include
|
17
|
+
#include "SkDashPathEffect.h"
|
18
|
+
#include "SkParsePath.h"
|
19
|
+
#include "SkPath.h"
|
20
|
+
#include "SkPathEffect.h"
|
21
|
+
#include "SkPathOps.h"
|
22
|
+
#include "SkPathTypes.h"
|
23
|
+
#include "SkString.h"
|
24
|
+
#include "SkStrokeRec.h"
|
25
|
+
#include "SkTextUtils.h"
|
26
|
+
#include "SkTrimPathEffect.h"
|
27
27
|
|
28
28
|
#include "JsiSkMatrix.h"
|
29
29
|
|
@@ -42,7 +42,7 @@ public:
|
|
42
42
|
}
|
43
43
|
|
44
44
|
JSI_HOST_FUNCTION(addArc) {
|
45
|
-
auto rect = JsiSkRect::fromValue(runtime, arguments[0])
|
45
|
+
auto rect = JsiSkRect::fromValue(runtime, arguments[0]);
|
46
46
|
auto start = arguments[1].asNumber();
|
47
47
|
auto sweep = arguments[2].asNumber();
|
48
48
|
getObject()->addArc(*rect, start, sweep);
|
@@ -50,7 +50,7 @@ public:
|
|
50
50
|
}
|
51
51
|
|
52
52
|
JSI_HOST_FUNCTION(addOval) {
|
53
|
-
auto rect = JsiSkRect::fromValue(runtime, arguments[0])
|
53
|
+
auto rect = JsiSkRect::fromValue(runtime, arguments[0]);
|
54
54
|
auto direction = SkPathDirection::kCW;
|
55
55
|
if (count >= 2 && arguments[1].getBool()) {
|
56
56
|
direction = SkPathDirection::kCCW;
|
@@ -76,7 +76,7 @@ public:
|
|
76
76
|
}
|
77
77
|
|
78
78
|
JSI_HOST_FUNCTION(addRect) {
|
79
|
-
auto rect = JsiSkRect::fromValue(runtime, arguments[0])
|
79
|
+
auto rect = JsiSkRect::fromValue(runtime, arguments[0]);
|
80
80
|
auto direction = SkPathDirection::kCW;
|
81
81
|
if (count >= 2 && arguments[1].getBool()) {
|
82
82
|
direction = SkPathDirection::kCCW;
|
@@ -86,7 +86,7 @@ public:
|
|
86
86
|
}
|
87
87
|
|
88
88
|
JSI_HOST_FUNCTION(addRRect) {
|
89
|
-
auto rrect = JsiSkRRect::fromValue(runtime, arguments[0])
|
89
|
+
auto rrect = JsiSkRRect::fromValue(runtime, arguments[0]);
|
90
90
|
auto direction = SkPathDirection::kCW;
|
91
91
|
if (count >= 2 && arguments[1].getBool()) {
|
92
92
|
direction = SkPathDirection::kCCW;
|
@@ -96,7 +96,7 @@ public:
|
|
96
96
|
}
|
97
97
|
|
98
98
|
JSI_HOST_FUNCTION(arcToOval) {
|
99
|
-
auto rect = JsiSkRect::fromValue(runtime, arguments[0])
|
99
|
+
auto rect = JsiSkRect::fromValue(runtime, arguments[0]);
|
100
100
|
auto start = arguments[1].asNumber();
|
101
101
|
auto sweep = arguments[2].asNumber();
|
102
102
|
auto forceMoveTo = arguments[3].getBool();
|
@@ -12,12 +12,12 @@
|
|
12
12
|
#pragma clang diagnostic push
|
13
13
|
#pragma clang diagnostic ignored "-Wdocumentation"
|
14
14
|
|
15
|
+
#include "SkCornerPathEffect.h"
|
16
|
+
#include "SkDashPathEffect.h"
|
17
|
+
#include "SkDiscretePathEffect.h"
|
18
|
+
#include "SkPathEffect.h"
|
15
19
|
#include "include/effects/Sk1DPathEffect.h"
|
16
20
|
#include "include/effects/Sk2DPathEffect.h"
|
17
|
-
#include <SkCornerPathEffect.h>
|
18
|
-
#include <SkDashPathEffect.h>
|
19
|
-
#include <SkDiscretePathEffect.h>
|
20
|
-
#include <SkPathEffect.h>
|
21
21
|
|
22
22
|
#pragma clang diagnostic pop
|
23
23
|
|
package/cpp/api/JsiSkPicture.h
CHANGED
package/cpp/api/JsiSkPoint.h
CHANGED
package/cpp/api/JsiSkRRect.h
CHANGED
package/cpp/api/JsiSkRSXform.h
CHANGED
package/cpp/api/JsiSkRect.h
CHANGED
package/cpp/api/JsiSkShader.h
CHANGED
@@ -12,9 +12,9 @@
|
|
12
12
|
#pragma clang diagnostic push
|
13
13
|
#pragma clang diagnostic ignored "-Wdocumentation"
|
14
14
|
|
15
|
-
#include
|
16
|
-
#include
|
17
|
-
#include
|
15
|
+
#include "SkColorFilter.h"
|
16
|
+
#include "SkImageFilters.h"
|
17
|
+
#include "SkPerlinNoiseShader.h"
|
18
18
|
|
19
19
|
#pragma clang diagnostic pop
|
20
20
|
|
package/cpp/api/JsiSkSurface.h
CHANGED
package/cpp/api/JsiSkTextBlob.h
CHANGED
package/cpp/api/JsiSkTypeface.h
CHANGED
package/cpp/api/JsiSkVertices.h
CHANGED
package/cpp/jsi/JsiHostObject.h
CHANGED
@@ -132,31 +132,6 @@ public:
|
|
132
132
|
JsiHostObject();
|
133
133
|
~JsiHostObject();
|
134
134
|
|
135
|
-
protected:
|
136
|
-
/**
|
137
|
-
Override to return map of name/functions
|
138
|
-
*/
|
139
|
-
virtual const RNJsi::JsiFunctionMap &getExportedFunctionMap() {
|
140
|
-
static const RNJsi::JsiFunctionMap empty;
|
141
|
-
return empty;
|
142
|
-
}
|
143
|
-
|
144
|
-
/**
|
145
|
-
Override to get property getters map of name/functions
|
146
|
-
*/
|
147
|
-
virtual const JsiPropertyGettersMap &getExportedPropertyGettersMap() {
|
148
|
-
static const JsiPropertyGettersMap empty;
|
149
|
-
return empty;
|
150
|
-
}
|
151
|
-
|
152
|
-
/**
|
153
|
-
Override to get property setters map of name/functions
|
154
|
-
*/
|
155
|
-
virtual const JsiPropertySettersMap &getExportedPropertySettersMap() {
|
156
|
-
static const JsiPropertySettersMap empty;
|
157
|
-
return empty;
|
158
|
-
}
|
159
|
-
|
160
135
|
/**
|
161
136
|
* Overridden jsi::HostObject set property method
|
162
137
|
* @param rt Runtime
|
@@ -183,6 +158,31 @@ protected:
|
|
183
158
|
*/
|
184
159
|
std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime &runtime) override;
|
185
160
|
|
161
|
+
protected:
|
162
|
+
/**
|
163
|
+
Override to return map of name/functions
|
164
|
+
*/
|
165
|
+
virtual const RNJsi::JsiFunctionMap &getExportedFunctionMap() {
|
166
|
+
static const RNJsi::JsiFunctionMap empty;
|
167
|
+
return empty;
|
168
|
+
}
|
169
|
+
|
170
|
+
/**
|
171
|
+
Override to get property getters map of name/functions
|
172
|
+
*/
|
173
|
+
virtual const JsiPropertyGettersMap &getExportedPropertyGettersMap() {
|
174
|
+
static const JsiPropertyGettersMap empty;
|
175
|
+
return empty;
|
176
|
+
}
|
177
|
+
|
178
|
+
/**
|
179
|
+
Override to get property setters map of name/functions
|
180
|
+
*/
|
181
|
+
virtual const JsiPropertySettersMap &getExportedPropertySettersMap() {
|
182
|
+
static const JsiPropertySettersMap empty;
|
183
|
+
return empty;
|
184
|
+
}
|
185
|
+
|
186
186
|
/**
|
187
187
|
* Installs a function into the function map
|
188
188
|
*/
|