@shopify/react-native-skia 0.0.135
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE.md +7 -0
- package/README.md +52 -0
- package/android/CMakeLists.txt +151 -0
- package/android/README.md +14 -0
- package/android/build.gradle +258 -0
- package/android/cpp/jni/JniLoad.cpp +13 -0
- package/android/cpp/jni/JniPlatformContext.cpp +142 -0
- package/android/cpp/jni/JniSkiaDrawView.cpp +113 -0
- package/android/cpp/jni/JniSkiaManager.cpp +57 -0
- package/android/cpp/jni/include/JniPlatformContext.h +75 -0
- package/android/cpp/jni/include/JniSkiaDrawView.h +78 -0
- package/android/cpp/jni/include/JniSkiaManager.h +81 -0
- package/android/cpp/rnskia-android/RNSkDrawViewImpl.cpp +73 -0
- package/android/cpp/rnskia-android/RNSkDrawViewImpl.h +48 -0
- package/android/cpp/rnskia-android/RNSkPlatformContextImpl.h +54 -0
- package/android/cpp/rnskia-android/SkiaOpenGLRenderer.cpp +325 -0
- package/android/cpp/rnskia-android/SkiaOpenGLRenderer.h +131 -0
- package/android/src/main/AndroidManifest.xml +6 -0
- package/android/src/main/java/com/shopify/reactnative/skia/PlatformContext.java +181 -0
- package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaModule.java +88 -0
- package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaPackage.java +24 -0
- package/android/src/main/java/com/shopify/reactnative/skia/RNSkiaViewManager.java +72 -0
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaDrawView.java +131 -0
- package/android/src/main/java/com/shopify/reactnative/skia/SkiaManager.java +66 -0
- package/cpp/api/JsiSkApi.h +105 -0
- package/cpp/api/JsiSkCanvas.h +540 -0
- package/cpp/api/JsiSkColor.h +83 -0
- package/cpp/api/JsiSkColorFilter.h +43 -0
- package/cpp/api/JsiSkColorFilterFactory.h +99 -0
- package/cpp/api/JsiSkContourMeasure.h +102 -0
- package/cpp/api/JsiSkContourMeasureIter.h +90 -0
- package/cpp/api/JsiSkData.h +46 -0
- package/cpp/api/JsiSkDataFactory.h +92 -0
- package/cpp/api/JsiSkFont.h +354 -0
- package/cpp/api/JsiSkFontMgr.h +84 -0
- package/cpp/api/JsiSkFontMgrFactory.h +48 -0
- package/cpp/api/JsiSkHostObjects.h +83 -0
- package/cpp/api/JsiSkImage.h +124 -0
- package/cpp/api/JsiSkImageFactory.h +50 -0
- package/cpp/api/JsiSkImageFilter.h +45 -0
- package/cpp/api/JsiSkImageFilterFactory.h +237 -0
- package/cpp/api/JsiSkImageInfo.h +57 -0
- package/cpp/api/JsiSkMaskFilter.h +45 -0
- package/cpp/api/JsiSkMaskFilterFactory.h +42 -0
- package/cpp/api/JsiSkMatrix.h +119 -0
- package/cpp/api/JsiSkPaint.h +199 -0
- package/cpp/api/JsiSkPath.h +592 -0
- package/cpp/api/JsiSkPathEffect.h +45 -0
- package/cpp/api/JsiSkPathEffectFactory.h +123 -0
- package/cpp/api/JsiSkPathFactory.h +172 -0
- package/cpp/api/JsiSkPicture.h +71 -0
- package/cpp/api/JsiSkPictureFactory.h +50 -0
- package/cpp/api/JsiSkPictureRecorder.h +53 -0
- package/cpp/api/JsiSkPoint.h +81 -0
- package/cpp/api/JsiSkRRect.h +93 -0
- package/cpp/api/JsiSkRSXform.h +105 -0
- package/cpp/api/JsiSkRect.h +119 -0
- package/cpp/api/JsiSkRuntimeEffect.h +222 -0
- package/cpp/api/JsiSkRuntimeEffectFactory.h +42 -0
- package/cpp/api/JsiSkRuntimeShaderBuilder.h +88 -0
- package/cpp/api/JsiSkSVG.h +43 -0
- package/cpp/api/JsiSkSVGFactory.h +48 -0
- package/cpp/api/JsiSkShader.h +45 -0
- package/cpp/api/JsiSkShaderFactory.h +214 -0
- package/cpp/api/JsiSkSurface.h +67 -0
- package/cpp/api/JsiSkSurfaceFactory.h +44 -0
- package/cpp/api/JsiSkTextBlob.h +50 -0
- package/cpp/api/JsiSkTextBlobFactory.h +109 -0
- package/cpp/api/JsiSkTypeface.h +85 -0
- package/cpp/api/JsiSkTypefaceFactory.h +34 -0
- package/cpp/api/JsiSkVertices.h +145 -0
- package/cpp/api/third_party/CSSColorParser.cpp +194 -0
- package/cpp/api/third_party/CSSColorParser.h +134 -0
- package/cpp/jsi/JsiHostObject.cpp +154 -0
- package/cpp/jsi/JsiHostObject.h +241 -0
- package/cpp/jsi/JsiSimpleValueWrapper.h +108 -0
- package/cpp/rnskia/RNSkAnimation.h +68 -0
- package/cpp/rnskia/RNSkDispatchQueue.cpp +84 -0
- package/cpp/rnskia/RNSkDispatchQueue.h +47 -0
- package/cpp/rnskia/RNSkDrawView.cpp +291 -0
- package/cpp/rnskia/RNSkDrawView.h +212 -0
- package/cpp/rnskia/RNSkInfoParameter.h +102 -0
- package/cpp/rnskia/RNSkJsiViewApi.h +308 -0
- package/cpp/rnskia/RNSkManager.cpp +81 -0
- package/cpp/rnskia/RNSkManager.h +81 -0
- package/cpp/rnskia/RNSkPlatformContext.h +196 -0
- package/cpp/rnskia/RNSkValueApi.h +73 -0
- package/cpp/rnskia/values/RNSkClockValue.h +141 -0
- package/cpp/rnskia/values/RNSkComputedValue.h +99 -0
- package/cpp/rnskia/values/RNSkReadonlyValue.h +142 -0
- package/cpp/rnskia/values/RNSkValue.h +117 -0
- package/cpp/skia/include/android/SkAndroidFrameworkUtils.h +61 -0
- package/cpp/skia/include/android/SkAnimatedImage.h +179 -0
- package/cpp/skia/include/c/sk_canvas.h +159 -0
- package/cpp/skia/include/c/sk_colorspace.h +25 -0
- package/cpp/skia/include/c/sk_data.h +65 -0
- package/cpp/skia/include/c/sk_image.h +71 -0
- package/cpp/skia/include/c/sk_imageinfo.h +62 -0
- package/cpp/skia/include/c/sk_maskfilter.h +47 -0
- package/cpp/skia/include/c/sk_matrix.h +49 -0
- package/cpp/skia/include/c/sk_paint.h +145 -0
- package/cpp/skia/include/c/sk_path.h +102 -0
- package/cpp/skia/include/c/sk_picture.h +70 -0
- package/cpp/skia/include/c/sk_shader.h +143 -0
- package/cpp/skia/include/c/sk_surface.h +73 -0
- package/cpp/skia/include/c/sk_types.h +278 -0
- package/cpp/skia/include/codec/SkAndroidCodec.h +263 -0
- package/cpp/skia/include/codec/SkCodec.h +998 -0
- package/cpp/skia/include/codec/SkCodecAnimation.h +61 -0
- package/cpp/skia/include/codec/SkEncodedOrigin.h +54 -0
- package/cpp/skia/include/config/SkUserConfig.h +89 -0
- package/cpp/skia/include/core/SkAlphaType.h +45 -0
- package/cpp/skia/include/core/SkAnnotation.h +50 -0
- package/cpp/skia/include/core/SkBBHFactory.h +63 -0
- package/cpp/skia/include/core/SkBitmap.h +1214 -0
- package/cpp/skia/include/core/SkBlendMode.h +110 -0
- package/cpp/skia/include/core/SkBlender.h +33 -0
- package/cpp/skia/include/core/SkBlurTypes.h +22 -0
- package/cpp/skia/include/core/SkCanvas.h +2594 -0
- package/cpp/skia/include/core/SkCanvasVirtualEnforcer.h +61 -0
- package/cpp/skia/include/core/SkClipOp.h +19 -0
- package/cpp/skia/include/core/SkColor.h +438 -0
- package/cpp/skia/include/core/SkColorFilter.h +91 -0
- package/cpp/skia/include/core/SkColorPriv.h +152 -0
- package/cpp/skia/include/core/SkColorSpace.h +245 -0
- package/cpp/skia/include/core/SkColorType.h +66 -0
- package/cpp/skia/include/core/SkContourMeasure.h +131 -0
- package/cpp/skia/include/core/SkCoverageMode.h +30 -0
- package/cpp/skia/include/core/SkCubicMap.h +45 -0
- package/cpp/skia/include/core/SkData.h +188 -0
- package/cpp/skia/include/core/SkDataTable.h +118 -0
- package/cpp/skia/include/core/SkDeferredDisplayList.h +110 -0
- package/cpp/skia/include/core/SkDeferredDisplayListRecorder.h +97 -0
- package/cpp/skia/include/core/SkDocument.h +91 -0
- package/cpp/skia/include/core/SkDrawLooper.h +135 -0
- package/cpp/skia/include/core/SkDrawable.h +167 -0
- package/cpp/skia/include/core/SkEncodedImageFormat.h +36 -0
- package/cpp/skia/include/core/SkExecutor.h +41 -0
- package/cpp/skia/include/core/SkFlattenable.h +113 -0
- package/cpp/skia/include/core/SkFont.h +535 -0
- package/cpp/skia/include/core/SkFontArguments.h +94 -0
- package/cpp/skia/include/core/SkFontMetrics.h +138 -0
- package/cpp/skia/include/core/SkFontMgr.h +157 -0
- package/cpp/skia/include/core/SkFontParameters.h +42 -0
- package/cpp/skia/include/core/SkFontStyle.h +81 -0
- package/cpp/skia/include/core/SkFontTypes.h +25 -0
- package/cpp/skia/include/core/SkGraphics.h +166 -0
- package/cpp/skia/include/core/SkICC.h +19 -0
- package/cpp/skia/include/core/SkImage.h +1347 -0
- package/cpp/skia/include/core/SkImageEncoder.h +69 -0
- package/cpp/skia/include/core/SkImageFilter.h +114 -0
- package/cpp/skia/include/core/SkImageGenerator.h +216 -0
- package/cpp/skia/include/core/SkImageInfo.h +614 -0
- package/cpp/skia/include/core/SkM44.h +426 -0
- package/cpp/skia/include/core/SkMallocPixelRef.h +42 -0
- package/cpp/skia/include/core/SkMaskFilter.h +50 -0
- package/cpp/skia/include/core/SkMath.h +54 -0
- package/cpp/skia/include/core/SkMatrix.h +1986 -0
- package/cpp/skia/include/core/SkMesh.h +303 -0
- package/cpp/skia/include/core/SkMilestone.h +9 -0
- package/cpp/skia/include/core/SkOpenTypeSVGDecoder.h +30 -0
- package/cpp/skia/include/core/SkOverdrawCanvas.h +68 -0
- package/cpp/skia/include/core/SkPaint.h +705 -0
- package/cpp/skia/include/core/SkPath.h +1878 -0
- package/cpp/skia/include/core/SkPathBuilder.h +263 -0
- package/cpp/skia/include/core/SkPathEffect.h +106 -0
- package/cpp/skia/include/core/SkPathMeasure.h +88 -0
- package/cpp/skia/include/core/SkPathTypes.h +59 -0
- package/cpp/skia/include/core/SkPicture.h +280 -0
- package/cpp/skia/include/core/SkPictureRecorder.h +115 -0
- package/cpp/skia/include/core/SkPixelRef.h +123 -0
- package/cpp/skia/include/core/SkPixmap.h +721 -0
- package/cpp/skia/include/core/SkPngChunkReader.h +45 -0
- package/cpp/skia/include/core/SkPoint.h +566 -0
- package/cpp/skia/include/core/SkPoint3.h +157 -0
- package/cpp/skia/include/core/SkPromiseImageTexture.h +46 -0
- package/cpp/skia/include/core/SkRRect.h +512 -0
- package/cpp/skia/include/core/SkRSXform.h +69 -0
- package/cpp/skia/include/core/SkRasterHandleAllocator.h +92 -0
- package/cpp/skia/include/core/SkRect.h +1378 -0
- package/cpp/skia/include/core/SkRefCnt.h +382 -0
- package/cpp/skia/include/core/SkRegion.h +672 -0
- package/cpp/skia/include/core/SkSamplingOptions.h +103 -0
- package/cpp/skia/include/core/SkScalar.h +194 -0
- package/cpp/skia/include/core/SkSerialProcs.h +73 -0
- package/cpp/skia/include/core/SkShader.h +148 -0
- package/cpp/skia/include/core/SkSize.h +90 -0
- package/cpp/skia/include/core/SkSpan.h +89 -0
- package/cpp/skia/include/core/SkStream.h +524 -0
- package/cpp/skia/include/core/SkString.h +299 -0
- package/cpp/skia/include/core/SkStrokeRec.h +154 -0
- package/cpp/skia/include/core/SkSurface.h +1100 -0
- package/cpp/skia/include/core/SkSurfaceCharacterization.h +263 -0
- package/cpp/skia/include/core/SkSurfaceProps.h +92 -0
- package/cpp/skia/include/core/SkSwizzle.h +19 -0
- package/cpp/skia/include/core/SkTextBlob.h +503 -0
- package/cpp/skia/include/core/SkTileMode.h +41 -0
- package/cpp/skia/include/core/SkTime.h +63 -0
- package/cpp/skia/include/core/SkTraceMemoryDump.h +99 -0
- package/cpp/skia/include/core/SkTypeface.h +470 -0
- package/cpp/skia/include/core/SkTypes.h +625 -0
- package/cpp/skia/include/core/SkUnPreMultiply.h +56 -0
- package/cpp/skia/include/core/SkVertices.h +132 -0
- package/cpp/skia/include/core/SkYUVAInfo.h +304 -0
- package/cpp/skia/include/core/SkYUVAPixmaps.h +336 -0
- package/cpp/skia/include/docs/SkPDFDocument.h +196 -0
- package/cpp/skia/include/docs/SkXPSDocument.h +27 -0
- package/cpp/skia/include/effects/Sk1DPathEffect.h +35 -0
- package/cpp/skia/include/effects/Sk2DPathEffect.h +30 -0
- package/cpp/skia/include/effects/SkBlenders.h +27 -0
- package/cpp/skia/include/effects/SkBlurDrawLooper.h +26 -0
- package/cpp/skia/include/effects/SkBlurMaskFilter.h +35 -0
- package/cpp/skia/include/effects/SkColorMatrix.h +55 -0
- package/cpp/skia/include/effects/SkColorMatrixFilter.h +25 -0
- package/cpp/skia/include/effects/SkCornerPathEffect.h +28 -0
- package/cpp/skia/include/effects/SkDashPathEffect.h +39 -0
- package/cpp/skia/include/effects/SkDiscretePathEffect.h +37 -0
- package/cpp/skia/include/effects/SkGradientShader.h +255 -0
- package/cpp/skia/include/effects/SkHighContrastFilter.h +80 -0
- package/cpp/skia/include/effects/SkImageFilters.h +551 -0
- package/cpp/skia/include/effects/SkLayerDrawLooper.h +161 -0
- package/cpp/skia/include/effects/SkLumaColorFilter.h +34 -0
- package/cpp/skia/include/effects/SkOpPathEffect.h +39 -0
- package/cpp/skia/include/effects/SkOverdrawColorFilter.h +29 -0
- package/cpp/skia/include/effects/SkPerlinNoiseShader.h +54 -0
- package/cpp/skia/include/effects/SkRuntimeEffect.h +522 -0
- package/cpp/skia/include/effects/SkShaderMaskFilter.h +24 -0
- package/cpp/skia/include/effects/SkStrokeAndFillPathEffect.h +28 -0
- package/cpp/skia/include/effects/SkTableColorFilter.h +42 -0
- package/cpp/skia/include/effects/SkTableMaskFilter.h +37 -0
- package/cpp/skia/include/effects/SkTrimPathEffect.h +41 -0
- package/cpp/skia/include/encode/SkEncoder.h +42 -0
- package/cpp/skia/include/encode/SkJpegEncoder.h +97 -0
- package/cpp/skia/include/encode/SkPngEncoder.h +99 -0
- package/cpp/skia/include/encode/SkWebpEncoder.h +48 -0
- package/cpp/skia/include/gpu/GpuTypes.h +32 -0
- package/cpp/skia/include/gpu/GrBackendDrawableInfo.h +44 -0
- package/cpp/skia/include/gpu/GrBackendSemaphore.h +140 -0
- package/cpp/skia/include/gpu/GrBackendSurface.h +644 -0
- package/cpp/skia/include/gpu/GrBackendSurfaceMutableState.h +91 -0
- package/cpp/skia/include/gpu/GrConfig.h +53 -0
- package/cpp/skia/include/gpu/GrContextOptions.h +355 -0
- package/cpp/skia/include/gpu/GrContextThreadSafeProxy.h +166 -0
- package/cpp/skia/include/gpu/GrDirectContext.h +885 -0
- package/cpp/skia/include/gpu/GrDriverBugWorkarounds.h +52 -0
- package/cpp/skia/include/gpu/GrDriverBugWorkaroundsAutogen.h +43 -0
- package/cpp/skia/include/gpu/GrRecordingContext.h +282 -0
- package/cpp/skia/include/gpu/GrSurfaceInfo.h +166 -0
- package/cpp/skia/include/gpu/GrTypes.h +244 -0
- package/cpp/skia/include/gpu/GrYUVABackendTextures.h +124 -0
- package/cpp/skia/include/gpu/ShaderErrorHandler.h +36 -0
- package/cpp/skia/include/gpu/d3d/GrD3DBackendContext.h +35 -0
- package/cpp/skia/include/gpu/d3d/GrD3DTypes.h +248 -0
- package/cpp/skia/include/gpu/dawn/GrDawnTypes.h +95 -0
- package/cpp/skia/include/gpu/gl/GrGLAssembleHelpers.h +11 -0
- package/cpp/skia/include/gpu/gl/GrGLAssembleInterface.h +39 -0
- package/cpp/skia/include/gpu/gl/GrGLConfig.h +79 -0
- package/cpp/skia/include/gpu/gl/GrGLConfig_chrome.h +14 -0
- package/cpp/skia/include/gpu/gl/GrGLExtensions.h +78 -0
- package/cpp/skia/include/gpu/gl/GrGLFunctions.h +306 -0
- package/cpp/skia/include/gpu/gl/GrGLInterface.h +342 -0
- package/cpp/skia/include/gpu/gl/GrGLTypes.h +207 -0
- package/cpp/skia/include/gpu/gl/egl/GrGLMakeEGLInterface.h +14 -0
- package/cpp/skia/include/gpu/gl/glx/GrGLMakeGLXInterface.h +14 -0
- package/cpp/skia/include/gpu/graphite/BackendTexture.h +64 -0
- package/cpp/skia/include/gpu/graphite/Context.h +124 -0
- package/cpp/skia/include/gpu/graphite/GraphiteTypes.h +71 -0
- package/cpp/skia/include/gpu/graphite/Recorder.h +104 -0
- package/cpp/skia/include/gpu/graphite/Recording.h +39 -0
- package/cpp/skia/include/gpu/graphite/SkStuff.h +47 -0
- package/cpp/skia/include/gpu/graphite/TextureInfo.h +91 -0
- package/cpp/skia/include/gpu/graphite/mtl/MtlBackendContext.h +24 -0
- package/cpp/skia/include/gpu/graphite/mtl/MtlTypes.h +68 -0
- package/cpp/skia/include/gpu/mock/GrMockTypes.h +143 -0
- package/cpp/skia/include/gpu/mtl/GrMtlBackendContext.h +21 -0
- package/cpp/skia/include/gpu/mtl/GrMtlTypes.h +63 -0
- package/cpp/skia/include/gpu/vk/GrVkBackendContext.h +76 -0
- package/cpp/skia/include/gpu/vk/GrVkExtensions.h +63 -0
- package/cpp/skia/include/gpu/vk/GrVkMemoryAllocator.h +140 -0
- package/cpp/skia/include/gpu/vk/GrVkTypes.h +187 -0
- package/cpp/skia/include/gpu/vk/GrVkVulkan.h +32 -0
- package/cpp/skia/include/pathops/SkPathOps.h +113 -0
- package/cpp/skia/include/ports/SkCFObject.h +180 -0
- package/cpp/skia/include/ports/SkFontConfigInterface.h +115 -0
- package/cpp/skia/include/ports/SkFontMgr_FontConfigInterface.h +20 -0
- package/cpp/skia/include/ports/SkFontMgr_android.h +45 -0
- package/cpp/skia/include/ports/SkFontMgr_directory.h +21 -0
- package/cpp/skia/include/ports/SkFontMgr_empty.h +21 -0
- package/cpp/skia/include/ports/SkFontMgr_fontconfig.h +22 -0
- package/cpp/skia/include/ports/SkFontMgr_fuchsia.h +19 -0
- package/cpp/skia/include/ports/SkFontMgr_indirect.h +102 -0
- package/cpp/skia/include/ports/SkFontMgr_mac_ct.h +27 -0
- package/cpp/skia/include/ports/SkImageGeneratorCG.h +20 -0
- package/cpp/skia/include/ports/SkImageGeneratorNDK.h +40 -0
- package/cpp/skia/include/ports/SkImageGeneratorWIC.h +35 -0
- package/cpp/skia/include/ports/SkRemotableFontMgr.h +139 -0
- package/cpp/skia/include/ports/SkTypeface_mac.h +44 -0
- package/cpp/skia/include/ports/SkTypeface_win.h +79 -0
- package/cpp/skia/include/private/SingleOwner.h +72 -0
- package/cpp/skia/include/private/SkBitmaskEnum.h +59 -0
- package/cpp/skia/include/private/SkChecksum.h +77 -0
- package/cpp/skia/include/private/SkColorData.h +441 -0
- package/cpp/skia/include/private/SkDeque.h +141 -0
- package/cpp/skia/include/private/SkEncodedInfo.h +266 -0
- package/cpp/skia/include/private/SkFixed.h +141 -0
- package/cpp/skia/include/private/SkFloatBits.h +91 -0
- package/cpp/skia/include/private/SkFloatingPoint.h +219 -0
- package/cpp/skia/include/private/SkHalf.h +85 -0
- package/cpp/skia/include/private/SkIDChangeListener.h +75 -0
- package/cpp/skia/include/private/SkImageInfoPriv.h +199 -0
- package/cpp/skia/include/private/SkMacros.h +79 -0
- package/cpp/skia/include/private/SkMalloc.h +143 -0
- package/cpp/skia/include/private/SkMutex.h +64 -0
- package/cpp/skia/include/private/SkNoncopyable.h +30 -0
- package/cpp/skia/include/private/SkNx.h +430 -0
- package/cpp/skia/include/private/SkNx_neon.h +713 -0
- package/cpp/skia/include/private/SkNx_sse.h +823 -0
- package/cpp/skia/include/private/SkOnce.h +53 -0
- package/cpp/skia/include/private/SkOpts_spi.h +21 -0
- package/cpp/skia/include/private/SkPathRef.h +522 -0
- package/cpp/skia/include/private/SkSLDefines.h +64 -0
- package/cpp/skia/include/private/SkSLIRNode.h +64 -0
- package/cpp/skia/include/private/SkSLLayout.h +144 -0
- package/cpp/skia/include/private/SkSLModifiers.h +142 -0
- package/cpp/skia/include/private/SkSLProgramElement.h +77 -0
- package/cpp/skia/include/private/SkSLProgramKind.h +34 -0
- package/cpp/skia/include/private/SkSLSampleUsage.h +89 -0
- package/cpp/skia/include/private/SkSLStatement.h +86 -0
- package/cpp/skia/include/private/SkSLString.h +41 -0
- package/cpp/skia/include/private/SkSLSymbol.h +90 -0
- package/cpp/skia/include/private/SkSafe32.h +34 -0
- package/cpp/skia/include/private/SkSafe_math.h +52 -0
- package/cpp/skia/include/private/SkSemaphore.h +83 -0
- package/cpp/skia/include/private/SkShadowFlags.h +27 -0
- package/cpp/skia/include/private/SkSpinlock.h +57 -0
- package/cpp/skia/include/private/SkStringView.h +47 -0
- package/cpp/skia/include/private/SkTArray.h +641 -0
- package/cpp/skia/include/private/SkTDArray.h +385 -0
- package/cpp/skia/include/private/SkTFitsIn.h +99 -0
- package/cpp/skia/include/private/SkTHash.h +590 -0
- package/cpp/skia/include/private/SkTLogic.h +56 -0
- package/cpp/skia/include/private/SkTPin.h +23 -0
- package/cpp/skia/include/private/SkTemplates.h +453 -0
- package/cpp/skia/include/private/SkThreadAnnotations.h +91 -0
- package/cpp/skia/include/private/SkThreadID.h +20 -0
- package/cpp/skia/include/private/SkTo.h +28 -0
- package/cpp/skia/include/private/SkUniquePaintParamsID.h +35 -0
- package/cpp/skia/include/private/SkVx.h +943 -0
- package/cpp/skia/include/private/SkWeakRefCnt.h +170 -0
- package/cpp/skia/include/private/chromium/GrSlug.h +78 -0
- package/cpp/skia/include/private/chromium/SkChromeRemoteGlyphCache.h +149 -0
- package/cpp/skia/include/private/gpu/ganesh/GrContext_Base.h +99 -0
- package/cpp/skia/include/private/gpu/ganesh/GrD3DTypesMinimal.h +74 -0
- package/cpp/skia/include/private/gpu/ganesh/GrDawnTypesPriv.h +26 -0
- package/cpp/skia/include/private/gpu/ganesh/GrGLTypesPriv.h +108 -0
- package/cpp/skia/include/private/gpu/ganesh/GrImageContext.h +55 -0
- package/cpp/skia/include/private/gpu/ganesh/GrMockTypesPriv.h +31 -0
- package/cpp/skia/include/private/gpu/ganesh/GrMtlTypesPriv.h +75 -0
- package/cpp/skia/include/private/gpu/ganesh/GrTypesPriv.h +1012 -0
- package/cpp/skia/include/private/gpu/ganesh/GrVkTypesPriv.h +107 -0
- package/cpp/skia/include/private/gpu/graphite/MtlTypesPriv.h +74 -0
- package/cpp/skia/include/sksl/DSL.h +38 -0
- package/cpp/skia/include/sksl/DSLBlock.h +72 -0
- package/cpp/skia/include/sksl/DSLCase.h +68 -0
- package/cpp/skia/include/sksl/DSLCore.h +499 -0
- package/cpp/skia/include/sksl/DSLExpression.h +332 -0
- package/cpp/skia/include/sksl/DSLFunction.h +121 -0
- package/cpp/skia/include/sksl/DSLLayout.h +92 -0
- package/cpp/skia/include/sksl/DSLModifiers.h +66 -0
- package/cpp/skia/include/sksl/DSLRuntimeEffects.h +32 -0
- package/cpp/skia/include/sksl/DSLStatement.h +117 -0
- package/cpp/skia/include/sksl/DSLSymbols.h +71 -0
- package/cpp/skia/include/sksl/DSLType.h +263 -0
- package/cpp/skia/include/sksl/DSLVar.h +321 -0
- package/cpp/skia/include/sksl/DSLWrapper.h +77 -0
- package/cpp/skia/include/sksl/SkSLDebugTrace.h +28 -0
- package/cpp/skia/include/sksl/SkSLErrorReporter.h +78 -0
- package/cpp/skia/include/sksl/SkSLOperator.h +151 -0
- package/cpp/skia/include/sksl/SkSLPosition.h +102 -0
- package/cpp/skia/include/svg/SkSVGCanvas.h +41 -0
- package/cpp/skia/include/third_party/skcms/LICENSE +29 -0
- package/cpp/skia/include/third_party/skcms/skcms.h +394 -0
- package/cpp/skia/include/third_party/vulkan/LICENSE +29 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vk_platform.h +84 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan.h +93 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_android.h +112 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_core.h +12620 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_ios.h +47 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_macos.h +47 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_win32.h +315 -0
- package/cpp/skia/include/third_party/vulkan/vulkan/vulkan_xcb.h +55 -0
- package/cpp/skia/include/utils/SkAnimCodecPlayer.h +67 -0
- package/cpp/skia/include/utils/SkBase64.h +51 -0
- package/cpp/skia/include/utils/SkCamera.h +109 -0
- package/cpp/skia/include/utils/SkCanvasStateUtils.h +81 -0
- package/cpp/skia/include/utils/SkCustomTypeface.h +50 -0
- package/cpp/skia/include/utils/SkEventTracer.h +79 -0
- package/cpp/skia/include/utils/SkNWayCanvas.h +126 -0
- package/cpp/skia/include/utils/SkNoDrawCanvas.h +80 -0
- package/cpp/skia/include/utils/SkNullCanvas.h +22 -0
- package/cpp/skia/include/utils/SkOrderedFontMgr.h +65 -0
- package/cpp/skia/include/utils/SkPaintFilterCanvas.h +136 -0
- package/cpp/skia/include/utils/SkParse.h +34 -0
- package/cpp/skia/include/utils/SkParsePath.h +25 -0
- package/cpp/skia/include/utils/SkRandom.h +169 -0
- package/cpp/skia/include/utils/SkShadowUtils.h +86 -0
- package/cpp/skia/include/utils/SkTextUtils.h +42 -0
- package/cpp/skia/include/utils/SkTraceEventPhase.h +19 -0
- package/cpp/skia/include/utils/mac/SkCGUtils.h +78 -0
- package/cpp/skia/modules/skresources/include/SkResources.h +254 -0
- package/cpp/skia/modules/svg/include/SkSVGAttribute.h +113 -0
- package/cpp/skia/modules/svg/include/SkSVGAttributeParser.h +160 -0
- package/cpp/skia/modules/svg/include/SkSVGCircle.h +43 -0
- package/cpp/skia/modules/svg/include/SkSVGClipPath.h +35 -0
- package/cpp/skia/modules/svg/include/SkSVGContainer.h +36 -0
- package/cpp/skia/modules/svg/include/SkSVGDOM.h +100 -0
- package/cpp/skia/modules/svg/include/SkSVGDefs.h +23 -0
- package/cpp/skia/modules/svg/include/SkSVGEllipse.h +41 -0
- package/cpp/skia/modules/svg/include/SkSVGFe.h +85 -0
- package/cpp/skia/modules/svg/include/SkSVGFeBlend.h +45 -0
- package/cpp/skia/modules/svg/include/SkSVGFeColorMatrix.h +46 -0
- package/cpp/skia/modules/svg/include/SkSVGFeComposite.h +46 -0
- package/cpp/skia/modules/svg/include/SkSVGFeDisplacementMap.h +46 -0
- package/cpp/skia/modules/svg/include/SkSVGFeFlood.h +32 -0
- package/cpp/skia/modules/svg/include/SkSVGFeGaussianBlur.h +41 -0
- package/cpp/skia/modules/svg/include/SkSVGFeImage.h +35 -0
- package/cpp/skia/modules/svg/include/SkSVGFeLightSource.h +89 -0
- package/cpp/skia/modules/svg/include/SkSVGFeLighting.h +121 -0
- package/cpp/skia/modules/svg/include/SkSVGFeMorphology.h +47 -0
- package/cpp/skia/modules/svg/include/SkSVGFeOffset.h +35 -0
- package/cpp/skia/modules/svg/include/SkSVGFeTurbulence.h +40 -0
- package/cpp/skia/modules/svg/include/SkSVGFilter.h +39 -0
- package/cpp/skia/modules/svg/include/SkSVGFilterContext.h +69 -0
- package/cpp/skia/modules/svg/include/SkSVGG.h +23 -0
- package/cpp/skia/modules/svg/include/SkSVGGradient.h +48 -0
- package/cpp/skia/modules/svg/include/SkSVGHiddenContainer.h +23 -0
- package/cpp/skia/modules/svg/include/SkSVGIDMapper.h +19 -0
- package/cpp/skia/modules/svg/include/SkSVGImage.h +58 -0
- package/cpp/skia/modules/svg/include/SkSVGLine.h +42 -0
- package/cpp/skia/modules/svg/include/SkSVGLinearGradient.h +37 -0
- package/cpp/skia/modules/svg/include/SkSVGMask.h +43 -0
- package/cpp/skia/modules/svg/include/SkSVGNode.h +223 -0
- package/cpp/skia/modules/svg/include/SkSVGOpenTypeSVGDecoder.h +32 -0
- package/cpp/skia/modules/svg/include/SkSVGPath.h +36 -0
- package/cpp/skia/modules/svg/include/SkSVGPattern.h +55 -0
- package/cpp/skia/modules/svg/include/SkSVGPoly.h +45 -0
- package/cpp/skia/modules/svg/include/SkSVGRadialGradient.h +38 -0
- package/cpp/skia/modules/svg/include/SkSVGRect.h +46 -0
- package/cpp/skia/modules/svg/include/SkSVGRenderContext.h +188 -0
- package/cpp/skia/modules/svg/include/SkSVGSVG.h +54 -0
- package/cpp/skia/modules/svg/include/SkSVGShape.h +33 -0
- package/cpp/skia/modules/svg/include/SkSVGStop.h +34 -0
- package/cpp/skia/modules/svg/include/SkSVGText.h +122 -0
- package/cpp/skia/modules/svg/include/SkSVGTransformableNode.h +36 -0
- package/cpp/skia/modules/svg/include/SkSVGTypes.h +730 -0
- package/cpp/skia/modules/svg/include/SkSVGUse.h +42 -0
- package/cpp/skia/modules/svg/include/SkSVGValue.h +85 -0
- package/cpp/skia/readme.txt +1 -0
- package/cpp/utils/RNSkLog.h +80 -0
- package/cpp/utils/RNSkMeasureTime.h +32 -0
- package/cpp/utils/RNSkTimingInfo.h +103 -0
- package/ios/RNSkia-iOS/DisplayLink.h +17 -0
- package/ios/RNSkia-iOS/DisplayLink.mm +36 -0
- package/ios/RNSkia-iOS/PlatformContext.h +76 -0
- package/ios/RNSkia-iOS/PlatformContext.mm +52 -0
- package/ios/RNSkia-iOS/RNSkDrawViewImpl.h +52 -0
- package/ios/RNSkia-iOS/RNSkDrawViewImpl.mm +112 -0
- package/ios/RNSkia-iOS/SkiaDrawView.h +23 -0
- package/ios/RNSkia-iOS/SkiaDrawView.mm +169 -0
- package/ios/RNSkia-iOS/SkiaDrawViewManager.h +7 -0
- package/ios/RNSkia-iOS/SkiaDrawViewManager.mm +42 -0
- package/ios/RNSkia-iOS/SkiaManager.h +17 -0
- package/ios/RNSkia-iOS/SkiaManager.mm +50 -0
- package/ios/RNSkiaModule.h +11 -0
- package/ios/RNSkiaModule.mm +42 -0
- package/ios/Rnskia.xcodeproj/project.pbxproj +281 -0
- package/ios/Rnskia.xcworkspace/contents.xcworkspacedata +7 -0
- package/jestSetup.js +5 -0
- package/lib/commonjs/animation/decay/decay.js +42 -0
- package/lib/commonjs/animation/decay/decay.js.map +1 -0
- package/lib/commonjs/animation/decay/index.js +14 -0
- package/lib/commonjs/animation/decay/index.js.map +1 -0
- package/lib/commonjs/animation/decay/runDecay.js +48 -0
- package/lib/commonjs/animation/decay/runDecay.js.map +1 -0
- package/lib/commonjs/animation/decay/types.js +6 -0
- package/lib/commonjs/animation/decay/types.js.map +1 -0
- package/lib/commonjs/animation/functions/index.js +58 -0
- package/lib/commonjs/animation/functions/index.js.map +1 -0
- package/lib/commonjs/animation/functions/interpolate.js +142 -0
- package/lib/commonjs/animation/functions/interpolate.js.map +1 -0
- package/lib/commonjs/animation/functions/interpolateColors.js +39 -0
- package/lib/commonjs/animation/functions/interpolateColors.js.map +1 -0
- package/lib/commonjs/animation/functions/interpolatePaths.js +79 -0
- package/lib/commonjs/animation/functions/interpolatePaths.js.map +1 -0
- package/lib/commonjs/animation/functions/interpolateVector.js +20 -0
- package/lib/commonjs/animation/functions/interpolateVector.js.map +1 -0
- package/lib/commonjs/animation/index.js +58 -0
- package/lib/commonjs/animation/index.js.map +1 -0
- package/lib/commonjs/animation/spring/Spring.js +77 -0
- package/lib/commonjs/animation/spring/Spring.js.map +1 -0
- package/lib/commonjs/animation/spring/functions/index.js +14 -0
- package/lib/commonjs/animation/spring/functions/index.js.map +1 -0
- package/lib/commonjs/animation/spring/functions/spring.js +94 -0
- package/lib/commonjs/animation/spring/functions/spring.js.map +1 -0
- package/lib/commonjs/animation/spring/index.js +30 -0
- package/lib/commonjs/animation/spring/index.js.map +1 -0
- package/lib/commonjs/animation/spring/runSpring.js +32 -0
- package/lib/commonjs/animation/spring/runSpring.js.map +1 -0
- package/lib/commonjs/animation/spring/types.js +2 -0
- package/lib/commonjs/animation/spring/types.js.map +1 -0
- package/lib/commonjs/animation/spring/useSpring.js +24 -0
- package/lib/commonjs/animation/spring/useSpring.js.map +1 -0
- package/lib/commonjs/animation/timing/Easing.js +108 -0
- package/lib/commonjs/animation/timing/Easing.js.map +1 -0
- package/lib/commonjs/animation/timing/createTiming.js +59 -0
- package/lib/commonjs/animation/timing/createTiming.js.map +1 -0
- package/lib/commonjs/animation/timing/functions/bezier.js +147 -0
- package/lib/commonjs/animation/timing/functions/bezier.js.map +1 -0
- package/lib/commonjs/animation/timing/functions/getResolvedParams.js +56 -0
- package/lib/commonjs/animation/timing/functions/getResolvedParams.js.map +1 -0
- package/lib/commonjs/animation/timing/functions/index.js +54 -0
- package/lib/commonjs/animation/timing/functions/index.js.map +1 -0
- package/lib/commonjs/animation/timing/functions/timing.js +50 -0
- package/lib/commonjs/animation/timing/functions/timing.js.map +1 -0
- package/lib/commonjs/animation/timing/functions/types.js +2 -0
- package/lib/commonjs/animation/timing/functions/types.js.map +1 -0
- package/lib/commonjs/animation/timing/index.js +38 -0
- package/lib/commonjs/animation/timing/index.js.map +1 -0
- package/lib/commonjs/animation/timing/runTiming.js +33 -0
- package/lib/commonjs/animation/timing/runTiming.js.map +1 -0
- package/lib/commonjs/animation/timing/useLoop.js +22 -0
- package/lib/commonjs/animation/timing/useLoop.js.map +1 -0
- package/lib/commonjs/animation/timing/useTiming.js +66 -0
- package/lib/commonjs/animation/timing/useTiming.js.map +1 -0
- package/lib/commonjs/animation/types.js +2 -0
- package/lib/commonjs/animation/types.js.map +1 -0
- package/lib/commonjs/external/index.js +19 -0
- package/lib/commonjs/external/index.js.map +1 -0
- package/lib/commonjs/external/reanimated/index.js +19 -0
- package/lib/commonjs/external/reanimated/index.js.map +1 -0
- package/lib/commonjs/external/reanimated/useSharedValueEffect.js +86 -0
- package/lib/commonjs/external/reanimated/useSharedValueEffect.js.map +1 -0
- package/lib/commonjs/index.js +99 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/mock/index.js +134 -0
- package/lib/commonjs/mock/index.js.map +1 -0
- package/lib/commonjs/renderer/Canvas.js +163 -0
- package/lib/commonjs/renderer/Canvas.js.map +1 -0
- package/lib/commonjs/renderer/DependencyManager.js +70 -0
- package/lib/commonjs/renderer/DependencyManager.js.map +1 -0
- package/lib/commonjs/renderer/DrawingContext.js +6 -0
- package/lib/commonjs/renderer/DrawingContext.js.map +1 -0
- package/lib/commonjs/renderer/HostConfig.js +250 -0
- package/lib/commonjs/renderer/HostConfig.js.map +1 -0
- package/lib/commonjs/renderer/components/Blend.js +47 -0
- package/lib/commonjs/renderer/components/Blend.js.map +1 -0
- package/lib/commonjs/renderer/components/Compose.js +40 -0
- package/lib/commonjs/renderer/components/Compose.js.map +1 -0
- package/lib/commonjs/renderer/components/Drawing.js +31 -0
- package/lib/commonjs/renderer/components/Drawing.js.map +1 -0
- package/lib/commonjs/renderer/components/Group.js +85 -0
- package/lib/commonjs/renderer/components/Group.js.map +1 -0
- package/lib/commonjs/renderer/components/Mask.js +61 -0
- package/lib/commonjs/renderer/components/Mask.js.map +1 -0
- package/lib/commonjs/renderer/components/Paint.js +37 -0
- package/lib/commonjs/renderer/components/Paint.js.map +1 -0
- package/lib/commonjs/renderer/components/Picture.js +35 -0
- package/lib/commonjs/renderer/components/Picture.js.map +1 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js +33 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropBlur.js.map +1 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js +54 -0
- package/lib/commonjs/renderer/components/backdrop/BackdropFilter.js.map +1 -0
- package/lib/commonjs/renderer/components/backdrop/index.js +32 -0
- package/lib/commonjs/renderer/components/backdrop/index.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/BlendColor.js +41 -0
- package/lib/commonjs/renderer/components/colorFilters/BlendColor.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/Compose.js +24 -0
- package/lib/commonjs/renderer/components/colorFilters/Compose.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/Lerp.js +39 -0
- package/lib/commonjs/renderer/components/colorFilters/Lerp.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js +33 -0
- package/lib/commonjs/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js +33 -0
- package/lib/commonjs/renderer/components/colorFilters/LumaColorFilter.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/Matrix.js +40 -0
- package/lib/commonjs/renderer/components/colorFilters/Matrix.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js +33 -0
- package/lib/commonjs/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -0
- package/lib/commonjs/renderer/components/colorFilters/index.js +84 -0
- package/lib/commonjs/renderer/components/colorFilters/index.js.map +1 -0
- package/lib/commonjs/renderer/components/image/BoxFit.js +160 -0
- package/lib/commonjs/renderer/components/image/BoxFit.js.map +1 -0
- package/lib/commonjs/renderer/components/image/Image.js +56 -0
- package/lib/commonjs/renderer/components/image/Image.js.map +1 -0
- package/lib/commonjs/renderer/components/image/ImageSVG.js +46 -0
- package/lib/commonjs/renderer/components/image/ImageSVG.js.map +1 -0
- package/lib/commonjs/renderer/components/image/ImageShader.js +85 -0
- package/lib/commonjs/renderer/components/image/ImageShader.js.map +1 -0
- package/lib/commonjs/renderer/components/image/index.js +58 -0
- package/lib/commonjs/renderer/components/image/index.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/Blur.js +46 -0
- package/lib/commonjs/renderer/components/imageFilters/Blur.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js +54 -0
- package/lib/commonjs/renderer/components/imageFilters/DisplacementMap.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js +28 -0
- package/lib/commonjs/renderer/components/imageFilters/InnerShadow.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/Morphology.js +44 -0
- package/lib/commonjs/renderer/components/imageFilters/Morphology.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/Offset.js +40 -0
- package/lib/commonjs/renderer/components/imageFilters/Offset.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js +44 -0
- package/lib/commonjs/renderer/components/imageFilters/RuntimeShader.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/Shadow.js +55 -0
- package/lib/commonjs/renderer/components/imageFilters/Shadow.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/getInput.js +33 -0
- package/lib/commonjs/renderer/components/imageFilters/getInput.js.map +1 -0
- package/lib/commonjs/renderer/components/imageFilters/index.js +84 -0
- package/lib/commonjs/renderer/components/imageFilters/index.js.map +1 -0
- package/lib/commonjs/renderer/components/index.js +227 -0
- package/lib/commonjs/renderer/components/index.js.map +1 -0
- package/lib/commonjs/renderer/components/maskFilters/Blur.js +43 -0
- package/lib/commonjs/renderer/components/maskFilters/Blur.js.map +1 -0
- package/lib/commonjs/renderer/components/maskFilters/index.js +19 -0
- package/lib/commonjs/renderer/components/maskFilters/index.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Corner.js +46 -0
- package/lib/commonjs/renderer/components/pathEffects/Corner.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Dash.js +43 -0
- package/lib/commonjs/renderer/components/pathEffects/Dash.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Discrete.js +47 -0
- package/lib/commonjs/renderer/components/pathEffects/Discrete.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Line2D.js +47 -0
- package/lib/commonjs/renderer/components/pathEffects/Line2D.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Path1D.js +53 -0
- package/lib/commonjs/renderer/components/pathEffects/Path1D.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Path2D.js +49 -0
- package/lib/commonjs/renderer/components/pathEffects/Path2D.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/Sum.js +33 -0
- package/lib/commonjs/renderer/components/pathEffects/Sum.js.map +1 -0
- package/lib/commonjs/renderer/components/pathEffects/index.js +97 -0
- package/lib/commonjs/renderer/components/pathEffects/index.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/Color.js +35 -0
- package/lib/commonjs/renderer/components/shaders/Color.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/FractalNoise.js +43 -0
- package/lib/commonjs/renderer/components/shaders/FractalNoise.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/Gradient.js +32 -0
- package/lib/commonjs/renderer/components/shaders/Gradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/LinearGradient.js +44 -0
- package/lib/commonjs/renderer/components/shaders/LinearGradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/RadialGradient.js +44 -0
- package/lib/commonjs/renderer/components/shaders/RadialGradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/Shader.js +42 -0
- package/lib/commonjs/renderer/components/shaders/Shader.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/ShaderLib.js +52 -0
- package/lib/commonjs/renderer/components/shaders/ShaderLib.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/SweepGradient.js +45 -0
- package/lib/commonjs/renderer/components/shaders/SweepGradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/Turbulence.js +43 -0
- package/lib/commonjs/renderer/components/shaders/Turbulence.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js +46 -0
- package/lib/commonjs/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -0
- package/lib/commonjs/renderer/components/shaders/index.js +123 -0
- package/lib/commonjs/renderer/components/shaders/index.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Box.js +123 -0
- package/lib/commonjs/renderer/components/shapes/Box.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Circle.js +44 -0
- package/lib/commonjs/renderer/components/shapes/Circle.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/DiffRect.js +35 -0
- package/lib/commonjs/renderer/components/shapes/DiffRect.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Fill.js +31 -0
- package/lib/commonjs/renderer/components/shapes/Fill.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/FitBox.js +42 -0
- package/lib/commonjs/renderer/components/shapes/FitBox.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Line.js +35 -0
- package/lib/commonjs/renderer/components/shapes/Line.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Oval.js +39 -0
- package/lib/commonjs/renderer/components/shapes/Oval.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Patch.js +53 -0
- package/lib/commonjs/renderer/components/shapes/Patch.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Path.js +67 -0
- package/lib/commonjs/renderer/components/shapes/Path.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Points.js +45 -0
- package/lib/commonjs/renderer/components/shapes/Points.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Rect.js +35 -0
- package/lib/commonjs/renderer/components/shapes/Rect.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/RoundedRect.js +38 -0
- package/lib/commonjs/renderer/components/shapes/RoundedRect.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/Vertices.js +55 -0
- package/lib/commonjs/renderer/components/shapes/Vertices.js.map +1 -0
- package/lib/commonjs/renderer/components/shapes/index.js +175 -0
- package/lib/commonjs/renderer/components/shapes/index.js.map +1 -0
- package/lib/commonjs/renderer/components/text/Glyphs.js +61 -0
- package/lib/commonjs/renderer/components/text/Glyphs.js.map +1 -0
- package/lib/commonjs/renderer/components/text/Text.js +46 -0
- package/lib/commonjs/renderer/components/text/Text.js.map +1 -0
- package/lib/commonjs/renderer/components/text/TextBlob.js +40 -0
- package/lib/commonjs/renderer/components/text/TextBlob.js.map +1 -0
- package/lib/commonjs/renderer/components/text/TextPath.js +91 -0
- package/lib/commonjs/renderer/components/text/TextPath.js.map +1 -0
- package/lib/commonjs/renderer/components/text/index.js +58 -0
- package/lib/commonjs/renderer/components/text/index.js.map +1 -0
- package/lib/commonjs/renderer/index.js +71 -0
- package/lib/commonjs/renderer/index.js.map +1 -0
- package/lib/commonjs/renderer/nodes/Container.js +28 -0
- package/lib/commonjs/renderer/nodes/Container.js.map +1 -0
- package/lib/commonjs/renderer/nodes/Declaration.js +58 -0
- package/lib/commonjs/renderer/nodes/Declaration.js.map +1 -0
- package/lib/commonjs/renderer/nodes/Drawing.js +60 -0
- package/lib/commonjs/renderer/nodes/Drawing.js.map +1 -0
- package/lib/commonjs/renderer/nodes/Node.js +71 -0
- package/lib/commonjs/renderer/nodes/Node.js.map +1 -0
- package/lib/commonjs/renderer/nodes/index.js +58 -0
- package/lib/commonjs/renderer/nodes/index.js.map +1 -0
- package/lib/commonjs/renderer/processors/Animations/Animations.js +52 -0
- package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -0
- package/lib/commonjs/renderer/processors/Animations/index.js +19 -0
- package/lib/commonjs/renderer/processors/Animations/index.js.map +1 -0
- package/lib/commonjs/renderer/processors/Circles.js +24 -0
- package/lib/commonjs/renderer/processors/Circles.js.map +1 -0
- package/lib/commonjs/renderer/processors/Clips.js +24 -0
- package/lib/commonjs/renderer/processors/Clips.js.map +1 -0
- package/lib/commonjs/renderer/processors/Color.js +27 -0
- package/lib/commonjs/renderer/processors/Color.js.map +1 -0
- package/lib/commonjs/renderer/processors/Font.js +39 -0
- package/lib/commonjs/renderer/processors/Font.js.map +1 -0
- package/lib/commonjs/renderer/processors/Paint.js +98 -0
- package/lib/commonjs/renderer/processors/Paint.js.map +1 -0
- package/lib/commonjs/renderer/processors/Paths.js +26 -0
- package/lib/commonjs/renderer/processors/Paths.js.map +1 -0
- package/lib/commonjs/renderer/processors/Radius.js +17 -0
- package/lib/commonjs/renderer/processors/Radius.js.map +1 -0
- package/lib/commonjs/renderer/processors/Rects.js +41 -0
- package/lib/commonjs/renderer/processors/Rects.js.map +1 -0
- package/lib/commonjs/renderer/processors/Transform.js +65 -0
- package/lib/commonjs/renderer/processors/Transform.js.map +1 -0
- package/lib/commonjs/renderer/processors/index.js +149 -0
- package/lib/commonjs/renderer/processors/index.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/Coordinates.js +43 -0
- package/lib/commonjs/renderer/processors/math/Coordinates.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/Math.js +29 -0
- package/lib/commonjs/renderer/processors/math/Math.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/Transforms.js +22 -0
- package/lib/commonjs/renderer/processors/math/Transforms.js.map +1 -0
- package/lib/commonjs/renderer/processors/math/index.js +45 -0
- package/lib/commonjs/renderer/processors/math/index.js.map +1 -0
- package/lib/commonjs/renderer/typeddash.js +41 -0
- package/lib/commonjs/renderer/typeddash.js.map +1 -0
- package/lib/commonjs/renderer/useCanvas.js +30 -0
- package/lib/commonjs/renderer/useCanvas.js.map +1 -0
- package/lib/commonjs/renderer/useContextBridge.js +35 -0
- package/lib/commonjs/renderer/useContextBridge.js.map +1 -0
- package/lib/commonjs/skia/NativeSetup.js +19 -0
- package/lib/commonjs/skia/NativeSetup.js.map +1 -0
- package/lib/commonjs/skia/Skia.js +15 -0
- package/lib/commonjs/skia/Skia.js.map +1 -0
- package/lib/commonjs/skia/Skia.web.js +12 -0
- package/lib/commonjs/skia/Skia.web.js.map +1 -0
- package/lib/commonjs/skia/core/Data.js +69 -0
- package/lib/commonjs/skia/core/Data.js.map +1 -0
- package/lib/commonjs/skia/core/Font.js +34 -0
- package/lib/commonjs/skia/core/Font.js.map +1 -0
- package/lib/commonjs/skia/core/Image.js +18 -0
- package/lib/commonjs/skia/core/Image.js.map +1 -0
- package/lib/commonjs/skia/core/Matrix.js +15 -0
- package/lib/commonjs/skia/core/Matrix.js.map +1 -0
- package/lib/commonjs/skia/core/Paint.js +28 -0
- package/lib/commonjs/skia/core/Paint.js.map +1 -0
- package/lib/commonjs/skia/core/Path.js +72 -0
- package/lib/commonjs/skia/core/Path.js.map +1 -0
- package/lib/commonjs/skia/core/Picture.js +30 -0
- package/lib/commonjs/skia/core/Picture.js.map +1 -0
- package/lib/commonjs/skia/core/RRect.js +13 -0
- package/lib/commonjs/skia/core/RRect.js.map +1 -0
- package/lib/commonjs/skia/core/Rect.js +47 -0
- package/lib/commonjs/skia/core/Rect.js.map +1 -0
- package/lib/commonjs/skia/core/SVG.js +15 -0
- package/lib/commonjs/skia/core/SVG.js.map +1 -0
- package/lib/commonjs/skia/core/Typeface.js +18 -0
- package/lib/commonjs/skia/core/Typeface.js.map +1 -0
- package/lib/commonjs/skia/core/Vector.js +49 -0
- package/lib/commonjs/skia/core/Vector.js.map +1 -0
- package/lib/commonjs/skia/core/index.js +162 -0
- package/lib/commonjs/skia/core/index.js.map +1 -0
- package/lib/commonjs/skia/index.js +45 -0
- package/lib/commonjs/skia/index.js.map +1 -0
- package/lib/commonjs/skia/types/Canvas.js +22 -0
- package/lib/commonjs/skia/types/Canvas.js.map +1 -0
- package/lib/commonjs/skia/types/Color.js +2 -0
- package/lib/commonjs/skia/types/Color.js.map +1 -0
- package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js +11 -0
- package/lib/commonjs/skia/types/ColorFilter/ColorFilter.js.map +1 -0
- package/lib/commonjs/skia/types/ColorFilter/ColorFilterFactory.js +6 -0
- package/lib/commonjs/skia/types/ColorFilter/ColorFilterFactory.js.map +1 -0
- package/lib/commonjs/skia/types/ColorFilter/index.js +32 -0
- package/lib/commonjs/skia/types/ColorFilter/index.js.map +1 -0
- package/lib/commonjs/skia/types/ContourMeasure.js +6 -0
- package/lib/commonjs/skia/types/ContourMeasure.js.map +1 -0
- package/lib/commonjs/skia/types/Data/Data.js +6 -0
- package/lib/commonjs/skia/types/Data/Data.js.map +1 -0
- package/lib/commonjs/skia/types/Data/DataFactory.js +6 -0
- package/lib/commonjs/skia/types/Data/DataFactory.js.map +1 -0
- package/lib/commonjs/skia/types/Data/index.js +32 -0
- package/lib/commonjs/skia/types/Data/index.js.map +1 -0
- package/lib/commonjs/skia/types/Font/Font.js +81 -0
- package/lib/commonjs/skia/types/Font/Font.js.map +1 -0
- package/lib/commonjs/skia/types/Font/index.js +19 -0
- package/lib/commonjs/skia/types/Font/index.js.map +1 -0
- package/lib/commonjs/skia/types/FontMgr/FontMgr.js +6 -0
- package/lib/commonjs/skia/types/FontMgr/FontMgr.js.map +1 -0
- package/lib/commonjs/skia/types/FontMgr/FontMgrFactory.js +6 -0
- package/lib/commonjs/skia/types/FontMgr/FontMgrFactory.js.map +1 -0
- package/lib/commonjs/skia/types/FontMgr/index.js +32 -0
- package/lib/commonjs/skia/types/FontMgr/index.js.map +1 -0
- package/lib/commonjs/skia/types/Image/Image.js +32 -0
- package/lib/commonjs/skia/types/Image/Image.js.map +1 -0
- package/lib/commonjs/skia/types/Image/ImageFactory.js +46 -0
- package/lib/commonjs/skia/types/Image/ImageFactory.js.map +1 -0
- package/lib/commonjs/skia/types/Image/index.js +32 -0
- package/lib/commonjs/skia/types/Image/index.js.map +1 -0
- package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js +20 -0
- package/lib/commonjs/skia/types/ImageFilter/ImageFilter.js.map +1 -0
- package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js +16 -0
- package/lib/commonjs/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -0
- package/lib/commonjs/skia/types/ImageFilter/index.js +32 -0
- package/lib/commonjs/skia/types/ImageFilter/index.js.map +1 -0
- package/lib/commonjs/skia/types/JsiInstance.js +2 -0
- package/lib/commonjs/skia/types/JsiInstance.js.map +1 -0
- package/lib/commonjs/skia/types/MaskFilter.js +20 -0
- package/lib/commonjs/skia/types/MaskFilter.js.map +1 -0
- package/lib/commonjs/skia/types/Matrix.js +78 -0
- package/lib/commonjs/skia/types/Matrix.js.map +1 -0
- package/lib/commonjs/skia/types/Paint/BlendMode.js +69 -0
- package/lib/commonjs/skia/types/Paint/BlendMode.js.map +1 -0
- package/lib/commonjs/skia/types/Paint/Paint.js +36 -0
- package/lib/commonjs/skia/types/Paint/Paint.js.map +1 -0
- package/lib/commonjs/skia/types/Paint/index.js +32 -0
- package/lib/commonjs/skia/types/Paint/index.js.map +1 -0
- package/lib/commonjs/skia/types/Path/Path.js +47 -0
- package/lib/commonjs/skia/types/Path/Path.js.map +1 -0
- package/lib/commonjs/skia/types/Path/PathFactory.js +6 -0
- package/lib/commonjs/skia/types/Path/PathFactory.js.map +1 -0
- package/lib/commonjs/skia/types/Path/index.js +32 -0
- package/lib/commonjs/skia/types/Path/index.js.map +1 -0
- package/lib/commonjs/skia/types/PathEffect.js +19 -0
- package/lib/commonjs/skia/types/PathEffect.js.map +1 -0
- package/lib/commonjs/skia/types/Picture/Picture.js +6 -0
- package/lib/commonjs/skia/types/Picture/Picture.js.map +1 -0
- package/lib/commonjs/skia/types/Picture/PictureFactory.js +6 -0
- package/lib/commonjs/skia/types/Picture/PictureFactory.js.map +1 -0
- package/lib/commonjs/skia/types/Picture/PictureRecorder.js +6 -0
- package/lib/commonjs/skia/types/Picture/PictureRecorder.js.map +1 -0
- package/lib/commonjs/skia/types/Picture/index.js +45 -0
- package/lib/commonjs/skia/types/Picture/index.js.map +1 -0
- package/lib/commonjs/skia/types/Point.js +15 -0
- package/lib/commonjs/skia/types/Point.js.map +1 -0
- package/lib/commonjs/skia/types/RRect.js +13 -0
- package/lib/commonjs/skia/types/RRect.js.map +1 -0
- package/lib/commonjs/skia/types/RSXform.js +6 -0
- package/lib/commonjs/skia/types/RSXform.js.map +1 -0
- package/lib/commonjs/skia/types/Rect.js +2 -0
- package/lib/commonjs/skia/types/Rect.js.map +1 -0
- package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffect.js +6 -0
- package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffect.js.map +1 -0
- package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffectFactory.js +6 -0
- package/lib/commonjs/skia/types/RuntimeEffect/RuntimeEffectFactory.js.map +1 -0
- package/lib/commonjs/skia/types/RuntimeEffect/index.js +32 -0
- package/lib/commonjs/skia/types/RuntimeEffect/index.js.map +1 -0
- package/lib/commonjs/skia/types/SVG/SVG.js +6 -0
- package/lib/commonjs/skia/types/SVG/SVG.js.map +1 -0
- package/lib/commonjs/skia/types/SVG/SVGFactory.js +6 -0
- package/lib/commonjs/skia/types/SVG/SVGFactory.js.map +1 -0
- package/lib/commonjs/skia/types/SVG/index.js +32 -0
- package/lib/commonjs/skia/types/SVG/index.js.map +1 -0
- package/lib/commonjs/skia/types/Shader/Shader.js +55 -0
- package/lib/commonjs/skia/types/Shader/Shader.js.map +1 -0
- package/lib/commonjs/skia/types/Shader/ShaderFactory.js +6 -0
- package/lib/commonjs/skia/types/Shader/ShaderFactory.js.map +1 -0
- package/lib/commonjs/skia/types/Shader/index.js +32 -0
- package/lib/commonjs/skia/types/Shader/index.js.map +1 -0
- package/lib/commonjs/skia/types/Skia.js +6 -0
- package/lib/commonjs/skia/types/Skia.js.map +1 -0
- package/lib/commonjs/skia/types/Surface/Surface.js +6 -0
- package/lib/commonjs/skia/types/Surface/Surface.js.map +1 -0
- package/lib/commonjs/skia/types/Surface/SurfaceFactory.js +6 -0
- package/lib/commonjs/skia/types/Surface/SurfaceFactory.js.map +1 -0
- package/lib/commonjs/skia/types/Surface/index.js +32 -0
- package/lib/commonjs/skia/types/Surface/index.js.map +1 -0
- package/lib/commonjs/skia/types/TextBlob.js +6 -0
- package/lib/commonjs/skia/types/TextBlob.js.map +1 -0
- package/lib/commonjs/skia/types/Typeface/Typeface.js +6 -0
- package/lib/commonjs/skia/types/Typeface/Typeface.js.map +1 -0
- package/lib/commonjs/skia/types/Typeface/TypefaceFactory.js +6 -0
- package/lib/commonjs/skia/types/Typeface/TypefaceFactory.js.map +1 -0
- package/lib/commonjs/skia/types/Typeface/index.js +32 -0
- package/lib/commonjs/skia/types/Typeface/index.js.map +1 -0
- package/lib/commonjs/skia/types/Vertices/Vertices.js +15 -0
- package/lib/commonjs/skia/types/Vertices/Vertices.js.map +1 -0
- package/lib/commonjs/skia/types/Vertices/index.js +19 -0
- package/lib/commonjs/skia/types/Vertices/index.js.map +1 -0
- package/lib/commonjs/skia/types/index.js +370 -0
- package/lib/commonjs/skia/types/index.js.map +1 -0
- package/lib/commonjs/skia/web/Host.js +75 -0
- package/lib/commonjs/skia/web/Host.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkCanvas.js +184 -0
- package/lib/commonjs/skia/web/JsiSkCanvas.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkColor.js +339 -0
- package/lib/commonjs/skia/web/JsiSkColor.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkColorFilter.js +18 -0
- package/lib/commonjs/skia/web/JsiSkColorFilter.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js +48 -0
- package/lib/commonjs/skia/web/JsiSkColorFilterFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkContourMeasure.js +42 -0
- package/lib/commonjs/skia/web/JsiSkContourMeasure.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js +30 -0
- package/lib/commonjs/skia/web/JsiSkContourMeasureIter.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkData.js +18 -0
- package/lib/commonjs/skia/web/JsiSkData.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkDataFactory.js +44 -0
- package/lib/commonjs/skia/web/JsiSkDataFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkFont.js +119 -0
- package/lib/commonjs/skia/web/JsiSkFont.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkFontMgr.js +33 -0
- package/lib/commonjs/skia/web/JsiSkFontMgr.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js +25 -0
- package/lib/commonjs/skia/web/JsiSkFontMgrFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkImage.js +60 -0
- package/lib/commonjs/skia/web/JsiSkImage.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkImageFactory.js +47 -0
- package/lib/commonjs/skia/web/JsiSkImageFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkImageFilter.js +18 -0
- package/lib/commonjs/skia/web/JsiSkImageFilter.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js +68 -0
- package/lib/commonjs/skia/web/JsiSkImageFilterFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkMaskFilter.js +18 -0
- package/lib/commonjs/skia/web/JsiSkMaskFilter.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js +24 -0
- package/lib/commonjs/skia/web/JsiSkMaskFilterFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkMatrix.js +38 -0
- package/lib/commonjs/skia/web/JsiSkMatrix.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPaint.js +101 -0
- package/lib/commonjs/skia/web/JsiSkPaint.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPath.js +337 -0
- package/lib/commonjs/skia/web/JsiSkPath.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPathEffect.js +18 -0
- package/lib/commonjs/skia/web/JsiSkPathEffect.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js +78 -0
- package/lib/commonjs/skia/web/JsiSkPathEffectFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPathFactory.js +58 -0
- package/lib/commonjs/skia/web/JsiSkPathFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPicture.js +29 -0
- package/lib/commonjs/skia/web/JsiSkPicture.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPictureFactory.js +30 -0
- package/lib/commonjs/skia/web/JsiSkPictureFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPictureRecorder.js +30 -0
- package/lib/commonjs/skia/web/JsiSkPictureRecorder.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkPoint.js +26 -0
- package/lib/commonjs/skia/web/JsiSkPoint.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkRRect.js +32 -0
- package/lib/commonjs/skia/web/JsiSkRRect.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkRSXform.js +18 -0
- package/lib/commonjs/skia/web/JsiSkRSXform.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkRect.js +42 -0
- package/lib/commonjs/skia/web/JsiSkRect.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js +44 -0
- package/lib/commonjs/skia/web/JsiSkRuntimeEffect.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js +30 -0
- package/lib/commonjs/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkSVGFactory.js +26 -0
- package/lib/commonjs/skia/web/JsiSkSVGFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkShader.js +18 -0
- package/lib/commonjs/skia/web/JsiSkShader.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkShaderFactory.js +52 -0
- package/lib/commonjs/skia/web/JsiSkShaderFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkSurface.js +31 -0
- package/lib/commonjs/skia/web/JsiSkSurface.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js +30 -0
- package/lib/commonjs/skia/web/JsiSkSurfaceFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkTextBlob.js +18 -0
- package/lib/commonjs/skia/web/JsiSkTextBlob.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js +36 -0
- package/lib/commonjs/skia/web/JsiSkTextBlobFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkTypeface.js +28 -0
- package/lib/commonjs/skia/web/JsiSkTypeface.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js +30 -0
- package/lib/commonjs/skia/web/JsiSkTypefaceFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkVertices.js +28 -0
- package/lib/commonjs/skia/web/JsiSkVertices.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkVerticesFactory.js +49 -0
- package/lib/commonjs/skia/web/JsiSkVerticesFactory.js.map +1 -0
- package/lib/commonjs/skia/web/JsiSkia.js +97 -0
- package/lib/commonjs/skia/web/JsiSkia.js.map +1 -0
- package/lib/commonjs/skia/web/index.js +19 -0
- package/lib/commonjs/skia/web/index.js.map +1 -0
- package/lib/commonjs/values/api.js +12 -0
- package/lib/commonjs/values/api.js.map +1 -0
- package/lib/commonjs/values/api.web.js +18 -0
- package/lib/commonjs/values/api.web.js.map +1 -0
- package/lib/commonjs/values/hooks/index.js +58 -0
- package/lib/commonjs/values/hooks/index.js.map +1 -0
- package/lib/commonjs/values/hooks/useClockValue.js +27 -0
- package/lib/commonjs/values/hooks/useClockValue.js.map +1 -0
- package/lib/commonjs/values/hooks/useComputedValue.js +32 -0
- package/lib/commonjs/values/hooks/useComputedValue.js.map +1 -0
- package/lib/commonjs/values/hooks/useValue.js +23 -0
- package/lib/commonjs/values/hooks/useValue.js.map +1 -0
- package/lib/commonjs/values/hooks/useValueEffect.js +22 -0
- package/lib/commonjs/values/hooks/useValueEffect.js.map +1 -0
- package/lib/commonjs/values/index.js +45 -0
- package/lib/commonjs/values/index.js.map +1 -0
- package/lib/commonjs/values/types.js +2 -0
- package/lib/commonjs/values/types.js.map +1 -0
- package/lib/commonjs/values/web/RNSkAnimation.js +46 -0
- package/lib/commonjs/values/web/RNSkAnimation.js.map +1 -0
- package/lib/commonjs/values/web/RNSkClockValue.js +75 -0
- package/lib/commonjs/values/web/RNSkClockValue.js.map +1 -0
- package/lib/commonjs/values/web/RNSkComputedValue.js +51 -0
- package/lib/commonjs/values/web/RNSkComputedValue.js.map +1 -0
- package/lib/commonjs/values/web/RNSkReadonlyValue.js +45 -0
- package/lib/commonjs/values/web/RNSkReadonlyValue.js.map +1 -0
- package/lib/commonjs/values/web/RNSkValue.js +73 -0
- package/lib/commonjs/values/web/RNSkValue.js.map +1 -0
- package/lib/commonjs/values/web/api.js +31 -0
- package/lib/commonjs/values/web/api.js.map +1 -0
- package/lib/commonjs/values/web/index.js +19 -0
- package/lib/commonjs/values/web/index.js.map +1 -0
- package/lib/commonjs/views/SkiaView.js +128 -0
- package/lib/commonjs/views/SkiaView.js.map +1 -0
- package/lib/commonjs/views/SkiaView.web.js +216 -0
- package/lib/commonjs/views/SkiaView.web.js.map +1 -0
- package/lib/commonjs/views/api.js +11 -0
- package/lib/commonjs/views/api.js.map +1 -0
- package/lib/commonjs/views/index.js +58 -0
- package/lib/commonjs/views/index.js.map +1 -0
- package/lib/commonjs/views/types.js +16 -0
- package/lib/commonjs/views/types.js.map +1 -0
- package/lib/commonjs/views/useDrawCallback.js +23 -0
- package/lib/commonjs/views/useDrawCallback.js.map +1 -0
- package/lib/commonjs/views/useTouchHandler.js +99 -0
- package/lib/commonjs/views/useTouchHandler.js.map +1 -0
- package/lib/commonjs/web/index.js +22 -0
- package/lib/commonjs/web/index.js.map +1 -0
- package/lib/module/animation/decay/decay.js +33 -0
- package/lib/module/animation/decay/decay.js.map +1 -0
- package/lib/module/animation/decay/index.js +2 -0
- package/lib/module/animation/decay/index.js.map +1 -0
- package/lib/module/animation/decay/runDecay.js +38 -0
- package/lib/module/animation/decay/runDecay.js.map +1 -0
- package/lib/module/animation/decay/types.js +2 -0
- package/lib/module/animation/decay/types.js.map +1 -0
- package/lib/module/animation/functions/index.js +5 -0
- package/lib/module/animation/functions/index.js.map +1 -0
- package/lib/module/animation/functions/interpolate.js +132 -0
- package/lib/module/animation/functions/interpolate.js.map +1 -0
- package/lib/module/animation/functions/interpolateColors.js +23 -0
- package/lib/module/animation/functions/interpolateColors.js.map +1 -0
- package/lib/module/animation/functions/interpolatePaths.js +69 -0
- package/lib/module/animation/functions/interpolatePaths.js.map +1 -0
- package/lib/module/animation/functions/interpolateVector.js +7 -0
- package/lib/module/animation/functions/interpolateVector.js.map +1 -0
- package/lib/module/animation/index.js +5 -0
- package/lib/module/animation/index.js.map +1 -0
- package/lib/module/animation/spring/Spring.js +69 -0
- package/lib/module/animation/spring/Spring.js.map +1 -0
- package/lib/module/animation/spring/functions/index.js +2 -0
- package/lib/module/animation/spring/functions/index.js.map +1 -0
- package/lib/module/animation/spring/functions/spring.js +85 -0
- package/lib/module/animation/spring/functions/spring.js.map +1 -0
- package/lib/module/animation/spring/index.js +4 -0
- package/lib/module/animation/spring/index.js.map +1 -0
- package/lib/module/animation/spring/runSpring.js +21 -0
- package/lib/module/animation/spring/runSpring.js.map +1 -0
- package/lib/module/animation/spring/types.js +2 -0
- package/lib/module/animation/spring/types.js.map +1 -0
- package/lib/module/animation/spring/useSpring.js +13 -0
- package/lib/module/animation/spring/useSpring.js.map +1 -0
- package/lib/module/animation/timing/Easing.js +98 -0
- package/lib/module/animation/timing/Easing.js.map +1 -0
- package/lib/module/animation/timing/createTiming.js +49 -0
- package/lib/module/animation/timing/createTiming.js.map +1 -0
- package/lib/module/animation/timing/functions/bezier.js +141 -0
- package/lib/module/animation/timing/functions/bezier.js.map +1 -0
- package/lib/module/animation/timing/functions/getResolvedParams.js +48 -0
- package/lib/module/animation/timing/functions/getResolvedParams.js.map +1 -0
- package/lib/module/animation/timing/functions/index.js +5 -0
- package/lib/module/animation/timing/functions/index.js.map +1 -0
- package/lib/module/animation/timing/functions/timing.js +41 -0
- package/lib/module/animation/timing/functions/timing.js.map +1 -0
- package/lib/module/animation/timing/functions/types.js +2 -0
- package/lib/module/animation/timing/functions/types.js.map +1 -0
- package/lib/module/animation/timing/index.js +5 -0
- package/lib/module/animation/timing/index.js.map +1 -0
- package/lib/module/animation/timing/runTiming.js +23 -0
- package/lib/module/animation/timing/runTiming.js.map +1 -0
- package/lib/module/animation/timing/useLoop.js +13 -0
- package/lib/module/animation/timing/useLoop.js.map +1 -0
- package/lib/module/animation/timing/useTiming.js +54 -0
- package/lib/module/animation/timing/useTiming.js.map +1 -0
- package/lib/module/animation/types.js +2 -0
- package/lib/module/animation/types.js.map +1 -0
- package/lib/module/external/index.js +2 -0
- package/lib/module/external/index.js.map +1 -0
- package/lib/module/external/reanimated/index.js +2 -0
- package/lib/module/external/reanimated/index.js.map +1 -0
- package/lib/module/external/reanimated/useSharedValueEffect.js +81 -0
- package/lib/module/external/reanimated/useSharedValueEffect.js.map +1 -0
- package/lib/module/index.js +9 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/mock/index.js +108 -0
- package/lib/module/mock/index.js.map +1 -0
- package/lib/module/renderer/Canvas.js +131 -0
- package/lib/module/renderer/Canvas.js.map +1 -0
- package/lib/module/renderer/DependencyManager.js +60 -0
- package/lib/module/renderer/DependencyManager.js.map +1 -0
- package/lib/module/renderer/DrawingContext.js +2 -0
- package/lib/module/renderer/DrawingContext.js.map +1 -0
- package/lib/module/renderer/HostConfig.js +237 -0
- package/lib/module/renderer/HostConfig.js.map +1 -0
- package/lib/module/renderer/components/Blend.js +30 -0
- package/lib/module/renderer/components/Blend.js.map +1 -0
- package/lib/module/renderer/components/Compose.js +25 -0
- package/lib/module/renderer/components/Compose.js.map +1 -0
- package/lib/module/renderer/components/Drawing.js +17 -0
- package/lib/module/renderer/components/Drawing.js.map +1 -0
- package/lib/module/renderer/components/Group.js +69 -0
- package/lib/module/renderer/components/Group.js.map +1 -0
- package/lib/module/renderer/components/Mask.js +44 -0
- package/lib/module/renderer/components/Mask.js.map +1 -0
- package/lib/module/renderer/components/Paint.js +19 -0
- package/lib/module/renderer/components/Paint.js.map +1 -0
- package/lib/module/renderer/components/Picture.js +21 -0
- package/lib/module/renderer/components/Picture.js.map +1 -0
- package/lib/module/renderer/components/backdrop/BackdropBlur.js +19 -0
- package/lib/module/renderer/components/backdrop/BackdropBlur.js.map +1 -0
- package/lib/module/renderer/components/backdrop/BackdropFilter.js +39 -0
- package/lib/module/renderer/components/backdrop/BackdropFilter.js.map +1 -0
- package/lib/module/renderer/components/backdrop/index.js +3 -0
- package/lib/module/renderer/components/backdrop/index.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/BlendColor.js +24 -0
- package/lib/module/renderer/components/colorFilters/BlendColor.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/Compose.js +14 -0
- package/lib/module/renderer/components/colorFilters/Compose.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/Lerp.js +23 -0
- package/lib/module/renderer/components/colorFilters/Lerp.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js +19 -0
- package/lib/module/renderer/components/colorFilters/LinearToSRGBGamma.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/LumaColorFilter.js +19 -0
- package/lib/module/renderer/components/colorFilters/LumaColorFilter.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/Matrix.js +22 -0
- package/lib/module/renderer/components/colorFilters/Matrix.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js +19 -0
- package/lib/module/renderer/components/colorFilters/SRGBToLinearGamma.js.map +1 -0
- package/lib/module/renderer/components/colorFilters/index.js +7 -0
- package/lib/module/renderer/components/colorFilters/index.js.map +1 -0
- package/lib/module/renderer/components/image/BoxFit.js +144 -0
- package/lib/module/renderer/components/image/BoxFit.js.map +1 -0
- package/lib/module/renderer/components/image/Image.js +40 -0
- package/lib/module/renderer/components/image/Image.js.map +1 -0
- package/lib/module/renderer/components/image/ImageSVG.js +31 -0
- package/lib/module/renderer/components/image/ImageSVG.js.map +1 -0
- package/lib/module/renderer/components/image/ImageShader.js +69 -0
- package/lib/module/renderer/components/image/ImageShader.js.map +1 -0
- package/lib/module/renderer/components/image/index.js +5 -0
- package/lib/module/renderer/components/image/index.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/Blur.js +28 -0
- package/lib/module/renderer/components/imageFilters/Blur.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/DisplacementMap.js +34 -0
- package/lib/module/renderer/components/imageFilters/DisplacementMap.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/InnerShadow.js +17 -0
- package/lib/module/renderer/components/imageFilters/InnerShadow.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/Morphology.js +28 -0
- package/lib/module/renderer/components/imageFilters/Morphology.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/Offset.js +25 -0
- package/lib/module/renderer/components/imageFilters/Offset.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/RuntimeShader.js +28 -0
- package/lib/module/renderer/components/imageFilters/RuntimeShader.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/Shadow.js +38 -0
- package/lib/module/renderer/components/imageFilters/Shadow.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/getInput.js +23 -0
- package/lib/module/renderer/components/imageFilters/getInput.js.map +1 -0
- package/lib/module/renderer/components/imageFilters/index.js +7 -0
- package/lib/module/renderer/components/imageFilters/index.js.map +1 -0
- package/lib/module/renderer/components/index.js +18 -0
- package/lib/module/renderer/components/index.js.map +1 -0
- package/lib/module/renderer/components/maskFilters/Blur.js +27 -0
- package/lib/module/renderer/components/maskFilters/Blur.js.map +1 -0
- package/lib/module/renderer/components/maskFilters/index.js +2 -0
- package/lib/module/renderer/components/maskFilters/index.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Corner.js +31 -0
- package/lib/module/renderer/components/pathEffects/Corner.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Dash.js +28 -0
- package/lib/module/renderer/components/pathEffects/Dash.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Discrete.js +32 -0
- package/lib/module/renderer/components/pathEffects/Discrete.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Line2D.js +32 -0
- package/lib/module/renderer/components/pathEffects/Line2D.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Path1D.js +36 -0
- package/lib/module/renderer/components/pathEffects/Path1D.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Path2D.js +33 -0
- package/lib/module/renderer/components/pathEffects/Path2D.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/Sum.js +18 -0
- package/lib/module/renderer/components/pathEffects/Sum.js.map +1 -0
- package/lib/module/renderer/components/pathEffects/index.js +8 -0
- package/lib/module/renderer/components/pathEffects/index.js.map +1 -0
- package/lib/module/renderer/components/shaders/Color.js +20 -0
- package/lib/module/renderer/components/shaders/Color.js.map +1 -0
- package/lib/module/renderer/components/shaders/FractalNoise.js +29 -0
- package/lib/module/renderer/components/shaders/FractalNoise.js.map +1 -0
- package/lib/module/renderer/components/shaders/Gradient.js +20 -0
- package/lib/module/renderer/components/shaders/Gradient.js.map +1 -0
- package/lib/module/renderer/components/shaders/LinearGradient.js +29 -0
- package/lib/module/renderer/components/shaders/LinearGradient.js.map +1 -0
- package/lib/module/renderer/components/shaders/RadialGradient.js +29 -0
- package/lib/module/renderer/components/shaders/RadialGradient.js.map +1 -0
- package/lib/module/renderer/components/shaders/Shader.js +26 -0
- package/lib/module/renderer/components/shaders/Shader.js.map +1 -0
- package/lib/module/renderer/components/shaders/ShaderLib.js +45 -0
- package/lib/module/renderer/components/shaders/ShaderLib.js.map +1 -0
- package/lib/module/renderer/components/shaders/SweepGradient.js +30 -0
- package/lib/module/renderer/components/shaders/SweepGradient.js.map +1 -0
- package/lib/module/renderer/components/shaders/Turbulence.js +29 -0
- package/lib/module/renderer/components/shaders/Turbulence.js.map +1 -0
- package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js +31 -0
- package/lib/module/renderer/components/shaders/TwoPointConicalGradient.js.map +1 -0
- package/lib/module/renderer/components/shaders/index.js +10 -0
- package/lib/module/renderer/components/shaders/index.js.map +1 -0
- package/lib/module/renderer/components/shapes/Box.js +103 -0
- package/lib/module/renderer/components/shapes/Box.js.map +1 -0
- package/lib/module/renderer/components/shapes/Circle.js +29 -0
- package/lib/module/renderer/components/shapes/Circle.js.map +1 -0
- package/lib/module/renderer/components/shapes/DiffRect.js +21 -0
- package/lib/module/renderer/components/shapes/DiffRect.js.map +1 -0
- package/lib/module/renderer/components/shapes/Fill.js +17 -0
- package/lib/module/renderer/components/shapes/Fill.js.map +1 -0
- package/lib/module/renderer/components/shapes/FitBox.js +23 -0
- package/lib/module/renderer/components/shapes/FitBox.js.map +1 -0
- package/lib/module/renderer/components/shapes/Line.js +21 -0
- package/lib/module/renderer/components/shapes/Line.js.map +1 -0
- package/lib/module/renderer/components/shapes/Oval.js +24 -0
- package/lib/module/renderer/components/shapes/Oval.js.map +1 -0
- package/lib/module/renderer/components/shapes/Patch.js +36 -0
- package/lib/module/renderer/components/shapes/Patch.js.map +1 -0
- package/lib/module/renderer/components/shapes/Path.js +51 -0
- package/lib/module/renderer/components/shapes/Path.js.map +1 -0
- package/lib/module/renderer/components/shapes/Points.js +27 -0
- package/lib/module/renderer/components/shapes/Points.js.map +1 -0
- package/lib/module/renderer/components/shapes/Rect.js +20 -0
- package/lib/module/renderer/components/shapes/Rect.js.map +1 -0
- package/lib/module/renderer/components/shapes/RoundedRect.js +23 -0
- package/lib/module/renderer/components/shapes/RoundedRect.js.map +1 -0
- package/lib/module/renderer/components/shapes/Vertices.js +38 -0
- package/lib/module/renderer/components/shapes/Vertices.js.map +1 -0
- package/lib/module/renderer/components/shapes/index.js +14 -0
- package/lib/module/renderer/components/shapes/index.js.map +1 -0
- package/lib/module/renderer/components/text/Glyphs.js +46 -0
- package/lib/module/renderer/components/text/Glyphs.js.map +1 -0
- package/lib/module/renderer/components/text/Text.js +31 -0
- package/lib/module/renderer/components/text/Text.js.map +1 -0
- package/lib/module/renderer/components/text/TextBlob.js +26 -0
- package/lib/module/renderer/components/text/TextBlob.js.map +1 -0
- package/lib/module/renderer/components/text/TextPath.js +76 -0
- package/lib/module/renderer/components/text/TextPath.js.map +1 -0
- package/lib/module/renderer/components/text/index.js +5 -0
- package/lib/module/renderer/components/text/index.js.map +1 -0
- package/lib/module/renderer/index.js +6 -0
- package/lib/module/renderer/index.js.map +1 -0
- package/lib/module/renderer/nodes/Container.js +18 -0
- package/lib/module/renderer/nodes/Container.js.map +1 -0
- package/lib/module/renderer/nodes/Declaration.js +37 -0
- package/lib/module/renderer/nodes/Declaration.js.map +1 -0
- package/lib/module/renderer/nodes/Drawing.js +40 -0
- package/lib/module/renderer/nodes/Drawing.js.map +1 -0
- package/lib/module/renderer/nodes/Node.js +61 -0
- package/lib/module/renderer/nodes/Node.js.map +1 -0
- package/lib/module/renderer/nodes/index.js +5 -0
- package/lib/module/renderer/nodes/index.js.map +1 -0
- package/lib/module/renderer/processors/Animations/Animations.js +36 -0
- package/lib/module/renderer/processors/Animations/Animations.js.map +1 -0
- package/lib/module/renderer/processors/Animations/index.js +2 -0
- package/lib/module/renderer/processors/Animations/index.js.map +1 -0
- package/lib/module/renderer/processors/Circles.js +15 -0
- package/lib/module/renderer/processors/Circles.js.map +1 -0
- package/lib/module/renderer/processors/Clips.js +13 -0
- package/lib/module/renderer/processors/Clips.js.map +1 -0
- package/lib/module/renderer/processors/Color.js +11 -0
- package/lib/module/renderer/processors/Color.js.map +1 -0
- package/lib/module/renderer/processors/Font.js +27 -0
- package/lib/module/renderer/processors/Font.js.map +1 -0
- package/lib/module/renderer/processors/Paint.js +84 -0
- package/lib/module/renderer/processors/Paint.js.map +1 -0
- package/lib/module/renderer/processors/Paths.js +13 -0
- package/lib/module/renderer/processors/Paths.js.map +1 -0
- package/lib/module/renderer/processors/Radius.js +8 -0
- package/lib/module/renderer/processors/Radius.js.map +1 -0
- package/lib/module/renderer/processors/Rects.js +25 -0
- package/lib/module/renderer/processors/Rects.js.map +1 -0
- package/lib/module/renderer/processors/Transform.js +49 -0
- package/lib/module/renderer/processors/Transform.js.map +1 -0
- package/lib/module/renderer/processors/index.js +12 -0
- package/lib/module/renderer/processors/index.js.map +1 -0
- package/lib/module/renderer/processors/math/Coordinates.js +19 -0
- package/lib/module/renderer/processors/math/Coordinates.js.map +1 -0
- package/lib/module/renderer/processors/math/Math.js +17 -0
- package/lib/module/renderer/processors/math/Math.js.map +1 -0
- package/lib/module/renderer/processors/math/Transforms.js +12 -0
- package/lib/module/renderer/processors/math/Transforms.js.map +1 -0
- package/lib/module/renderer/processors/math/index.js +4 -0
- package/lib/module/renderer/processors/math/index.js.map +1 -0
- package/lib/module/renderer/typeddash.js +26 -0
- package/lib/module/renderer/typeddash.js.map +1 -0
- package/lib/module/renderer/useCanvas.js +13 -0
- package/lib/module/renderer/useCanvas.js.map +1 -0
- package/lib/module/renderer/useContextBridge.js +21 -0
- package/lib/module/renderer/useContextBridge.js.map +1 -0
- package/lib/module/skia/NativeSetup.js +17 -0
- package/lib/module/skia/NativeSetup.js.map +1 -0
- package/lib/module/skia/Skia.js +7 -0
- package/lib/module/skia/Skia.js.map +1 -0
- package/lib/module/skia/Skia.web.js +3 -0
- package/lib/module/skia/Skia.web.js.map +1 -0
- package/lib/module/skia/core/Data.js +53 -0
- package/lib/module/skia/core/Data.js.map +1 -0
- package/lib/module/skia/core/Font.js +22 -0
- package/lib/module/skia/core/Font.js.map +1 -0
- package/lib/module/skia/core/Image.js +8 -0
- package/lib/module/skia/core/Image.js.map +1 -0
- package/lib/module/skia/core/Matrix.js +4 -0
- package/lib/module/skia/core/Matrix.js.map +1 -0
- package/lib/module/skia/core/Paint.js +17 -0
- package/lib/module/skia/core/Paint.js.map +1 -0
- package/lib/module/skia/core/Path.js +53 -0
- package/lib/module/skia/core/Path.js.map +1 -0
- package/lib/module/skia/core/Picture.js +19 -0
- package/lib/module/skia/core/Picture.js.map +1 -0
- package/lib/module/skia/core/RRect.js +3 -0
- package/lib/module/skia/core/RRect.js.map +1 -0
- package/lib/module/skia/core/Rect.js +17 -0
- package/lib/module/skia/core/Rect.js.map +1 -0
- package/lib/module/skia/core/SVG.js +4 -0
- package/lib/module/skia/core/SVG.js.map +1 -0
- package/lib/module/skia/core/Typeface.js +8 -0
- package/lib/module/skia/core/Typeface.js.map +1 -0
- package/lib/module/skia/core/Vector.js +23 -0
- package/lib/module/skia/core/Vector.js.map +1 -0
- package/lib/module/skia/core/index.js +13 -0
- package/lib/module/skia/core/index.js.map +1 -0
- package/lib/module/skia/index.js +4 -0
- package/lib/module/skia/index.js.map +1 -0
- package/lib/module/skia/types/Canvas.js +14 -0
- package/lib/module/skia/types/Canvas.js.map +1 -0
- package/lib/module/skia/types/Color.js +2 -0
- package/lib/module/skia/types/Color.js.map +1 -0
- package/lib/module/skia/types/ColorFilter/ColorFilter.js +2 -0
- package/lib/module/skia/types/ColorFilter/ColorFilter.js.map +1 -0
- package/lib/module/skia/types/ColorFilter/ColorFilterFactory.js +2 -0
- package/lib/module/skia/types/ColorFilter/ColorFilterFactory.js.map +1 -0
- package/lib/module/skia/types/ColorFilter/index.js +3 -0
- package/lib/module/skia/types/ColorFilter/index.js.map +1 -0
- package/lib/module/skia/types/ContourMeasure.js +2 -0
- package/lib/module/skia/types/ContourMeasure.js.map +1 -0
- package/lib/module/skia/types/Data/Data.js +2 -0
- package/lib/module/skia/types/Data/Data.js.map +1 -0
- package/lib/module/skia/types/Data/DataFactory.js +2 -0
- package/lib/module/skia/types/Data/DataFactory.js.map +1 -0
- package/lib/module/skia/types/Data/index.js +3 -0
- package/lib/module/skia/types/Data/index.js.map +1 -0
- package/lib/module/skia/types/Font/Font.js +68 -0
- package/lib/module/skia/types/Font/Font.js.map +1 -0
- package/lib/module/skia/types/Font/index.js +2 -0
- package/lib/module/skia/types/Font/index.js.map +1 -0
- package/lib/module/skia/types/FontMgr/FontMgr.js +2 -0
- package/lib/module/skia/types/FontMgr/FontMgr.js.map +1 -0
- package/lib/module/skia/types/FontMgr/FontMgrFactory.js +2 -0
- package/lib/module/skia/types/FontMgr/FontMgrFactory.js.map +1 -0
- package/lib/module/skia/types/FontMgr/index.js +3 -0
- package/lib/module/skia/types/FontMgr/index.js.map +1 -0
- package/lib/module/skia/types/Image/Image.js +23 -0
- package/lib/module/skia/types/Image/Image.js.map +1 -0
- package/lib/module/skia/types/Image/ImageFactory.js +37 -0
- package/lib/module/skia/types/Image/ImageFactory.js.map +1 -0
- package/lib/module/skia/types/Image/index.js +3 -0
- package/lib/module/skia/types/Image/index.js.map +1 -0
- package/lib/module/skia/types/ImageFilter/ImageFilter.js +11 -0
- package/lib/module/skia/types/ImageFilter/ImageFilter.js.map +1 -0
- package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js +9 -0
- package/lib/module/skia/types/ImageFilter/ImageFilterFactory.js.map +1 -0
- package/lib/module/skia/types/ImageFilter/index.js +3 -0
- package/lib/module/skia/types/ImageFilter/index.js.map +1 -0
- package/lib/module/skia/types/JsiInstance.js +2 -0
- package/lib/module/skia/types/JsiInstance.js.map +1 -0
- package/lib/module/skia/types/MaskFilter.js +11 -0
- package/lib/module/skia/types/MaskFilter.js.map +1 -0
- package/lib/module/skia/types/Matrix.js +69 -0
- package/lib/module/skia/types/Matrix.js.map +1 -0
- package/lib/module/skia/types/Paint/BlendMode.js +61 -0
- package/lib/module/skia/types/Paint/BlendMode.js.map +1 -0
- package/lib/module/skia/types/Paint/Paint.js +25 -0
- package/lib/module/skia/types/Paint/Paint.js.map +1 -0
- package/lib/module/skia/types/Paint/index.js +3 -0
- package/lib/module/skia/types/Paint/index.js.map +1 -0
- package/lib/module/skia/types/Path/Path.js +35 -0
- package/lib/module/skia/types/Path/Path.js.map +1 -0
- package/lib/module/skia/types/Path/PathFactory.js +2 -0
- package/lib/module/skia/types/Path/PathFactory.js.map +1 -0
- package/lib/module/skia/types/Path/index.js +3 -0
- package/lib/module/skia/types/Path/index.js.map +1 -0
- package/lib/module/skia/types/PathEffect.js +9 -0
- package/lib/module/skia/types/PathEffect.js.map +1 -0
- package/lib/module/skia/types/Picture/Picture.js +2 -0
- package/lib/module/skia/types/Picture/Picture.js.map +1 -0
- package/lib/module/skia/types/Picture/PictureFactory.js +2 -0
- package/lib/module/skia/types/Picture/PictureFactory.js.map +1 -0
- package/lib/module/skia/types/Picture/PictureRecorder.js +2 -0
- package/lib/module/skia/types/Picture/PictureRecorder.js.map +1 -0
- package/lib/module/skia/types/Picture/index.js +4 -0
- package/lib/module/skia/types/Picture/index.js.map +1 -0
- package/lib/module/skia/types/Point.js +8 -0
- package/lib/module/skia/types/Point.js.map +1 -0
- package/lib/module/skia/types/RRect.js +4 -0
- package/lib/module/skia/types/RRect.js.map +1 -0
- package/lib/module/skia/types/RSXform.js +2 -0
- package/lib/module/skia/types/RSXform.js.map +1 -0
- package/lib/module/skia/types/Rect.js +2 -0
- package/lib/module/skia/types/Rect.js.map +1 -0
- package/lib/module/skia/types/RuntimeEffect/RuntimeEffect.js +2 -0
- package/lib/module/skia/types/RuntimeEffect/RuntimeEffect.js.map +1 -0
- package/lib/module/skia/types/RuntimeEffect/RuntimeEffectFactory.js +2 -0
- package/lib/module/skia/types/RuntimeEffect/RuntimeEffectFactory.js.map +1 -0
- package/lib/module/skia/types/RuntimeEffect/index.js +3 -0
- package/lib/module/skia/types/RuntimeEffect/index.js.map +1 -0
- package/lib/module/skia/types/SVG/SVG.js +2 -0
- package/lib/module/skia/types/SVG/SVG.js.map +1 -0
- package/lib/module/skia/types/SVG/SVGFactory.js +2 -0
- package/lib/module/skia/types/SVG/SVGFactory.js.map +1 -0
- package/lib/module/skia/types/SVG/index.js +3 -0
- package/lib/module/skia/types/SVG/index.js.map +1 -0
- package/lib/module/skia/types/Shader/Shader.js +44 -0
- package/lib/module/skia/types/Shader/Shader.js.map +1 -0
- package/lib/module/skia/types/Shader/ShaderFactory.js +2 -0
- package/lib/module/skia/types/Shader/ShaderFactory.js.map +1 -0
- package/lib/module/skia/types/Shader/index.js +3 -0
- package/lib/module/skia/types/Shader/index.js.map +1 -0
- package/lib/module/skia/types/Skia.js +2 -0
- package/lib/module/skia/types/Skia.js.map +1 -0
- package/lib/module/skia/types/Surface/Surface.js +2 -0
- package/lib/module/skia/types/Surface/Surface.js.map +1 -0
- package/lib/module/skia/types/Surface/SurfaceFactory.js +2 -0
- package/lib/module/skia/types/Surface/SurfaceFactory.js.map +1 -0
- package/lib/module/skia/types/Surface/index.js +3 -0
- package/lib/module/skia/types/Surface/index.js.map +1 -0
- package/lib/module/skia/types/TextBlob.js +2 -0
- package/lib/module/skia/types/TextBlob.js.map +1 -0
- package/lib/module/skia/types/Typeface/Typeface.js +2 -0
- package/lib/module/skia/types/Typeface/Typeface.js.map +1 -0
- package/lib/module/skia/types/Typeface/TypefaceFactory.js +2 -0
- package/lib/module/skia/types/Typeface/TypefaceFactory.js.map +1 -0
- package/lib/module/skia/types/Typeface/index.js +3 -0
- package/lib/module/skia/types/Typeface/index.js.map +1 -0
- package/lib/module/skia/types/Vertices/Vertices.js +8 -0
- package/lib/module/skia/types/Vertices/Vertices.js.map +1 -0
- package/lib/module/skia/types/Vertices/index.js +2 -0
- package/lib/module/skia/types/Vertices/index.js.map +1 -0
- package/lib/module/skia/types/index.js +29 -0
- package/lib/module/skia/types/index.js.map +1 -0
- package/lib/module/skia/web/Host.js +42 -0
- package/lib/module/skia/web/Host.js.map +1 -0
- package/lib/module/skia/web/JsiSkCanvas.js +173 -0
- package/lib/module/skia/web/JsiSkCanvas.js.map +1 -0
- package/lib/module/skia/web/JsiSkColor.js +330 -0
- package/lib/module/skia/web/JsiSkColor.js.map +1 -0
- package/lib/module/skia/web/JsiSkColorFilter.js +8 -0
- package/lib/module/skia/web/JsiSkColorFilter.js.map +1 -0
- package/lib/module/skia/web/JsiSkColorFilterFactory.js +37 -0
- package/lib/module/skia/web/JsiSkColorFilterFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkContourMeasure.js +31 -0
- package/lib/module/skia/web/JsiSkContourMeasure.js.map +1 -0
- package/lib/module/skia/web/JsiSkContourMeasureIter.js +19 -0
- package/lib/module/skia/web/JsiSkContourMeasureIter.js.map +1 -0
- package/lib/module/skia/web/JsiSkData.js +8 -0
- package/lib/module/skia/web/JsiSkData.js.map +1 -0
- package/lib/module/skia/web/JsiSkDataFactory.js +33 -0
- package/lib/module/skia/web/JsiSkDataFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkFont.js +107 -0
- package/lib/module/skia/web/JsiSkFont.js.map +1 -0
- package/lib/module/skia/web/JsiSkFontMgr.js +23 -0
- package/lib/module/skia/web/JsiSkFontMgr.js.map +1 -0
- package/lib/module/skia/web/JsiSkFontMgrFactory.js +14 -0
- package/lib/module/skia/web/JsiSkFontMgrFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkImage.js +49 -0
- package/lib/module/skia/web/JsiSkImage.js.map +1 -0
- package/lib/module/skia/web/JsiSkImageFactory.js +36 -0
- package/lib/module/skia/web/JsiSkImageFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkImageFilter.js +8 -0
- package/lib/module/skia/web/JsiSkImageFilter.js.map +1 -0
- package/lib/module/skia/web/JsiSkImageFilterFactory.js +57 -0
- package/lib/module/skia/web/JsiSkImageFilterFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkMaskFilter.js +8 -0
- package/lib/module/skia/web/JsiSkMaskFilter.js.map +1 -0
- package/lib/module/skia/web/JsiSkMaskFilterFactory.js +13 -0
- package/lib/module/skia/web/JsiSkMaskFilterFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkMatrix.js +28 -0
- package/lib/module/skia/web/JsiSkMatrix.js.map +1 -0
- package/lib/module/skia/web/JsiSkPaint.js +91 -0
- package/lib/module/skia/web/JsiSkPaint.js.map +1 -0
- package/lib/module/skia/web/JsiSkPath.js +324 -0
- package/lib/module/skia/web/JsiSkPath.js.map +1 -0
- package/lib/module/skia/web/JsiSkPathEffect.js +8 -0
- package/lib/module/skia/web/JsiSkPathEffect.js.map +1 -0
- package/lib/module/skia/web/JsiSkPathEffectFactory.js +67 -0
- package/lib/module/skia/web/JsiSkPathEffectFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkPathFactory.js +47 -0
- package/lib/module/skia/web/JsiSkPathFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkPicture.js +18 -0
- package/lib/module/skia/web/JsiSkPicture.js.map +1 -0
- package/lib/module/skia/web/JsiSkPictureFactory.js +19 -0
- package/lib/module/skia/web/JsiSkPictureFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkPictureRecorder.js +18 -0
- package/lib/module/skia/web/JsiSkPictureRecorder.js.map +1 -0
- package/lib/module/skia/web/JsiSkPoint.js +16 -0
- package/lib/module/skia/web/JsiSkPoint.js.map +1 -0
- package/lib/module/skia/web/JsiSkRRect.js +21 -0
- package/lib/module/skia/web/JsiSkRRect.js.map +1 -0
- package/lib/module/skia/web/JsiSkRSXform.js +8 -0
- package/lib/module/skia/web/JsiSkRSXform.js.map +1 -0
- package/lib/module/skia/web/JsiSkRect.js +32 -0
- package/lib/module/skia/web/JsiSkRect.js.map +1 -0
- package/lib/module/skia/web/JsiSkRuntimeEffect.js +33 -0
- package/lib/module/skia/web/JsiSkRuntimeEffect.js.map +1 -0
- package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js +19 -0
- package/lib/module/skia/web/JsiSkRuntimeEffectFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkSVGFactory.js +16 -0
- package/lib/module/skia/web/JsiSkSVGFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkShader.js +8 -0
- package/lib/module/skia/web/JsiSkShader.js.map +1 -0
- package/lib/module/skia/web/JsiSkShaderFactory.js +41 -0
- package/lib/module/skia/web/JsiSkShaderFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkSurface.js +19 -0
- package/lib/module/skia/web/JsiSkSurface.js.map +1 -0
- package/lib/module/skia/web/JsiSkSurfaceFactory.js +19 -0
- package/lib/module/skia/web/JsiSkSurfaceFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkTextBlob.js +8 -0
- package/lib/module/skia/web/JsiSkTextBlob.js.map +1 -0
- package/lib/module/skia/web/JsiSkTextBlobFactory.js +25 -0
- package/lib/module/skia/web/JsiSkTextBlobFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkTypeface.js +18 -0
- package/lib/module/skia/web/JsiSkTypeface.js.map +1 -0
- package/lib/module/skia/web/JsiSkTypefaceFactory.js +19 -0
- package/lib/module/skia/web/JsiSkTypefaceFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkVertices.js +17 -0
- package/lib/module/skia/web/JsiSkVertices.js.map +1 -0
- package/lib/module/skia/web/JsiSkVerticesFactory.js +39 -0
- package/lib/module/skia/web/JsiSkVerticesFactory.js.map +1 -0
- package/lib/module/skia/web/JsiSkia.js +61 -0
- package/lib/module/skia/web/JsiSkia.js.map +1 -0
- package/lib/module/skia/web/index.js +2 -0
- package/lib/module/skia/web/index.js.map +1 -0
- package/lib/module/values/api.js +5 -0
- package/lib/module/values/api.js.map +1 -0
- package/lib/module/values/api.web.js +7 -0
- package/lib/module/values/api.web.js.map +1 -0
- package/lib/module/values/hooks/index.js +5 -0
- package/lib/module/values/hooks/index.js.map +1 -0
- package/lib/module/values/hooks/useClockValue.js +17 -0
- package/lib/module/values/hooks/useClockValue.js.map +1 -0
- package/lib/module/values/hooks/useComputedValue.js +18 -0
- package/lib/module/values/hooks/useComputedValue.js.map +1 -0
- package/lib/module/values/hooks/useValue.js +13 -0
- package/lib/module/values/hooks/useValue.js.map +1 -0
- package/lib/module/values/hooks/useValueEffect.js +13 -0
- package/lib/module/values/hooks/useValueEffect.js.map +1 -0
- package/lib/module/values/index.js +4 -0
- package/lib/module/values/index.js.map +1 -0
- package/lib/module/values/types.js +2 -0
- package/lib/module/values/types.js.map +1 -0
- package/lib/module/values/web/RNSkAnimation.js +36 -0
- package/lib/module/values/web/RNSkAnimation.js.map +1 -0
- package/lib/module/values/web/RNSkClockValue.js +65 -0
- package/lib/module/values/web/RNSkClockValue.js.map +1 -0
- package/lib/module/values/web/RNSkComputedValue.js +41 -0
- package/lib/module/values/web/RNSkComputedValue.js.map +1 -0
- package/lib/module/values/web/RNSkReadonlyValue.js +36 -0
- package/lib/module/values/web/RNSkReadonlyValue.js.map +1 -0
- package/lib/module/values/web/RNSkValue.js +63 -0
- package/lib/module/values/web/RNSkValue.js.map +1 -0
- package/lib/module/values/web/api.js +19 -0
- package/lib/module/values/web/api.js.map +1 -0
- package/lib/module/values/web/index.js +2 -0
- package/lib/module/values/web/index.js.map +1 -0
- package/lib/module/views/SkiaView.js +109 -0
- package/lib/module/views/SkiaView.js.map +1 -0
- package/lib/module/views/SkiaView.web.js +202 -0
- package/lib/module/views/SkiaView.web.js.map +1 -0
- package/lib/module/views/api.js +4 -0
- package/lib/module/views/api.js.map +1 -0
- package/lib/module/views/index.js +5 -0
- package/lib/module/views/index.js.map +1 -0
- package/lib/module/views/types.js +9 -0
- package/lib/module/views/types.js.map +1 -0
- package/lib/module/views/useDrawCallback.js +14 -0
- package/lib/module/views/useDrawCallback.js.map +1 -0
- package/lib/module/views/useTouchHandler.js +85 -0
- package/lib/module/views/useTouchHandler.js.map +1 -0
- package/lib/module/web/index.js +10 -0
- package/lib/module/web/index.js.map +1 -0
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/jestSetup.d.ts +1 -0
- package/lib/typescript/src/animation/decay/decay.d.ts +2 -0
- package/lib/typescript/src/animation/decay/index.d.ts +1 -0
- package/lib/typescript/src/animation/decay/runDecay.d.ts +10 -0
- package/lib/typescript/src/animation/decay/types.d.ts +21 -0
- package/lib/typescript/src/animation/functions/index.d.ts +4 -0
- package/lib/typescript/src/animation/functions/interpolate.d.ts +17 -0
- package/lib/typescript/src/animation/functions/interpolateColors.d.ts +3 -0
- package/lib/typescript/src/animation/functions/interpolatePaths.d.ts +19 -0
- package/lib/typescript/src/animation/functions/interpolateVector.d.ts +10 -0
- package/lib/typescript/src/animation/index.d.ts +4 -0
- package/lib/typescript/src/animation/spring/Spring.d.ts +65 -0
- package/lib/typescript/src/animation/spring/functions/index.d.ts +1 -0
- package/lib/typescript/src/animation/spring/functions/spring.d.ts +10 -0
- package/lib/typescript/src/animation/spring/index.d.ts +3 -0
- package/lib/typescript/src/animation/spring/runSpring.d.ts +16 -0
- package/lib/typescript/src/animation/spring/types.d.ts +6 -0
- package/lib/typescript/src/animation/spring/useSpring.d.ts +10 -0
- package/lib/typescript/src/animation/timing/Easing.d.ts +19 -0
- package/lib/typescript/src/animation/timing/createTiming.d.ts +17 -0
- package/lib/typescript/src/animation/timing/functions/bezier.d.ts +1 -0
- package/lib/typescript/src/animation/timing/functions/getResolvedParams.d.ts +7 -0
- package/lib/typescript/src/animation/timing/functions/index.d.ts +4 -0
- package/lib/typescript/src/animation/timing/functions/timing.d.ts +17 -0
- package/lib/typescript/src/animation/timing/functions/types.d.ts +7 -0
- package/lib/typescript/src/animation/timing/index.d.ts +4 -0
- package/lib/typescript/src/animation/timing/runTiming.d.ts +16 -0
- package/lib/typescript/src/animation/timing/useLoop.d.ts +8 -0
- package/lib/typescript/src/animation/timing/useTiming.d.ts +10 -0
- package/lib/typescript/src/animation/types.d.ts +18 -0
- package/lib/typescript/src/external/index.d.ts +1 -0
- package/lib/typescript/src/external/reanimated/index.d.ts +1 -0
- package/lib/typescript/src/external/reanimated/useSharedValueEffect.d.ts +11 -0
- package/lib/typescript/src/index.d.ts +8 -0
- package/lib/typescript/src/mock/index.d.ts +16 -0
- package/lib/typescript/src/renderer/Canvas.d.ts +16 -0
- package/lib/typescript/src/renderer/DependencyManager.d.ts +21 -0
- package/lib/typescript/src/renderer/DrawingContext.d.ts +12 -0
- package/lib/typescript/src/renderer/HostConfig.d.ts +27 -0
- package/lib/typescript/src/renderer/components/Blend.d.ts +9 -0
- package/lib/typescript/src/renderer/components/Compose.d.ts +6 -0
- package/lib/typescript/src/renderer/components/Drawing.d.ts +7 -0
- package/lib/typescript/src/renderer/components/Group.d.ts +9 -0
- package/lib/typescript/src/renderer/components/Mask.d.ts +15 -0
- package/lib/typescript/src/renderer/components/Paint.d.ts +9 -0
- package/lib/typescript/src/renderer/components/Picture.d.ts +6 -0
- package/lib/typescript/src/renderer/components/backdrop/BackdropBlur.d.ts +8 -0
- package/lib/typescript/src/renderer/components/backdrop/BackdropFilter.d.ts +7 -0
- package/lib/typescript/src/renderer/components/backdrop/index.d.ts +2 -0
- package/lib/typescript/src/renderer/components/colorFilters/BlendColor.d.ts +10 -0
- package/lib/typescript/src/renderer/components/colorFilters/Compose.d.ts +3 -0
- package/lib/typescript/src/renderer/components/colorFilters/Lerp.d.ts +7 -0
- package/lib/typescript/src/renderer/components/colorFilters/LinearToSRGBGamma.d.ts +5 -0
- package/lib/typescript/src/renderer/components/colorFilters/LumaColorFilter.d.ts +5 -0
- package/lib/typescript/src/renderer/components/colorFilters/Matrix.d.ts +9 -0
- package/lib/typescript/src/renderer/components/colorFilters/SRGBToLinearGamma.d.ts +5 -0
- package/lib/typescript/src/renderer/components/colorFilters/index.d.ts +6 -0
- package/lib/typescript/src/renderer/components/image/BoxFit.d.ts +33 -0
- package/lib/typescript/src/renderer/components/image/Image.d.ts +19 -0
- package/lib/typescript/src/renderer/components/image/ImageSVG.d.ts +7 -0
- package/lib/typescript/src/renderer/components/image/ImageShader.d.ts +26 -0
- package/lib/typescript/src/renderer/components/image/index.d.ts +4 -0
- package/lib/typescript/src/renderer/components/imageFilters/Blur.d.ts +15 -0
- package/lib/typescript/src/renderer/components/imageFilters/DisplacementMap.d.ts +10 -0
- package/lib/typescript/src/renderer/components/imageFilters/InnerShadow.d.ts +2 -0
- package/lib/typescript/src/renderer/components/imageFilters/Morphology.d.ts +13 -0
- package/lib/typescript/src/renderer/components/imageFilters/Offset.d.ts +14 -0
- package/lib/typescript/src/renderer/components/imageFilters/RuntimeShader.d.ts +8 -0
- package/lib/typescript/src/renderer/components/imageFilters/Shadow.d.ts +12 -0
- package/lib/typescript/src/renderer/components/imageFilters/getInput.d.ts +3 -0
- package/lib/typescript/src/renderer/components/imageFilters/index.d.ts +6 -0
- package/lib/typescript/src/renderer/components/index.d.ts +17 -0
- package/lib/typescript/src/renderer/components/maskFilters/Blur.d.ts +16 -0
- package/lib/typescript/src/renderer/components/maskFilters/index.d.ts +1 -0
- package/lib/typescript/src/renderer/components/pathEffects/Corner.d.ts +7 -0
- package/lib/typescript/src/renderer/components/pathEffects/Dash.d.ts +8 -0
- package/lib/typescript/src/renderer/components/pathEffects/Discrete.d.ts +14 -0
- package/lib/typescript/src/renderer/components/pathEffects/Line2D.d.ts +9 -0
- package/lib/typescript/src/renderer/components/pathEffects/Path1D.d.ts +13 -0
- package/lib/typescript/src/renderer/components/pathEffects/Path2D.d.ts +10 -0
- package/lib/typescript/src/renderer/components/pathEffects/Sum.d.ts +6 -0
- package/lib/typescript/src/renderer/components/pathEffects/index.d.ts +7 -0
- package/lib/typescript/src/renderer/components/shaders/Color.d.ts +7 -0
- package/lib/typescript/src/renderer/components/shaders/FractalNoise.d.ts +18 -0
- package/lib/typescript/src/renderer/components/shaders/Gradient.d.ts +17 -0
- package/lib/typescript/src/renderer/components/shaders/LinearGradient.d.ts +9 -0
- package/lib/typescript/src/renderer/components/shaders/RadialGradient.d.ts +9 -0
- package/lib/typescript/src/renderer/components/shaders/Shader.d.ts +14 -0
- package/lib/typescript/src/renderer/components/shaders/ShaderLib.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shaders/SweepGradient.d.ts +10 -0
- package/lib/typescript/src/renderer/components/shaders/Turbulence.d.ts +18 -0
- package/lib/typescript/src/renderer/components/shaders/TwoPointConicalGradient.d.ts +11 -0
- package/lib/typescript/src/renderer/components/shaders/index.d.ts +9 -0
- package/lib/typescript/src/renderer/components/shapes/Box.d.ts +22 -0
- package/lib/typescript/src/renderer/components/shapes/Circle.d.ts +12 -0
- package/lib/typescript/src/renderer/components/shapes/DiffRect.d.ts +9 -0
- package/lib/typescript/src/renderer/components/shapes/Fill.d.ts +5 -0
- package/lib/typescript/src/renderer/components/shapes/FitBox.d.ts +25 -0
- package/lib/typescript/src/renderer/components/shapes/Line.d.ts +8 -0
- package/lib/typescript/src/renderer/components/shapes/Oval.d.ts +10 -0
- package/lib/typescript/src/renderer/components/shapes/Patch.d.ts +21 -0
- package/lib/typescript/src/renderer/components/shapes/Path.d.ts +23 -0
- package/lib/typescript/src/renderer/components/shapes/Points.d.ts +15 -0
- package/lib/typescript/src/renderer/components/shapes/Rect.d.ts +4 -0
- package/lib/typescript/src/renderer/components/shapes/RoundedRect.d.ts +9 -0
- package/lib/typescript/src/renderer/components/shapes/Vertices.d.ts +18 -0
- package/lib/typescript/src/renderer/components/shapes/index.d.ts +13 -0
- package/lib/typescript/src/renderer/components/text/Glyphs.d.ts +20 -0
- package/lib/typescript/src/renderer/components/text/Text.d.ts +15 -0
- package/lib/typescript/src/renderer/components/text/TextBlob.d.ts +15 -0
- package/lib/typescript/src/renderer/components/text/TextPath.d.ts +15 -0
- package/lib/typescript/src/renderer/components/text/index.d.ts +4 -0
- package/lib/typescript/src/renderer/index.d.ts +5 -0
- package/lib/typescript/src/renderer/nodes/Container.d.ts +8 -0
- package/lib/typescript/src/renderer/nodes/Declaration.d.ts +22 -0
- package/lib/typescript/src/renderer/nodes/Drawing.d.ts +21 -0
- package/lib/typescript/src/renderer/nodes/Node.d.ts +23 -0
- package/lib/typescript/src/renderer/nodes/index.d.ts +4 -0
- package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +7 -0
- package/lib/typescript/src/renderer/processors/Animations/index.d.ts +1 -0
- package/lib/typescript/src/renderer/processors/Circles.d.ts +13 -0
- package/lib/typescript/src/renderer/processors/Clips.d.ts +4 -0
- package/lib/typescript/src/renderer/processors/Color.d.ts +7 -0
- package/lib/typescript/src/renderer/processors/Font.d.ts +11 -0
- package/lib/typescript/src/renderer/processors/Paint.d.ts +22 -0
- package/lib/typescript/src/renderer/processors/Paths.d.ts +4 -0
- package/lib/typescript/src/renderer/processors/Radius.d.ts +3 -0
- package/lib/typescript/src/renderer/processors/Rects.d.ts +20 -0
- package/lib/typescript/src/renderer/processors/Transform.d.ts +90 -0
- package/lib/typescript/src/renderer/processors/index.d.ts +11 -0
- package/lib/typescript/src/renderer/processors/math/Coordinates.d.ts +29 -0
- package/lib/typescript/src/renderer/processors/math/Math.d.ts +15 -0
- package/lib/typescript/src/renderer/processors/math/Transforms.d.ts +5 -0
- package/lib/typescript/src/renderer/processors/math/index.d.ts +3 -0
- package/lib/typescript/src/renderer/typeddash.d.ts +3 -0
- package/lib/typescript/src/renderer/useCanvas.d.ts +14 -0
- package/lib/typescript/src/renderer/useContextBridge.d.ts +5 -0
- package/lib/typescript/src/skia/NativeSetup.d.ts +1 -0
- package/lib/typescript/src/skia/Skia.d.ts +8 -0
- package/lib/typescript/src/skia/Skia.web.d.ts +1 -0
- package/lib/typescript/src/skia/core/Data.d.ts +5 -0
- package/lib/typescript/src/skia/core/Font.d.ts +5 -0
- package/lib/typescript/src/skia/core/Image.d.ts +5 -0
- package/lib/typescript/src/skia/core/Matrix.d.ts +2 -0
- package/lib/typescript/src/skia/core/Paint.d.ts +6 -0
- package/lib/typescript/src/skia/core/Path.d.ts +21 -0
- package/lib/typescript/src/skia/core/Picture.d.ts +9 -0
- package/lib/typescript/src/skia/core/RRect.d.ts +2 -0
- package/lib/typescript/src/skia/core/Rect.d.ts +8 -0
- package/lib/typescript/src/skia/core/SVG.d.ts +2 -0
- package/lib/typescript/src/skia/core/Typeface.d.ts +5 -0
- package/lib/typescript/src/skia/core/Vector.d.ts +12 -0
- package/lib/typescript/src/skia/core/index.d.ts +12 -0
- package/lib/typescript/src/skia/index.d.ts +3 -0
- package/lib/typescript/src/skia/types/Canvas.d.ts +381 -0
- package/lib/typescript/src/skia/types/Color.d.ts +2 -0
- package/lib/typescript/src/skia/types/ColorFilter/ColorFilter.d.ts +3 -0
- package/lib/typescript/src/skia/types/ColorFilter/ColorFilterFactory.d.ts +43 -0
- package/lib/typescript/src/skia/types/ColorFilter/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/ContourMeasure.d.ts +40 -0
- package/lib/typescript/src/skia/types/Data/Data.d.ts +5 -0
- package/lib/typescript/src/skia/types/Data/DataFactory.d.ts +18 -0
- package/lib/typescript/src/skia/types/Data/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/Font/Font.d.ts +192 -0
- package/lib/typescript/src/skia/types/Font/index.d.ts +1 -0
- package/lib/typescript/src/skia/types/FontMgr/FontMgr.d.ts +18 -0
- package/lib/typescript/src/skia/types/FontMgr/FontMgrFactory.d.ts +4 -0
- package/lib/typescript/src/skia/types/FontMgr/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/Image/Image.d.ts +75 -0
- package/lib/typescript/src/skia/types/Image/ImageFactory.d.ts +62 -0
- package/lib/typescript/src/skia/types/Image/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/ImageFilter/ImageFilter.d.ts +23 -0
- package/lib/typescript/src/skia/types/ImageFilter/ImageFilterFactory.d.ts +130 -0
- package/lib/typescript/src/skia/types/ImageFilter/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/JsiInstance.d.ts +3 -0
- package/lib/typescript/src/skia/types/MaskFilter.d.ts +21 -0
- package/lib/typescript/src/skia/types/Matrix.d.ts +29 -0
- package/lib/typescript/src/skia/types/Paint/BlendMode.d.ts +58 -0
- package/lib/typescript/src/skia/types/Paint/Paint.d.ts +127 -0
- package/lib/typescript/src/skia/types/Paint/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/Path/Path.d.ts +461 -0
- package/lib/typescript/src/skia/types/Path/PathFactory.d.ts +29 -0
- package/lib/typescript/src/skia/types/Path/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/PathEffect.d.ts +75 -0
- package/lib/typescript/src/skia/types/Picture/Picture.d.ts +26 -0
- package/lib/typescript/src/skia/types/Picture/PictureFactory.d.ts +8 -0
- package/lib/typescript/src/skia/types/Picture/PictureRecorder.d.ts +15 -0
- package/lib/typescript/src/skia/types/Picture/index.d.ts +3 -0
- package/lib/typescript/src/skia/types/Point.d.ts +10 -0
- package/lib/typescript/src/skia/types/RRect.d.ts +7 -0
- package/lib/typescript/src/skia/types/RSXform.d.ts +2 -0
- package/lib/typescript/src/skia/types/Rect.d.ts +6 -0
- package/lib/typescript/src/skia/types/RuntimeEffect/RuntimeEffect.d.ts +48 -0
- package/lib/typescript/src/skia/types/RuntimeEffect/RuntimeEffectFactory.d.ts +10 -0
- package/lib/typescript/src/skia/types/RuntimeEffect/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/SVG/SVG.d.ts +2 -0
- package/lib/typescript/src/skia/types/SVG/SVGFactory.d.ts +6 -0
- package/lib/typescript/src/skia/types/SVG/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/Shader/Shader.d.ts +11 -0
- package/lib/typescript/src/skia/types/Shader/ShaderFactory.d.ts +104 -0
- package/lib/typescript/src/skia/types/Shader/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/Skia.d.ts +68 -0
- package/lib/typescript/src/skia/types/Surface/Surface.d.ts +25 -0
- package/lib/typescript/src/skia/types/Surface/SurfaceFactory.d.ts +11 -0
- package/lib/typescript/src/skia/types/Surface/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/TextBlob.d.ts +44 -0
- package/lib/typescript/src/skia/types/Typeface/Typeface.d.ts +5 -0
- package/lib/typescript/src/skia/types/Typeface/TypefaceFactory.d.ts +5 -0
- package/lib/typescript/src/skia/types/Typeface/index.d.ts +2 -0
- package/lib/typescript/src/skia/types/Vertices/Vertices.d.ts +17 -0
- package/lib/typescript/src/skia/types/Vertices/index.d.ts +1 -0
- package/lib/typescript/src/skia/types/index.d.ts +28 -0
- package/lib/typescript/src/skia/web/Host.d.ts +21 -0
- package/lib/typescript/src/skia/web/JsiSkCanvas.d.ts +44 -0
- package/lib/typescript/src/skia/web/JsiSkColor.d.ts +2 -0
- package/lib/typescript/src/skia/web/JsiSkColorFilter.d.ts +6 -0
- package/lib/typescript/src/skia/web/JsiSkColorFilterFactory.d.ts +14 -0
- package/lib/typescript/src/skia/web/JsiSkContourMeasure.d.ts +16 -0
- package/lib/typescript/src/skia/web/JsiSkContourMeasureIter.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkData.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkDataFactory.d.ts +19 -0
- package/lib/typescript/src/skia/web/JsiSkFont.d.ts +34 -0
- package/lib/typescript/src/skia/web/JsiSkFontMgr.d.ts +9 -0
- package/lib/typescript/src/skia/web/JsiSkFontMgrFactory.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkImage.d.ts +12 -0
- package/lib/typescript/src/skia/web/JsiSkImageFactory.d.ts +10 -0
- package/lib/typescript/src/skia/web/JsiSkImageFilter.d.ts +6 -0
- package/lib/typescript/src/skia/web/JsiSkImageFilterFactory.d.ts +19 -0
- package/lib/typescript/src/skia/web/JsiSkMaskFilter.d.ts +6 -0
- package/lib/typescript/src/skia/web/JsiSkMaskFilterFactory.d.ts +9 -0
- package/lib/typescript/src/skia/web/JsiSkMatrix.d.ts +11 -0
- package/lib/typescript/src/skia/web/JsiSkPaint.d.ts +26 -0
- package/lib/typescript/src/skia/web/JsiSkPath.d.ts +56 -0
- package/lib/typescript/src/skia/web/JsiSkPathEffect.d.ts +6 -0
- package/lib/typescript/src/skia/web/JsiSkPathEffectFactory.d.ts +15 -0
- package/lib/typescript/src/skia/web/JsiSkPathFactory.d.ts +13 -0
- package/lib/typescript/src/skia/web/JsiSkPicture.d.ts +9 -0
- package/lib/typescript/src/skia/web/JsiSkPictureFactory.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkPictureRecorder.d.ts +11 -0
- package/lib/typescript/src/skia/web/JsiSkPoint.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkRRect.d.ts +10 -0
- package/lib/typescript/src/skia/web/JsiSkRSXform.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkRect.d.ts +11 -0
- package/lib/typescript/src/skia/web/JsiSkRuntimeEffect.d.ts +14 -0
- package/lib/typescript/src/skia/web/JsiSkRuntimeEffectFactory.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkSVGFactory.d.ts +9 -0
- package/lib/typescript/src/skia/web/JsiSkShader.d.ts +6 -0
- package/lib/typescript/src/skia/web/JsiSkShaderFactory.d.ts +16 -0
- package/lib/typescript/src/skia/web/JsiSkSurface.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkSurfaceFactory.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkTextBlob.d.ts +6 -0
- package/lib/typescript/src/skia/web/JsiSkTextBlobFactory.d.ts +12 -0
- package/lib/typescript/src/skia/web/JsiSkTypeface.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkTypefaceFactory.d.ts +8 -0
- package/lib/typescript/src/skia/web/JsiSkVertices.d.ts +9 -0
- package/lib/typescript/src/skia/web/JsiSkVerticesFactory.d.ts +4 -0
- package/lib/typescript/src/skia/web/JsiSkia.d.ts +3 -0
- package/lib/typescript/src/skia/web/index.d.ts +1 -0
- package/lib/typescript/src/values/api.d.ts +5 -0
- package/lib/typescript/src/values/api.web.d.ts +2 -0
- package/lib/typescript/src/values/hooks/index.d.ts +4 -0
- package/lib/typescript/src/values/hooks/useClockValue.d.ts +6 -0
- package/lib/typescript/src/values/hooks/useComputedValue.d.ts +9 -0
- package/lib/typescript/src/values/hooks/useValue.d.ts +7 -0
- package/lib/typescript/src/values/hooks/useValueEffect.d.ts +7 -0
- package/lib/typescript/src/values/index.d.ts +3 -0
- package/lib/typescript/src/values/types.d.ts +59 -0
- package/lib/typescript/src/values/web/RNSkAnimation.d.ts +9 -0
- package/lib/typescript/src/values/web/RNSkClockValue.d.ts +13 -0
- package/lib/typescript/src/values/web/RNSkComputedValue.d.ts +9 -0
- package/lib/typescript/src/values/web/RNSkReadonlyValue.d.ts +11 -0
- package/lib/typescript/src/values/web/RNSkValue.d.ts +14 -0
- package/lib/typescript/src/values/web/api.d.ts +2 -0
- package/lib/typescript/src/values/web/index.d.ts +1 -0
- package/lib/typescript/src/views/SkiaView.d.ts +37 -0
- package/lib/typescript/src/views/SkiaView.web.d.ts +56 -0
- package/lib/typescript/src/views/api.d.ts +5 -0
- package/lib/typescript/src/views/index.d.ts +4 -0
- package/lib/typescript/src/views/types.d.ts +76 -0
- package/lib/typescript/src/views/useDrawCallback.d.ts +8 -0
- package/lib/typescript/src/views/useTouchHandler.d.ts +22 -0
- package/lib/typescript/src/web/index.d.ts +5 -0
- package/libs/android/arm64-v8a/libskia.a +0 -0
- package/libs/android/arm64-v8a/libskshaper.a +0 -0
- package/libs/android/arm64-v8a/libsvg.a +0 -0
- package/libs/android/armeabi-v7a/libskia.a +0 -0
- package/libs/android/armeabi-v7a/libskshaper.a +0 -0
- package/libs/android/armeabi-v7a/libsvg.a +0 -0
- package/libs/android/x86/libskia.a +0 -0
- package/libs/android/x86/libskshaper.a +0 -0
- package/libs/android/x86/libsvg.a +0 -0
- package/libs/android/x86_64/libskia.a +0 -0
- package/libs/android/x86_64/libskshaper.a +0 -0
- package/libs/android/x86_64/libsvg.a +0 -0
- package/libs/ios/libskia.xcframework/Info.plist +42 -0
- package/libs/ios/libskia.xcframework/ios-arm64_arm64e/libskia.a +0 -0
- package/libs/ios/libskia.xcframework/ios-arm64_arm64e_x86_64-simulator/libskia.a +0 -0
- package/libs/ios/libskshaper.xcframework/Info.plist +42 -0
- package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e/libskshaper.a +0 -0
- package/libs/ios/libskshaper.xcframework/ios-arm64_arm64e_x86_64-simulator/libskshaper.a +0 -0
- package/libs/ios/libsvg.xcframework/Info.plist +42 -0
- package/libs/ios/libsvg.xcframework/ios-arm64_arm64e/libsvg.a +0 -0
- package/libs/ios/libsvg.xcframework/ios-arm64_arm64e_x86_64-simulator/libsvg.a +0 -0
- package/package.json +102 -0
- package/react-native-skia.podspec +71 -0
- package/scripts/install-npm.js +23 -0
- package/src/animation/decay/decay.ts +35 -0
- package/src/animation/decay/index.ts +1 -0
- package/src/animation/decay/runDecay.ts +40 -0
- package/src/animation/decay/types.ts +24 -0
- package/src/animation/functions/index.ts +4 -0
- package/src/animation/functions/interpolate.ts +184 -0
- package/src/animation/functions/interpolateColors.ts +57 -0
- package/src/animation/functions/interpolatePaths.ts +87 -0
- package/src/animation/functions/interpolateVector.ts +26 -0
- package/src/animation/index.ts +4 -0
- package/src/animation/spring/Spring.ts +61 -0
- package/src/animation/spring/functions/index.ts +1 -0
- package/src/animation/spring/functions/spring.ts +86 -0
- package/src/animation/spring/index.ts +3 -0
- package/src/animation/spring/runSpring.ts +37 -0
- package/src/animation/spring/types.ts +6 -0
- package/src/animation/spring/useSpring.ts +28 -0
- package/src/animation/timing/Easing.ts +102 -0
- package/src/animation/timing/createTiming.ts +62 -0
- package/src/animation/timing/functions/bezier.ts +165 -0
- package/src/animation/timing/functions/getResolvedParams.ts +50 -0
- package/src/animation/timing/functions/index.ts +4 -0
- package/src/animation/timing/functions/timing.ts +44 -0
- package/src/animation/timing/functions/types.ts +8 -0
- package/src/animation/timing/index.ts +4 -0
- package/src/animation/timing/runTiming.ts +33 -0
- package/src/animation/timing/useLoop.ts +18 -0
- package/src/animation/timing/useTiming.ts +68 -0
- package/src/animation/types.ts +23 -0
- package/src/external/index.ts +1 -0
- package/src/external/reanimated/index.ts +1 -0
- package/src/external/reanimated/useSharedValueEffect.ts +81 -0
- package/src/index.ts +8 -0
- package/src/mock/index.ts +110 -0
- package/src/renderer/Canvas.tsx +158 -0
- package/src/renderer/DependencyManager.tsx +59 -0
- package/src/renderer/DrawingContext.ts +14 -0
- package/src/renderer/HostConfig.ts +303 -0
- package/src/renderer/components/Blend.tsx +29 -0
- package/src/renderer/components/Compose.tsx +26 -0
- package/src/renderer/components/Drawing.tsx +16 -0
- package/src/renderer/components/Group.tsx +83 -0
- package/src/renderer/components/Mask.tsx +45 -0
- package/src/renderer/components/Paint.tsx +30 -0
- package/src/renderer/components/Picture.tsx +17 -0
- package/src/renderer/components/backdrop/BackdropBlur.tsx +23 -0
- package/src/renderer/components/backdrop/BackdropFilter.tsx +47 -0
- package/src/renderer/components/backdrop/index.ts +2 -0
- package/src/renderer/components/colorFilters/BlendColor.tsx +30 -0
- package/src/renderer/components/colorFilters/Compose.ts +18 -0
- package/src/renderer/components/colorFilters/Lerp.tsx +27 -0
- package/src/renderer/components/colorFilters/LinearToSRGBGamma.tsx +20 -0
- package/src/renderer/components/colorFilters/LumaColorFilter.tsx +18 -0
- package/src/renderer/components/colorFilters/Matrix.tsx +46 -0
- package/src/renderer/components/colorFilters/SRGBToLinearGamma.tsx +20 -0
- package/src/renderer/components/colorFilters/index.ts +6 -0
- package/src/renderer/components/image/BoxFit.ts +125 -0
- package/src/renderer/components/image/Image.tsx +50 -0
- package/src/renderer/components/image/ImageSVG.tsx +24 -0
- package/src/renderer/components/image/ImageShader.tsx +82 -0
- package/src/renderer/components/image/index.ts +4 -0
- package/src/renderer/components/imageFilters/Blur.tsx +37 -0
- package/src/renderer/components/imageFilters/DisplacementMap.tsx +34 -0
- package/src/renderer/components/imageFilters/InnerShadow.tsx +38 -0
- package/src/renderer/components/imageFilters/Morphology.tsx +33 -0
- package/src/renderer/components/imageFilters/Offset.tsx +28 -0
- package/src/renderer/components/imageFilters/RuntimeShader.tsx +31 -0
- package/src/renderer/components/imageFilters/Shadow.tsx +42 -0
- package/src/renderer/components/imageFilters/getInput.ts +20 -0
- package/src/renderer/components/imageFilters/index.ts +6 -0
- package/src/renderer/components/index.ts +18 -0
- package/src/renderer/components/maskFilters/Blur.tsx +32 -0
- package/src/renderer/components/maskFilters/index.ts +1 -0
- package/src/renderer/components/pathEffects/Corner.tsx +31 -0
- package/src/renderer/components/pathEffects/Dash.tsx +27 -0
- package/src/renderer/components/pathEffects/Discrete.tsx +34 -0
- package/src/renderer/components/pathEffects/Line2D.tsx +33 -0
- package/src/renderer/components/pathEffects/Path1D.tsx +43 -0
- package/src/renderer/components/pathEffects/Path2D.tsx +35 -0
- package/src/renderer/components/pathEffects/Sum.tsx +21 -0
- package/src/renderer/components/pathEffects/index.ts +7 -0
- package/src/renderer/components/shaders/Color.tsx +20 -0
- package/src/renderer/components/shaders/FractalNoise.tsx +36 -0
- package/src/renderer/components/shaders/Gradient.ts +24 -0
- package/src/renderer/components/shaders/LinearGradient.tsx +33 -0
- package/src/renderer/components/shaders/RadialGradient.tsx +33 -0
- package/src/renderer/components/shaders/Shader.tsx +32 -0
- package/src/renderer/components/shaders/ShaderLib.ts +46 -0
- package/src/renderer/components/shaders/SweepGradient.tsx +36 -0
- package/src/renderer/components/shaders/Turbulence.tsx +36 -0
- package/src/renderer/components/shaders/TwoPointConicalGradient.tsx +39 -0
- package/src/renderer/components/shaders/index.ts +9 -0
- package/src/renderer/components/shapes/Box.tsx +115 -0
- package/src/renderer/components/shapes/Circle.tsx +24 -0
- package/src/renderer/components/shapes/DiffRect.tsx +21 -0
- package/src/renderer/components/shapes/Fill.tsx +15 -0
- package/src/renderer/components/shapes/FitBox.tsx +28 -0
- package/src/renderer/components/shapes/Line.tsx +17 -0
- package/src/renderer/components/shapes/Oval.tsx +27 -0
- package/src/renderer/components/shapes/Patch.tsx +63 -0
- package/src/renderer/components/shapes/Path.tsx +57 -0
- package/src/renderer/components/shapes/Points.tsx +28 -0
- package/src/renderer/components/shapes/Rect.tsx +22 -0
- package/src/renderer/components/shapes/RoundedRect.tsx +25 -0
- package/src/renderer/components/shapes/Vertices.tsx +45 -0
- package/src/renderer/components/shapes/index.ts +13 -0
- package/src/renderer/components/text/Glyphs.tsx +52 -0
- package/src/renderer/components/text/Text.tsx +32 -0
- package/src/renderer/components/text/TextBlob.tsx +26 -0
- package/src/renderer/components/text/TextPath.tsx +68 -0
- package/src/renderer/components/text/index.ts +4 -0
- package/src/renderer/index.ts +5 -0
- package/src/renderer/nodes/Container.tsx +17 -0
- package/src/renderer/nodes/Declaration.tsx +67 -0
- package/src/renderer/nodes/Drawing.tsx +67 -0
- package/src/renderer/nodes/Node.ts +57 -0
- package/src/renderer/nodes/index.ts +4 -0
- package/src/renderer/processors/Animations/Animations.ts +42 -0
- package/src/renderer/processors/Animations/index.ts +1 -0
- package/src/renderer/processors/Circles.ts +26 -0
- package/src/renderer/processors/Clips.ts +23 -0
- package/src/renderer/processors/Color.ts +15 -0
- package/src/renderer/processors/Font.ts +31 -0
- package/src/renderer/processors/Paint.ts +118 -0
- package/src/renderer/processors/Paths.ts +19 -0
- package/src/renderer/processors/Radius.ts +10 -0
- package/src/renderer/processors/Rects.ts +50 -0
- package/src/renderer/processors/Transform.ts +53 -0
- package/src/renderer/processors/index.ts +11 -0
- package/src/renderer/processors/math/Coordinates.ts +32 -0
- package/src/renderer/processors/math/Math.ts +18 -0
- package/src/renderer/processors/math/Transforms.ts +8 -0
- package/src/renderer/processors/math/index.ts +3 -0
- package/src/renderer/typeddash.ts +23 -0
- package/src/renderer/useCanvas.ts +21 -0
- package/src/renderer/useContextBridge.tsx +21 -0
- package/src/skia/NativeSetup.ts +18 -0
- package/src/skia/Skia.ts +11 -0
- package/src/skia/Skia.web.ts +3 -0
- package/src/skia/core/Data.ts +98 -0
- package/src/skia/core/Font.ts +28 -0
- package/src/skia/core/Image.ts +12 -0
- package/src/skia/core/Matrix.ts +6 -0
- package/src/skia/core/Paint.ts +22 -0
- package/src/skia/core/Path.ts +60 -0
- package/src/skia/core/Picture.ts +25 -0
- package/src/skia/core/RRect.tsx +5 -0
- package/src/skia/core/Rect.ts +33 -0
- package/src/skia/core/SVG.ts +9 -0
- package/src/skia/core/Typeface.ts +16 -0
- package/src/skia/core/Vector.ts +11 -0
- package/src/skia/core/index.ts +12 -0
- package/src/skia/index.ts +3 -0
- package/src/skia/types/Canvas.ts +495 -0
- package/src/skia/types/Color.ts +4 -0
- package/src/skia/types/ColorFilter/ColorFilter.ts +7 -0
- package/src/skia/types/ColorFilter/ColorFilterFactory.ts +52 -0
- package/src/skia/types/ColorFilter/index.ts +2 -0
- package/src/skia/types/ContourMeasure.tsx +47 -0
- package/src/skia/types/Data/Data.ts +5 -0
- package/src/skia/types/Data/DataFactory.ts +19 -0
- package/src/skia/types/Data/index.ts +2 -0
- package/src/skia/types/Font/Font.ts +232 -0
- package/src/skia/types/Font/index.ts +1 -0
- package/src/skia/types/FontMgr/FontMgr.ts +24 -0
- package/src/skia/types/FontMgr/FontMgrFactory.ts +12 -0
- package/src/skia/types/FontMgr/index.ts +2 -0
- package/src/skia/types/Image/Image.ts +96 -0
- package/src/skia/types/Image/ImageFactory.ts +78 -0
- package/src/skia/types/Image/index.ts +2 -0
- package/src/skia/types/ImageFilter/ImageFilter.ts +31 -0
- package/src/skia/types/ImageFilter/ImageFilterFactory.ts +192 -0
- package/src/skia/types/ImageFilter/index.ts +2 -0
- package/src/skia/types/JsiInstance.ts +3 -0
- package/src/skia/types/MaskFilter.ts +27 -0
- package/src/skia/types/Matrix.ts +95 -0
- package/src/skia/types/Paint/BlendMode.ts +61 -0
- package/src/skia/types/Paint/Paint.ts +153 -0
- package/src/skia/types/Paint/index.ts +2 -0
- package/src/skia/types/Path/Path.ts +564 -0
- package/src/skia/types/Path/PathFactory.ts +34 -0
- package/src/skia/types/Path/index.ts +2 -0
- package/src/skia/types/PathEffect.ts +97 -0
- package/src/skia/types/Picture/Picture.ts +34 -0
- package/src/skia/types/Picture/PictureFactory.ts +9 -0
- package/src/skia/types/Picture/PictureRecorder.ts +18 -0
- package/src/skia/types/Picture/index.ts +3 -0
- package/src/skia/types/Point.ts +12 -0
- package/src/skia/types/RRect.ts +12 -0
- package/src/skia/types/RSXform.ts +3 -0
- package/src/skia/types/Rect.ts +6 -0
- package/src/skia/types/RuntimeEffect/RuntimeEffect.ts +61 -0
- package/src/skia/types/RuntimeEffect/RuntimeEffectFactory.ts +12 -0
- package/src/skia/types/RuntimeEffect/index.ts +2 -0
- package/src/skia/types/SVG/SVG.ts +3 -0
- package/src/skia/types/SVG/SVGFactory.ts +8 -0
- package/src/skia/types/SVG/index.ts +2 -0
- package/src/skia/types/Shader/Shader.ts +65 -0
- package/src/skia/types/Shader/ShaderFactory.ts +169 -0
- package/src/skia/types/Shader/index.ts +2 -0
- package/src/skia/types/Skia.ts +84 -0
- package/src/skia/types/Surface/Surface.ts +27 -0
- package/src/skia/types/Surface/SurfaceFactory.ts +12 -0
- package/src/skia/types/Surface/index.ts +2 -0
- package/src/skia/types/TextBlob.ts +52 -0
- package/src/skia/types/Typeface/Typeface.ts +6 -0
- package/src/skia/types/Typeface/TypefaceFactory.ts +7 -0
- package/src/skia/types/Typeface/index.ts +2 -0
- package/src/skia/types/Vertices/Vertices.tsx +20 -0
- package/src/skia/types/Vertices/index.ts +1 -0
- package/src/skia/types/index.ts +28 -0
- package/src/skia/web/Host.ts +56 -0
- package/src/skia/web/JsiSkCanvas.ts +330 -0
- package/src/skia/web/JsiSkColor.ts +327 -0
- package/src/skia/web/JsiSkColorFilter.ts +14 -0
- package/src/skia/web/JsiSkColorFilterFactory.ts +67 -0
- package/src/skia/web/JsiSkContourMeasure.ts +35 -0
- package/src/skia/web/JsiSkContourMeasureIter.ts +23 -0
- package/src/skia/web/JsiSkData.ts +13 -0
- package/src/skia/web/JsiSkDataFactory.ts +35 -0
- package/src/skia/web/JsiSkFont.ts +134 -0
- package/src/skia/web/JsiSkFontMgr.ts +38 -0
- package/src/skia/web/JsiSkFontMgrFactory.ts +18 -0
- package/src/skia/web/JsiSkImage.ts +87 -0
- package/src/skia/web/JsiSkImageFactory.ts +40 -0
- package/src/skia/web/JsiSkImageFilter.ts +14 -0
- package/src/skia/web/JsiSkImageFilterFactory.ts +144 -0
- package/src/skia/web/JsiSkMaskFilter.ts +14 -0
- package/src/skia/web/JsiSkMaskFilterFactory.ts +20 -0
- package/src/skia/web/JsiSkMatrix.ts +54 -0
- package/src/skia/web/JsiSkPaint.ts +104 -0
- package/src/skia/web/JsiSkPath.ts +386 -0
- package/src/skia/web/JsiSkPathEffect.ts +14 -0
- package/src/skia/web/JsiSkPathEffectFactory.ts +85 -0
- package/src/skia/web/JsiSkPathFactory.ts +54 -0
- package/src/skia/web/JsiSkPicture.ts +45 -0
- package/src/skia/web/JsiSkPictureFactory.ts +20 -0
- package/src/skia/web/JsiSkPictureRecorder.ts +31 -0
- package/src/skia/web/JsiSkPoint.ts +19 -0
- package/src/skia/web/JsiSkRRect.ts +27 -0
- package/src/skia/web/JsiSkRSXform.ts +16 -0
- package/src/skia/web/JsiSkRect.ts +37 -0
- package/src/skia/web/JsiSkRuntimeEffect.ts +57 -0
- package/src/skia/web/JsiSkRuntimeEffectFactory.ts +23 -0
- package/src/skia/web/JsiSkSVGFactory.ts +20 -0
- package/src/skia/web/JsiSkShader.ts +14 -0
- package/src/skia/web/JsiSkShaderFactory.ts +181 -0
- package/src/skia/web/JsiSkSurface.ts +25 -0
- package/src/skia/web/JsiSkSurfaceFactory.ts +20 -0
- package/src/skia/web/JsiSkTextBlob.ts +14 -0
- package/src/skia/web/JsiSkTextBlobFactory.ts +49 -0
- package/src/skia/web/JsiSkTypeface.ts +28 -0
- package/src/skia/web/JsiSkTypefaceFactory.tsx +20 -0
- package/src/skia/web/JsiSkVertices.ts +23 -0
- package/src/skia/web/JsiSkVerticesFactory.ts +41 -0
- package/src/skia/web/JsiSkia.ts +98 -0
- package/src/skia/web/index.ts +1 -0
- package/src/values/api.ts +8 -0
- package/src/values/api.web.ts +5 -0
- package/src/values/hooks/index.ts +4 -0
- package/src/values/hooks/useClockValue.ts +18 -0
- package/src/values/hooks/useComputedValue.ts +23 -0
- package/src/values/hooks/useValue.ts +14 -0
- package/src/values/hooks/useValueEffect.ts +15 -0
- package/src/values/index.ts +3 -0
- package/src/values/types.ts +69 -0
- package/src/values/web/RNSkAnimation.ts +33 -0
- package/src/values/web/RNSkClockValue.ts +58 -0
- package/src/values/web/RNSkComputedValue.ts +38 -0
- package/src/values/web/RNSkReadonlyValue.ts +32 -0
- package/src/values/web/RNSkValue.ts +57 -0
- package/src/values/web/api.ts +33 -0
- package/src/values/web/index.ts +1 -0
- package/src/views/SkiaView.tsx +105 -0
- package/src/views/SkiaView.web.tsx +193 -0
- package/src/views/api.ts +7 -0
- package/src/views/index.ts +4 -0
- package/src/views/types.ts +96 -0
- package/src/views/useDrawCallback.ts +19 -0
- package/src/views/useTouchHandler.ts +111 -0
- package/src/web/index.ts +15 -0
@@ -0,0 +1,1878 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2006 The Android Open Source Project
|
3
|
+
*
|
4
|
+
* Use of this source code is governed by a BSD-style license that can be
|
5
|
+
* found in the LICENSE file.
|
6
|
+
*/
|
7
|
+
|
8
|
+
#ifndef SkPath_DEFINED
|
9
|
+
#define SkPath_DEFINED
|
10
|
+
|
11
|
+
#include "include/core/SkMatrix.h"
|
12
|
+
#include "include/core/SkPathTypes.h"
|
13
|
+
#include "include/core/SkRefCnt.h"
|
14
|
+
#include "include/private/SkTo.h"
|
15
|
+
|
16
|
+
#include <initializer_list>
|
17
|
+
#include <tuple>
|
18
|
+
|
19
|
+
class SkAutoPathBoundsUpdate;
|
20
|
+
class SkData;
|
21
|
+
class SkPathRef;
|
22
|
+
class SkRRect;
|
23
|
+
class SkWStream;
|
24
|
+
|
25
|
+
enum class SkPathConvexity;
|
26
|
+
enum class SkPathFirstDirection;
|
27
|
+
|
28
|
+
// WIP -- define this locally, and fix call-sites to use SkPathBuilder (skbug.com/9000)
|
29
|
+
//#define SK_HIDE_PATH_EDIT_METHODS
|
30
|
+
|
31
|
+
/** \class SkPath
|
32
|
+
SkPath contain geometry. SkPath may be empty, or contain one or more verbs that
|
33
|
+
outline a figure. SkPath always starts with a move verb to a Cartesian coordinate,
|
34
|
+
and may be followed by additional verbs that add lines or curves.
|
35
|
+
Adding a close verb makes the geometry into a continuous loop, a closed contour.
|
36
|
+
SkPath may contain any number of contours, each beginning with a move verb.
|
37
|
+
|
38
|
+
SkPath contours may contain only a move verb, or may also contain lines,
|
39
|
+
quadratic beziers, conics, and cubic beziers. SkPath contours may be open or
|
40
|
+
closed.
|
41
|
+
|
42
|
+
When used to draw a filled area, SkPath describes whether the fill is inside or
|
43
|
+
outside the geometry. SkPath also describes the winding rule used to fill
|
44
|
+
overlapping contours.
|
45
|
+
|
46
|
+
Internally, SkPath lazily computes metrics likes bounds and convexity. Call
|
47
|
+
SkPath::updateBoundsCache to make SkPath thread safe.
|
48
|
+
*/
|
49
|
+
class SK_API SkPath {
|
50
|
+
public:
|
51
|
+
/**
|
52
|
+
* Create a new path with the specified segments.
|
53
|
+
*
|
54
|
+
* The points and weights arrays are read in order, based on the sequence of verbs.
|
55
|
+
*
|
56
|
+
* Move 1 point
|
57
|
+
* Line 1 point
|
58
|
+
* Quad 2 points
|
59
|
+
* Conic 2 points and 1 weight
|
60
|
+
* Cubic 3 points
|
61
|
+
* Close 0 points
|
62
|
+
*
|
63
|
+
* If an illegal sequence of verbs is encountered, or the specified number of points
|
64
|
+
* or weights is not sufficient given the verbs, an empty Path is returned.
|
65
|
+
*
|
66
|
+
* A legal sequence of verbs consists of any number of Contours. A contour always begins
|
67
|
+
* with a Move verb, followed by 0 or more segments: Line, Quad, Conic, Cubic, followed
|
68
|
+
* by an optional Close.
|
69
|
+
*/
|
70
|
+
static SkPath Make(const SkPoint[], int pointCount,
|
71
|
+
const uint8_t[], int verbCount,
|
72
|
+
const SkScalar[], int conicWeightCount,
|
73
|
+
SkPathFillType, bool isVolatile = false);
|
74
|
+
|
75
|
+
static SkPath Rect(const SkRect&, SkPathDirection = SkPathDirection::kCW,
|
76
|
+
unsigned startIndex = 0);
|
77
|
+
static SkPath Oval(const SkRect&, SkPathDirection = SkPathDirection::kCW);
|
78
|
+
static SkPath Oval(const SkRect&, SkPathDirection, unsigned startIndex);
|
79
|
+
static SkPath Circle(SkScalar center_x, SkScalar center_y, SkScalar radius,
|
80
|
+
SkPathDirection dir = SkPathDirection::kCW);
|
81
|
+
static SkPath RRect(const SkRRect&, SkPathDirection dir = SkPathDirection::kCW);
|
82
|
+
static SkPath RRect(const SkRRect&, SkPathDirection, unsigned startIndex);
|
83
|
+
static SkPath RRect(const SkRect& bounds, SkScalar rx, SkScalar ry,
|
84
|
+
SkPathDirection dir = SkPathDirection::kCW);
|
85
|
+
|
86
|
+
static SkPath Polygon(const SkPoint pts[], int count, bool isClosed,
|
87
|
+
SkPathFillType = SkPathFillType::kWinding,
|
88
|
+
bool isVolatile = false);
|
89
|
+
|
90
|
+
static SkPath Polygon(const std::initializer_list<SkPoint>& list, bool isClosed,
|
91
|
+
SkPathFillType fillType = SkPathFillType::kWinding,
|
92
|
+
bool isVolatile = false) {
|
93
|
+
return Polygon(list.begin(), SkToInt(list.size()), isClosed, fillType, isVolatile);
|
94
|
+
}
|
95
|
+
|
96
|
+
static SkPath Line(const SkPoint a, const SkPoint b) {
|
97
|
+
return Polygon({a, b}, false);
|
98
|
+
}
|
99
|
+
|
100
|
+
/** Constructs an empty SkPath. By default, SkPath has no verbs, no SkPoint, and no weights.
|
101
|
+
FillType is set to kWinding.
|
102
|
+
|
103
|
+
@return empty SkPath
|
104
|
+
|
105
|
+
example: https://fiddle.skia.org/c/@Path_empty_constructor
|
106
|
+
*/
|
107
|
+
SkPath();
|
108
|
+
|
109
|
+
/** Constructs a copy of an existing path.
|
110
|
+
Copy constructor makes two paths identical by value. Internally, path and
|
111
|
+
the returned result share pointer values. The underlying verb array, SkPoint array
|
112
|
+
and weights are copied when modified.
|
113
|
+
|
114
|
+
Creating a SkPath copy is very efficient and never allocates memory.
|
115
|
+
SkPath are always copied by value from the interface; the underlying shared
|
116
|
+
pointers are not exposed.
|
117
|
+
|
118
|
+
@param path SkPath to copy by value
|
119
|
+
@return copy of SkPath
|
120
|
+
|
121
|
+
example: https://fiddle.skia.org/c/@Path_copy_const_SkPath
|
122
|
+
*/
|
123
|
+
SkPath(const SkPath& path);
|
124
|
+
|
125
|
+
/** Releases ownership of any shared data and deletes data if SkPath is sole owner.
|
126
|
+
|
127
|
+
example: https://fiddle.skia.org/c/@Path_destructor
|
128
|
+
*/
|
129
|
+
~SkPath();
|
130
|
+
|
131
|
+
/** Constructs a copy of an existing path.
|
132
|
+
SkPath assignment makes two paths identical by value. Internally, assignment
|
133
|
+
shares pointer values. The underlying verb array, SkPoint array and weights
|
134
|
+
are copied when modified.
|
135
|
+
|
136
|
+
Copying SkPath by assignment is very efficient and never allocates memory.
|
137
|
+
SkPath are always copied by value from the interface; the underlying shared
|
138
|
+
pointers are not exposed.
|
139
|
+
|
140
|
+
@param path verb array, SkPoint array, weights, and SkPath::FillType to copy
|
141
|
+
@return SkPath copied by value
|
142
|
+
|
143
|
+
example: https://fiddle.skia.org/c/@Path_copy_operator
|
144
|
+
*/
|
145
|
+
SkPath& operator=(const SkPath& path);
|
146
|
+
|
147
|
+
/** Compares a and b; returns true if SkPath::FillType, verb array, SkPoint array, and weights
|
148
|
+
are equivalent.
|
149
|
+
|
150
|
+
@param a SkPath to compare
|
151
|
+
@param b SkPath to compare
|
152
|
+
@return true if SkPath pair are equivalent
|
153
|
+
*/
|
154
|
+
friend SK_API bool operator==(const SkPath& a, const SkPath& b);
|
155
|
+
|
156
|
+
/** Compares a and b; returns true if SkPath::FillType, verb array, SkPoint array, and weights
|
157
|
+
are not equivalent.
|
158
|
+
|
159
|
+
@param a SkPath to compare
|
160
|
+
@param b SkPath to compare
|
161
|
+
@return true if SkPath pair are not equivalent
|
162
|
+
*/
|
163
|
+
friend bool operator!=(const SkPath& a, const SkPath& b) {
|
164
|
+
return !(a == b);
|
165
|
+
}
|
166
|
+
|
167
|
+
/** Returns true if SkPath contain equal verbs and equal weights.
|
168
|
+
If SkPath contain one or more conics, the weights must match.
|
169
|
+
|
170
|
+
conicTo() may add different verbs depending on conic weight, so it is not
|
171
|
+
trivial to interpolate a pair of SkPath containing conics with different
|
172
|
+
conic weight values.
|
173
|
+
|
174
|
+
@param compare SkPath to compare
|
175
|
+
@return true if SkPath verb array and weights are equivalent
|
176
|
+
|
177
|
+
example: https://fiddle.skia.org/c/@Path_isInterpolatable
|
178
|
+
*/
|
179
|
+
bool isInterpolatable(const SkPath& compare) const;
|
180
|
+
|
181
|
+
/** Interpolates between SkPath with SkPoint array of equal size.
|
182
|
+
Copy verb array and weights to out, and set out SkPoint array to a weighted
|
183
|
+
average of this SkPoint array and ending SkPoint array, using the formula:
|
184
|
+
(Path Point * weight) + ending Point * (1 - weight).
|
185
|
+
|
186
|
+
weight is most useful when between zero (ending SkPoint array) and
|
187
|
+
one (this Point_Array); will work with values outside of this
|
188
|
+
range.
|
189
|
+
|
190
|
+
interpolate() returns false and leaves out unchanged if SkPoint array is not
|
191
|
+
the same size as ending SkPoint array. Call isInterpolatable() to check SkPath
|
192
|
+
compatibility prior to calling interpolate().
|
193
|
+
|
194
|
+
@param ending SkPoint array averaged with this SkPoint array
|
195
|
+
@param weight contribution of this SkPoint array, and
|
196
|
+
one minus contribution of ending SkPoint array
|
197
|
+
@param out SkPath replaced by interpolated averages
|
198
|
+
@return true if SkPath contain same number of SkPoint
|
199
|
+
|
200
|
+
example: https://fiddle.skia.org/c/@Path_interpolate
|
201
|
+
*/
|
202
|
+
bool interpolate(const SkPath& ending, SkScalar weight, SkPath* out) const;
|
203
|
+
|
204
|
+
/** Returns SkPathFillType, the rule used to fill SkPath.
|
205
|
+
|
206
|
+
@return current SkPathFillType setting
|
207
|
+
*/
|
208
|
+
SkPathFillType getFillType() const { return (SkPathFillType)fFillType; }
|
209
|
+
|
210
|
+
/** Sets FillType, the rule used to fill SkPath. While there is no check
|
211
|
+
that ft is legal, values outside of FillType are not supported.
|
212
|
+
*/
|
213
|
+
void setFillType(SkPathFillType ft) {
|
214
|
+
fFillType = SkToU8(ft);
|
215
|
+
}
|
216
|
+
|
217
|
+
/** Returns if FillType describes area outside SkPath geometry. The inverse fill area
|
218
|
+
extends indefinitely.
|
219
|
+
|
220
|
+
@return true if FillType is kInverseWinding or kInverseEvenOdd
|
221
|
+
*/
|
222
|
+
bool isInverseFillType() const { return SkPathFillType_IsInverse(this->getFillType()); }
|
223
|
+
|
224
|
+
/** Replaces FillType with its inverse. The inverse of FillType describes the area
|
225
|
+
unmodified by the original FillType.
|
226
|
+
*/
|
227
|
+
void toggleInverseFillType() {
|
228
|
+
fFillType ^= 2;
|
229
|
+
}
|
230
|
+
|
231
|
+
/** Returns true if the path is convex. If necessary, it will first compute the convexity.
|
232
|
+
*/
|
233
|
+
bool isConvex() const;
|
234
|
+
|
235
|
+
/** Returns true if this path is recognized as an oval or circle.
|
236
|
+
|
237
|
+
bounds receives bounds of oval.
|
238
|
+
|
239
|
+
bounds is unmodified if oval is not found.
|
240
|
+
|
241
|
+
@param bounds storage for bounding SkRect of oval; may be nullptr
|
242
|
+
@return true if SkPath is recognized as an oval or circle
|
243
|
+
|
244
|
+
example: https://fiddle.skia.org/c/@Path_isOval
|
245
|
+
*/
|
246
|
+
bool isOval(SkRect* bounds) const;
|
247
|
+
|
248
|
+
/** Returns true if path is representable as SkRRect.
|
249
|
+
Returns false if path is representable as oval, circle, or SkRect.
|
250
|
+
|
251
|
+
rrect receives bounds of SkRRect.
|
252
|
+
|
253
|
+
rrect is unmodified if SkRRect is not found.
|
254
|
+
|
255
|
+
@param rrect storage for bounding SkRect of SkRRect; may be nullptr
|
256
|
+
@return true if SkPath contains only SkRRect
|
257
|
+
|
258
|
+
example: https://fiddle.skia.org/c/@Path_isRRect
|
259
|
+
*/
|
260
|
+
bool isRRect(SkRRect* rrect) const;
|
261
|
+
|
262
|
+
/** Sets SkPath to its initial state.
|
263
|
+
Removes verb array, SkPoint array, and weights, and sets FillType to kWinding.
|
264
|
+
Internal storage associated with SkPath is released.
|
265
|
+
|
266
|
+
@return reference to SkPath
|
267
|
+
|
268
|
+
example: https://fiddle.skia.org/c/@Path_reset
|
269
|
+
*/
|
270
|
+
SkPath& reset();
|
271
|
+
|
272
|
+
/** Sets SkPath to its initial state, preserving internal storage.
|
273
|
+
Removes verb array, SkPoint array, and weights, and sets FillType to kWinding.
|
274
|
+
Internal storage associated with SkPath is retained.
|
275
|
+
|
276
|
+
Use rewind() instead of reset() if SkPath storage will be reused and performance
|
277
|
+
is critical.
|
278
|
+
|
279
|
+
@return reference to SkPath
|
280
|
+
|
281
|
+
example: https://fiddle.skia.org/c/@Path_rewind
|
282
|
+
*/
|
283
|
+
SkPath& rewind();
|
284
|
+
|
285
|
+
/** Returns if SkPath is empty.
|
286
|
+
Empty SkPath may have FillType but has no SkPoint, SkPath::Verb, or conic weight.
|
287
|
+
SkPath() constructs empty SkPath; reset() and rewind() make SkPath empty.
|
288
|
+
|
289
|
+
@return true if the path contains no SkPath::Verb array
|
290
|
+
*/
|
291
|
+
bool isEmpty() const;
|
292
|
+
|
293
|
+
/** Returns if contour is closed.
|
294
|
+
Contour is closed if SkPath SkPath::Verb array was last modified by close(). When stroked,
|
295
|
+
closed contour draws SkPaint::Join instead of SkPaint::Cap at first and last SkPoint.
|
296
|
+
|
297
|
+
@return true if the last contour ends with a kClose_Verb
|
298
|
+
|
299
|
+
example: https://fiddle.skia.org/c/@Path_isLastContourClosed
|
300
|
+
*/
|
301
|
+
bool isLastContourClosed() const;
|
302
|
+
|
303
|
+
/** Returns true for finite SkPoint array values between negative SK_ScalarMax and
|
304
|
+
positive SK_ScalarMax. Returns false for any SkPoint array value of
|
305
|
+
SK_ScalarInfinity, SK_ScalarNegativeInfinity, or SK_ScalarNaN.
|
306
|
+
|
307
|
+
@return true if all SkPoint values are finite
|
308
|
+
*/
|
309
|
+
bool isFinite() const;
|
310
|
+
|
311
|
+
/** Returns true if the path is volatile; it will not be altered or discarded
|
312
|
+
by the caller after it is drawn. SkPath by default have volatile set false, allowing
|
313
|
+
SkSurface to attach a cache of data which speeds repeated drawing. If true, SkSurface
|
314
|
+
may not speed repeated drawing.
|
315
|
+
|
316
|
+
@return true if caller will alter SkPath after drawing
|
317
|
+
*/
|
318
|
+
bool isVolatile() const {
|
319
|
+
return SkToBool(fIsVolatile);
|
320
|
+
}
|
321
|
+
|
322
|
+
/** Specifies whether SkPath is volatile; whether it will be altered or discarded
|
323
|
+
by the caller after it is drawn. SkPath by default have volatile set false, allowing
|
324
|
+
SkBaseDevice to attach a cache of data which speeds repeated drawing.
|
325
|
+
|
326
|
+
Mark temporary paths, discarded or modified after use, as volatile
|
327
|
+
to inform SkBaseDevice that the path need not be cached.
|
328
|
+
|
329
|
+
Mark animating SkPath volatile to improve performance.
|
330
|
+
Mark unchanging SkPath non-volatile to improve repeated rendering.
|
331
|
+
|
332
|
+
raster surface SkPath draws are affected by volatile for some shadows.
|
333
|
+
GPU surface SkPath draws are affected by volatile for some shadows and concave geometries.
|
334
|
+
|
335
|
+
@param isVolatile true if caller will alter SkPath after drawing
|
336
|
+
@return reference to SkPath
|
337
|
+
*/
|
338
|
+
SkPath& setIsVolatile(bool isVolatile) {
|
339
|
+
fIsVolatile = isVolatile;
|
340
|
+
return *this;
|
341
|
+
}
|
342
|
+
|
343
|
+
/** Tests if line between SkPoint pair is degenerate.
|
344
|
+
Line with no length or that moves a very short distance is degenerate; it is
|
345
|
+
treated as a point.
|
346
|
+
|
347
|
+
exact changes the equality test. If true, returns true only if p1 equals p2.
|
348
|
+
If false, returns true if p1 equals or nearly equals p2.
|
349
|
+
|
350
|
+
@param p1 line start point
|
351
|
+
@param p2 line end point
|
352
|
+
@param exact if false, allow nearly equals
|
353
|
+
@return true if line is degenerate; its length is effectively zero
|
354
|
+
|
355
|
+
example: https://fiddle.skia.org/c/@Path_IsLineDegenerate
|
356
|
+
*/
|
357
|
+
static bool IsLineDegenerate(const SkPoint& p1, const SkPoint& p2, bool exact);
|
358
|
+
|
359
|
+
/** Tests if quad is degenerate.
|
360
|
+
Quad with no length or that moves a very short distance is degenerate; it is
|
361
|
+
treated as a point.
|
362
|
+
|
363
|
+
@param p1 quad start point
|
364
|
+
@param p2 quad control point
|
365
|
+
@param p3 quad end point
|
366
|
+
@param exact if true, returns true only if p1, p2, and p3 are equal;
|
367
|
+
if false, returns true if p1, p2, and p3 are equal or nearly equal
|
368
|
+
@return true if quad is degenerate; its length is effectively zero
|
369
|
+
*/
|
370
|
+
static bool IsQuadDegenerate(const SkPoint& p1, const SkPoint& p2,
|
371
|
+
const SkPoint& p3, bool exact);
|
372
|
+
|
373
|
+
/** Tests if cubic is degenerate.
|
374
|
+
Cubic with no length or that moves a very short distance is degenerate; it is
|
375
|
+
treated as a point.
|
376
|
+
|
377
|
+
@param p1 cubic start point
|
378
|
+
@param p2 cubic control point 1
|
379
|
+
@param p3 cubic control point 2
|
380
|
+
@param p4 cubic end point
|
381
|
+
@param exact if true, returns true only if p1, p2, p3, and p4 are equal;
|
382
|
+
if false, returns true if p1, p2, p3, and p4 are equal or nearly equal
|
383
|
+
@return true if cubic is degenerate; its length is effectively zero
|
384
|
+
*/
|
385
|
+
static bool IsCubicDegenerate(const SkPoint& p1, const SkPoint& p2,
|
386
|
+
const SkPoint& p3, const SkPoint& p4, bool exact);
|
387
|
+
|
388
|
+
/** Returns true if SkPath contains only one line;
|
389
|
+
SkPath::Verb array has two entries: kMove_Verb, kLine_Verb.
|
390
|
+
If SkPath contains one line and line is not nullptr, line is set to
|
391
|
+
line start point and line end point.
|
392
|
+
Returns false if SkPath is not one line; line is unaltered.
|
393
|
+
|
394
|
+
@param line storage for line. May be nullptr
|
395
|
+
@return true if SkPath contains exactly one line
|
396
|
+
|
397
|
+
example: https://fiddle.skia.org/c/@Path_isLine
|
398
|
+
*/
|
399
|
+
bool isLine(SkPoint line[2]) const;
|
400
|
+
|
401
|
+
/** Returns the number of points in SkPath.
|
402
|
+
SkPoint count is initially zero.
|
403
|
+
|
404
|
+
@return SkPath SkPoint array length
|
405
|
+
|
406
|
+
example: https://fiddle.skia.org/c/@Path_countPoints
|
407
|
+
*/
|
408
|
+
int countPoints() const;
|
409
|
+
|
410
|
+
/** Returns SkPoint at index in SkPoint array. Valid range for index is
|
411
|
+
0 to countPoints() - 1.
|
412
|
+
Returns (0, 0) if index is out of range.
|
413
|
+
|
414
|
+
@param index SkPoint array element selector
|
415
|
+
@return SkPoint array value or (0, 0)
|
416
|
+
|
417
|
+
example: https://fiddle.skia.org/c/@Path_getPoint
|
418
|
+
*/
|
419
|
+
SkPoint getPoint(int index) const;
|
420
|
+
|
421
|
+
/** Returns number of points in SkPath. Up to max points are copied.
|
422
|
+
points may be nullptr; then, max must be zero.
|
423
|
+
If max is greater than number of points, excess points storage is unaltered.
|
424
|
+
|
425
|
+
@param points storage for SkPath SkPoint array. May be nullptr
|
426
|
+
@param max maximum to copy; must be greater than or equal to zero
|
427
|
+
@return SkPath SkPoint array length
|
428
|
+
|
429
|
+
example: https://fiddle.skia.org/c/@Path_getPoints
|
430
|
+
*/
|
431
|
+
int getPoints(SkPoint points[], int max) const;
|
432
|
+
|
433
|
+
/** Returns the number of verbs: kMove_Verb, kLine_Verb, kQuad_Verb, kConic_Verb,
|
434
|
+
kCubic_Verb, and kClose_Verb; added to SkPath.
|
435
|
+
|
436
|
+
@return length of verb array
|
437
|
+
|
438
|
+
example: https://fiddle.skia.org/c/@Path_countVerbs
|
439
|
+
*/
|
440
|
+
int countVerbs() const;
|
441
|
+
|
442
|
+
/** Returns the number of verbs in the path. Up to max verbs are copied. The
|
443
|
+
verbs are copied as one byte per verb.
|
444
|
+
|
445
|
+
@param verbs storage for verbs, may be nullptr
|
446
|
+
@param max maximum number to copy into verbs
|
447
|
+
@return the actual number of verbs in the path
|
448
|
+
|
449
|
+
example: https://fiddle.skia.org/c/@Path_getVerbs
|
450
|
+
*/
|
451
|
+
int getVerbs(uint8_t verbs[], int max) const;
|
452
|
+
|
453
|
+
/** Returns the approximate byte size of the SkPath in memory.
|
454
|
+
|
455
|
+
@return approximate size
|
456
|
+
*/
|
457
|
+
size_t approximateBytesUsed() const;
|
458
|
+
|
459
|
+
/** Exchanges the verb array, SkPoint array, weights, and SkPath::FillType with other.
|
460
|
+
Cached state is also exchanged. swap() internally exchanges pointers, so
|
461
|
+
it is lightweight and does not allocate memory.
|
462
|
+
|
463
|
+
swap() usage has largely been replaced by operator=(const SkPath& path).
|
464
|
+
SkPath do not copy their content on assignment until they are written to,
|
465
|
+
making assignment as efficient as swap().
|
466
|
+
|
467
|
+
@param other SkPath exchanged by value
|
468
|
+
|
469
|
+
example: https://fiddle.skia.org/c/@Path_swap
|
470
|
+
*/
|
471
|
+
void swap(SkPath& other);
|
472
|
+
|
473
|
+
/** Returns minimum and maximum axes values of SkPoint array.
|
474
|
+
Returns (0, 0, 0, 0) if SkPath contains no points. Returned bounds width and height may
|
475
|
+
be larger or smaller than area affected when SkPath is drawn.
|
476
|
+
|
477
|
+
SkRect returned includes all SkPoint added to SkPath, including SkPoint associated with
|
478
|
+
kMove_Verb that define empty contours.
|
479
|
+
|
480
|
+
@return bounds of all SkPoint in SkPoint array
|
481
|
+
*/
|
482
|
+
const SkRect& getBounds() const;
|
483
|
+
|
484
|
+
/** Updates internal bounds so that subsequent calls to getBounds() are instantaneous.
|
485
|
+
Unaltered copies of SkPath may also access cached bounds through getBounds().
|
486
|
+
|
487
|
+
For now, identical to calling getBounds() and ignoring the returned value.
|
488
|
+
|
489
|
+
Call to prepare SkPath subsequently drawn from multiple threads,
|
490
|
+
to avoid a race condition where each draw separately computes the bounds.
|
491
|
+
*/
|
492
|
+
void updateBoundsCache() const {
|
493
|
+
// for now, just calling getBounds() is sufficient
|
494
|
+
this->getBounds();
|
495
|
+
}
|
496
|
+
|
497
|
+
/** Returns minimum and maximum axes values of the lines and curves in SkPath.
|
498
|
+
Returns (0, 0, 0, 0) if SkPath contains no points.
|
499
|
+
Returned bounds width and height may be larger or smaller than area affected
|
500
|
+
when SkPath is drawn.
|
501
|
+
|
502
|
+
Includes SkPoint associated with kMove_Verb that define empty
|
503
|
+
contours.
|
504
|
+
|
505
|
+
Behaves identically to getBounds() when SkPath contains
|
506
|
+
only lines. If SkPath contains curves, computed bounds includes
|
507
|
+
the maximum extent of the quad, conic, or cubic; is slower than getBounds();
|
508
|
+
and unlike getBounds(), does not cache the result.
|
509
|
+
|
510
|
+
@return tight bounds of curves in SkPath
|
511
|
+
|
512
|
+
example: https://fiddle.skia.org/c/@Path_computeTightBounds
|
513
|
+
*/
|
514
|
+
SkRect computeTightBounds() const;
|
515
|
+
|
516
|
+
/** Returns true if rect is contained by SkPath.
|
517
|
+
May return false when rect is contained by SkPath.
|
518
|
+
|
519
|
+
For now, only returns true if SkPath has one contour and is convex.
|
520
|
+
rect may share points and edges with SkPath and be contained.
|
521
|
+
Returns true if rect is empty, that is, it has zero width or height; and
|
522
|
+
the SkPoint or line described by rect is contained by SkPath.
|
523
|
+
|
524
|
+
@param rect SkRect, line, or SkPoint checked for containment
|
525
|
+
@return true if rect is contained
|
526
|
+
|
527
|
+
example: https://fiddle.skia.org/c/@Path_conservativelyContainsRect
|
528
|
+
*/
|
529
|
+
bool conservativelyContainsRect(const SkRect& rect) const;
|
530
|
+
|
531
|
+
/** Grows SkPath verb array and SkPoint array to contain extraPtCount additional SkPoint.
|
532
|
+
May improve performance and use less memory by
|
533
|
+
reducing the number and size of allocations when creating SkPath.
|
534
|
+
|
535
|
+
@param extraPtCount number of additional SkPoint to allocate
|
536
|
+
|
537
|
+
example: https://fiddle.skia.org/c/@Path_incReserve
|
538
|
+
*/
|
539
|
+
void incReserve(int extraPtCount);
|
540
|
+
|
541
|
+
#ifdef SK_HIDE_PATH_EDIT_METHODS
|
542
|
+
private:
|
543
|
+
#endif
|
544
|
+
|
545
|
+
/** Adds beginning of contour at SkPoint (x, y).
|
546
|
+
|
547
|
+
@param x x-axis value of contour start
|
548
|
+
@param y y-axis value of contour start
|
549
|
+
@return reference to SkPath
|
550
|
+
|
551
|
+
example: https://fiddle.skia.org/c/@Path_moveTo
|
552
|
+
*/
|
553
|
+
SkPath& moveTo(SkScalar x, SkScalar y);
|
554
|
+
|
555
|
+
/** Adds beginning of contour at SkPoint p.
|
556
|
+
|
557
|
+
@param p contour start
|
558
|
+
@return reference to SkPath
|
559
|
+
*/
|
560
|
+
SkPath& moveTo(const SkPoint& p) {
|
561
|
+
return this->moveTo(p.fX, p.fY);
|
562
|
+
}
|
563
|
+
|
564
|
+
/** Adds beginning of contour relative to last point.
|
565
|
+
If SkPath is empty, starts contour at (dx, dy).
|
566
|
+
Otherwise, start contour at last point offset by (dx, dy).
|
567
|
+
Function name stands for "relative move to".
|
568
|
+
|
569
|
+
@param dx offset from last point to contour start on x-axis
|
570
|
+
@param dy offset from last point to contour start on y-axis
|
571
|
+
@return reference to SkPath
|
572
|
+
|
573
|
+
example: https://fiddle.skia.org/c/@Path_rMoveTo
|
574
|
+
*/
|
575
|
+
SkPath& rMoveTo(SkScalar dx, SkScalar dy);
|
576
|
+
|
577
|
+
/** Adds line from last point to (x, y). If SkPath is empty, or last SkPath::Verb is
|
578
|
+
kClose_Verb, last point is set to (0, 0) before adding line.
|
579
|
+
|
580
|
+
lineTo() appends kMove_Verb to verb array and (0, 0) to SkPoint array, if needed.
|
581
|
+
lineTo() then appends kLine_Verb to verb array and (x, y) to SkPoint array.
|
582
|
+
|
583
|
+
@param x end of added line on x-axis
|
584
|
+
@param y end of added line on y-axis
|
585
|
+
@return reference to SkPath
|
586
|
+
|
587
|
+
example: https://fiddle.skia.org/c/@Path_lineTo
|
588
|
+
*/
|
589
|
+
SkPath& lineTo(SkScalar x, SkScalar y);
|
590
|
+
|
591
|
+
/** Adds line from last point to SkPoint p. If SkPath is empty, or last SkPath::Verb is
|
592
|
+
kClose_Verb, last point is set to (0, 0) before adding line.
|
593
|
+
|
594
|
+
lineTo() first appends kMove_Verb to verb array and (0, 0) to SkPoint array, if needed.
|
595
|
+
lineTo() then appends kLine_Verb to verb array and SkPoint p to SkPoint array.
|
596
|
+
|
597
|
+
@param p end SkPoint of added line
|
598
|
+
@return reference to SkPath
|
599
|
+
*/
|
600
|
+
SkPath& lineTo(const SkPoint& p) {
|
601
|
+
return this->lineTo(p.fX, p.fY);
|
602
|
+
}
|
603
|
+
|
604
|
+
/** Adds line from last point to vector (dx, dy). If SkPath is empty, or last SkPath::Verb is
|
605
|
+
kClose_Verb, last point is set to (0, 0) before adding line.
|
606
|
+
|
607
|
+
Appends kMove_Verb to verb array and (0, 0) to SkPoint array, if needed;
|
608
|
+
then appends kLine_Verb to verb array and line end to SkPoint array.
|
609
|
+
Line end is last point plus vector (dx, dy).
|
610
|
+
Function name stands for "relative line to".
|
611
|
+
|
612
|
+
@param dx offset from last point to line end on x-axis
|
613
|
+
@param dy offset from last point to line end on y-axis
|
614
|
+
@return reference to SkPath
|
615
|
+
|
616
|
+
example: https://fiddle.skia.org/c/@Path_rLineTo
|
617
|
+
example: https://fiddle.skia.org/c/@Quad_a
|
618
|
+
example: https://fiddle.skia.org/c/@Quad_b
|
619
|
+
*/
|
620
|
+
SkPath& rLineTo(SkScalar dx, SkScalar dy);
|
621
|
+
|
622
|
+
/** Adds quad from last point towards (x1, y1), to (x2, y2).
|
623
|
+
If SkPath is empty, or last SkPath::Verb is kClose_Verb, last point is set to (0, 0)
|
624
|
+
before adding quad.
|
625
|
+
|
626
|
+
Appends kMove_Verb to verb array and (0, 0) to SkPoint array, if needed;
|
627
|
+
then appends kQuad_Verb to verb array; and (x1, y1), (x2, y2)
|
628
|
+
to SkPoint array.
|
629
|
+
|
630
|
+
@param x1 control SkPoint of quad on x-axis
|
631
|
+
@param y1 control SkPoint of quad on y-axis
|
632
|
+
@param x2 end SkPoint of quad on x-axis
|
633
|
+
@param y2 end SkPoint of quad on y-axis
|
634
|
+
@return reference to SkPath
|
635
|
+
|
636
|
+
example: https://fiddle.skia.org/c/@Path_quadTo
|
637
|
+
*/
|
638
|
+
SkPath& quadTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2);
|
639
|
+
|
640
|
+
/** Adds quad from last point towards SkPoint p1, to SkPoint p2.
|
641
|
+
If SkPath is empty, or last SkPath::Verb is kClose_Verb, last point is set to (0, 0)
|
642
|
+
before adding quad.
|
643
|
+
|
644
|
+
Appends kMove_Verb to verb array and (0, 0) to SkPoint array, if needed;
|
645
|
+
then appends kQuad_Verb to verb array; and SkPoint p1, p2
|
646
|
+
to SkPoint array.
|
647
|
+
|
648
|
+
@param p1 control SkPoint of added quad
|
649
|
+
@param p2 end SkPoint of added quad
|
650
|
+
@return reference to SkPath
|
651
|
+
*/
|
652
|
+
SkPath& quadTo(const SkPoint& p1, const SkPoint& p2) {
|
653
|
+
return this->quadTo(p1.fX, p1.fY, p2.fX, p2.fY);
|
654
|
+
}
|
655
|
+
|
656
|
+
/** Adds quad from last point towards vector (dx1, dy1), to vector (dx2, dy2).
|
657
|
+
If SkPath is empty, or last SkPath::Verb
|
658
|
+
is kClose_Verb, last point is set to (0, 0) before adding quad.
|
659
|
+
|
660
|
+
Appends kMove_Verb to verb array and (0, 0) to SkPoint array,
|
661
|
+
if needed; then appends kQuad_Verb to verb array; and appends quad
|
662
|
+
control and quad end to SkPoint array.
|
663
|
+
Quad control is last point plus vector (dx1, dy1).
|
664
|
+
Quad end is last point plus vector (dx2, dy2).
|
665
|
+
Function name stands for "relative quad to".
|
666
|
+
|
667
|
+
@param dx1 offset from last point to quad control on x-axis
|
668
|
+
@param dy1 offset from last point to quad control on y-axis
|
669
|
+
@param dx2 offset from last point to quad end on x-axis
|
670
|
+
@param dy2 offset from last point to quad end on y-axis
|
671
|
+
@return reference to SkPath
|
672
|
+
|
673
|
+
example: https://fiddle.skia.org/c/@Conic_Weight_a
|
674
|
+
example: https://fiddle.skia.org/c/@Conic_Weight_b
|
675
|
+
example: https://fiddle.skia.org/c/@Conic_Weight_c
|
676
|
+
example: https://fiddle.skia.org/c/@Path_rQuadTo
|
677
|
+
*/
|
678
|
+
SkPath& rQuadTo(SkScalar dx1, SkScalar dy1, SkScalar dx2, SkScalar dy2);
|
679
|
+
|
680
|
+
/** Adds conic from last point towards (x1, y1), to (x2, y2), weighted by w.
|
681
|
+
If SkPath is empty, or last SkPath::Verb is kClose_Verb, last point is set to (0, 0)
|
682
|
+
before adding conic.
|
683
|
+
|
684
|
+
Appends kMove_Verb to verb array and (0, 0) to SkPoint array, if needed.
|
685
|
+
|
686
|
+
If w is finite and not one, appends kConic_Verb to verb array;
|
687
|
+
and (x1, y1), (x2, y2) to SkPoint array; and w to conic weights.
|
688
|
+
|
689
|
+
If w is one, appends kQuad_Verb to verb array, and
|
690
|
+
(x1, y1), (x2, y2) to SkPoint array.
|
691
|
+
|
692
|
+
If w is not finite, appends kLine_Verb twice to verb array, and
|
693
|
+
(x1, y1), (x2, y2) to SkPoint array.
|
694
|
+
|
695
|
+
@param x1 control SkPoint of conic on x-axis
|
696
|
+
@param y1 control SkPoint of conic on y-axis
|
697
|
+
@param x2 end SkPoint of conic on x-axis
|
698
|
+
@param y2 end SkPoint of conic on y-axis
|
699
|
+
@param w weight of added conic
|
700
|
+
@return reference to SkPath
|
701
|
+
*/
|
702
|
+
SkPath& conicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2,
|
703
|
+
SkScalar w);
|
704
|
+
|
705
|
+
/** Adds conic from last point towards SkPoint p1, to SkPoint p2, weighted by w.
|
706
|
+
If SkPath is empty, or last SkPath::Verb is kClose_Verb, last point is set to (0, 0)
|
707
|
+
before adding conic.
|
708
|
+
|
709
|
+
Appends kMove_Verb to verb array and (0, 0) to SkPoint array, if needed.
|
710
|
+
|
711
|
+
If w is finite and not one, appends kConic_Verb to verb array;
|
712
|
+
and SkPoint p1, p2 to SkPoint array; and w to conic weights.
|
713
|
+
|
714
|
+
If w is one, appends kQuad_Verb to verb array, and SkPoint p1, p2
|
715
|
+
to SkPoint array.
|
716
|
+
|
717
|
+
If w is not finite, appends kLine_Verb twice to verb array, and
|
718
|
+
SkPoint p1, p2 to SkPoint array.
|
719
|
+
|
720
|
+
@param p1 control SkPoint of added conic
|
721
|
+
@param p2 end SkPoint of added conic
|
722
|
+
@param w weight of added conic
|
723
|
+
@return reference to SkPath
|
724
|
+
*/
|
725
|
+
SkPath& conicTo(const SkPoint& p1, const SkPoint& p2, SkScalar w) {
|
726
|
+
return this->conicTo(p1.fX, p1.fY, p2.fX, p2.fY, w);
|
727
|
+
}
|
728
|
+
|
729
|
+
/** Adds conic from last point towards vector (dx1, dy1), to vector (dx2, dy2),
|
730
|
+
weighted by w. If SkPath is empty, or last SkPath::Verb
|
731
|
+
is kClose_Verb, last point is set to (0, 0) before adding conic.
|
732
|
+
|
733
|
+
Appends kMove_Verb to verb array and (0, 0) to SkPoint array,
|
734
|
+
if needed.
|
735
|
+
|
736
|
+
If w is finite and not one, next appends kConic_Verb to verb array,
|
737
|
+
and w is recorded as conic weight; otherwise, if w is one, appends
|
738
|
+
kQuad_Verb to verb array; or if w is not finite, appends kLine_Verb
|
739
|
+
twice to verb array.
|
740
|
+
|
741
|
+
In all cases appends SkPoint control and end to SkPoint array.
|
742
|
+
control is last point plus vector (dx1, dy1).
|
743
|
+
end is last point plus vector (dx2, dy2).
|
744
|
+
|
745
|
+
Function name stands for "relative conic to".
|
746
|
+
|
747
|
+
@param dx1 offset from last point to conic control on x-axis
|
748
|
+
@param dy1 offset from last point to conic control on y-axis
|
749
|
+
@param dx2 offset from last point to conic end on x-axis
|
750
|
+
@param dy2 offset from last point to conic end on y-axis
|
751
|
+
@param w weight of added conic
|
752
|
+
@return reference to SkPath
|
753
|
+
*/
|
754
|
+
SkPath& rConicTo(SkScalar dx1, SkScalar dy1, SkScalar dx2, SkScalar dy2,
|
755
|
+
SkScalar w);
|
756
|
+
|
757
|
+
/** Adds cubic from last point towards (x1, y1), then towards (x2, y2), ending at
|
758
|
+
(x3, y3). If SkPath is empty, or last SkPath::Verb is kClose_Verb, last point is set to
|
759
|
+
(0, 0) before adding cubic.
|
760
|
+
|
761
|
+
Appends kMove_Verb to verb array and (0, 0) to SkPoint array, if needed;
|
762
|
+
then appends kCubic_Verb to verb array; and (x1, y1), (x2, y2), (x3, y3)
|
763
|
+
to SkPoint array.
|
764
|
+
|
765
|
+
@param x1 first control SkPoint of cubic on x-axis
|
766
|
+
@param y1 first control SkPoint of cubic on y-axis
|
767
|
+
@param x2 second control SkPoint of cubic on x-axis
|
768
|
+
@param y2 second control SkPoint of cubic on y-axis
|
769
|
+
@param x3 end SkPoint of cubic on x-axis
|
770
|
+
@param y3 end SkPoint of cubic on y-axis
|
771
|
+
@return reference to SkPath
|
772
|
+
*/
|
773
|
+
SkPath& cubicTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2,
|
774
|
+
SkScalar x3, SkScalar y3);
|
775
|
+
|
776
|
+
/** Adds cubic from last point towards SkPoint p1, then towards SkPoint p2, ending at
|
777
|
+
SkPoint p3. If SkPath is empty, or last SkPath::Verb is kClose_Verb, last point is set to
|
778
|
+
(0, 0) before adding cubic.
|
779
|
+
|
780
|
+
Appends kMove_Verb to verb array and (0, 0) to SkPoint array, if needed;
|
781
|
+
then appends kCubic_Verb to verb array; and SkPoint p1, p2, p3
|
782
|
+
to SkPoint array.
|
783
|
+
|
784
|
+
@param p1 first control SkPoint of cubic
|
785
|
+
@param p2 second control SkPoint of cubic
|
786
|
+
@param p3 end SkPoint of cubic
|
787
|
+
@return reference to SkPath
|
788
|
+
*/
|
789
|
+
SkPath& cubicTo(const SkPoint& p1, const SkPoint& p2, const SkPoint& p3) {
|
790
|
+
return this->cubicTo(p1.fX, p1.fY, p2.fX, p2.fY, p3.fX, p3.fY);
|
791
|
+
}
|
792
|
+
|
793
|
+
/** Adds cubic from last point towards vector (dx1, dy1), then towards
|
794
|
+
vector (dx2, dy2), to vector (dx3, dy3).
|
795
|
+
If SkPath is empty, or last SkPath::Verb
|
796
|
+
is kClose_Verb, last point is set to (0, 0) before adding cubic.
|
797
|
+
|
798
|
+
Appends kMove_Verb to verb array and (0, 0) to SkPoint array,
|
799
|
+
if needed; then appends kCubic_Verb to verb array; and appends cubic
|
800
|
+
control and cubic end to SkPoint array.
|
801
|
+
Cubic control is last point plus vector (dx1, dy1).
|
802
|
+
Cubic end is last point plus vector (dx2, dy2).
|
803
|
+
Function name stands for "relative cubic to".
|
804
|
+
|
805
|
+
@param dx1 offset from last point to first cubic control on x-axis
|
806
|
+
@param dy1 offset from last point to first cubic control on y-axis
|
807
|
+
@param dx2 offset from last point to second cubic control on x-axis
|
808
|
+
@param dy2 offset from last point to second cubic control on y-axis
|
809
|
+
@param dx3 offset from last point to cubic end on x-axis
|
810
|
+
@param dy3 offset from last point to cubic end on y-axis
|
811
|
+
@return reference to SkPath
|
812
|
+
*/
|
813
|
+
SkPath& rCubicTo(SkScalar dx1, SkScalar dy1, SkScalar dx2, SkScalar dy2,
|
814
|
+
SkScalar dx3, SkScalar dy3);
|
815
|
+
|
816
|
+
/** Appends arc to SkPath. Arc added is part of ellipse
|
817
|
+
bounded by oval, from startAngle through sweepAngle. Both startAngle and
|
818
|
+
sweepAngle are measured in degrees, where zero degrees is aligned with the
|
819
|
+
positive x-axis, and positive sweeps extends arc clockwise.
|
820
|
+
|
821
|
+
arcTo() adds line connecting SkPath last SkPoint to initial arc SkPoint if forceMoveTo
|
822
|
+
is false and SkPath is not empty. Otherwise, added contour begins with first point
|
823
|
+
of arc. Angles greater than -360 and less than 360 are treated modulo 360.
|
824
|
+
|
825
|
+
@param oval bounds of ellipse containing arc
|
826
|
+
@param startAngle starting angle of arc in degrees
|
827
|
+
@param sweepAngle sweep, in degrees. Positive is clockwise; treated modulo 360
|
828
|
+
@param forceMoveTo true to start a new contour with arc
|
829
|
+
@return reference to SkPath
|
830
|
+
|
831
|
+
example: https://fiddle.skia.org/c/@Path_arcTo
|
832
|
+
*/
|
833
|
+
SkPath& arcTo(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle, bool forceMoveTo);
|
834
|
+
|
835
|
+
/** Appends arc to SkPath, after appending line if needed. Arc is implemented by conic
|
836
|
+
weighted to describe part of circle. Arc is contained by tangent from
|
837
|
+
last SkPath point to (x1, y1), and tangent from (x1, y1) to (x2, y2). Arc
|
838
|
+
is part of circle sized to radius, positioned so it touches both tangent lines.
|
839
|
+
|
840
|
+
If last Path Point does not start Arc, arcTo appends connecting Line to Path.
|
841
|
+
The length of Vector from (x1, y1) to (x2, y2) does not affect Arc.
|
842
|
+
|
843
|
+
Arc sweep is always less than 180 degrees. If radius is zero, or if
|
844
|
+
tangents are nearly parallel, arcTo appends Line from last Path Point to (x1, y1).
|
845
|
+
|
846
|
+
arcTo appends at most one Line and one conic.
|
847
|
+
arcTo implements the functionality of PostScript arct and HTML Canvas arcTo.
|
848
|
+
|
849
|
+
@param x1 x-axis value common to pair of tangents
|
850
|
+
@param y1 y-axis value common to pair of tangents
|
851
|
+
@param x2 x-axis value end of second tangent
|
852
|
+
@param y2 y-axis value end of second tangent
|
853
|
+
@param radius distance from arc to circle center
|
854
|
+
@return reference to SkPath
|
855
|
+
|
856
|
+
example: https://fiddle.skia.org/c/@Path_arcTo_2_a
|
857
|
+
example: https://fiddle.skia.org/c/@Path_arcTo_2_b
|
858
|
+
example: https://fiddle.skia.org/c/@Path_arcTo_2_c
|
859
|
+
*/
|
860
|
+
SkPath& arcTo(SkScalar x1, SkScalar y1, SkScalar x2, SkScalar y2, SkScalar radius);
|
861
|
+
|
862
|
+
/** Appends arc to SkPath, after appending line if needed. Arc is implemented by conic
|
863
|
+
weighted to describe part of circle. Arc is contained by tangent from
|
864
|
+
last SkPath point to p1, and tangent from p1 to p2. Arc
|
865
|
+
is part of circle sized to radius, positioned so it touches both tangent lines.
|
866
|
+
|
867
|
+
If last SkPath SkPoint does not start arc, arcTo() appends connecting line to SkPath.
|
868
|
+
The length of vector from p1 to p2 does not affect arc.
|
869
|
+
|
870
|
+
Arc sweep is always less than 180 degrees. If radius is zero, or if
|
871
|
+
tangents are nearly parallel, arcTo() appends line from last SkPath SkPoint to p1.
|
872
|
+
|
873
|
+
arcTo() appends at most one line and one conic.
|
874
|
+
arcTo() implements the functionality of PostScript arct and HTML Canvas arcTo.
|
875
|
+
|
876
|
+
@param p1 SkPoint common to pair of tangents
|
877
|
+
@param p2 end of second tangent
|
878
|
+
@param radius distance from arc to circle center
|
879
|
+
@return reference to SkPath
|
880
|
+
*/
|
881
|
+
SkPath& arcTo(const SkPoint p1, const SkPoint p2, SkScalar radius) {
|
882
|
+
return this->arcTo(p1.fX, p1.fY, p2.fX, p2.fY, radius);
|
883
|
+
}
|
884
|
+
|
885
|
+
/** \enum SkPath::ArcSize
|
886
|
+
Four oval parts with radii (rx, ry) start at last SkPath SkPoint and ends at (x, y).
|
887
|
+
ArcSize and Direction select one of the four oval parts.
|
888
|
+
*/
|
889
|
+
enum ArcSize {
|
890
|
+
kSmall_ArcSize, //!< smaller of arc pair
|
891
|
+
kLarge_ArcSize, //!< larger of arc pair
|
892
|
+
};
|
893
|
+
|
894
|
+
/** Appends arc to SkPath. Arc is implemented by one or more conics weighted to
|
895
|
+
describe part of oval with radii (rx, ry) rotated by xAxisRotate degrees. Arc
|
896
|
+
curves from last SkPath SkPoint to (x, y), choosing one of four possible routes:
|
897
|
+
clockwise or counterclockwise, and smaller or larger.
|
898
|
+
|
899
|
+
Arc sweep is always less than 360 degrees. arcTo() appends line to (x, y) if
|
900
|
+
either radii are zero, or if last SkPath SkPoint equals (x, y). arcTo() scales radii
|
901
|
+
(rx, ry) to fit last SkPath SkPoint and (x, y) if both are greater than zero but
|
902
|
+
too small.
|
903
|
+
|
904
|
+
arcTo() appends up to four conic curves.
|
905
|
+
arcTo() implements the functionality of SVG arc, although SVG sweep-flag value
|
906
|
+
is opposite the integer value of sweep; SVG sweep-flag uses 1 for clockwise,
|
907
|
+
while kCW_Direction cast to int is zero.
|
908
|
+
|
909
|
+
@param rx radius on x-axis before x-axis rotation
|
910
|
+
@param ry radius on y-axis before x-axis rotation
|
911
|
+
@param xAxisRotate x-axis rotation in degrees; positive values are clockwise
|
912
|
+
@param largeArc chooses smaller or larger arc
|
913
|
+
@param sweep chooses clockwise or counterclockwise arc
|
914
|
+
@param x end of arc
|
915
|
+
@param y end of arc
|
916
|
+
@return reference to SkPath
|
917
|
+
*/
|
918
|
+
SkPath& arcTo(SkScalar rx, SkScalar ry, SkScalar xAxisRotate, ArcSize largeArc,
|
919
|
+
SkPathDirection sweep, SkScalar x, SkScalar y);
|
920
|
+
|
921
|
+
/** Appends arc to SkPath. Arc is implemented by one or more conic weighted to describe
|
922
|
+
part of oval with radii (r.fX, r.fY) rotated by xAxisRotate degrees. Arc curves
|
923
|
+
from last SkPath SkPoint to (xy.fX, xy.fY), choosing one of four possible routes:
|
924
|
+
clockwise or counterclockwise,
|
925
|
+
and smaller or larger.
|
926
|
+
|
927
|
+
Arc sweep is always less than 360 degrees. arcTo() appends line to xy if either
|
928
|
+
radii are zero, or if last SkPath SkPoint equals (xy.fX, xy.fY). arcTo() scales radii r to
|
929
|
+
fit last SkPath SkPoint and xy if both are greater than zero but too small to describe
|
930
|
+
an arc.
|
931
|
+
|
932
|
+
arcTo() appends up to four conic curves.
|
933
|
+
arcTo() implements the functionality of SVG arc, although SVG sweep-flag value is
|
934
|
+
opposite the integer value of sweep; SVG sweep-flag uses 1 for clockwise, while
|
935
|
+
kCW_Direction cast to int is zero.
|
936
|
+
|
937
|
+
@param r radii on axes before x-axis rotation
|
938
|
+
@param xAxisRotate x-axis rotation in degrees; positive values are clockwise
|
939
|
+
@param largeArc chooses smaller or larger arc
|
940
|
+
@param sweep chooses clockwise or counterclockwise arc
|
941
|
+
@param xy end of arc
|
942
|
+
@return reference to SkPath
|
943
|
+
*/
|
944
|
+
SkPath& arcTo(const SkPoint r, SkScalar xAxisRotate, ArcSize largeArc, SkPathDirection sweep,
|
945
|
+
const SkPoint xy) {
|
946
|
+
return this->arcTo(r.fX, r.fY, xAxisRotate, largeArc, sweep, xy.fX, xy.fY);
|
947
|
+
}
|
948
|
+
|
949
|
+
/** Appends arc to SkPath, relative to last SkPath SkPoint. Arc is implemented by one or
|
950
|
+
more conic, weighted to describe part of oval with radii (rx, ry) rotated by
|
951
|
+
xAxisRotate degrees. Arc curves from last SkPath SkPoint to relative end SkPoint:
|
952
|
+
(dx, dy), choosing one of four possible routes: clockwise or
|
953
|
+
counterclockwise, and smaller or larger. If SkPath is empty, the start arc SkPoint
|
954
|
+
is (0, 0).
|
955
|
+
|
956
|
+
Arc sweep is always less than 360 degrees. arcTo() appends line to end SkPoint
|
957
|
+
if either radii are zero, or if last SkPath SkPoint equals end SkPoint.
|
958
|
+
arcTo() scales radii (rx, ry) to fit last SkPath SkPoint and end SkPoint if both are
|
959
|
+
greater than zero but too small to describe an arc.
|
960
|
+
|
961
|
+
arcTo() appends up to four conic curves.
|
962
|
+
arcTo() implements the functionality of svg arc, although SVG "sweep-flag" value is
|
963
|
+
opposite the integer value of sweep; SVG "sweep-flag" uses 1 for clockwise, while
|
964
|
+
kCW_Direction cast to int is zero.
|
965
|
+
|
966
|
+
@param rx radius before x-axis rotation
|
967
|
+
@param ry radius before x-axis rotation
|
968
|
+
@param xAxisRotate x-axis rotation in degrees; positive values are clockwise
|
969
|
+
@param largeArc chooses smaller or larger arc
|
970
|
+
@param sweep chooses clockwise or counterclockwise arc
|
971
|
+
@param dx x-axis offset end of arc from last SkPath SkPoint
|
972
|
+
@param dy y-axis offset end of arc from last SkPath SkPoint
|
973
|
+
@return reference to SkPath
|
974
|
+
*/
|
975
|
+
SkPath& rArcTo(SkScalar rx, SkScalar ry, SkScalar xAxisRotate, ArcSize largeArc,
|
976
|
+
SkPathDirection sweep, SkScalar dx, SkScalar dy);
|
977
|
+
|
978
|
+
/** Appends kClose_Verb to SkPath. A closed contour connects the first and last SkPoint
|
979
|
+
with line, forming a continuous loop. Open and closed contour draw the same
|
980
|
+
with SkPaint::kFill_Style. With SkPaint::kStroke_Style, open contour draws
|
981
|
+
SkPaint::Cap at contour start and end; closed contour draws
|
982
|
+
SkPaint::Join at contour start and end.
|
983
|
+
|
984
|
+
close() has no effect if SkPath is empty or last SkPath SkPath::Verb is kClose_Verb.
|
985
|
+
|
986
|
+
@return reference to SkPath
|
987
|
+
|
988
|
+
example: https://fiddle.skia.org/c/@Path_close
|
989
|
+
*/
|
990
|
+
SkPath& close();
|
991
|
+
|
992
|
+
#ifdef SK_HIDE_PATH_EDIT_METHODS
|
993
|
+
public:
|
994
|
+
#endif
|
995
|
+
|
996
|
+
/** Approximates conic with quad array. Conic is constructed from start SkPoint p0,
|
997
|
+
control SkPoint p1, end SkPoint p2, and weight w.
|
998
|
+
Quad array is stored in pts; this storage is supplied by caller.
|
999
|
+
Maximum quad count is 2 to the pow2.
|
1000
|
+
Every third point in array shares last SkPoint of previous quad and first SkPoint of
|
1001
|
+
next quad. Maximum pts storage size is given by:
|
1002
|
+
(1 + 2 * (1 << pow2)) * sizeof(SkPoint).
|
1003
|
+
|
1004
|
+
Returns quad count used the approximation, which may be smaller
|
1005
|
+
than the number requested.
|
1006
|
+
|
1007
|
+
conic weight determines the amount of influence conic control point has on the curve.
|
1008
|
+
w less than one represents an elliptical section. w greater than one represents
|
1009
|
+
a hyperbolic section. w equal to one represents a parabolic section.
|
1010
|
+
|
1011
|
+
Two quad curves are sufficient to approximate an elliptical conic with a sweep
|
1012
|
+
of up to 90 degrees; in this case, set pow2 to one.
|
1013
|
+
|
1014
|
+
@param p0 conic start SkPoint
|
1015
|
+
@param p1 conic control SkPoint
|
1016
|
+
@param p2 conic end SkPoint
|
1017
|
+
@param w conic weight
|
1018
|
+
@param pts storage for quad array
|
1019
|
+
@param pow2 quad count, as power of two, normally 0 to 5 (1 to 32 quad curves)
|
1020
|
+
@return number of quad curves written to pts
|
1021
|
+
*/
|
1022
|
+
static int ConvertConicToQuads(const SkPoint& p0, const SkPoint& p1, const SkPoint& p2,
|
1023
|
+
SkScalar w, SkPoint pts[], int pow2);
|
1024
|
+
|
1025
|
+
/** Returns true if SkPath is equivalent to SkRect when filled.
|
1026
|
+
If false: rect, isClosed, and direction are unchanged.
|
1027
|
+
If true: rect, isClosed, and direction are written to if not nullptr.
|
1028
|
+
|
1029
|
+
rect may be smaller than the SkPath bounds. SkPath bounds may include kMove_Verb points
|
1030
|
+
that do not alter the area drawn by the returned rect.
|
1031
|
+
|
1032
|
+
@param rect storage for bounds of SkRect; may be nullptr
|
1033
|
+
@param isClosed storage set to true if SkPath is closed; may be nullptr
|
1034
|
+
@param direction storage set to SkRect direction; may be nullptr
|
1035
|
+
@return true if SkPath contains SkRect
|
1036
|
+
|
1037
|
+
example: https://fiddle.skia.org/c/@Path_isRect
|
1038
|
+
*/
|
1039
|
+
bool isRect(SkRect* rect, bool* isClosed = nullptr, SkPathDirection* direction = nullptr) const;
|
1040
|
+
|
1041
|
+
#ifdef SK_HIDE_PATH_EDIT_METHODS
|
1042
|
+
private:
|
1043
|
+
#endif
|
1044
|
+
|
1045
|
+
/** Adds a new contour to the path, defined by the rect, and wound in the
|
1046
|
+
specified direction. The verbs added to the path will be:
|
1047
|
+
|
1048
|
+
kMove, kLine, kLine, kLine, kClose
|
1049
|
+
|
1050
|
+
start specifies which corner to begin the contour:
|
1051
|
+
0: upper-left corner
|
1052
|
+
1: upper-right corner
|
1053
|
+
2: lower-right corner
|
1054
|
+
3: lower-left corner
|
1055
|
+
|
1056
|
+
This start point also acts as the implied beginning of the subsequent,
|
1057
|
+
contour, if it does not have an explicit moveTo(). e.g.
|
1058
|
+
|
1059
|
+
path.addRect(...)
|
1060
|
+
// if we don't say moveTo() here, we will use the rect's start point
|
1061
|
+
path.lineTo(...)
|
1062
|
+
|
1063
|
+
@param rect SkRect to add as a closed contour
|
1064
|
+
@param dir SkPath::Direction to orient the new contour
|
1065
|
+
@param start initial corner of SkRect to add
|
1066
|
+
@return reference to SkPath
|
1067
|
+
|
1068
|
+
example: https://fiddle.skia.org/c/@Path_addRect_2
|
1069
|
+
*/
|
1070
|
+
SkPath& addRect(const SkRect& rect, SkPathDirection dir, unsigned start);
|
1071
|
+
|
1072
|
+
SkPath& addRect(const SkRect& rect, SkPathDirection dir = SkPathDirection::kCW) {
|
1073
|
+
return this->addRect(rect, dir, 0);
|
1074
|
+
}
|
1075
|
+
|
1076
|
+
SkPath& addRect(SkScalar left, SkScalar top, SkScalar right, SkScalar bottom,
|
1077
|
+
SkPathDirection dir = SkPathDirection::kCW) {
|
1078
|
+
return this->addRect({left, top, right, bottom}, dir, 0);
|
1079
|
+
}
|
1080
|
+
|
1081
|
+
/** Adds oval to path, appending kMove_Verb, four kConic_Verb, and kClose_Verb.
|
1082
|
+
Oval is upright ellipse bounded by SkRect oval with radii equal to half oval width
|
1083
|
+
and half oval height. Oval begins at (oval.fRight, oval.centerY()) and continues
|
1084
|
+
clockwise if dir is kCW_Direction, counterclockwise if dir is kCCW_Direction.
|
1085
|
+
|
1086
|
+
@param oval bounds of ellipse added
|
1087
|
+
@param dir SkPath::Direction to wind ellipse
|
1088
|
+
@return reference to SkPath
|
1089
|
+
|
1090
|
+
example: https://fiddle.skia.org/c/@Path_addOval
|
1091
|
+
*/
|
1092
|
+
SkPath& addOval(const SkRect& oval, SkPathDirection dir = SkPathDirection::kCW);
|
1093
|
+
|
1094
|
+
/** Adds oval to SkPath, appending kMove_Verb, four kConic_Verb, and kClose_Verb.
|
1095
|
+
Oval is upright ellipse bounded by SkRect oval with radii equal to half oval width
|
1096
|
+
and half oval height. Oval begins at start and continues
|
1097
|
+
clockwise if dir is kCW_Direction, counterclockwise if dir is kCCW_Direction.
|
1098
|
+
|
1099
|
+
@param oval bounds of ellipse added
|
1100
|
+
@param dir SkPath::Direction to wind ellipse
|
1101
|
+
@param start index of initial point of ellipse
|
1102
|
+
@return reference to SkPath
|
1103
|
+
|
1104
|
+
example: https://fiddle.skia.org/c/@Path_addOval_2
|
1105
|
+
*/
|
1106
|
+
SkPath& addOval(const SkRect& oval, SkPathDirection dir, unsigned start);
|
1107
|
+
|
1108
|
+
/** Adds circle centered at (x, y) of size radius to SkPath, appending kMove_Verb,
|
1109
|
+
four kConic_Verb, and kClose_Verb. Circle begins at: (x + radius, y), continuing
|
1110
|
+
clockwise if dir is kCW_Direction, and counterclockwise if dir is kCCW_Direction.
|
1111
|
+
|
1112
|
+
Has no effect if radius is zero or negative.
|
1113
|
+
|
1114
|
+
@param x center of circle
|
1115
|
+
@param y center of circle
|
1116
|
+
@param radius distance from center to edge
|
1117
|
+
@param dir SkPath::Direction to wind circle
|
1118
|
+
@return reference to SkPath
|
1119
|
+
*/
|
1120
|
+
SkPath& addCircle(SkScalar x, SkScalar y, SkScalar radius,
|
1121
|
+
SkPathDirection dir = SkPathDirection::kCW);
|
1122
|
+
|
1123
|
+
/** Appends arc to SkPath, as the start of new contour. Arc added is part of ellipse
|
1124
|
+
bounded by oval, from startAngle through sweepAngle. Both startAngle and
|
1125
|
+
sweepAngle are measured in degrees, where zero degrees is aligned with the
|
1126
|
+
positive x-axis, and positive sweeps extends arc clockwise.
|
1127
|
+
|
1128
|
+
If sweepAngle <= -360, or sweepAngle >= 360; and startAngle modulo 90 is nearly
|
1129
|
+
zero, append oval instead of arc. Otherwise, sweepAngle values are treated
|
1130
|
+
modulo 360, and arc may or may not draw depending on numeric rounding.
|
1131
|
+
|
1132
|
+
@param oval bounds of ellipse containing arc
|
1133
|
+
@param startAngle starting angle of arc in degrees
|
1134
|
+
@param sweepAngle sweep, in degrees. Positive is clockwise; treated modulo 360
|
1135
|
+
@return reference to SkPath
|
1136
|
+
|
1137
|
+
example: https://fiddle.skia.org/c/@Path_addArc
|
1138
|
+
*/
|
1139
|
+
SkPath& addArc(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle);
|
1140
|
+
|
1141
|
+
/** Appends SkRRect to SkPath, creating a new closed contour. SkRRect has bounds
|
1142
|
+
equal to rect; each corner is 90 degrees of an ellipse with radii (rx, ry). If
|
1143
|
+
dir is kCW_Direction, SkRRect starts at top-left of the lower-left corner and
|
1144
|
+
winds clockwise. If dir is kCCW_Direction, SkRRect starts at the bottom-left
|
1145
|
+
of the upper-left corner and winds counterclockwise.
|
1146
|
+
|
1147
|
+
If either rx or ry is too large, rx and ry are scaled uniformly until the
|
1148
|
+
corners fit. If rx or ry is less than or equal to zero, addRoundRect() appends
|
1149
|
+
SkRect rect to SkPath.
|
1150
|
+
|
1151
|
+
After appending, SkPath may be empty, or may contain: SkRect, oval, or SkRRect.
|
1152
|
+
|
1153
|
+
@param rect bounds of SkRRect
|
1154
|
+
@param rx x-axis radius of rounded corners on the SkRRect
|
1155
|
+
@param ry y-axis radius of rounded corners on the SkRRect
|
1156
|
+
@param dir SkPath::Direction to wind SkRRect
|
1157
|
+
@return reference to SkPath
|
1158
|
+
*/
|
1159
|
+
SkPath& addRoundRect(const SkRect& rect, SkScalar rx, SkScalar ry,
|
1160
|
+
SkPathDirection dir = SkPathDirection::kCW);
|
1161
|
+
|
1162
|
+
/** Appends SkRRect to SkPath, creating a new closed contour. SkRRect has bounds
|
1163
|
+
equal to rect; each corner is 90 degrees of an ellipse with radii from the
|
1164
|
+
array.
|
1165
|
+
|
1166
|
+
@param rect bounds of SkRRect
|
1167
|
+
@param radii array of 8 SkScalar values, a radius pair for each corner
|
1168
|
+
@param dir SkPath::Direction to wind SkRRect
|
1169
|
+
@return reference to SkPath
|
1170
|
+
*/
|
1171
|
+
SkPath& addRoundRect(const SkRect& rect, const SkScalar radii[],
|
1172
|
+
SkPathDirection dir = SkPathDirection::kCW);
|
1173
|
+
|
1174
|
+
/** Adds rrect to SkPath, creating a new closed contour. If
|
1175
|
+
dir is kCW_Direction, rrect starts at top-left of the lower-left corner and
|
1176
|
+
winds clockwise. If dir is kCCW_Direction, rrect starts at the bottom-left
|
1177
|
+
of the upper-left corner and winds counterclockwise.
|
1178
|
+
|
1179
|
+
After appending, SkPath may be empty, or may contain: SkRect, oval, or SkRRect.
|
1180
|
+
|
1181
|
+
@param rrect bounds and radii of rounded rectangle
|
1182
|
+
@param dir SkPath::Direction to wind SkRRect
|
1183
|
+
@return reference to SkPath
|
1184
|
+
|
1185
|
+
example: https://fiddle.skia.org/c/@Path_addRRect
|
1186
|
+
*/
|
1187
|
+
SkPath& addRRect(const SkRRect& rrect, SkPathDirection dir = SkPathDirection::kCW);
|
1188
|
+
|
1189
|
+
/** Adds rrect to SkPath, creating a new closed contour. If dir is kCW_Direction, rrect
|
1190
|
+
winds clockwise; if dir is kCCW_Direction, rrect winds counterclockwise.
|
1191
|
+
start determines the first point of rrect to add.
|
1192
|
+
|
1193
|
+
@param rrect bounds and radii of rounded rectangle
|
1194
|
+
@param dir SkPath::Direction to wind SkRRect
|
1195
|
+
@param start index of initial point of SkRRect
|
1196
|
+
@return reference to SkPath
|
1197
|
+
|
1198
|
+
example: https://fiddle.skia.org/c/@Path_addRRect_2
|
1199
|
+
*/
|
1200
|
+
SkPath& addRRect(const SkRRect& rrect, SkPathDirection dir, unsigned start);
|
1201
|
+
|
1202
|
+
/** Adds contour created from line array, adding (count - 1) line segments.
|
1203
|
+
Contour added starts at pts[0], then adds a line for every additional SkPoint
|
1204
|
+
in pts array. If close is true, appends kClose_Verb to SkPath, connecting
|
1205
|
+
pts[count - 1] and pts[0].
|
1206
|
+
|
1207
|
+
If count is zero, append kMove_Verb to path.
|
1208
|
+
Has no effect if count is less than one.
|
1209
|
+
|
1210
|
+
@param pts array of line sharing end and start SkPoint
|
1211
|
+
@param count length of SkPoint array
|
1212
|
+
@param close true to add line connecting contour end and start
|
1213
|
+
@return reference to SkPath
|
1214
|
+
|
1215
|
+
example: https://fiddle.skia.org/c/@Path_addPoly
|
1216
|
+
*/
|
1217
|
+
SkPath& addPoly(const SkPoint pts[], int count, bool close);
|
1218
|
+
|
1219
|
+
/** Adds contour created from list. Contour added starts at list[0], then adds a line
|
1220
|
+
for every additional SkPoint in list. If close is true, appends kClose_Verb to SkPath,
|
1221
|
+
connecting last and first SkPoint in list.
|
1222
|
+
|
1223
|
+
If list is empty, append kMove_Verb to path.
|
1224
|
+
|
1225
|
+
@param list array of SkPoint
|
1226
|
+
@param close true to add line connecting contour end and start
|
1227
|
+
@return reference to SkPath
|
1228
|
+
*/
|
1229
|
+
SkPath& addPoly(const std::initializer_list<SkPoint>& list, bool close) {
|
1230
|
+
return this->addPoly(list.begin(), SkToInt(list.size()), close);
|
1231
|
+
}
|
1232
|
+
|
1233
|
+
#ifdef SK_HIDE_PATH_EDIT_METHODS
|
1234
|
+
public:
|
1235
|
+
#endif
|
1236
|
+
|
1237
|
+
/** \enum SkPath::AddPathMode
|
1238
|
+
AddPathMode chooses how addPath() appends. Adding one SkPath to another can extend
|
1239
|
+
the last contour or start a new contour.
|
1240
|
+
*/
|
1241
|
+
enum AddPathMode {
|
1242
|
+
kAppend_AddPathMode, //!< appended to destination unaltered
|
1243
|
+
kExtend_AddPathMode, //!< add line if prior contour is not closed
|
1244
|
+
};
|
1245
|
+
|
1246
|
+
/** Appends src to SkPath, offset by (dx, dy).
|
1247
|
+
|
1248
|
+
If mode is kAppend_AddPathMode, src verb array, SkPoint array, and conic weights are
|
1249
|
+
added unaltered. If mode is kExtend_AddPathMode, add line before appending
|
1250
|
+
verbs, SkPoint, and conic weights.
|
1251
|
+
|
1252
|
+
@param src SkPath verbs, SkPoint, and conic weights to add
|
1253
|
+
@param dx offset added to src SkPoint array x-axis coordinates
|
1254
|
+
@param dy offset added to src SkPoint array y-axis coordinates
|
1255
|
+
@param mode kAppend_AddPathMode or kExtend_AddPathMode
|
1256
|
+
@return reference to SkPath
|
1257
|
+
*/
|
1258
|
+
SkPath& addPath(const SkPath& src, SkScalar dx, SkScalar dy,
|
1259
|
+
AddPathMode mode = kAppend_AddPathMode);
|
1260
|
+
|
1261
|
+
/** Appends src to SkPath.
|
1262
|
+
|
1263
|
+
If mode is kAppend_AddPathMode, src verb array, SkPoint array, and conic weights are
|
1264
|
+
added unaltered. If mode is kExtend_AddPathMode, add line before appending
|
1265
|
+
verbs, SkPoint, and conic weights.
|
1266
|
+
|
1267
|
+
@param src SkPath verbs, SkPoint, and conic weights to add
|
1268
|
+
@param mode kAppend_AddPathMode or kExtend_AddPathMode
|
1269
|
+
@return reference to SkPath
|
1270
|
+
*/
|
1271
|
+
SkPath& addPath(const SkPath& src, AddPathMode mode = kAppend_AddPathMode) {
|
1272
|
+
SkMatrix m;
|
1273
|
+
m.reset();
|
1274
|
+
return this->addPath(src, m, mode);
|
1275
|
+
}
|
1276
|
+
|
1277
|
+
/** Appends src to SkPath, transformed by matrix. Transformed curves may have different
|
1278
|
+
verbs, SkPoint, and conic weights.
|
1279
|
+
|
1280
|
+
If mode is kAppend_AddPathMode, src verb array, SkPoint array, and conic weights are
|
1281
|
+
added unaltered. If mode is kExtend_AddPathMode, add line before appending
|
1282
|
+
verbs, SkPoint, and conic weights.
|
1283
|
+
|
1284
|
+
@param src SkPath verbs, SkPoint, and conic weights to add
|
1285
|
+
@param matrix transform applied to src
|
1286
|
+
@param mode kAppend_AddPathMode or kExtend_AddPathMode
|
1287
|
+
@return reference to SkPath
|
1288
|
+
*/
|
1289
|
+
SkPath& addPath(const SkPath& src, const SkMatrix& matrix,
|
1290
|
+
AddPathMode mode = kAppend_AddPathMode);
|
1291
|
+
|
1292
|
+
/** Appends src to SkPath, from back to front.
|
1293
|
+
Reversed src always appends a new contour to SkPath.
|
1294
|
+
|
1295
|
+
@param src SkPath verbs, SkPoint, and conic weights to add
|
1296
|
+
@return reference to SkPath
|
1297
|
+
|
1298
|
+
example: https://fiddle.skia.org/c/@Path_reverseAddPath
|
1299
|
+
*/
|
1300
|
+
SkPath& reverseAddPath(const SkPath& src);
|
1301
|
+
|
1302
|
+
/** Offsets SkPoint array by (dx, dy). Offset SkPath replaces dst.
|
1303
|
+
If dst is nullptr, SkPath is replaced by offset data.
|
1304
|
+
|
1305
|
+
@param dx offset added to SkPoint array x-axis coordinates
|
1306
|
+
@param dy offset added to SkPoint array y-axis coordinates
|
1307
|
+
@param dst overwritten, translated copy of SkPath; may be nullptr
|
1308
|
+
|
1309
|
+
example: https://fiddle.skia.org/c/@Path_offset
|
1310
|
+
*/
|
1311
|
+
void offset(SkScalar dx, SkScalar dy, SkPath* dst) const;
|
1312
|
+
|
1313
|
+
/** Offsets SkPoint array by (dx, dy). SkPath is replaced by offset data.
|
1314
|
+
|
1315
|
+
@param dx offset added to SkPoint array x-axis coordinates
|
1316
|
+
@param dy offset added to SkPoint array y-axis coordinates
|
1317
|
+
*/
|
1318
|
+
void offset(SkScalar dx, SkScalar dy) {
|
1319
|
+
this->offset(dx, dy, this);
|
1320
|
+
}
|
1321
|
+
|
1322
|
+
/** Transforms verb array, SkPoint array, and weight by matrix.
|
1323
|
+
transform may change verbs and increase their number.
|
1324
|
+
Transformed SkPath replaces dst; if dst is nullptr, original data
|
1325
|
+
is replaced.
|
1326
|
+
|
1327
|
+
@param matrix SkMatrix to apply to SkPath
|
1328
|
+
@param dst overwritten, transformed copy of SkPath; may be nullptr
|
1329
|
+
@param pc whether to apply perspective clipping
|
1330
|
+
|
1331
|
+
example: https://fiddle.skia.org/c/@Path_transform
|
1332
|
+
*/
|
1333
|
+
void transform(const SkMatrix& matrix, SkPath* dst,
|
1334
|
+
SkApplyPerspectiveClip pc = SkApplyPerspectiveClip::kYes) const;
|
1335
|
+
|
1336
|
+
/** Transforms verb array, SkPoint array, and weight by matrix.
|
1337
|
+
transform may change verbs and increase their number.
|
1338
|
+
SkPath is replaced by transformed data.
|
1339
|
+
|
1340
|
+
@param matrix SkMatrix to apply to SkPath
|
1341
|
+
@param pc whether to apply perspective clipping
|
1342
|
+
*/
|
1343
|
+
void transform(const SkMatrix& matrix,
|
1344
|
+
SkApplyPerspectiveClip pc = SkApplyPerspectiveClip::kYes) {
|
1345
|
+
this->transform(matrix, this, pc);
|
1346
|
+
}
|
1347
|
+
|
1348
|
+
SkPath makeTransform(const SkMatrix& m,
|
1349
|
+
SkApplyPerspectiveClip pc = SkApplyPerspectiveClip::kYes) const {
|
1350
|
+
SkPath dst;
|
1351
|
+
this->transform(m, &dst, pc);
|
1352
|
+
return dst;
|
1353
|
+
}
|
1354
|
+
|
1355
|
+
SkPath makeScale(SkScalar sx, SkScalar sy) {
|
1356
|
+
return this->makeTransform(SkMatrix::Scale(sx, sy), SkApplyPerspectiveClip::kNo);
|
1357
|
+
}
|
1358
|
+
|
1359
|
+
/** Returns last point on SkPath in lastPt. Returns false if SkPoint array is empty,
|
1360
|
+
storing (0, 0) if lastPt is not nullptr.
|
1361
|
+
|
1362
|
+
@param lastPt storage for final SkPoint in SkPoint array; may be nullptr
|
1363
|
+
@return true if SkPoint array contains one or more SkPoint
|
1364
|
+
|
1365
|
+
example: https://fiddle.skia.org/c/@Path_getLastPt
|
1366
|
+
*/
|
1367
|
+
bool getLastPt(SkPoint* lastPt) const;
|
1368
|
+
|
1369
|
+
/** Sets last point to (x, y). If SkPoint array is empty, append kMove_Verb to
|
1370
|
+
verb array and append (x, y) to SkPoint array.
|
1371
|
+
|
1372
|
+
@param x set x-axis value of last point
|
1373
|
+
@param y set y-axis value of last point
|
1374
|
+
|
1375
|
+
example: https://fiddle.skia.org/c/@Path_setLastPt
|
1376
|
+
*/
|
1377
|
+
void setLastPt(SkScalar x, SkScalar y);
|
1378
|
+
|
1379
|
+
/** Sets the last point on the path. If SkPoint array is empty, append kMove_Verb to
|
1380
|
+
verb array and append p to SkPoint array.
|
1381
|
+
|
1382
|
+
@param p set value of last point
|
1383
|
+
*/
|
1384
|
+
void setLastPt(const SkPoint& p) {
|
1385
|
+
this->setLastPt(p.fX, p.fY);
|
1386
|
+
}
|
1387
|
+
|
1388
|
+
/** \enum SkPath::SegmentMask
|
1389
|
+
SegmentMask constants correspond to each drawing Verb type in SkPath; for
|
1390
|
+
instance, if SkPath only contains lines, only the kLine_SegmentMask bit is set.
|
1391
|
+
*/
|
1392
|
+
enum SegmentMask {
|
1393
|
+
kLine_SegmentMask = kLine_SkPathSegmentMask,
|
1394
|
+
kQuad_SegmentMask = kQuad_SkPathSegmentMask,
|
1395
|
+
kConic_SegmentMask = kConic_SkPathSegmentMask,
|
1396
|
+
kCubic_SegmentMask = kCubic_SkPathSegmentMask,
|
1397
|
+
};
|
1398
|
+
|
1399
|
+
/** Returns a mask, where each set bit corresponds to a SegmentMask constant
|
1400
|
+
if SkPath contains one or more verbs of that type.
|
1401
|
+
Returns zero if SkPath contains no lines, or curves: quads, conics, or cubics.
|
1402
|
+
|
1403
|
+
getSegmentMasks() returns a cached result; it is very fast.
|
1404
|
+
|
1405
|
+
@return SegmentMask bits or zero
|
1406
|
+
*/
|
1407
|
+
uint32_t getSegmentMasks() const;
|
1408
|
+
|
1409
|
+
/** \enum SkPath::Verb
|
1410
|
+
Verb instructs SkPath how to interpret one or more SkPoint and optional conic weight;
|
1411
|
+
manage contour, and terminate SkPath.
|
1412
|
+
*/
|
1413
|
+
enum Verb {
|
1414
|
+
kMove_Verb = static_cast<int>(SkPathVerb::kMove),
|
1415
|
+
kLine_Verb = static_cast<int>(SkPathVerb::kLine),
|
1416
|
+
kQuad_Verb = static_cast<int>(SkPathVerb::kQuad),
|
1417
|
+
kConic_Verb = static_cast<int>(SkPathVerb::kConic),
|
1418
|
+
kCubic_Verb = static_cast<int>(SkPathVerb::kCubic),
|
1419
|
+
kClose_Verb = static_cast<int>(SkPathVerb::kClose),
|
1420
|
+
kDone_Verb = kClose_Verb + 1
|
1421
|
+
};
|
1422
|
+
|
1423
|
+
/** \class SkPath::Iter
|
1424
|
+
Iterates through verb array, and associated SkPoint array and conic weight.
|
1425
|
+
Provides options to treat open contours as closed, and to ignore
|
1426
|
+
degenerate data.
|
1427
|
+
*/
|
1428
|
+
class SK_API Iter {
|
1429
|
+
public:
|
1430
|
+
|
1431
|
+
/** Initializes SkPath::Iter with an empty SkPath. next() on SkPath::Iter returns
|
1432
|
+
kDone_Verb.
|
1433
|
+
Call setPath to initialize SkPath::Iter at a later time.
|
1434
|
+
|
1435
|
+
@return SkPath::Iter of empty SkPath
|
1436
|
+
|
1437
|
+
example: https://fiddle.skia.org/c/@Path_Iter_Iter
|
1438
|
+
*/
|
1439
|
+
Iter();
|
1440
|
+
|
1441
|
+
/** Sets SkPath::Iter to return elements of verb array, SkPoint array, and conic weight in
|
1442
|
+
path. If forceClose is true, SkPath::Iter will add kLine_Verb and kClose_Verb after each
|
1443
|
+
open contour. path is not altered.
|
1444
|
+
|
1445
|
+
@param path SkPath to iterate
|
1446
|
+
@param forceClose true if open contours generate kClose_Verb
|
1447
|
+
@return SkPath::Iter of path
|
1448
|
+
|
1449
|
+
example: https://fiddle.skia.org/c/@Path_Iter_const_SkPath
|
1450
|
+
*/
|
1451
|
+
Iter(const SkPath& path, bool forceClose);
|
1452
|
+
|
1453
|
+
/** Sets SkPath::Iter to return elements of verb array, SkPoint array, and conic weight in
|
1454
|
+
path. If forceClose is true, SkPath::Iter will add kLine_Verb and kClose_Verb after each
|
1455
|
+
open contour. path is not altered.
|
1456
|
+
|
1457
|
+
@param path SkPath to iterate
|
1458
|
+
@param forceClose true if open contours generate kClose_Verb
|
1459
|
+
|
1460
|
+
example: https://fiddle.skia.org/c/@Path_Iter_setPath
|
1461
|
+
*/
|
1462
|
+
void setPath(const SkPath& path, bool forceClose);
|
1463
|
+
|
1464
|
+
/** Returns next SkPath::Verb in verb array, and advances SkPath::Iter.
|
1465
|
+
When verb array is exhausted, returns kDone_Verb.
|
1466
|
+
|
1467
|
+
Zero to four SkPoint are stored in pts, depending on the returned SkPath::Verb.
|
1468
|
+
|
1469
|
+
@param pts storage for SkPoint data describing returned SkPath::Verb
|
1470
|
+
@return next SkPath::Verb from verb array
|
1471
|
+
|
1472
|
+
example: https://fiddle.skia.org/c/@Path_RawIter_next
|
1473
|
+
*/
|
1474
|
+
Verb next(SkPoint pts[4]);
|
1475
|
+
|
1476
|
+
/** Returns conic weight if next() returned kConic_Verb.
|
1477
|
+
|
1478
|
+
If next() has not been called, or next() did not return kConic_Verb,
|
1479
|
+
result is undefined.
|
1480
|
+
|
1481
|
+
@return conic weight for conic SkPoint returned by next()
|
1482
|
+
*/
|
1483
|
+
SkScalar conicWeight() const { return *fConicWeights; }
|
1484
|
+
|
1485
|
+
/** Returns true if last kLine_Verb returned by next() was generated
|
1486
|
+
by kClose_Verb. When true, the end point returned by next() is
|
1487
|
+
also the start point of contour.
|
1488
|
+
|
1489
|
+
If next() has not been called, or next() did not return kLine_Verb,
|
1490
|
+
result is undefined.
|
1491
|
+
|
1492
|
+
@return true if last kLine_Verb was generated by kClose_Verb
|
1493
|
+
*/
|
1494
|
+
bool isCloseLine() const { return SkToBool(fCloseLine); }
|
1495
|
+
|
1496
|
+
/** Returns true if subsequent calls to next() return kClose_Verb before returning
|
1497
|
+
kMove_Verb. if true, contour SkPath::Iter is processing may end with kClose_Verb, or
|
1498
|
+
SkPath::Iter may have been initialized with force close set to true.
|
1499
|
+
|
1500
|
+
@return true if contour is closed
|
1501
|
+
|
1502
|
+
example: https://fiddle.skia.org/c/@Path_Iter_isClosedContour
|
1503
|
+
*/
|
1504
|
+
bool isClosedContour() const;
|
1505
|
+
|
1506
|
+
private:
|
1507
|
+
const SkPoint* fPts;
|
1508
|
+
const uint8_t* fVerbs;
|
1509
|
+
const uint8_t* fVerbStop;
|
1510
|
+
const SkScalar* fConicWeights;
|
1511
|
+
SkPoint fMoveTo;
|
1512
|
+
SkPoint fLastPt;
|
1513
|
+
bool fForceClose;
|
1514
|
+
bool fNeedClose;
|
1515
|
+
bool fCloseLine;
|
1516
|
+
|
1517
|
+
Verb autoClose(SkPoint pts[2]);
|
1518
|
+
};
|
1519
|
+
|
1520
|
+
private:
|
1521
|
+
/** \class SkPath::RangeIter
|
1522
|
+
Iterates through a raw range of path verbs, points, and conics. All values are returned
|
1523
|
+
unaltered.
|
1524
|
+
|
1525
|
+
NOTE: This class will be moved into SkPathPriv once RangeIter is removed.
|
1526
|
+
*/
|
1527
|
+
class RangeIter {
|
1528
|
+
public:
|
1529
|
+
RangeIter() = default;
|
1530
|
+
RangeIter(const uint8_t* verbs, const SkPoint* points, const SkScalar* weights)
|
1531
|
+
: fVerb(verbs), fPoints(points), fWeights(weights) {
|
1532
|
+
SkDEBUGCODE(fInitialPoints = fPoints;)
|
1533
|
+
}
|
1534
|
+
bool operator!=(const RangeIter& that) const {
|
1535
|
+
return fVerb != that.fVerb;
|
1536
|
+
}
|
1537
|
+
bool operator==(const RangeIter& that) const {
|
1538
|
+
return fVerb == that.fVerb;
|
1539
|
+
}
|
1540
|
+
RangeIter& operator++() {
|
1541
|
+
auto verb = static_cast<SkPathVerb>(*fVerb++);
|
1542
|
+
fPoints += pts_advance_after_verb(verb);
|
1543
|
+
if (verb == SkPathVerb::kConic) {
|
1544
|
+
++fWeights;
|
1545
|
+
}
|
1546
|
+
return *this;
|
1547
|
+
}
|
1548
|
+
RangeIter operator++(int) {
|
1549
|
+
RangeIter copy = *this;
|
1550
|
+
this->operator++();
|
1551
|
+
return copy;
|
1552
|
+
}
|
1553
|
+
SkPathVerb peekVerb() const {
|
1554
|
+
return static_cast<SkPathVerb>(*fVerb);
|
1555
|
+
}
|
1556
|
+
std::tuple<SkPathVerb, const SkPoint*, const SkScalar*> operator*() const {
|
1557
|
+
SkPathVerb verb = this->peekVerb();
|
1558
|
+
// We provide the starting point for beziers by peeking backwards from the current
|
1559
|
+
// point, which works fine as long as there is always a kMove before any geometry.
|
1560
|
+
// (SkPath::injectMoveToIfNeeded should have guaranteed this to be the case.)
|
1561
|
+
int backset = pts_backset_for_verb(verb);
|
1562
|
+
SkASSERT(fPoints + backset >= fInitialPoints);
|
1563
|
+
return {verb, fPoints + backset, fWeights};
|
1564
|
+
}
|
1565
|
+
private:
|
1566
|
+
constexpr static int pts_advance_after_verb(SkPathVerb verb) {
|
1567
|
+
switch (verb) {
|
1568
|
+
case SkPathVerb::kMove: return 1;
|
1569
|
+
case SkPathVerb::kLine: return 1;
|
1570
|
+
case SkPathVerb::kQuad: return 2;
|
1571
|
+
case SkPathVerb::kConic: return 2;
|
1572
|
+
case SkPathVerb::kCubic: return 3;
|
1573
|
+
case SkPathVerb::kClose: return 0;
|
1574
|
+
}
|
1575
|
+
SkUNREACHABLE;
|
1576
|
+
}
|
1577
|
+
constexpr static int pts_backset_for_verb(SkPathVerb verb) {
|
1578
|
+
switch (verb) {
|
1579
|
+
case SkPathVerb::kMove: return 0;
|
1580
|
+
case SkPathVerb::kLine: return -1;
|
1581
|
+
case SkPathVerb::kQuad: return -1;
|
1582
|
+
case SkPathVerb::kConic: return -1;
|
1583
|
+
case SkPathVerb::kCubic: return -1;
|
1584
|
+
case SkPathVerb::kClose: return -1;
|
1585
|
+
}
|
1586
|
+
SkUNREACHABLE;
|
1587
|
+
}
|
1588
|
+
const uint8_t* fVerb = nullptr;
|
1589
|
+
const SkPoint* fPoints = nullptr;
|
1590
|
+
const SkScalar* fWeights = nullptr;
|
1591
|
+
SkDEBUGCODE(const SkPoint* fInitialPoints = nullptr;)
|
1592
|
+
};
|
1593
|
+
public:
|
1594
|
+
|
1595
|
+
/** \class SkPath::RawIter
|
1596
|
+
Use Iter instead. This class will soon be removed and RangeIter will be made private.
|
1597
|
+
*/
|
1598
|
+
class SK_API RawIter {
|
1599
|
+
public:
|
1600
|
+
|
1601
|
+
/** Initializes RawIter with an empty SkPath. next() on RawIter returns kDone_Verb.
|
1602
|
+
Call setPath to initialize SkPath::Iter at a later time.
|
1603
|
+
|
1604
|
+
@return RawIter of empty SkPath
|
1605
|
+
*/
|
1606
|
+
RawIter() {}
|
1607
|
+
|
1608
|
+
/** Sets RawIter to return elements of verb array, SkPoint array, and conic weight in path.
|
1609
|
+
|
1610
|
+
@param path SkPath to iterate
|
1611
|
+
@return RawIter of path
|
1612
|
+
*/
|
1613
|
+
RawIter(const SkPath& path) {
|
1614
|
+
setPath(path);
|
1615
|
+
}
|
1616
|
+
|
1617
|
+
/** Sets SkPath::Iter to return elements of verb array, SkPoint array, and conic weight in
|
1618
|
+
path.
|
1619
|
+
|
1620
|
+
@param path SkPath to iterate
|
1621
|
+
*/
|
1622
|
+
void setPath(const SkPath&);
|
1623
|
+
|
1624
|
+
/** Returns next SkPath::Verb in verb array, and advances RawIter.
|
1625
|
+
When verb array is exhausted, returns kDone_Verb.
|
1626
|
+
Zero to four SkPoint are stored in pts, depending on the returned SkPath::Verb.
|
1627
|
+
|
1628
|
+
@param pts storage for SkPoint data describing returned SkPath::Verb
|
1629
|
+
@return next SkPath::Verb from verb array
|
1630
|
+
*/
|
1631
|
+
Verb next(SkPoint[4]);
|
1632
|
+
|
1633
|
+
/** Returns next SkPath::Verb, but does not advance RawIter.
|
1634
|
+
|
1635
|
+
@return next SkPath::Verb from verb array
|
1636
|
+
*/
|
1637
|
+
Verb peek() const {
|
1638
|
+
return (fIter != fEnd) ? static_cast<Verb>(std::get<0>(*fIter)) : kDone_Verb;
|
1639
|
+
}
|
1640
|
+
|
1641
|
+
/** Returns conic weight if next() returned kConic_Verb.
|
1642
|
+
|
1643
|
+
If next() has not been called, or next() did not return kConic_Verb,
|
1644
|
+
result is undefined.
|
1645
|
+
|
1646
|
+
@return conic weight for conic SkPoint returned by next()
|
1647
|
+
*/
|
1648
|
+
SkScalar conicWeight() const {
|
1649
|
+
return fConicWeight;
|
1650
|
+
}
|
1651
|
+
|
1652
|
+
private:
|
1653
|
+
RangeIter fIter;
|
1654
|
+
RangeIter fEnd;
|
1655
|
+
SkScalar fConicWeight = 0;
|
1656
|
+
friend class SkPath;
|
1657
|
+
|
1658
|
+
};
|
1659
|
+
|
1660
|
+
/** Returns true if the point (x, y) is contained by SkPath, taking into
|
1661
|
+
account FillType.
|
1662
|
+
|
1663
|
+
@param x x-axis value of containment test
|
1664
|
+
@param y y-axis value of containment test
|
1665
|
+
@return true if SkPoint is in SkPath
|
1666
|
+
|
1667
|
+
example: https://fiddle.skia.org/c/@Path_contains
|
1668
|
+
*/
|
1669
|
+
bool contains(SkScalar x, SkScalar y) const;
|
1670
|
+
|
1671
|
+
/** Writes text representation of SkPath to stream. If stream is nullptr, writes to
|
1672
|
+
standard output. Set dumpAsHex true to generate exact binary representations
|
1673
|
+
of floating point numbers used in SkPoint array and conic weights.
|
1674
|
+
|
1675
|
+
@param stream writable SkWStream receiving SkPath text representation; may be nullptr
|
1676
|
+
@param dumpAsHex true if SkScalar values are written as hexadecimal
|
1677
|
+
|
1678
|
+
example: https://fiddle.skia.org/c/@Path_dump
|
1679
|
+
*/
|
1680
|
+
void dump(SkWStream* stream, bool dumpAsHex) const;
|
1681
|
+
|
1682
|
+
void dump() const { this->dump(nullptr, false); }
|
1683
|
+
void dumpHex() const { this->dump(nullptr, true); }
|
1684
|
+
|
1685
|
+
// Like dump(), but outputs for the SkPath::Make() factory
|
1686
|
+
void dumpArrays(SkWStream* stream, bool dumpAsHex) const;
|
1687
|
+
void dumpArrays() const { this->dumpArrays(nullptr, false); }
|
1688
|
+
|
1689
|
+
/** Writes SkPath to buffer, returning the number of bytes written.
|
1690
|
+
Pass nullptr to obtain the storage size.
|
1691
|
+
|
1692
|
+
Writes SkPath::FillType, verb array, SkPoint array, conic weight, and
|
1693
|
+
additionally writes computed information like SkPath::Convexity and bounds.
|
1694
|
+
|
1695
|
+
Use only be used in concert with readFromMemory();
|
1696
|
+
the format used for SkPath in memory is not guaranteed.
|
1697
|
+
|
1698
|
+
@param buffer storage for SkPath; may be nullptr
|
1699
|
+
@return size of storage required for SkPath; always a multiple of 4
|
1700
|
+
|
1701
|
+
example: https://fiddle.skia.org/c/@Path_writeToMemory
|
1702
|
+
*/
|
1703
|
+
size_t writeToMemory(void* buffer) const;
|
1704
|
+
|
1705
|
+
/** Writes SkPath to buffer, returning the buffer written to, wrapped in SkData.
|
1706
|
+
|
1707
|
+
serialize() writes SkPath::FillType, verb array, SkPoint array, conic weight, and
|
1708
|
+
additionally writes computed information like SkPath::Convexity and bounds.
|
1709
|
+
|
1710
|
+
serialize() should only be used in concert with readFromMemory().
|
1711
|
+
The format used for SkPath in memory is not guaranteed.
|
1712
|
+
|
1713
|
+
@return SkPath data wrapped in SkData buffer
|
1714
|
+
|
1715
|
+
example: https://fiddle.skia.org/c/@Path_serialize
|
1716
|
+
*/
|
1717
|
+
sk_sp<SkData> serialize() const;
|
1718
|
+
|
1719
|
+
/** Initializes SkPath from buffer of size length. Returns zero if the buffer is
|
1720
|
+
data is inconsistent, or the length is too small.
|
1721
|
+
|
1722
|
+
Reads SkPath::FillType, verb array, SkPoint array, conic weight, and
|
1723
|
+
additionally reads computed information like SkPath::Convexity and bounds.
|
1724
|
+
|
1725
|
+
Used only in concert with writeToMemory();
|
1726
|
+
the format used for SkPath in memory is not guaranteed.
|
1727
|
+
|
1728
|
+
@param buffer storage for SkPath
|
1729
|
+
@param length buffer size in bytes; must be multiple of 4
|
1730
|
+
@return number of bytes read, or zero on failure
|
1731
|
+
|
1732
|
+
example: https://fiddle.skia.org/c/@Path_readFromMemory
|
1733
|
+
*/
|
1734
|
+
size_t readFromMemory(const void* buffer, size_t length);
|
1735
|
+
|
1736
|
+
/** (See Skia bug 1762.)
|
1737
|
+
Returns a non-zero, globally unique value. A different value is returned
|
1738
|
+
if verb array, SkPoint array, or conic weight changes.
|
1739
|
+
|
1740
|
+
Setting SkPath::FillType does not change generation identifier.
|
1741
|
+
|
1742
|
+
Each time the path is modified, a different generation identifier will be returned.
|
1743
|
+
SkPath::FillType does affect generation identifier on Android framework.
|
1744
|
+
|
1745
|
+
@return non-zero, globally unique value
|
1746
|
+
|
1747
|
+
example: https://fiddle.skia.org/c/@Path_getGenerationID
|
1748
|
+
*/
|
1749
|
+
uint32_t getGenerationID() const;
|
1750
|
+
|
1751
|
+
/** Returns if SkPath data is consistent. Corrupt SkPath data is detected if
|
1752
|
+
internal values are out of range or internal storage does not match
|
1753
|
+
array dimensions.
|
1754
|
+
|
1755
|
+
@return true if SkPath data is consistent
|
1756
|
+
*/
|
1757
|
+
bool isValid() const;
|
1758
|
+
|
1759
|
+
private:
|
1760
|
+
SkPath(sk_sp<SkPathRef>, SkPathFillType, bool isVolatile, SkPathConvexity,
|
1761
|
+
SkPathFirstDirection firstDirection);
|
1762
|
+
|
1763
|
+
sk_sp<SkPathRef> fPathRef;
|
1764
|
+
int fLastMoveToIndex;
|
1765
|
+
mutable std::atomic<uint8_t> fConvexity; // SkPathConvexity
|
1766
|
+
mutable std::atomic<uint8_t> fFirstDirection; // SkPathFirstDirection
|
1767
|
+
uint8_t fFillType : 2;
|
1768
|
+
uint8_t fIsVolatile : 1;
|
1769
|
+
|
1770
|
+
/** Resets all fields other than fPathRef to their initial 'empty' values.
|
1771
|
+
* Assumes the caller has already emptied fPathRef.
|
1772
|
+
* On Android increments fGenerationID without reseting it.
|
1773
|
+
*/
|
1774
|
+
void resetFields();
|
1775
|
+
|
1776
|
+
/** Sets all fields other than fPathRef to the values in 'that'.
|
1777
|
+
* Assumes the caller has already set fPathRef.
|
1778
|
+
* Doesn't change fGenerationID or fSourcePath on Android.
|
1779
|
+
*/
|
1780
|
+
void copyFields(const SkPath& that);
|
1781
|
+
|
1782
|
+
size_t writeToMemoryAsRRect(void* buffer) const;
|
1783
|
+
size_t readAsRRect(const void*, size_t);
|
1784
|
+
size_t readFromMemory_EQ4Or5(const void*, size_t);
|
1785
|
+
|
1786
|
+
friend class Iter;
|
1787
|
+
friend class SkPathPriv;
|
1788
|
+
friend class SkPathStroker;
|
1789
|
+
|
1790
|
+
/* Append, in reverse order, the first contour of path, ignoring path's
|
1791
|
+
last point. If no moveTo() call has been made for this contour, the
|
1792
|
+
first point is automatically set to (0,0).
|
1793
|
+
*/
|
1794
|
+
SkPath& reversePathTo(const SkPath&);
|
1795
|
+
|
1796
|
+
// called before we add points for lineTo, quadTo, cubicTo, checking to see
|
1797
|
+
// if we need to inject a leading moveTo first
|
1798
|
+
//
|
1799
|
+
// SkPath path; path.lineTo(...); <--- need a leading moveTo(0, 0)
|
1800
|
+
// SkPath path; ... path.close(); path.lineTo(...) <-- need a moveTo(previous moveTo)
|
1801
|
+
//
|
1802
|
+
inline void injectMoveToIfNeeded();
|
1803
|
+
|
1804
|
+
inline bool hasOnlyMoveTos() const;
|
1805
|
+
|
1806
|
+
SkPathConvexity computeConvexity() const;
|
1807
|
+
|
1808
|
+
bool isValidImpl() const;
|
1809
|
+
/** Asserts if SkPath data is inconsistent.
|
1810
|
+
Debugging check intended for internal use only.
|
1811
|
+
*/
|
1812
|
+
#ifdef SK_DEBUG
|
1813
|
+
void validate() const;
|
1814
|
+
void validateRef() const;
|
1815
|
+
#endif
|
1816
|
+
|
1817
|
+
// called by stroker to see if all points (in the last contour) are equal and worthy of a cap
|
1818
|
+
bool isZeroLengthSincePoint(int startPtIndex) const;
|
1819
|
+
|
1820
|
+
/** Returns if the path can return a bound at no cost (true) or will have to
|
1821
|
+
perform some computation (false).
|
1822
|
+
*/
|
1823
|
+
bool hasComputedBounds() const;
|
1824
|
+
|
1825
|
+
// 'rect' needs to be sorted
|
1826
|
+
void setBounds(const SkRect& rect);
|
1827
|
+
|
1828
|
+
void setPt(int index, SkScalar x, SkScalar y);
|
1829
|
+
|
1830
|
+
SkPath& dirtyAfterEdit();
|
1831
|
+
|
1832
|
+
// Bottlenecks for working with fConvexity and fFirstDirection.
|
1833
|
+
// Notice the setters are const... these are mutable atomic fields.
|
1834
|
+
void setConvexity(SkPathConvexity) const;
|
1835
|
+
|
1836
|
+
void setFirstDirection(SkPathFirstDirection) const;
|
1837
|
+
SkPathFirstDirection getFirstDirection() const;
|
1838
|
+
|
1839
|
+
/** Returns the comvexity type, computing if needed. Never returns kUnknown.
|
1840
|
+
@return path's convexity type (convex or concave)
|
1841
|
+
*/
|
1842
|
+
SkPathConvexity getConvexity() const;
|
1843
|
+
|
1844
|
+
SkPathConvexity getConvexityOrUnknown() const;
|
1845
|
+
|
1846
|
+
// Compares the cached value with a freshly computed one (computeConvexity())
|
1847
|
+
bool isConvexityAccurate() const;
|
1848
|
+
|
1849
|
+
/** Stores a convexity type for this path. This is what will be returned if
|
1850
|
+
* getConvexityOrUnknown() is called. If you pass kUnknown, then if getContexityType()
|
1851
|
+
* is called, the real convexity will be computed.
|
1852
|
+
*
|
1853
|
+
* example: https://fiddle.skia.org/c/@Path_setConvexity
|
1854
|
+
*/
|
1855
|
+
void setConvexity(SkPathConvexity convexity);
|
1856
|
+
|
1857
|
+
/** Shrinks SkPath verb array and SkPoint array storage to discard unused capacity.
|
1858
|
+
* May reduce the heap overhead for SkPath known to be fully constructed.
|
1859
|
+
*
|
1860
|
+
* NOTE: This may relocate the underlying buffers, and thus any Iterators referencing
|
1861
|
+
* this path should be discarded after calling shrinkToFit().
|
1862
|
+
*/
|
1863
|
+
void shrinkToFit();
|
1864
|
+
|
1865
|
+
friend class SkAutoPathBoundsUpdate;
|
1866
|
+
friend class SkAutoDisableOvalCheck;
|
1867
|
+
friend class SkAutoDisableDirectionCheck;
|
1868
|
+
friend class SkPathBuilder;
|
1869
|
+
friend class SkPathEdgeIter;
|
1870
|
+
friend class SkPathWriter;
|
1871
|
+
friend class SkOpBuilder;
|
1872
|
+
friend class SkBench_AddPathTest; // perf test reversePathTo
|
1873
|
+
friend class PathTest_Private; // unit test reversePathTo
|
1874
|
+
friend class ForceIsRRect_Private; // unit test isRRect
|
1875
|
+
friend class FuzzPath; // for legacy access to validateRef
|
1876
|
+
};
|
1877
|
+
|
1878
|
+
#endif
|