@shopify/react-native-skia 2.11.0-next.2 → 2.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/cpp/rnskia-android/RNSkAndroidPlatformContext.h +0 -10
- package/android/src/main/java/com/shopify/reactnative/skia/ViewScreenshotService.java +9 -12
- package/apple/RNSkApplePlatformContext.h +0 -3
- package/apple/RNSkApplePlatformContext.mm +0 -11
- package/cpp/api/JsiSkApi.h +0 -6
- package/cpp/api/JsiSkFont.h +2 -8
- package/cpp/api/JsiSkMatrix.h +4 -2
- package/cpp/api/recorder/Convertor.h +62 -11
- package/cpp/api/recorder/Drawings.h +13 -3
- package/cpp/api/recorder/ImageFilters.h +15 -1
- package/cpp/api/recorder/Paint.h +5 -2
- package/cpp/api/third_party/SkottieUtils.cpp +1 -1
- package/cpp/rnskia/RNSkPlatformContext.h +0 -3
- package/cpp/skia/include/android/SkAndroidFrameworkUtils.h +0 -2
- package/cpp/skia/include/android/vk/AndroidVulkanMemoryAllocator.h +1 -1
- package/cpp/skia/include/codec/SkAndroidCodec.h +1 -1
- package/cpp/skia/include/codec/SkAvifDecoder.h +1 -1
- package/cpp/skia/include/codec/SkBmpDecoder.h +1 -1
- package/cpp/skia/include/codec/SkBmpRustDecoder.h +42 -0
- package/cpp/skia/include/codec/SkCodec.h +3 -2
- package/cpp/skia/include/codec/SkGifDecoder.h +1 -1
- package/cpp/skia/include/codec/SkIcoDecoder.h +1 -1
- package/cpp/skia/include/codec/SkJpegDecoder.h +1 -1
- package/cpp/skia/include/codec/SkJpegxlDecoder.h +1 -1
- package/cpp/skia/include/codec/SkPixmapUtils.h +1 -1
- package/cpp/skia/include/codec/SkPngDecoder.h +1 -1
- package/cpp/skia/include/codec/SkPngRustDecoder.h +1 -1
- package/cpp/skia/include/codec/SkRawDecoder.h +1 -1
- package/cpp/skia/include/codec/SkWbmpDecoder.h +1 -1
- package/cpp/skia/include/codec/SkWebpDecoder.h +1 -1
- package/cpp/skia/include/core/SkBitmap.h +3 -3
- package/cpp/skia/include/core/SkCPUContext.h +1 -1
- package/cpp/skia/include/core/SkCPURecorder.h +2 -3
- package/cpp/skia/include/core/SkCanvas.h +23 -15
- package/cpp/skia/include/core/SkColor.h +2 -2
- package/cpp/skia/include/core/SkColorFilter.h +1 -1
- package/cpp/skia/include/core/SkColorSpace.h +2 -2
- package/cpp/skia/include/core/SkColorTable.h +1 -1
- package/cpp/skia/include/core/SkContourMeasure.h +1 -1
- package/cpp/skia/include/core/SkData.h +1 -1
- package/cpp/skia/include/core/SkDataTable.h +2 -2
- package/cpp/skia/include/core/SkDocument.h +1 -1
- package/cpp/skia/include/core/SkDrawable.h +1 -1
- package/cpp/skia/include/core/SkFont.h +2 -2
- package/cpp/skia/include/core/SkFontMetrics.h +1 -1
- package/cpp/skia/include/core/SkFontMgr.h +1 -1
- package/cpp/skia/include/core/SkFontScanner.h +3 -3
- package/cpp/skia/include/core/SkFontStyle.h +1 -1
- package/cpp/skia/include/core/SkGraphics.h +1 -1
- package/cpp/skia/include/core/SkImage.h +1 -1
- package/cpp/skia/include/core/SkImageFilter.h +1 -1
- package/cpp/skia/include/core/SkImageGenerator.h +1 -1
- package/cpp/skia/include/core/SkImageInfo.h +4 -4
- package/cpp/skia/include/core/SkMatrix.h +3 -3
- package/cpp/skia/include/core/SkMesh.h +2 -2
- package/cpp/skia/include/core/SkMilestone.h +1 -1
- package/cpp/skia/include/core/SkOverdrawCanvas.h +1 -1
- package/cpp/skia/include/core/SkPaint.h +4 -4
- package/cpp/skia/include/core/SkPath.h +5 -23
- package/cpp/skia/include/core/SkPathBuilder.h +4 -2
- package/cpp/skia/include/core/SkPathMeasure.h +1 -1
- package/cpp/skia/include/core/SkPictureRecorder.h +1 -1
- package/cpp/skia/include/core/SkPixelRef.h +3 -5
- package/cpp/skia/include/core/SkPixmap.h +7 -2
- package/cpp/skia/include/core/SkPoint.h +555 -5
- package/cpp/skia/include/core/SkPoint3.h +2 -2
- package/cpp/skia/include/core/SkRRect.h +9 -1
- package/cpp/skia/include/core/SkRSXform.h +1 -1
- package/cpp/skia/include/core/SkRecorder.h +2 -3
- package/cpp/skia/include/core/SkRect.h +3 -3
- package/cpp/skia/include/core/SkRefCnt.h +1 -1
- package/cpp/skia/include/core/SkRegion.h +4 -4
- package/cpp/skia/include/core/SkScalar.h +2 -3
- package/cpp/skia/include/core/SkSerialProcs.h +1 -1
- package/cpp/skia/include/core/SkShader.h +1 -1
- package/cpp/skia/include/core/SkSize.h +1 -1
- package/cpp/skia/include/core/SkSpan.h +165 -4
- package/cpp/skia/include/core/SkStream.h +2 -2
- package/cpp/skia/include/core/SkStrikeRef.h +16 -0
- package/cpp/skia/include/core/SkString.h +2 -2
- package/cpp/skia/include/core/SkStrokeRec.h +1 -1
- package/cpp/skia/include/core/SkSurfaceProps.h +1 -1
- package/cpp/skia/include/core/SkSwizzle.h +1 -1
- package/cpp/skia/include/core/SkTextBlob.h +2 -2
- package/cpp/skia/include/core/SkTiledImageUtils.h +1 -1
- package/cpp/skia/include/core/SkTypeface.h +8 -2
- package/cpp/skia/include/core/SkTypes.h +6 -6
- package/cpp/skia/include/core/SkUnPreMultiply.h +1 -1
- package/cpp/skia/include/core/SkVertices.h +1 -1
- package/cpp/skia/include/core/SkYUVAPixmaps.h +1 -1
- package/cpp/skia/include/docs/SkPDFDocument.h +9 -3
- package/cpp/skia/include/effects/SkGradient.h +1 -1
- package/cpp/skia/include/effects/SkPerlinNoiseShader.h +1 -1
- package/cpp/skia/include/effects/SkRuntimeEffect.h +4 -4
- package/cpp/skia/include/encode/SkEncoder.h +3 -3
- package/cpp/skia/include/encode/SkICC.h +1 -1
- package/cpp/skia/include/encode/SkJpegEncoder.h +1 -1
- package/cpp/skia/include/encode/SkPngEncoder.h +1 -1
- package/cpp/skia/include/encode/SkPngRustEncoder.h +16 -1
- package/cpp/skia/include/encode/SkWebpEncoder.h +1 -1
- package/cpp/skia/include/gpu/GpuTypes.h +1 -1
- package/cpp/skia/include/gpu/MutableTextureState.h +1 -1
- package/cpp/skia/include/gpu/ganesh/GrBackendSemaphore.h +2 -2
- package/cpp/skia/include/gpu/ganesh/GrBackendSurface.h +3 -3
- package/cpp/skia/include/gpu/ganesh/GrDriverBugWorkaroundsAutogen.h +39 -37
- package/cpp/skia/include/gpu/ganesh/GrExternalTextureGenerator.h +1 -1
- package/cpp/skia/include/gpu/ganesh/GrRecordingContext.h +3 -2
- package/cpp/skia/include/gpu/ganesh/GrTypes.h +1 -1
- package/cpp/skia/include/gpu/ganesh/SkImageGanesh.h +1 -1
- package/cpp/skia/include/gpu/ganesh/SkMeshGanesh.h +1 -1
- package/cpp/skia/include/gpu/ganesh/SkSurfaceGanesh.h +1 -1
- package/cpp/skia/include/gpu/ganesh/d3d/GrD3DBackendSemaphore.h +1 -1
- package/cpp/skia/include/gpu/ganesh/d3d/GrD3DBackendSurface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/d3d/GrD3DDirectContext.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/GrGLAssembleInterface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/GrGLBackendSurface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/GrGLConfig.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/GrGLDirectContext.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/GrGLExtensions.h +2 -2
- package/cpp/skia/include/gpu/ganesh/gl/GrGLFunctions.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/GrGLMakeWebGLInterface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/epoxy/GrGLMakeEpoxyEGLInterface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/glx/GrGLMakeGLXInterface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/ios/GrGLMakeIOSInterface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/mac/GrGLMakeMacInterface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/gl/win/GrGLMakeWinInterface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/mock/GrMockBackendSurface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/mock/GrMockTypes.h +1 -1
- package/cpp/skia/include/gpu/ganesh/mtl/GrMtlBackendSemaphore.h +1 -1
- package/cpp/skia/include/gpu/ganesh/mtl/GrMtlBackendSurface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/mtl/GrMtlDirectContext.h +1 -1
- package/cpp/skia/include/gpu/ganesh/vk/GrVkBackendSemaphore.h +1 -1
- package/cpp/skia/include/gpu/ganesh/vk/GrVkBackendSurface.h +1 -1
- package/cpp/skia/include/gpu/ganesh/vk/GrVkDirectContext.h +1 -1
- package/cpp/skia/include/gpu/graphite/BackendSemaphore.h +2 -2
- package/cpp/skia/include/gpu/graphite/BackendTexture.h +2 -2
- package/cpp/skia/include/gpu/graphite/Context.h +3 -3
- package/cpp/skia/include/gpu/graphite/ContextOptions.h +8 -2
- package/cpp/skia/include/gpu/graphite/PersistentPipelineStorage.h +1 -1
- package/cpp/skia/include/gpu/graphite/PrecompileContext.h +16 -2
- package/cpp/skia/include/gpu/graphite/Recorder.h +8 -7
- package/cpp/skia/include/gpu/graphite/Recording.h +6 -4
- package/cpp/skia/include/gpu/graphite/TextureInfo.h +2 -2
- package/cpp/skia/include/gpu/graphite/dawn/DawnGraphiteTypes.h +1 -1
- package/cpp/skia/include/gpu/graphite/mtl/MtlBackendContext.h +1 -1
- package/cpp/skia/include/gpu/graphite/mtl/MtlGraphiteTypes.h +1 -1
- package/cpp/skia/include/gpu/graphite/mtl/MtlGraphiteTypes_cpp.h +1 -1
- package/cpp/skia/include/gpu/graphite/precompile/PaintOptions.h +2 -2
- package/cpp/skia/include/gpu/graphite/precompile/PrecompileImageFilter.h +1 -1
- package/cpp/skia/include/gpu/graphite/vk/VulkanGraphiteContext.h +1 -1
- package/cpp/skia/include/gpu/vk/VulkanBackendContext.h +1 -1
- package/cpp/skia/include/gpu/vk/VulkanExtensions.h +3 -3
- package/cpp/skia/include/gpu/vk/VulkanMutableTextureState.h +1 -1
- package/cpp/skia/include/gpu/vk/VulkanPreferredFeatures.h +1 -1
- package/cpp/skia/include/gpu/vk/VulkanTypes.h +1 -1
- package/cpp/skia/include/pathops/SkPathOps.h +2 -2
- package/cpp/skia/include/ports/SkImageGeneratorCG.h +2 -2
- package/cpp/skia/include/ports/SkImageGeneratorWIC.h +2 -2
- package/cpp/skia/include/private/{base/SingleOwner.h → SingleOwner.h} +5 -5
- package/cpp/skia/include/private/{base/SkAPI.h → SkAPI.h} +1 -1
- package/cpp/skia/include/private/{base/SkAlign.h → SkAlign.h} +1 -1
- package/cpp/skia/include/private/{base/SkAnySubclass.h → SkAnySubclass.h} +1 -1
- package/cpp/skia/include/private/{base/SkAssert.h → SkAssert.h} +4 -4
- package/cpp/skia/include/private/{base/SkAttributes.h → SkAttributes.h} +2 -2
- package/cpp/skia/include/private/{base/SkContainers.h → SkContainers.h} +3 -3
- package/cpp/skia/include/private/{base/SkDebug.h → SkDebug.h} +3 -3
- package/cpp/skia/include/private/{base/SkDeque.h → SkDeque.h} +1 -1
- package/cpp/skia/include/private/SkEncodedInfo.h +2 -2
- package/cpp/skia/include/private/SkEnumBitMask.h +92 -0
- package/cpp/skia/include/private/SkExif.h +1 -1
- package/cpp/skia/include/private/{base/SkFixed.h → SkFixed.h} +4 -4
- package/cpp/skia/include/private/{base/SkFloatingPoint.h → SkFloatingPoint.h} +2 -2
- package/cpp/skia/include/private/SkGainmapShader.h +1 -1
- package/cpp/skia/include/private/SkHdrMetadata.h +1 -1
- package/cpp/skia/include/private/SkIDChangeListener.h +3 -3
- package/cpp/skia/include/private/{base/SkLoadUserConfig.h → SkLoadUserConfig.h} +2 -2
- package/cpp/skia/include/private/{base/SkLog.h → SkLog.h} +4 -4
- package/cpp/skia/include/private/{base/SkMacros.h → SkMacros.h} +1 -1
- package/cpp/skia/include/private/{base/SkMalloc.h → SkMalloc.h} +1 -1
- package/cpp/skia/include/private/{base/SkMath.h → SkMath.h} +2 -2
- package/cpp/skia/include/private/{base/SkMutex.h → SkMutex.h} +5 -5
- package/cpp/skia/include/private/{base/SkNoncopyable.h → SkNoncopyable.h} +1 -1
- package/cpp/skia/include/private/{base/SkOnce.h → SkOnce.h} +1 -1
- package/cpp/skia/include/private/SkPathRef.h +4 -4
- package/cpp/skia/include/private/SkPixelStorage.h +20 -5
- package/cpp/skia/include/private/{base/SkSafe32.h → SkSafe32.h} +2 -2
- package/cpp/skia/include/private/{base/SkSemaphore.h → SkSemaphore.h} +3 -3
- package/cpp/skia/include/private/{base/SkTArray.h → SkTArray.h} +10 -11
- package/cpp/skia/include/private/{base/SkTDArray.h → SkTDArray.h} +4 -4
- package/cpp/skia/include/private/{base/SkTFitsIn.h → SkTFitsIn.h} +0 -2
- package/cpp/skia/include/private/{base/SkTLogic.h → SkTLogic.h} +1 -1
- package/cpp/skia/include/private/{base/SkTemplates.h → SkTemplates.h} +5 -6
- package/cpp/skia/include/private/{base/SkThreadAnnotations.h → SkThreadAnnotations.h} +1 -1
- package/cpp/skia/include/private/{base/SkThreadID.h → SkThreadID.h} +2 -2
- package/cpp/skia/include/private/{base/SkTo.h → SkTo.h} +2 -2
- package/cpp/skia/include/private/{base/SkTypeTraits.h → SkTypeTraits.h} +20 -0
- package/cpp/skia/include/private/SkXmp.h +1 -1
- package/cpp/skia/include/private/chromium/GrDeferredDisplayList.h +1 -1
- package/cpp/skia/include/private/chromium/GrSurfaceCharacterization.h +1 -1
- package/cpp/skia/include/private/chromium/SkChromeRemoteGlyphCache.h +1 -1
- package/cpp/skia/include/private/chromium/SkCodecsICCProfileChromium.h +1 -1
- package/cpp/skia/include/private/chromium/SkExifChromium.h +1 -1
- package/cpp/skia/include/private/chromium/SkImageChromium.h +1 -1
- package/cpp/skia/include/private/chromium/SkPMColor.h +1 -1
- package/cpp/skia/include/private/chromium/Slug.h +1 -1
- package/cpp/skia/include/private/gpu/ganesh/GrContext_Base.h +1 -1
- package/cpp/skia/include/private/gpu/ganesh/GrImageContext.h +2 -2
- package/cpp/skia/include/private/gpu/ganesh/GrTextureGenerator.h +1 -1
- package/cpp/skia/include/private/gpu/ganesh/GrTypesPriv.h +4 -4
- package/cpp/skia/include/utils/SkCamera.h +1 -1
- package/cpp/skia/include/utils/SkNWayCanvas.h +1 -1
- package/cpp/skia/include/utils/SkPaintFilterCanvas.h +1 -1
- package/cpp/skia/modules/jsonreader/SkJSONReader.cpp +6 -6
- package/cpp/skia/modules/jsonreader/SkJSONReader.h +2 -2
- package/cpp/skia/modules/skottie/include/SkottieProperty.h +1 -1
- package/cpp/skia/modules/skottie/include/SlotManager.h +2 -2
- package/cpp/skia/modules/skottie/include/TextShaper.h +1 -1
- package/cpp/skia/modules/skottie/src/text/Font.h +1 -1
- package/cpp/skia/modules/skparagraph/include/ParagraphCache.h +1 -1
- package/cpp/skia/modules/skparagraph/include/TypefaceFontProvider.h +1 -1
- package/cpp/skia/modules/skresources/include/SkResources.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGNode.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGRect.h +1 -1
- package/cpp/skia/modules/sksg/include/SkSGRenderEffect.h +1 -1
- package/cpp/skia/modules/skunicode/include/SkUnicode.h +3 -3
- package/cpp/skia/modules/svg/include/SkSVGAttributeParser.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGCircle.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGClipPath.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGContainer.h +2 -2
- package/cpp/skia/modules/svg/include/SkSVGDOM.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGEllipse.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFe.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeBlend.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeColorMatrix.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeComponentTransfer.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeComposite.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeDisplacementMap.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeFlood.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeGaussianBlur.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeImage.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeLightSource.h +2 -2
- package/cpp/skia/modules/svg/include/SkSVGFeLighting.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeMerge.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeOffset.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFeTurbulence.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGFilter.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGGradient.h +2 -2
- package/cpp/skia/modules/svg/include/SkSVGImage.h +2 -2
- package/cpp/skia/modules/svg/include/SkSVGLine.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGLinearGradient.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGMask.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGNode.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGPath.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGPattern.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGPoly.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGRadialGradient.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGRect.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGRenderContext.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGSVG.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGShape.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGStop.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGText.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGTransformableNode.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGUse.h +1 -1
- package/cpp/skia/modules/svg/include/SkSVGValue.h +1 -1
- package/cpp/skia/src/{base → core}/SkArenaAlloc.h +5 -5
- package/cpp/skia/src/{base → core}/SkAutoLocaleSetter.h +1 -1
- package/cpp/skia/src/core/SkChecksum.h +1 -1
- package/cpp/skia/src/core/SkLRUCache.h +1 -1
- package/cpp/skia/src/{base → core}/SkMathPriv.h +3 -3
- package/cpp/skia/src/core/SkTHash.h +1 -1
- package/cpp/skia/src/{base → core}/SkTInternalLList.h +3 -3
- package/cpp/skia/src/{base → core}/SkTLazy.h +1 -1
- package/cpp/skia/src/{base → core}/SkUTF.h +1 -1
- package/lib/commonjs/renderer/components/Mask.js +3 -9
- package/lib/commonjs/renderer/components/Mask.js.map +1 -1
- package/lib/commonjs/renderer/processors/Animations/Animations.d.ts +27 -1
- package/lib/commonjs/renderer/processors/Animations/Animations.js +28 -0
- package/lib/commonjs/renderer/processors/Animations/Animations.js.map +1 -1
- package/lib/commonjs/skia/types/Matrix4.js +7 -2
- package/lib/commonjs/skia/types/Matrix4.js.map +1 -1
- package/lib/commonjs/skia/types/Skia.d.ts +1 -6
- package/lib/commonjs/skia/types/Skia.js.map +1 -1
- package/lib/commonjs/skia/web/JsiSkia.js +0 -3
- package/lib/commonjs/skia/web/JsiSkia.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/Core.js +8 -1
- package/lib/commonjs/sksg/Recorder/Core.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/DrawingContext.d.ts +1 -0
- package/lib/commonjs/sksg/Recorder/DrawingContext.js +10 -0
- package/lib/commonjs/sksg/Recorder/DrawingContext.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/Player.js +1 -1
- package/lib/commonjs/sksg/Recorder/Player.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/ReanimatedRecorder.js +8 -0
- package/lib/commonjs/sksg/Recorder/ReanimatedRecorder.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/Recorder.d.ts +1 -1
- package/lib/commonjs/sksg/Recorder/Recorder.js +4 -0
- package/lib/commonjs/sksg/Recorder/Recorder.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/Visitor.js +6 -1
- package/lib/commonjs/sksg/Recorder/Visitor.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/commands/Drawing.js +10 -8
- package/lib/commonjs/sksg/Recorder/commands/Drawing.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/commands/ImageFilters.js +15 -1
- package/lib/commonjs/sksg/Recorder/commands/ImageFilters.js.map +1 -1
- package/lib/commonjs/sksg/Recorder/commands/Shaders.js +1 -1
- package/lib/commonjs/sksg/Recorder/commands/Shaders.js.map +1 -1
- package/lib/commonjs/sksg/utils.d.ts +4 -0
- package/lib/commonjs/sksg/utils.js +14 -1
- package/lib/commonjs/sksg/utils.js.map +1 -1
- package/lib/module/renderer/components/Mask.js +3 -9
- package/lib/module/renderer/components/Mask.js.map +1 -1
- package/lib/module/renderer/processors/Animations/Animations.d.ts +27 -1
- package/lib/module/renderer/processors/Animations/Animations.js +21 -0
- package/lib/module/renderer/processors/Animations/Animations.js.map +1 -1
- package/lib/module/skia/types/Matrix4.js +7 -2
- package/lib/module/skia/types/Matrix4.js.map +1 -1
- package/lib/module/skia/types/Skia.d.ts +1 -6
- package/lib/module/skia/types/Skia.js.map +1 -1
- package/lib/module/skia/web/JsiSkia.js +0 -3
- package/lib/module/skia/web/JsiSkia.js.map +1 -1
- package/lib/module/sksg/Recorder/Core.js +8 -1
- package/lib/module/sksg/Recorder/Core.js.map +1 -1
- package/lib/module/sksg/Recorder/DrawingContext.d.ts +1 -0
- package/lib/module/sksg/Recorder/DrawingContext.js +10 -0
- package/lib/module/sksg/Recorder/DrawingContext.js.map +1 -1
- package/lib/module/sksg/Recorder/Player.js +1 -1
- package/lib/module/sksg/Recorder/Player.js.map +1 -1
- package/lib/module/sksg/Recorder/ReanimatedRecorder.js +9 -1
- package/lib/module/sksg/Recorder/ReanimatedRecorder.js.map +1 -1
- package/lib/module/sksg/Recorder/Recorder.d.ts +1 -1
- package/lib/module/sksg/Recorder/Recorder.js +5 -1
- package/lib/module/sksg/Recorder/Recorder.js.map +1 -1
- package/lib/module/sksg/Recorder/Visitor.js +6 -1
- package/lib/module/sksg/Recorder/Visitor.js.map +1 -1
- package/lib/module/sksg/Recorder/commands/Drawing.js +10 -8
- package/lib/module/sksg/Recorder/commands/Drawing.js.map +1 -1
- package/lib/module/sksg/Recorder/commands/ImageFilters.js +15 -1
- package/lib/module/sksg/Recorder/commands/ImageFilters.js.map +1 -1
- package/lib/module/sksg/Recorder/commands/Shaders.js +1 -1
- package/lib/module/sksg/Recorder/commands/Shaders.js.map +1 -1
- package/lib/module/sksg/utils.d.ts +4 -0
- package/lib/module/sksg/utils.js +12 -0
- package/lib/module/sksg/utils.js.map +1 -1
- package/lib/typescript/lib/commonjs/renderer/processors/Animations/Animations.d.ts +22 -0
- package/lib/typescript/lib/commonjs/skia/web/JsiSkia.d.ts +0 -1
- package/lib/typescript/lib/commonjs/sksg/Recorder/DrawingContext.d.ts +1 -0
- package/lib/typescript/lib/commonjs/sksg/utils.d.ts +1 -0
- package/lib/typescript/lib/module/mock/index.d.ts +4 -0
- package/lib/typescript/lib/module/renderer/processors/Animations/Animations.d.ts +4 -0
- package/lib/typescript/lib/module/renderer/processors/Animations/index.d.ts +1 -1
- package/lib/typescript/lib/module/skia/Skia.web.d.ts +0 -1
- package/lib/typescript/lib/module/skia/web/JsiSkia.d.ts +0 -1
- package/lib/typescript/lib/module/sksg/Recorder/DrawingContext.d.ts +1 -0
- package/lib/typescript/lib/module/sksg/utils.d.ts +1 -0
- package/lib/typescript/src/renderer/processors/Animations/Animations.d.ts +27 -1
- package/lib/typescript/src/skia/types/Skia.d.ts +1 -6
- package/lib/typescript/src/sksg/Recorder/DrawingContext.d.ts +1 -0
- package/lib/typescript/src/sksg/Recorder/Recorder.d.ts +1 -1
- package/lib/typescript/src/sksg/utils.d.ts +4 -0
- package/package.json +9 -9
- package/src/renderer/components/Mask.tsx +10 -3
- package/src/renderer/processors/Animations/Animations.ts +34 -1
- package/src/skia/types/Matrix4.ts +6 -2
- package/src/skia/types/Skia.ts +1 -7
- package/src/skia/web/JsiSkia.ts +0 -4
- package/src/sksg/Recorder/Core.ts +11 -1
- package/src/sksg/Recorder/DrawingContext.ts +10 -0
- package/src/sksg/Recorder/Player.ts +1 -1
- package/src/sksg/Recorder/ReanimatedRecorder.ts +10 -1
- package/src/sksg/Recorder/Recorder.ts +7 -3
- package/src/sksg/Recorder/Visitor.ts +9 -6
- package/src/sksg/Recorder/commands/Drawing.ts +10 -8
- package/src/sksg/Recorder/commands/ImageFilters.ts +20 -1
- package/src/sksg/Recorder/commands/Shaders.ts +1 -1
- package/src/sksg/utils.ts +18 -0
- package/cpp/api/JsiSkiaContext.h +0 -94
- package/cpp/dawn/include/dawn/dawn_proc.h +0 -53
- package/cpp/dawn/include/dawn/dawn_proc_table.h +0 -330
- package/cpp/dawn/include/dawn/dawn_thread_dispatch_proc.h +0 -47
- package/cpp/dawn/include/dawn/dawn_version.h +0 -41
- package/cpp/dawn/include/dawn/native/D3D11Backend.h +0 -65
- package/cpp/dawn/include/dawn/native/D3D12Backend.h +0 -86
- package/cpp/dawn/include/dawn/native/D3DBackend.h +0 -56
- package/cpp/dawn/include/dawn/native/DawnNative.h +0 -369
- package/cpp/dawn/include/dawn/native/MetalBackend.h +0 -56
- package/cpp/dawn/include/dawn/native/NullBackend.h +0 -39
- package/cpp/dawn/include/dawn/native/OpenGLBackend.h +0 -89
- package/cpp/dawn/include/dawn/native/VulkanBackend.h +0 -183
- package/cpp/dawn/include/dawn/native/WebGPUBackend.h +0 -49
- package/cpp/dawn/include/dawn/native/dawn_native_export.h +0 -49
- package/cpp/dawn/include/dawn/platform/DawnPlatform.h +0 -210
- package/cpp/dawn/include/dawn/platform/dawn_platform_export.h +0 -49
- package/cpp/dawn/include/dawn/replay/Replay.h +0 -99
- package/cpp/dawn/include/dawn/replay/dawn_replay_export.h +0 -49
- package/cpp/dawn/include/dawn/webgpu_cpp_print.h +0 -2844
- package/cpp/dawn/include/tint/tint.h +0 -90
- package/cpp/dawn/include/webgpu/webgpu.h +0 -4987
- package/cpp/dawn/include/webgpu/webgpu_cpp.h +0 -10080
- package/cpp/dawn/include/webgpu/webgpu_cpp_chained_struct.h +0 -57
- package/cpp/dawn/include/webgpu/webgpu_enum_class_bitmasks.h +0 -161
- package/cpp/dawn/include/webgpu/webgpu_glfw.h +0 -88
- package/cpp/skia/include/gpu/graphite/vk/VulkanGraphiteUtils.h +0 -10
- package/cpp/skia/include/private/base/README.md +0 -4
- package/cpp/skia/include/private/base/SkPoint_impl.h +0 -560
- package/cpp/skia/include/private/base/SkSpan_impl.h +0 -158
- package/cpp/skia/src/gpu/graphite/ContextOptionsPriv.h +0 -45
- package/cpp/skia/src/gpu/graphite/ResourceTypes.h +0 -360
- package/cpp/skia/src/gpu/graphite/TextureProxyView.h +0 -105
- package/libs/.graphite +0 -1
- /package/cpp/skia/include/private/{base/SkASAN.h → SkASAN.h} +0 -0
- /package/cpp/skia/include/private/{base/SkAlignedStorage.h → SkAlignedStorage.h} +0 -0
- /package/cpp/skia/include/private/{base/SkCPUTypes.h → SkCPUTypes.h} +0 -0
- /package/cpp/skia/include/private/{base/SkFeatures.h → SkFeatures.h} +0 -0
- /package/cpp/skia/include/private/{base/SkLogPriority.h → SkLogPriority.h} +0 -0
- /package/cpp/skia/include/private/{base/SkTPin.h → SkTPin.h} +0 -0
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
#define SkSVGFeOffset_DEFINED
|
|
10
10
|
|
|
11
11
|
#include "include/core/SkRefCnt.h"
|
|
12
|
-
#include "include/private/
|
|
12
|
+
#include "include/private/SkAPI.h"
|
|
13
13
|
#include "modules/svg/include/SkSVGFe.h"
|
|
14
14
|
#include "modules/svg/include/SkSVGNode.h"
|
|
15
15
|
#include "modules/svg/include/SkSVGTypes.h"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
#define SkSVGFeTurbulence_DEFINED
|
|
10
10
|
|
|
11
11
|
#include "include/core/SkRefCnt.h"
|
|
12
|
-
#include "include/private/
|
|
12
|
+
#include "include/private/SkAPI.h"
|
|
13
13
|
#include "modules/svg/include/SkSVGFe.h"
|
|
14
14
|
#include "modules/svg/include/SkSVGNode.h"
|
|
15
15
|
#include "modules/svg/include/SkSVGTypes.h"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
#define SkSVGFilter_DEFINED
|
|
10
10
|
|
|
11
11
|
#include "include/core/SkRefCnt.h"
|
|
12
|
-
#include "include/private/
|
|
12
|
+
#include "include/private/SkAPI.h"
|
|
13
13
|
#include "modules/svg/include/SkSVGHiddenContainer.h"
|
|
14
14
|
#include "modules/svg/include/SkSVGNode.h"
|
|
15
15
|
#include "modules/svg/include/SkSVGTypes.h"
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
#include "include/core/SkMatrix.h"
|
|
13
13
|
#include "include/core/SkRefCnt.h"
|
|
14
14
|
#include "include/core/SkScalar.h"
|
|
15
|
-
#include "include/private/
|
|
16
|
-
#include "include/private/
|
|
15
|
+
#include "include/private/SkAPI.h"
|
|
16
|
+
#include "include/private/SkTArray.h"
|
|
17
17
|
#include "modules/svg/include/SkSVGHiddenContainer.h"
|
|
18
18
|
#include "modules/svg/include/SkSVGNode.h"
|
|
19
19
|
#include "modules/svg/include/SkSVGTypes.h"
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
#include "include/core/SkPath.h"
|
|
13
13
|
#include "include/core/SkRect.h"
|
|
14
14
|
#include "include/core/SkRefCnt.h"
|
|
15
|
-
#include "include/private/
|
|
16
|
-
#include "include/private/
|
|
15
|
+
#include "include/private/SkAPI.h"
|
|
16
|
+
#include "include/private/SkDebug.h"
|
|
17
17
|
#include "modules/svg/include/SkSVGNode.h"
|
|
18
18
|
#include "modules/svg/include/SkSVGTransformableNode.h"
|
|
19
19
|
#include "modules/svg/include/SkSVGTypes.h"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
#include "include/core/SkPath.h"
|
|
12
12
|
#include "include/core/SkPathTypes.h"
|
|
13
13
|
#include "include/core/SkRefCnt.h"
|
|
14
|
-
#include "include/private/
|
|
14
|
+
#include "include/private/SkAPI.h"
|
|
15
15
|
#include "modules/svg/include/SkSVGNode.h"
|
|
16
16
|
#include "modules/svg/include/SkSVGShape.h"
|
|
17
17
|
#include "modules/svg/include/SkSVGTypes.h"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
#include "include/core/SkColor.h"
|
|
12
12
|
#include "include/core/SkRefCnt.h"
|
|
13
13
|
#include "include/core/SkScalar.h"
|
|
14
|
-
#include "include/private/
|
|
14
|
+
#include "include/private/SkAPI.h"
|
|
15
15
|
#include "modules/svg/include/SkSVGGradient.h"
|
|
16
16
|
#include "modules/svg/include/SkSVGNode.h"
|
|
17
17
|
#include "modules/svg/include/SkSVGTypes.h"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
#include "include/core/SkRect.h"
|
|
12
12
|
#include "include/core/SkRefCnt.h"
|
|
13
|
-
#include "include/private/
|
|
13
|
+
#include "include/private/SkAPI.h"
|
|
14
14
|
#include "modules/svg/include/SkSVGHiddenContainer.h"
|
|
15
15
|
#include "modules/svg/include/SkSVGNode.h"
|
|
16
16
|
#include "modules/svg/include/SkSVGTypes.h"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
#include "include/core/SkRect.h"
|
|
12
12
|
#include "include/core/SkRefCnt.h"
|
|
13
|
-
#include "include/private/
|
|
13
|
+
#include "include/private/SkAPI.h"
|
|
14
14
|
#include "modules/svg/include/SkSVGAttribute.h"
|
|
15
15
|
#include "modules/svg/include/SkSVGAttributeParser.h"
|
|
16
16
|
#include "modules/svg/include/SkSVGTypes.h"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#include "include/core/SkPathTypes.h"
|
|
13
13
|
#include "include/core/SkRect.h"
|
|
14
14
|
#include "include/core/SkRefCnt.h"
|
|
15
|
-
#include "include/private/
|
|
15
|
+
#include "include/private/SkAPI.h"
|
|
16
16
|
#include "modules/svg/include/SkSVGNode.h"
|
|
17
17
|
#include "modules/svg/include/SkSVGShape.h"
|
|
18
18
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
#define SkSVGPattern_DEFINED
|
|
10
10
|
|
|
11
11
|
#include "include/core/SkRefCnt.h"
|
|
12
|
-
#include "include/private/
|
|
12
|
+
#include "include/private/SkAPI.h"
|
|
13
13
|
#include "modules/svg/include/SkSVGHiddenContainer.h"
|
|
14
14
|
#include "modules/svg/include/SkSVGNode.h"
|
|
15
15
|
#include "modules/svg/include/SkSVGTypes.h"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#include "include/core/SkPathTypes.h"
|
|
13
13
|
#include "include/core/SkRect.h"
|
|
14
14
|
#include "include/core/SkRefCnt.h"
|
|
15
|
-
#include "include/private/
|
|
15
|
+
#include "include/private/SkAPI.h"
|
|
16
16
|
#include "modules/svg/include/SkSVGNode.h"
|
|
17
17
|
#include "modules/svg/include/SkSVGShape.h"
|
|
18
18
|
#include "modules/svg/include/SkSVGTypes.h"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
#include "include/core/SkColor.h"
|
|
12
12
|
#include "include/core/SkRefCnt.h"
|
|
13
13
|
#include "include/core/SkScalar.h"
|
|
14
|
-
#include "include/private/
|
|
14
|
+
#include "include/private/SkAPI.h"
|
|
15
15
|
#include "modules/svg/include/SkSVGGradient.h"
|
|
16
16
|
#include "modules/svg/include/SkSVGNode.h"
|
|
17
17
|
#include "modules/svg/include/SkSVGTypes.h"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#include "include/core/SkPathTypes.h"
|
|
13
13
|
#include "include/core/SkRect.h"
|
|
14
14
|
#include "include/core/SkRefCnt.h"
|
|
15
|
-
#include "include/private/
|
|
15
|
+
#include "include/private/SkAPI.h"
|
|
16
16
|
#include "modules/svg/include/SkSVGNode.h"
|
|
17
17
|
#include "modules/svg/include/SkSVGShape.h"
|
|
18
18
|
#include "modules/svg/include/SkSVGTypes.h"
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
#include "modules/svg/include/SkSVGIDMapper.h"
|
|
24
24
|
#include "modules/svg/include/SkSVGNode.h"
|
|
25
25
|
#include "modules/svg/include/SkSVGTypes.h"
|
|
26
|
-
#include "src/base/SkTLazy.h"
|
|
27
26
|
#include "src/core/SkTHash.h"
|
|
27
|
+
#include "src/core/SkTLazy.h"
|
|
28
28
|
|
|
29
29
|
#include <cstddef>
|
|
30
30
|
#include <cstdint>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
#include "include/core/SkRefCnt.h"
|
|
12
12
|
#include "include/core/SkSize.h"
|
|
13
|
-
#include "include/private/
|
|
13
|
+
#include "include/private/SkAPI.h"
|
|
14
14
|
#include "modules/svg/include/SkSVGContainer.h"
|
|
15
15
|
#include "modules/svg/include/SkSVGNode.h"
|
|
16
16
|
#include "modules/svg/include/SkSVGTypes.h"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
#include "include/core/SkPathTypes.h"
|
|
12
12
|
#include "include/core/SkRect.h"
|
|
13
13
|
#include "include/core/SkRefCnt.h"
|
|
14
|
-
#include "include/private/
|
|
14
|
+
#include "include/private/SkAPI.h"
|
|
15
15
|
#include "modules/svg/include/SkSVGTransformableNode.h"
|
|
16
16
|
|
|
17
17
|
class SkCanvas;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
#define SkSVGStop_DEFINED
|
|
10
10
|
|
|
11
11
|
#include "include/core/SkRefCnt.h"
|
|
12
|
-
#include "include/private/
|
|
12
|
+
#include "include/private/SkAPI.h"
|
|
13
13
|
#include "modules/svg/include/SkSVGHiddenContainer.h"
|
|
14
14
|
#include "modules/svg/include/SkSVGNode.h"
|
|
15
15
|
#include "modules/svg/include/SkSVGTypes.h"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
#include "include/core/SkPath.h"
|
|
12
12
|
#include "include/core/SkRect.h"
|
|
13
13
|
#include "include/core/SkRefCnt.h"
|
|
14
|
-
#include "include/private/
|
|
14
|
+
#include "include/private/SkAPI.h"
|
|
15
15
|
#include "modules/svg/include/SkSVGNode.h"
|
|
16
16
|
#include "modules/svg/include/SkSVGTransformableNode.h"
|
|
17
17
|
#include "modules/svg/include/SkSVGTypes.h"
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
#include "include/core/SkMatrix.h"
|
|
12
12
|
#include "include/core/SkPath.h"
|
|
13
|
-
#include "include/private/
|
|
13
|
+
#include "include/private/SkAPI.h"
|
|
14
14
|
#include "modules/svg/include/SkSVGNode.h"
|
|
15
15
|
#include "modules/svg/include/SkSVGTypes.h"
|
|
16
16
|
#include "modules/svg/include/SkSVGValue.h"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
#include "include/core/SkPath.h"
|
|
12
12
|
#include "include/core/SkRect.h"
|
|
13
13
|
#include "include/core/SkRefCnt.h"
|
|
14
|
-
#include "include/private/
|
|
14
|
+
#include "include/private/SkAPI.h"
|
|
15
15
|
#include "modules/svg/include/SkSVGNode.h"
|
|
16
16
|
#include "modules/svg/include/SkSVGTransformableNode.h"
|
|
17
17
|
#include "modules/svg/include/SkSVGTypes.h"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
#include "include/core/SkMatrix.h"
|
|
13
13
|
#include "include/core/SkPath.h"
|
|
14
14
|
#include "include/core/SkTypes.h"
|
|
15
|
-
#include "include/private/
|
|
15
|
+
#include "include/private/SkNoncopyable.h"
|
|
16
16
|
#include "modules/svg/include/SkSVGTypes.h"
|
|
17
17
|
|
|
18
18
|
class SK_API SkSVGValue : public SkNoncopyable {
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
#ifndef SkArenaAlloc_DEFINED
|
|
9
9
|
#define SkArenaAlloc_DEFINED
|
|
10
10
|
|
|
11
|
-
#include "include/
|
|
12
|
-
#include "include/private/
|
|
13
|
-
#include "include/private/
|
|
14
|
-
#include "include/private/
|
|
15
|
-
#include "include/private/
|
|
11
|
+
#include "include/core/SkSpan.h"
|
|
12
|
+
#include "include/private/SkASAN.h"
|
|
13
|
+
#include "include/private/SkAssert.h"
|
|
14
|
+
#include "include/private/SkTFitsIn.h"
|
|
15
|
+
#include "include/private/SkTo.h"
|
|
16
16
|
|
|
17
17
|
#include <algorithm>
|
|
18
18
|
#include <array>
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
#ifndef SkLRUCache_DEFINED
|
|
9
9
|
#define SkLRUCache_DEFINED
|
|
10
10
|
|
|
11
|
-
#include "src/base/SkTInternalLList.h"
|
|
12
11
|
#include "src/core/SkChecksum.h"
|
|
13
12
|
#include "src/core/SkTHash.h"
|
|
13
|
+
#include "src/core/SkTInternalLList.h"
|
|
14
14
|
|
|
15
15
|
struct SkNoOpPurge {
|
|
16
16
|
template <typename K, typename V>
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
#ifndef SkMathPriv_DEFINED
|
|
9
9
|
#define SkMathPriv_DEFINED
|
|
10
10
|
|
|
11
|
-
#include "include/private/
|
|
12
|
-
#include "include/private/
|
|
13
|
-
#include "include/private/
|
|
11
|
+
#include "include/private/SkAssert.h"
|
|
12
|
+
#include "include/private/SkCPUTypes.h"
|
|
13
|
+
#include "include/private/SkTemplates.h"
|
|
14
14
|
|
|
15
15
|
#include <bit>
|
|
16
16
|
#include <cstddef>
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
#ifndef SkTInternalLList_DEFINED
|
|
9
9
|
#define SkTInternalLList_DEFINED
|
|
10
10
|
|
|
11
|
-
#include "include/private/
|
|
12
|
-
#include "include/private/
|
|
13
|
-
#include "include/private/
|
|
11
|
+
#include "include/private/SkAssert.h"
|
|
12
|
+
#include "include/private/SkDebug.h"
|
|
13
|
+
#include "include/private/SkTo.h"
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* This macro creates the member variables required by the SkTInternalLList class. It should be
|
|
@@ -17,17 +17,11 @@ const Mask = ({
|
|
|
17
17
|
}) => {
|
|
18
18
|
return /*#__PURE__*/_react.default.createElement(_Group.Group, {
|
|
19
19
|
layer: true
|
|
20
|
-
}, /*#__PURE__*/_react.default.createElement(_Group.Group, {
|
|
20
|
+
}, children, /*#__PURE__*/_react.default.createElement(_Group.Group, {
|
|
21
21
|
layer: /*#__PURE__*/_react.default.createElement(_Paint.Paint, {
|
|
22
|
-
blendMode: "
|
|
22
|
+
blendMode: clip ? "dstIn" : "dstATop"
|
|
23
23
|
}, mode === "luminance" && /*#__PURE__*/_react.default.createElement(_LumaColorFilter.LumaColorFilter, null))
|
|
24
|
-
}, mask
|
|
25
|
-
layer: /*#__PURE__*/_react.default.createElement(_Paint.Paint, {
|
|
26
|
-
blendMode: "dstIn"
|
|
27
|
-
})
|
|
28
|
-
}, children)), /*#__PURE__*/_react.default.createElement(_Group.Group, {
|
|
29
|
-
blendMode: "srcIn"
|
|
30
|
-
}, children));
|
|
24
|
+
}, mask));
|
|
31
25
|
};
|
|
32
26
|
exports.Mask = Mask;
|
|
33
27
|
//# sourceMappingURL=Mask.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_Group","_LumaColorFilter","_Paint","e","__esModule","default","Mask","children","mask","mode","clip","createElement","Group","layer","Paint","blendMode","LumaColorFilter","exports"],"sources":["Mask.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport React from \"react\";\n\nimport { Group } from \"./Group\";\nimport { LumaColorFilter } from \"./colorFilters/LumaColorFilter\";\nimport { Paint } from \"./Paint\";\n\ninterface MaskProps {\n mode?: \"luminance\" | \"alpha\";\n clip?: boolean;\n mask: ReactNode | ReactNode[];\n children: ReactNode | ReactNode[];\n}\n\nexport const Mask = ({\n children,\n mask,\n mode = \"alpha\",\n clip = true,\n}: MaskProps) => {\n return (\n <Group layer>\n <Group\n layer={\n <Paint blendMode
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","_Group","_LumaColorFilter","_Paint","e","__esModule","default","Mask","children","mask","mode","clip","createElement","Group","layer","Paint","blendMode","LumaColorFilter","exports"],"sources":["Mask.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport React from \"react\";\n\nimport { Group } from \"./Group\";\nimport { LumaColorFilter } from \"./colorFilters/LumaColorFilter\";\nimport { Paint } from \"./Paint\";\n\ninterface MaskProps {\n mode?: \"luminance\" | \"alpha\";\n clip?: boolean;\n mask: ReactNode | ReactNode[];\n children: ReactNode | ReactNode[];\n}\n\nexport const Mask = ({\n children,\n mask,\n mode = \"alpha\",\n clip = true,\n}: MaskProps) => {\n return (\n <Group layer>\n {children}\n {/* The children composite against each other in the layer above; the\n mask is then applied once, when its own layer is restored. A blend\n mode attached to a <Group> without a layer would instead be applied\n per draw call, compositing every child after the first against the\n previous child rather than against the mask (issue #3254).\n dstIn keeps the children where the mask is opaque and erases them\n where it is transparent. Without clip, dstATop additionally keeps\n the mask artwork itself wherever the children leave it uncovered. */}\n <Group\n layer={\n <Paint blendMode={clip ? \"dstIn\" : \"dstATop\"}>\n {mode === \"luminance\" && <LumaColorFilter />}\n </Paint>\n }\n >\n {mask}\n </Group>\n </Group>\n );\n};\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AACA,IAAAE,gBAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AAAgC,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AASzB,MAAMG,IAAI,GAAGA,CAAC;EACnBC,QAAQ;EACRC,IAAI;EACJC,IAAI,GAAG,OAAO;EACdC,IAAI,GAAG;AACE,CAAC,KAAK;EACf,oBACEb,MAAA,CAAAQ,OAAA,CAAAM,aAAA,CAACX,MAAA,CAAAY,KAAK;IAACC,KAAK;EAAA,GACTN,QAAQ,eASTV,MAAA,CAAAQ,OAAA,CAAAM,aAAA,CAACX,MAAA,CAAAY,KAAK;IACJC,KAAK,eACHhB,MAAA,CAAAQ,OAAA,CAAAM,aAAA,CAACT,MAAA,CAAAY,KAAK;MAACC,SAAS,EAAEL,IAAI,GAAG,OAAO,GAAG;IAAU,GAC1CD,IAAI,KAAK,WAAW,iBAAIZ,MAAA,CAAAQ,OAAA,CAAAM,aAAA,CAACV,gBAAA,CAAAe,eAAe,MAAE,CACtC;EACR,GAEAR,IACI,CACF,CAAC;AAEZ,CAAC;AAACS,OAAA,CAAAX,IAAA,GAAAA,IAAA","ignoreList":[]}
|
|
@@ -1,6 +1,32 @@
|
|
|
1
|
+
import type { SharedValue } from "react-native-reanimated";
|
|
2
|
+
/**
|
|
3
|
+
* Binds a prop to a single key of a "grouped" shared value: one shared value
|
|
4
|
+
* whose `.value` is an object can drive many props (one key each) instead of
|
|
5
|
+
* requiring a separate shared value per prop.
|
|
6
|
+
*
|
|
7
|
+
* Created via {@link select}. `T` is the type of the selected value; `__type`
|
|
8
|
+
* is a phantom marker carrying that type and is never present at runtime.
|
|
9
|
+
*/
|
|
10
|
+
export type SharedValueSelector<T> = {
|
|
11
|
+
__sv: {
|
|
12
|
+
value: Record<string, unknown>;
|
|
13
|
+
};
|
|
14
|
+
__key: string;
|
|
15
|
+
readonly __type?: T;
|
|
16
|
+
};
|
|
1
17
|
export type AnimatedProp<T> = T | {
|
|
2
18
|
value: T;
|
|
3
|
-
}
|
|
19
|
+
} | SharedValueSelector<T>;
|
|
20
|
+
/**
|
|
21
|
+
* Selects a single key of a shared value so it can drive an animated prop.
|
|
22
|
+
* This lets one shared value (whose value is an object) drive multiple props
|
|
23
|
+
* — one per key — instead of using a separate shared value for each.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* const data = useSharedValue({ x: 0, y: 0, r: 10 });
|
|
27
|
+
* <Circle cx={select(data, "x")} cy={select(data, "y")} r={select(data, "r")} />
|
|
28
|
+
*/
|
|
29
|
+
export declare const select: <T extends object, K extends keyof T & string>(value: SharedValue<T>, key: K) => SharedValueSelector<T[K]>;
|
|
4
30
|
export type AnimatedProps<T, O extends keyof T | never = never> = {
|
|
5
31
|
[K in keyof T]: K extends "children" ? T[K] : K extends O ? T[K] : AnimatedProp<T[K]>;
|
|
6
32
|
};
|
|
@@ -1,2 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.select = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* Binds a prop to a single key of a "grouped" shared value: one shared value
|
|
9
|
+
* whose `.value` is an object can drive many props (one key each) instead of
|
|
10
|
+
* requiring a separate shared value per prop.
|
|
11
|
+
*
|
|
12
|
+
* Created via {@link select}. `T` is the type of the selected value; `__type`
|
|
13
|
+
* is a phantom marker carrying that type and is never present at runtime.
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Selects a single key of a shared value so it can drive an animated prop.
|
|
18
|
+
* This lets one shared value (whose value is an object) drive multiple props
|
|
19
|
+
* — one per key — instead of using a separate shared value for each.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* const data = useSharedValue({ x: 0, y: 0, r: 10 });
|
|
23
|
+
* <Circle cx={select(data, "x")} cy={select(data, "y")} r={select(data, "r")} />
|
|
24
|
+
*/
|
|
25
|
+
const select = (value, key) => ({
|
|
26
|
+
__sv: value,
|
|
27
|
+
__key: key
|
|
28
|
+
});
|
|
29
|
+
exports.select = select;
|
|
2
30
|
//# sourceMappingURL=Animations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["Animations.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"names":["select","value","key","__sv","__key","exports"],"sources":["Animations.ts"],"sourcesContent":["import type { SharedValue } from \"react-native-reanimated\";\n\n/**\n * Binds a prop to a single key of a \"grouped\" shared value: one shared value\n * whose `.value` is an object can drive many props (one key each) instead of\n * requiring a separate shared value per prop.\n *\n * Created via {@link select}. `T` is the type of the selected value; `__type`\n * is a phantom marker carrying that type and is never present at runtime.\n */\nexport type SharedValueSelector<T> = {\n __sv: { value: Record<string, unknown> };\n __key: string;\n readonly __type?: T;\n};\n\nexport type AnimatedProp<T> = T | { value: T } | SharedValueSelector<T>;\n\n/**\n * Selects a single key of a shared value so it can drive an animated prop.\n * This lets one shared value (whose value is an object) drive multiple props\n * — one per key — instead of using a separate shared value for each.\n *\n * @example\n * const data = useSharedValue({ x: 0, y: 0, r: 10 });\n * <Circle cx={select(data, \"x\")} cy={select(data, \"y\")} r={select(data, \"r\")} />\n */\nexport const select = <T extends object, K extends keyof T & string>(\n value: SharedValue<T>,\n key: K\n): SharedValueSelector<T[K]> => ({\n __sv: value as unknown as { value: Record<string, unknown> },\n __key: key,\n});\n\nexport type AnimatedProps<T, O extends keyof T | never = never> = {\n [K in keyof T]: K extends \"children\"\n ? T[K]\n : K extends O\n ? T[K]\n : AnimatedProp<T[K]>;\n};\n\nexport type SkiaProps<\n P = object,\n O extends keyof P | never = never,\n> = AnimatedProps<P, O>;\n\ntype WithOptional<T extends object, N extends keyof T> = Omit<T, N> & {\n [K in N]?: T[K];\n};\n\nexport type SkiaDefaultProps<\n T extends object,\n N extends keyof T,\n> = WithOptional<SkiaProps<T>, N>;\n"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,MAAM,GAAGA,CACpBC,KAAqB,EACrBC,GAAM,MACyB;EAC/BC,IAAI,EAAEF,KAAsD;EAC5DG,KAAK,EAAEF;AACT,CAAC,CAAC;AAACG,OAAA,CAAAL,MAAA,GAAAA,MAAA","ignoreList":[]}
|
|
@@ -97,13 +97,18 @@ const multiply4 = (a, b) => {
|
|
|
97
97
|
}
|
|
98
98
|
return result;
|
|
99
99
|
};
|
|
100
|
+
|
|
101
|
+
// These matrices are row-major, so the shear factor of skewX - which offsets x
|
|
102
|
+
// in proportion to y - belongs in row 0, column 1, and skewY's in row 1,
|
|
103
|
+
// column 0. React Native's MatrixMath stores the same transforms column-major,
|
|
104
|
+
// and porting its indices verbatim is what swapped the two axes here.
|
|
100
105
|
exports.multiply4 = multiply4;
|
|
101
|
-
const
|
|
106
|
+
const skewX = angle => {
|
|
102
107
|
"worklet";
|
|
103
108
|
|
|
104
109
|
return [1, Math.tan(angle), 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|
|
105
110
|
};
|
|
106
|
-
const
|
|
111
|
+
const skewY = angle => {
|
|
107
112
|
"worklet";
|
|
108
113
|
|
|
109
114
|
return [1, 0, 0, 0, Math.tan(angle), 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
|