peachsim 0.1.1738 → 0.1.1744
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/README.md +4 -0
- package/cli/app-catalog.ts +47 -23
- package/cli/app-fonts.ts +19 -1
- package/cli/command-registry.ts +3 -0
- package/cli/commands/control.ts +67 -16
- package/cli/commands/device.ts +3 -1
- package/cli/commands/doctor.ts +1 -4
- package/cli/commands/inspect/settling.ts +6 -1
- package/cli/commands/inspect/wait-ready.ts +22 -2
- package/cli/commands/package.ts +22 -20
- package/cli/commands/push.ts +56 -0
- package/cli/commands/serve.ts +9 -0
- package/cli/commands/shell-url.ts +37 -9
- package/cli/commands/swift.ts +1 -1
- package/cli/current-sim.ts +27 -0
- package/cli/drivers/linux-browser-libs.lock.json +323 -1
- package/cli/drivers/linux-browser-libs.ts +8 -6
- package/cli/drivers/playwright.ts +5 -1
- package/cli/internal-child.ts +11 -1
- package/cli/main.ts +6 -0
- package/cli/native-input.ts +1 -7
- package/cli/outbound-endpoints.ts +9 -1
- package/cli/packaged-app-launcher.ts +3 -1
- package/cli/scene-video.ts +4 -0
- package/cli/ws-bridge.ts +3 -1
- package/detox/index.ts +9 -4
- package/dist-lib/agent-daemon-client.cjs +1 -1
- package/dist-lib/agent-events.cjs +1 -1
- package/dist-lib/attached-projects.cjs +1 -1
- package/dist-lib/auth/shared-session.cjs +1 -1
- package/dist-lib/backend-origin.cjs +1 -1
- package/dist-lib/beta.cjs +1 -1
- package/dist-lib/beta.mjs +1 -1
- package/dist-lib/bridge-constants.cjs +1 -1
- package/dist-lib/bridge-contract-input.cjs +1 -1
- package/dist-lib/bridge-contract-input.mjs +1 -1
- package/dist-lib/bridge-contract.cjs +1 -1
- package/dist-lib/bridge-contract.mjs +1 -1
- package/dist-lib/bundle-channel.cjs +7372 -3675
- package/dist-lib/capture-contract.cjs +1 -1
- package/dist-lib/capture-contract.mjs +1 -1
- package/dist-lib/cloud-contract.cjs +1 -1
- package/dist-lib/cloud-contract.mjs +1 -1
- package/dist-lib/cloud-test-args.cjs +1 -1
- package/dist-lib/cloud-test-args.mjs +1 -1
- package/dist-lib/cloud.cjs +1 -1
- package/dist-lib/cloud.mjs +1 -1
- package/dist-lib/config.cjs +1 -1
- package/dist-lib/config.mjs +1 -1
- package/dist-lib/detox/index.cjs +22 -8
- package/dist-lib/dev-bundle-resolution.cjs +1 -1
- package/dist-lib/expo-swift-bundle.cjs +6340 -3064
- package/dist-lib/expo-swift-metadata.cjs +14 -2
- package/dist-lib/expo-swift-metadata.mjs +14 -2
- package/dist-lib/home-paths.cjs +1 -1
- package/dist-lib/host/bridge-host.cjs +6524 -2720
- package/dist-lib/host/fetch-proxy-handler.cjs +8 -7
- package/dist-lib/host/fetch-proxy-overrides.cjs +1 -1
- package/dist-lib/host/fetch-proxy-overrides.mjs +1 -1
- package/dist-lib/host/replacement-module-handler.cjs +1 -1
- package/dist-lib/host/websocket-proxy.cjs +6 -3
- package/dist-lib/index.cjs +97 -31
- package/dist-lib/jump-to-source-babel.cjs +1 -1
- package/dist-lib/jump-to-source-native.cjs +1 -1
- package/dist-lib/kotlin-host.cjs +1 -1
- package/dist-lib/menu.cjs +1 -1
- package/dist-lib/menu.mjs +1 -1
- package/dist-lib/metro-fingerprint-registry.cjs +1 -1
- package/dist-lib/metro-fingerprint-registry.mjs +1 -1
- package/dist-lib/metro-production-bundle.cjs +1 -1
- package/dist-lib/metro-production-bundle.mjs +1 -1
- package/dist-lib/metro.cjs +71 -29
- package/dist-lib/native-app-identity-project.cjs +53 -22
- package/dist-lib/native-app-identity-project.mjs +53 -22
- package/dist-lib/native-app-identity.cjs +10 -3
- package/dist-lib/native-app-identity.mjs +10 -3
- package/dist-lib/native-firebase-metadata.cjs +1 -1
- package/dist-lib/native-firebase-metadata.mjs +1 -1
- package/dist-lib/plist.cjs +1 -1
- package/dist-lib/plist.mjs +1 -1
- package/dist-lib/profiles.cjs +1 -1
- package/dist-lib/public-brand.cjs +1 -1
- package/dist-lib/public-origins-lib-esm.json +25 -23
- package/dist-lib/public-origins-lib.json +111 -79
- package/dist-lib/react-native-host-modules.cjs +1 -1
- package/dist-lib/react-native-host-modules.mjs +1 -1
- package/dist-lib/reap-browser.cjs +1 -1
- package/dist-lib/scripts/dev-server-scanner.cjs +1 -1
- package/dist-lib/sdk.cjs +4 -1
- package/dist-lib/sdk.mjs +4 -1
- package/dist-lib/skills.cjs +40549 -37613
- package/dist-lib/swift-compile.cjs +2054 -388
- package/dist-lib/swift-compile.mjs +1976 -312
- package/dist-lib/swift-package.cjs +1 -1
- package/dist-lib/swift-package.mjs +1 -1
- package/dist-lib/swift-submit.cjs +2 -2
- package/dist-lib/swift-submit.mjs +2 -2
- package/dist-lib/swift-toolchain.cjs +68 -8
- package/dist-lib/swift.cjs +1 -1
- package/dist-lib/vite-swift.cjs +5867 -2646
- package/dist-lib/vite.cjs +18 -8
- package/dist-lib/worklet-executable.cjs +1 -1
- package/dist-lib/worklet-executable.mjs +1 -1
- package/dist-types/packages/peach-compat/src/stubs/screen-transition-math.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/cli-companion.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/canvaskit-renderer.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/engine/image-loader.d.ts +0 -3
- package/dist-types/packages/peach-engine/src/engine/node.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/engine/paint-boundary.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/scene-table.d.ts +25 -3
- package/dist-types/packages/peach-engine/src/engine/scroll-platform.d.ts +1 -15
- package/dist-types/packages/peach-engine/src/engine/scroll.d.ts +1 -3
- package/dist-types/packages/peach-engine/src/engine/text-first-baseline.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/engine/types.d.ts +23 -0
- package/dist-types/packages/peach-engine/src/ios/chrome-metrics.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/metro-identity-contract.d.ts +33 -0
- package/dist-types/packages/peach-engine/src/preview/bundle-layout.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/remote-stream/scene-recording.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/compositor-gpu.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/compositor-protocol.d.ts +2 -0
- package/dist-types/packages/peach-engine/src/render-worker/metro-bundle-metadata.d.ts +28 -0
- package/dist-types/packages/peach-engine/src/render-worker/native-ui-protocol.d.ts +21 -1
- package/dist-types/packages/peach-engine/src/render-worker/prepared-boot-bundle.d.ts +7 -0
- package/dist-types/packages/peach-engine/src/render-worker/protocol.d.ts +8 -0
- package/dist-types/packages/peach-engine/src/render-worker/scroll-mirror.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/shell-protocol.d.ts +5 -0
- package/dist-types/packages/peach-engine/src/render-worker/test-bridge-protocol.d.ts +3 -3
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-frame-transaction.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/render-worker/webgpu-readback-scheduler.d.ts +1 -1
- package/dist-types/packages/peach-engine/src/render-worker/worklet-runtime.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/rolldown-bundle-inventory.d.ts +8 -1
- package/dist-types/packages/peach-engine/src/rolldown-production-fingerprint.d.ts +1 -4
- package/dist-types/packages/peach-engine/src/rolldown-production-module.d.ts +12 -0
- package/dist-types/packages/peach-engine/src/rolldown-production-roles.d.ts +6 -0
- package/dist-types/packages/peach-engine/src/settings/devices.d.ts +6 -1
- package/dist-types/packages/peach-engine/src/settings/duo-fold-bus.d.ts +1 -0
- package/dist-types/packages/peach-engine/src/shell-events.d.ts +4 -0
- package/dist-types/packages/peach-kit/src/capabilities.d.ts +7 -0
- package/package.json +2 -1
- package/runtime-companion.json +1 -1
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h +1 -0
- package/sdk/ios/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkErrors.h +257 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CFByteOrder.h +305 -0
- package/sdk/ios/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h +2 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGAffineTransform.h +204 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h +260 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColor.h +164 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorConversionInfo.h +101 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h +510 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h +1132 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGConvertColorDataWithFormat.h +34 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataConsumer.h +83 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataProvider.h +197 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGEXRToneMappingGamma.h +36 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGError.h +38 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFont.h +312 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFunction.h +106 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGradient.h +123 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGITUToneMapping.h +31 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGImage.h +409 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGLayer.h +78 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h +120 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContentStream.h +55 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h +535 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h +133 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDocument.h +252 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFMarkedContentItem.h +37 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFObject.h +67 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFOperatorTable.h +51 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFPage.h +101 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFScanner.h +123 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStream.h +44 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFString.h +52 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStructureElement.h +87 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h +441 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPattern.h +89 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGRenderingBufferProvider.h +49 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGShading.h +124 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CGToneMapping.h +85 -0
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h +44 -252
- package/sdk/ios/System/Library/Frameworks/CoreGraphics.framework/Modules/module.modulemap +1 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/CFNetworkErrors.h +257 -0
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes +0 -6
- package/sdk/ios/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h +356 -61
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/NSURLSession+Network.h +32 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/Network.h +51 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/advertise_descriptor.h +193 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browse_descriptor.h +163 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browse_result.h +207 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/browser.h +285 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection.h +714 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection_group.h +629 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/connection_report.h +932 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/content_context.h +229 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/endpoint.h +390 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/error.h +135 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ethernet_channel.h +349 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/framer_options.h +1187 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/group_descriptor.h +184 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/interface.h +150 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ip_options.h +351 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/listener.h +438 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/nw_object.h +200 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/parameters.h +1205 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/path.h +392 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/path_monitor.h +216 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/privacy_context.h +188 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/protocol_options.h +126 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/proxy_config.h +357 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/quic_options.h +889 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/resolver_config.h +94 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/tcp_options.h +459 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/tls_options.h +115 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/txt_record.h +432 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/udp_options.h +112 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Headers/ws_options.h +743 -0
- package/sdk/ios/System/Library/Frameworks/Network.framework/Modules/module.modulemap +9 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAAnimation.h +395 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CABase.h +132 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CADisplayLink.h +107 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterCell.h +153 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAEmitterLayer.h +151 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAFrameRateRange.h +40 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAGradientLayer.h +78 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CALayer.h +1078 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTiming.h +97 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAMediaTimingFunction.h +67 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAReplicatorLayer.h +65 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAScrollLayer.h +64 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAShapeLayer.h +135 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATextLayer.h +99 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATiledLayer.h +67 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransaction.h +124 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransform3D.h +138 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CATransformLayer.h +40 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/CAValueFunction.h +78 -0
- package/sdk/ios/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.h +19 -38
- package/sdk/ios/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h +1757 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSAttributedString.h +19 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/NSParagraphStyle.h +28 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIAccessibilityConstants.h +114 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIApplication.h +16 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIBarAppearance.h +47 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDataDetectors.h +20 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDatePicker.h +13 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIDevice.h +16 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIEvent.h +84 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizer.h +119 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIGestureRecognizerSubclass.h +66 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIHoverGestureRecognizer.h +45 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIKit.h +161 -37
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UIPickerView.h +76 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBar.h +8 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITabBarAppearance.h +78 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITextInputTraits.h +29 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITouch.h +104 -0
- package/sdk/ios/System/Library/Frameworks/UIKit.framework/Headers/UITraitCollection.h +19 -0
- package/sdk/ios/usr/include/dns_sd.h +3616 -0
- package/sdk/ios/usr/include/dnssd.modulemap +4 -0
- package/sdk/ios/usr/include/module.modulemap +1 -0
- package/sdk/ios/usr/include/sys/socketvar.h +191 -0
- package/sdk/ios/usr/include/sys/vsock.h +84 -0
- package/sdk/native-hashes.json +1 -1
- package/skills/contrast/SKILL.md +6 -5
- package/skills/peach-debug/SKILL.md +68 -264
- package/skills/peach-debug/references/accessibility.md +37 -73
- package/skills/peach-debug/references/commands.md +2 -2
- package/skills/peach-debug/references/events.md +74 -0
- package/skills/peach-perf/SKILL.md +64 -401
- package/skills/peach-perf/references/presentation.md +46 -0
- package/skills/peach-perf/references/profiling.md +93 -0
- package/skills/peach-perf/references/render-counters.md +57 -0
- package/skills/peach-setup/SKILL.md +66 -216
- package/skills/peach-setup/references/native-config.md +35 -0
- package/skills/peach-setup/references/reporting.md +28 -0
- package/skills/peach-test/SKILL.md +68 -284
- package/skills/peach-test/references/detox.md +69 -0
- package/skills/peach-test/references/maestro.md +95 -0
- package/skills/peach-visual/SKILL.md +53 -105
- package/src/appPackageContract.ts +12 -1
- package/src/assetCatalogContract.ts +8 -1
- package/src/bridge-contract.ts +6 -0
- package/src/bundle-channel.mjs +133 -59
- package/src/cli-runtime.ts +8 -9
- package/src/configured-bundle-producer.ts +10 -0
- package/src/device-catalog.ts +68 -4
- package/src/expo-discovery-cache.ts +3 -0
- package/src/expo-native-workspace.ts +81 -17
- package/src/expo-swift-host.ts +57 -104
- package/src/expo-widget-assets.ts +76 -0
- package/src/expoSwiftContract.ts +13 -1
- package/src/host/websocket-proxy.ts +7 -2
- package/src/native-prebuilt.ts +3 -3
- package/src/nitro-adapter.lock.json +263 -263
- package/src/nitro-adapter.ts +69 -7
- package/src/nitro-bundle.ts +52 -24
- package/src/nitro-compile.ts +6 -1
- package/src/nitro-source.ts +82 -4
- package/src/nitro-superset.lock.json +103 -0
- package/src/nitro-superset.ts +137 -0
- package/src/nitroContract.ts +5 -1
- package/src/react-bridge-importers.ts +1 -0
- package/src/settingsContract.ts +26 -1
- package/src/swift-compile.ts +267 -68
- package/src/swift-compiler-digest.ts +2 -0
- package/src/swift-coverage/xcode-packages.ts +61 -1
- package/src/swift-coverage/xcode.ts +10 -12
- package/src/swift-cxx-reachable.ts +1 -1
- package/src/swift-distribution.lock.json +15 -13
- package/src/swift-distribution.ts +57 -26
- package/src/swift-host.ts +48 -35
- package/src/swift-link-roots.ts +45 -18
- package/src/swift-objc-compile.ts +78 -2
- package/src/swift-objc-standin.ts +3 -0
- package/src/swift-shared-sdk.ts +85 -1
- package/src/swift-standins.ts +233 -11
- package/src/swift-submit.ts +13 -1
- package/src/swift-toolchain.ts +82 -7
- package/src/swift-wasm-prune.ts +1629 -0
- package/src/turbo-bundle.ts +11 -10
- package/src/turbo-runtime.lock.json +16 -16
- package/src/vite-plugin-one.ts +12 -1
- package/src/vite-plugin.ts +82 -23
- package/src/wasm-optimize.ts +34 -0
- package/src/worker-system-chunks.ts +3 -3
- package/src/xcode-project.ts +52 -0
- package/src/xcode-target-members.ts +12 -1
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
/* CoreGraphics - CGFont.h
|
|
2
|
+
Copyright (c) 1999-2012 Apple Inc.
|
|
3
|
+
All rights reserved. */
|
|
4
|
+
|
|
5
|
+
#ifndef CGFONT_H_
|
|
6
|
+
#define CGFONT_H_
|
|
7
|
+
|
|
8
|
+
#include <CoreFoundation/CFBase.h>
|
|
9
|
+
#include <CoreFoundation/CFAvailability.h>
|
|
10
|
+
#include <stdint.h>
|
|
11
|
+
|
|
12
|
+
/* The type used to represent a CoreGraphics font. */
|
|
13
|
+
|
|
14
|
+
typedef struct CF_BRIDGED_TYPE(id) CGFont *CGFontRef;
|
|
15
|
+
|
|
16
|
+
/* A type to represent indexes in a CGFontRef. */
|
|
17
|
+
|
|
18
|
+
typedef unsigned short CGFontIndex;
|
|
19
|
+
|
|
20
|
+
/* A type to represent glyph identifiers in a CGFontRef. */
|
|
21
|
+
|
|
22
|
+
typedef CGFontIndex CGGlyph;
|
|
23
|
+
|
|
24
|
+
/* The format of a PostScript font subset. Type1 is documented in "Adobe
|
|
25
|
+
Type 1 Font Format"; Type3 in "PostScript Language Reference, 3rd ed."
|
|
26
|
+
and Type42 in "Adobe Technical Note 5012, The Type 42 Font Format
|
|
27
|
+
Specification". */
|
|
28
|
+
|
|
29
|
+
typedef CF_ENUM(int32_t, CGFontPostScriptFormat) {
|
|
30
|
+
kCGFontPostScriptFormatType1 = 1,
|
|
31
|
+
kCGFontPostScriptFormatType3 = 3,
|
|
32
|
+
kCGFontPostScriptFormatType42 = 42
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
#include <CoreGraphics/CGBase.h>
|
|
36
|
+
#include <CoreGraphics/CGDataProvider.h>
|
|
37
|
+
#include <CoreGraphics/CGGeometry.h>
|
|
38
|
+
#include <CoreFoundation/CFArray.h>
|
|
39
|
+
#include <CoreFoundation/CFData.h>
|
|
40
|
+
#include <CoreFoundation/CFDictionary.h>
|
|
41
|
+
|
|
42
|
+
CF_IMPLICIT_BRIDGING_ENABLED
|
|
43
|
+
|
|
44
|
+
CF_ASSUME_NONNULL_BEGIN
|
|
45
|
+
|
|
46
|
+
/* The maximum allowed value of a CGFontIndex. Always <= USHRT_MAX - 1. */
|
|
47
|
+
static const CGFontIndex kCGFontIndexMax = ((1 << 16) - 2);
|
|
48
|
+
|
|
49
|
+
/* A value representing an invalid CGFontIndex. Always <= USHRT_MAX. */
|
|
50
|
+
static const CGFontIndex kCGFontIndexInvalid = ((1 << 16) - 1);
|
|
51
|
+
|
|
52
|
+
/* The maximum allowed value of a CGGlyph. */
|
|
53
|
+
static const CGFontIndex kCGGlyphMax = kCGFontIndexMax;
|
|
54
|
+
|
|
55
|
+
/* Return the CFTypeID for CGFontRefs. */
|
|
56
|
+
|
|
57
|
+
CG_EXTERN CFTypeID CGFontGetTypeID(void)
|
|
58
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
59
|
+
|
|
60
|
+
/* Create a CGFontRef using `platformFontReference', a pointer to a
|
|
61
|
+
platform-specific font reference. For MacOS X, `platformFontReference'
|
|
62
|
+
should be a pointer to an ATSFontRef. */
|
|
63
|
+
|
|
64
|
+
CG_EXTERN CGFontRef __nullable CGFontCreateWithPlatformFont(
|
|
65
|
+
void * cg_nullable platformFontReference)
|
|
66
|
+
API_DEPRECATED("No longer supported", macos(10.0,10.6)) API_UNAVAILABLE(ios, tvos, watchos);
|
|
67
|
+
|
|
68
|
+
/* Return the font defined by the data provided by `provider', or NULL if
|
|
69
|
+
the font can't be created. */
|
|
70
|
+
|
|
71
|
+
CG_EXTERN CGFontRef cg_nullable CGFontCreateWithDataProvider(
|
|
72
|
+
CGDataProviderRef cg_nullable provider)
|
|
73
|
+
API_AVAILABLE(macos(10.5), ios(2.0));
|
|
74
|
+
|
|
75
|
+
/* Return the font identified by `name', corresponding to the font's
|
|
76
|
+
PostScript name or its full name, or NULL if the font can't be
|
|
77
|
+
created. */
|
|
78
|
+
|
|
79
|
+
CG_EXTERN CGFontRef __nullable CGFontCreateWithFontName(
|
|
80
|
+
CFStringRef cg_nullable name)
|
|
81
|
+
API_AVAILABLE(macos(10.5), ios(2.0));
|
|
82
|
+
|
|
83
|
+
/* Return a font based on `font' with the variation specification dictionary
|
|
84
|
+
`variations' applied to `font'. A variation specification dictionary
|
|
85
|
+
contains keys corresponding the variation axis names of the font. Each
|
|
86
|
+
key is a variation axis name; the value for each key is the value
|
|
87
|
+
specified for that particular variation axis represented as a
|
|
88
|
+
CFNumberRef. If a variation axis name is not specified in `variations',
|
|
89
|
+
then the current value from `font' is used. */
|
|
90
|
+
|
|
91
|
+
CG_EXTERN CGFontRef __nullable CGFontCreateCopyWithVariations(
|
|
92
|
+
CGFontRef cg_nullable font, CFDictionaryRef __nullable variations)
|
|
93
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
94
|
+
|
|
95
|
+
/* Equivalent to `CFRetain(font)', except it doesn't crash (as CFRetain
|
|
96
|
+
does) if `font' is NULL. */
|
|
97
|
+
|
|
98
|
+
CG_EXTERN CGFontRef cg_nullable CGFontRetain(CGFontRef cg_nullable font)
|
|
99
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
100
|
+
|
|
101
|
+
/* Equivalent to `CFRelease(font)', except it doesn't crash (as CFRelease
|
|
102
|
+
does) if `font' is NULL. */
|
|
103
|
+
|
|
104
|
+
CG_EXTERN void CGFontRelease(CGFontRef cg_nullable font)
|
|
105
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
106
|
+
|
|
107
|
+
/* Return the number of glyphs in `font'. */
|
|
108
|
+
|
|
109
|
+
CG_EXTERN size_t CGFontGetNumberOfGlyphs(CGFontRef cg_nullable font)
|
|
110
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
111
|
+
|
|
112
|
+
/* Return the glyph space units/em for `font'. */
|
|
113
|
+
|
|
114
|
+
CG_EXTERN int CGFontGetUnitsPerEm(CGFontRef cg_nullable font)
|
|
115
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
116
|
+
|
|
117
|
+
/* Return the PostScript name of `font'. */
|
|
118
|
+
|
|
119
|
+
CG_EXTERN CFStringRef __nullable CGFontCopyPostScriptName(CGFontRef cg_nullable font)
|
|
120
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
121
|
+
|
|
122
|
+
/* Return the "full name" of `font'. */
|
|
123
|
+
|
|
124
|
+
CG_EXTERN CFStringRef __nullable CGFontCopyFullName(CGFontRef cg_nullable font)
|
|
125
|
+
API_AVAILABLE(macos(10.5), ios(2.0));
|
|
126
|
+
|
|
127
|
+
/* Return the ascent of `font'. The ascent is the maximum distance above the
|
|
128
|
+
baseline of glyphs in a font. The value is specified in glyph space
|
|
129
|
+
units. */
|
|
130
|
+
|
|
131
|
+
CG_EXTERN int CGFontGetAscent(CGFontRef cg_nullable font)
|
|
132
|
+
API_AVAILABLE(macos(10.5), ios(2.0));
|
|
133
|
+
|
|
134
|
+
/* Return the descent of `font'. The descent is the maximum distance below
|
|
135
|
+
the baseline of glyphs in a font. The value is specified in glyph space
|
|
136
|
+
units. */
|
|
137
|
+
|
|
138
|
+
CG_EXTERN int CGFontGetDescent(CGFontRef cg_nullable font)
|
|
139
|
+
API_AVAILABLE(macos(10.5), ios(2.0));
|
|
140
|
+
|
|
141
|
+
/* Return the leading of `font'. The leading is the spacing between
|
|
142
|
+
consecutive lines of text in a font. The value is specified in glyph
|
|
143
|
+
space units. */
|
|
144
|
+
|
|
145
|
+
CG_EXTERN int CGFontGetLeading(CGFontRef cg_nullable font)
|
|
146
|
+
API_AVAILABLE(macos(10.5), ios(2.0));
|
|
147
|
+
|
|
148
|
+
/* Return the cap height of `font'. The cap height is the distance above the
|
|
149
|
+
baseline of the top of flat capital letters of glyphs in a font. The
|
|
150
|
+
value is specified in glyph space units. */
|
|
151
|
+
|
|
152
|
+
CG_EXTERN int CGFontGetCapHeight(CGFontRef cg_nullable font)
|
|
153
|
+
API_AVAILABLE(macos(10.5), ios(2.0));
|
|
154
|
+
|
|
155
|
+
/* Return the x-height of `font'. The x-height is the distance above the
|
|
156
|
+
baseline of the top of flat, non-ascending lowercase letters (such as
|
|
157
|
+
"x") of glyphs in a font. The value is specified in glyph space units. */
|
|
158
|
+
|
|
159
|
+
CG_EXTERN int CGFontGetXHeight(CGFontRef cg_nullable font)
|
|
160
|
+
API_AVAILABLE(macos(10.5), ios(2.0));
|
|
161
|
+
|
|
162
|
+
/* Return the font bounding box of `font'. The font bounding box is the
|
|
163
|
+
union of all of the bounding boxes for all the glyphs in a font. The
|
|
164
|
+
value is specified in glyph space units. */
|
|
165
|
+
|
|
166
|
+
CG_EXTERN CGRect CGFontGetFontBBox(CGFontRef cg_nullable font)
|
|
167
|
+
API_AVAILABLE(macos(10.5), ios(2.0));
|
|
168
|
+
|
|
169
|
+
/* Return the italic angle of `font', measured in degrees counter-clockwise
|
|
170
|
+
from the vertical. */
|
|
171
|
+
|
|
172
|
+
CG_EXTERN CGFloat CGFontGetItalicAngle(CGFontRef cg_nullable font)
|
|
173
|
+
API_AVAILABLE(macos(10.5), ios(2.0));
|
|
174
|
+
|
|
175
|
+
/* Return the thickness of the dominant vertical stems of glyphs in `font'.
|
|
176
|
+
The value is specified in glyph space units. */
|
|
177
|
+
|
|
178
|
+
CG_EXTERN CGFloat CGFontGetStemV(CGFontRef cg_nullable font)
|
|
179
|
+
API_AVAILABLE(macos(10.5), ios(2.0));
|
|
180
|
+
|
|
181
|
+
/* Return an array of the variation axis dictionaries for `font'. Each
|
|
182
|
+
variation axis dictionary contains values for the variation axis keys
|
|
183
|
+
listed below. This function returns NULL if `font' doesn't support
|
|
184
|
+
variations. */
|
|
185
|
+
|
|
186
|
+
CG_EXTERN CFArrayRef __nullable CGFontCopyVariationAxes(CGFontRef cg_nullable font)
|
|
187
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
188
|
+
|
|
189
|
+
/* Return the variation specification dictionary from `font'. This
|
|
190
|
+
dictionary contains keys corresponding the variation axis names of the
|
|
191
|
+
font. Each key is a variation axis name; the value for each key is the
|
|
192
|
+
value specified for that particular variation axis represented as a
|
|
193
|
+
CFNumberRef. This function returns NULL if `font' doesn't support
|
|
194
|
+
variations. */
|
|
195
|
+
|
|
196
|
+
CG_EXTERN CFDictionaryRef __nullable CGFontCopyVariations(CGFontRef cg_nullable font)
|
|
197
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
198
|
+
|
|
199
|
+
/* Get the advance of each glyph in `glyphs', an array of `count' glyphs,
|
|
200
|
+
and return it in the corresponding entry of `advances', an array of
|
|
201
|
+
`count' integers. The advances are specified in glyph space. Returns
|
|
202
|
+
false if advances can't be retrieved for any reason; true otherwise. */
|
|
203
|
+
|
|
204
|
+
CG_EXTERN bool CGFontGetGlyphAdvances(CGFontRef cg_nullable font,
|
|
205
|
+
const CGGlyph * glyphs, size_t count, int * advances)
|
|
206
|
+
API_AVAILABLE(macos(10.0), ios(2.0));
|
|
207
|
+
|
|
208
|
+
/* Get the bounding box of each glyph in `glyphs', an array of `count'
|
|
209
|
+
glyphs, and return it in the corresponding entry of `bboxes', an array of
|
|
210
|
+
`count' rectangles. The bounding boxes are specified in glyph space.
|
|
211
|
+
Returns false if bounding boxes can't be retrieved for any reason; true
|
|
212
|
+
otherwise. */
|
|
213
|
+
|
|
214
|
+
CG_EXTERN bool CGFontGetGlyphBBoxes(CGFontRef cg_nullable font,
|
|
215
|
+
const CGGlyph * glyphs, size_t count, CGRect * bboxes)
|
|
216
|
+
API_AVAILABLE(macos(10.5), ios(2.0));
|
|
217
|
+
|
|
218
|
+
/* Return the glyph associated with `name' in `font'. If `name' isn't found
|
|
219
|
+
in the font, return 0. */
|
|
220
|
+
|
|
221
|
+
CG_EXTERN CGGlyph CGFontGetGlyphWithGlyphName(
|
|
222
|
+
CGFontRef cg_nullable font, CFStringRef cg_nullable name)
|
|
223
|
+
API_AVAILABLE(macos(10.5), ios(2.0));
|
|
224
|
+
|
|
225
|
+
/* Return the glyph name of `glyph' in `font', or NULL if `glyph' does not
|
|
226
|
+
appear in `font'. */
|
|
227
|
+
|
|
228
|
+
CG_EXTERN CFStringRef __nullable CGFontCopyGlyphNameForGlyph(
|
|
229
|
+
CGFontRef cg_nullable font, CGGlyph glyph)
|
|
230
|
+
API_AVAILABLE(macos(10.5), ios(2.0));
|
|
231
|
+
|
|
232
|
+
/* Return true if a subset in the PostScript format `format' can be created
|
|
233
|
+
for `font'; false otherwise. */
|
|
234
|
+
|
|
235
|
+
CG_EXTERN bool CGFontCanCreatePostScriptSubset(CGFontRef cg_nullable font,
|
|
236
|
+
CGFontPostScriptFormat format)
|
|
237
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
238
|
+
|
|
239
|
+
/* Create a subset of `font' named `subsetName' in the PostScript format
|
|
240
|
+
`format'. The subset will contain the glyphs specified by `glyphs', an
|
|
241
|
+
array of `count' CGGlyphs. If non-NULL, `encoding' specifies the default
|
|
242
|
+
encoding for the subset. */
|
|
243
|
+
|
|
244
|
+
CG_EXTERN CFDataRef __nullable CGFontCreatePostScriptSubset(
|
|
245
|
+
CGFontRef cg_nullable font, CFStringRef cg_nullable subsetName,
|
|
246
|
+
CGFontPostScriptFormat format, const CGGlyph * __nullable glyphs,
|
|
247
|
+
size_t count, const CGGlyph encoding[CG_NULLABLE_ARRAY 256])
|
|
248
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
249
|
+
|
|
250
|
+
/* Return a PostScript encoding of `font' containing glyphs in
|
|
251
|
+
`encoding'. */
|
|
252
|
+
|
|
253
|
+
CG_EXTERN CFDataRef __nullable CGFontCreatePostScriptEncoding(
|
|
254
|
+
CGFontRef cg_nullable font, const CGGlyph encoding[CG_NULLABLE_ARRAY 256])
|
|
255
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
256
|
+
|
|
257
|
+
/* Return an array of font table tags in `font'. Each entry in the array is
|
|
258
|
+
a four-byte value representing a single TrueType or OpenType font table
|
|
259
|
+
tag. */
|
|
260
|
+
|
|
261
|
+
CG_EXTERN CFArrayRef __nullable CGFontCopyTableTags(CGFontRef cg_nullable font)
|
|
262
|
+
API_AVAILABLE(macos(10.5), ios(2.0));
|
|
263
|
+
|
|
264
|
+
/* Return the table in `font' corresponding to `tag', or NULL if no such
|
|
265
|
+
table exists. */
|
|
266
|
+
|
|
267
|
+
CG_EXTERN CFDataRef __nullable CGFontCopyTableForTag(
|
|
268
|
+
CGFontRef cg_nullable font, uint32_t tag)
|
|
269
|
+
API_AVAILABLE(macos(10.5), ios(2.0));
|
|
270
|
+
|
|
271
|
+
/*** Keys for the font variation axis dictionary. ***/
|
|
272
|
+
|
|
273
|
+
/* The key used to obtain the variation axis name from a variation axis
|
|
274
|
+
dictionary. The value obtained with this key is a CFStringRef specifying
|
|
275
|
+
the name of the variation axis. */
|
|
276
|
+
|
|
277
|
+
CG_EXTERN const CFStringRef kCGFontVariationAxisName
|
|
278
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
279
|
+
|
|
280
|
+
/* The key used to obtain the minimum variation axis value from a variation
|
|
281
|
+
axis dictionary. The value obtained with this key is a CFNumberRef
|
|
282
|
+
specifying the minimum value of the variation axis. */
|
|
283
|
+
|
|
284
|
+
CG_EXTERN const CFStringRef kCGFontVariationAxisMinValue
|
|
285
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
286
|
+
|
|
287
|
+
/* The key used to obtain the maximum variation axis value from a variation
|
|
288
|
+
axis dictionary. The value obtained with this key is a CFNumberRef
|
|
289
|
+
specifying the maximum value of the variation axis. */
|
|
290
|
+
|
|
291
|
+
CG_EXTERN const CFStringRef kCGFontVariationAxisMaxValue
|
|
292
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
293
|
+
|
|
294
|
+
/* The key used to obtain the default variation axis value from a variation
|
|
295
|
+
axis dictionary. The value obtained with this key is a CFNumberRef
|
|
296
|
+
specifying the default value of the variation axis. */
|
|
297
|
+
|
|
298
|
+
CG_EXTERN const CFStringRef kCGFontVariationAxisDefaultValue
|
|
299
|
+
API_AVAILABLE(macos(10.4), ios(2.0));
|
|
300
|
+
|
|
301
|
+
/* Obsolete; don't use these. */
|
|
302
|
+
|
|
303
|
+
typedef CF_ENUM (int32_t, CGGlyphDeprecatedEnum) {
|
|
304
|
+
CGGlyphMin __CG_DEPRECATED_ENUMERATOR,
|
|
305
|
+
CGGlyphMax __CG_DEPRECATED_ENUMERATOR
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
CF_ASSUME_NONNULL_END
|
|
309
|
+
|
|
310
|
+
CF_IMPLICIT_BRIDGING_DISABLED
|
|
311
|
+
|
|
312
|
+
#endif /* CGFONT_H_ */
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* CoreGraphics - CGFunction.h
|
|
2
|
+
Copyright (c) 1999-2011 Apple Inc.
|
|
3
|
+
All rights reserved. */
|
|
4
|
+
|
|
5
|
+
#ifndef CGFUNCTION_H_
|
|
6
|
+
#define CGFUNCTION_H_
|
|
7
|
+
|
|
8
|
+
#include <CoreFoundation/CFBase.h>
|
|
9
|
+
|
|
10
|
+
/* A CGFunction is a general floating-point function evaluator which uses a
|
|
11
|
+
user-specified callback to map an arbitrary number of inputs to an
|
|
12
|
+
arbitrary number of outputs. */
|
|
13
|
+
|
|
14
|
+
typedef struct CF_BRIDGED_TYPE(id) CGFunction *CGFunctionRef;
|
|
15
|
+
|
|
16
|
+
#include <CoreGraphics/CGBase.h>
|
|
17
|
+
#include <CoreFoundation/CFBase.h>
|
|
18
|
+
#include <CoreFoundation/CFAvailability.h>
|
|
19
|
+
#include <stdint.h>
|
|
20
|
+
|
|
21
|
+
CF_IMPLICIT_BRIDGING_ENABLED
|
|
22
|
+
|
|
23
|
+
CF_ASSUME_NONNULL_BEGIN
|
|
24
|
+
|
|
25
|
+
/* This callback evaluates a function, using `in' as inputs, and places the
|
|
26
|
+
result in `out'. `info' is the info parameter passed to the CGFunction
|
|
27
|
+
creation functions. */
|
|
28
|
+
|
|
29
|
+
typedef void (*CGFunctionEvaluateCallback)(void * __nullable info,
|
|
30
|
+
const CGFloat * in, CGFloat * out);
|
|
31
|
+
|
|
32
|
+
/* When a function is deallocated, this callback releases `info', the info
|
|
33
|
+
parameter passed to the CGFunction creation functions. */
|
|
34
|
+
|
|
35
|
+
typedef void (*CGFunctionReleaseInfoCallback)(void * __nullable info);
|
|
36
|
+
|
|
37
|
+
/* Callbacks for a CGFunction.
|
|
38
|
+
`version' is the version number of this structure. This structure is
|
|
39
|
+
version 0.
|
|
40
|
+
`evaluate' is the callback used to evaluate the function.
|
|
41
|
+
`releaseInfo', if non-NULL, is the callback used to release the info
|
|
42
|
+
parameter passed to the CGFunction creation functions when the
|
|
43
|
+
function is deallocated. */
|
|
44
|
+
|
|
45
|
+
struct CGFunctionCallbacks {
|
|
46
|
+
unsigned int version;
|
|
47
|
+
CGFunctionEvaluateCallback __nullable evaluate;
|
|
48
|
+
CGFunctionReleaseInfoCallback __nullable releaseInfo;
|
|
49
|
+
};
|
|
50
|
+
typedef struct CGFunctionCallbacks CGFunctionCallbacks;
|
|
51
|
+
|
|
52
|
+
/* Return the CFTypeID for CGFunctionRefs. */
|
|
53
|
+
|
|
54
|
+
CG_EXTERN CFTypeID CGFunctionGetTypeID(void)
|
|
55
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
56
|
+
|
|
57
|
+
/* Create a CGFunction using `callbacks' to evaluate the function. `info' is
|
|
58
|
+
passed to each of the callback functions. `domainDimension' is the number
|
|
59
|
+
of input values to the function; `rangeDimension' is the number of output
|
|
60
|
+
values from the function.
|
|
61
|
+
|
|
62
|
+
`domain' is an array of 2M values, where M is the number of input values.
|
|
63
|
+
For each k from 0 to M-1, domain[2*k] must be less than or equal to
|
|
64
|
+
domain[2*k+1]. The k'th input value (in[k]) will be clipped to lie in
|
|
65
|
+
this interval, so that domain[2*k] <= in[k] <= domain[2*k+1]. If `domain'
|
|
66
|
+
is NULL, then the input values will not be clipped. However, it's
|
|
67
|
+
strongly recommended that `domain' be specified; each domain interval
|
|
68
|
+
should specify reasonable values for the minimum and maximum in that
|
|
69
|
+
dimension.
|
|
70
|
+
|
|
71
|
+
`range' is an array of 2N values, where N is the number of output values.
|
|
72
|
+
For each k from 0 to N-1, range[2*k] must be less than or equal to
|
|
73
|
+
range[2*k+1]. The k'th output value (out[k]) will be clipped to lie in
|
|
74
|
+
this interval, so that range[2*k] <= out[k] <= range[2*k+1]. If `range'
|
|
75
|
+
is NULL, then the output values will not be clipped. However, it's
|
|
76
|
+
strongly recommended that `range' be specified; each range interval
|
|
77
|
+
should specify reasonable values for the minimum and maximum in that
|
|
78
|
+
dimension.
|
|
79
|
+
|
|
80
|
+
The contents of the callbacks structure is copied, so, for example, a
|
|
81
|
+
pointer to a structure on the stack can be passed to this function. */
|
|
82
|
+
|
|
83
|
+
CG_EXTERN CGFunctionRef __nullable CGFunctionCreate(void * __nullable info,
|
|
84
|
+
size_t domainDimension, const CGFloat *__nullable domain,
|
|
85
|
+
size_t rangeDimension, const CGFloat * __nullable range,
|
|
86
|
+
const CGFunctionCallbacks * cg_nullable callbacks)
|
|
87
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
88
|
+
|
|
89
|
+
/* Equivalent to `CFRetain(function)', except it doesn't crash (as CFRetain
|
|
90
|
+
does) if `function' is NULL. */
|
|
91
|
+
|
|
92
|
+
CG_EXTERN CGFunctionRef cg_nullable CGFunctionRetain(
|
|
93
|
+
CGFunctionRef cg_nullable function)
|
|
94
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
95
|
+
|
|
96
|
+
/* Equivalent to `CFRelease(function)', except it doesn't crash (as
|
|
97
|
+
CFRelease does) if `function' is NULL. */
|
|
98
|
+
|
|
99
|
+
CG_EXTERN void CGFunctionRelease(CGFunctionRef cg_nullable function)
|
|
100
|
+
API_AVAILABLE(macos(10.2), ios(2.0));
|
|
101
|
+
|
|
102
|
+
CF_ASSUME_NONNULL_END
|
|
103
|
+
|
|
104
|
+
CF_IMPLICIT_BRIDGING_DISABLED
|
|
105
|
+
|
|
106
|
+
#endif /* CGFUNCTION_H_ */
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/* CoreGraphics - CGGradient.h
|
|
2
|
+
Copyright (c) 2006-2011 Apple Inc.
|
|
3
|
+
All rights reserved. */
|
|
4
|
+
|
|
5
|
+
#ifndef CGGRADIENT_H_
|
|
6
|
+
#define CGGRADIENT_H_
|
|
7
|
+
|
|
8
|
+
#include <CoreFoundation/CFBase.h>
|
|
9
|
+
#include <CoreFoundation/CFAvailability.h>
|
|
10
|
+
#include <stdint.h>
|
|
11
|
+
|
|
12
|
+
typedef struct CF_BRIDGED_TYPE(id) CGGradient *CGGradientRef;
|
|
13
|
+
|
|
14
|
+
typedef CF_OPTIONS (uint32_t, CGGradientDrawingOptions) {
|
|
15
|
+
kCGGradientDrawsBeforeStartLocation = (1 << 0),
|
|
16
|
+
kCGGradientDrawsAfterEndLocation = (1 << 1)
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
#include <CoreGraphics/CGBase.h>
|
|
20
|
+
#include <CoreGraphics/CGColorSpace.h>
|
|
21
|
+
#include <CoreGraphics/CGContext.h>
|
|
22
|
+
|
|
23
|
+
CF_IMPLICIT_BRIDGING_ENABLED
|
|
24
|
+
|
|
25
|
+
CF_ASSUME_NONNULL_BEGIN
|
|
26
|
+
|
|
27
|
+
/* A CGGradient defines a transition between colors. The transition is
|
|
28
|
+
defined over a range from 0 to 1 inclusive. A gradient specifies a color
|
|
29
|
+
at location 0, one at location 1, and possibly additional colors assigned
|
|
30
|
+
to locations between 0 and 1.
|
|
31
|
+
|
|
32
|
+
A CGGradient has a color space. When a gradient is created, all colors
|
|
33
|
+
specified are converted to that color space, and interpolation of colors
|
|
34
|
+
occurs using the components of that color space. See the documentation of
|
|
35
|
+
each creation function for more details. */
|
|
36
|
+
|
|
37
|
+
/* Return the CFTypeID for CGGradients. */
|
|
38
|
+
|
|
39
|
+
CG_EXTERN CFTypeID CGGradientGetTypeID(void)
|
|
40
|
+
API_AVAILABLE(macos(10.5), ios(2.0));
|
|
41
|
+
|
|
42
|
+
/* Creates a gradient by pairing the color components provided in
|
|
43
|
+
`components' with locations provided in `locations'. If `locations' is
|
|
44
|
+
NULL, the first color in `colors' will be at location 0, the last color
|
|
45
|
+
in `colors' will be at location 1, and intervening colors will be at
|
|
46
|
+
equal intervals in between. Otherwise, each location in `locations'
|
|
47
|
+
should be a CGFloat between 0 and 1. Each set of color components should
|
|
48
|
+
specify a color in the color space `space', which may not any of
|
|
49
|
+
CIELAB, DeviceN, Indexed or Pattern. The number of locations is specified
|
|
50
|
+
by `count'; the number of color components is the product of `count' and
|
|
51
|
+
the number of color components of `space'. If no color is provided for 0 or 1,
|
|
52
|
+
the gradient will use the color provided at the locations closest to 0 and 1
|
|
53
|
+
for those values. The gradient's content headroom will be based on the `space'
|
|
54
|
+
and determined by the system. */
|
|
55
|
+
|
|
56
|
+
CG_EXTERN CGGradientRef __nullable CGGradientCreateWithColorComponents(
|
|
57
|
+
CGColorSpaceRef cg_nullable space, const CGFloat * cg_nullable components,
|
|
58
|
+
const CGFloat * __nullable locations, size_t count)
|
|
59
|
+
API_AVAILABLE(macos(10.5), ios(2.0));
|
|
60
|
+
|
|
61
|
+
/* Creates a gradient with a specified content headroom. The value of the `headroom'
|
|
62
|
+
will be adjusted as follows:
|
|
63
|
+
(headroom < 0.0f) ? 0.0f : (headroom > 0.0f && headroom < 1.0f) ? 1.0f : headroom.
|
|
64
|
+
The `space' must support HDR (is either HDR or extended range RGB). Creating a gradient
|
|
65
|
+
with the content headroom of 0.0 means that the headroom is unspecified, and this will
|
|
66
|
+
prevent tone mapping of the gradient content to the destination. Meaning of other
|
|
67
|
+
parameters is the same as in CGGradientCreateWithColorComponents. */
|
|
68
|
+
|
|
69
|
+
CG_EXTERN CGGradientRef __nullable CGGradientCreateWithContentHeadroom(
|
|
70
|
+
float headroom, CGColorSpaceRef cg_nullable space, const CGFloat * cg_nullable components,
|
|
71
|
+
const CGFloat * __nullable locations, size_t count)
|
|
72
|
+
CF_SWIFT_NAME(CGGradient.init(headroom:colorSpace:colorComponents:locations:count:))
|
|
73
|
+
API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
|
|
74
|
+
|
|
75
|
+
/* Creates a gradient by pairing the colors provided in `colors' with the
|
|
76
|
+
locations provided in `locations'. `colors' should be a non-empty array
|
|
77
|
+
of CGColor objects. The colors may be in any color space other than a
|
|
78
|
+
pattern color space and are required to be convertible to `space'.
|
|
79
|
+
If `space' is non-NULL, it may not be any of CIELAB, DeviceN, Indexed or Pattern.
|
|
80
|
+
Each color will be converted to that color space and the gradient will drawn
|
|
81
|
+
in that space; otherwise, each color will be converted to and drawn in the
|
|
82
|
+
"Generic" RGB color space.
|
|
83
|
+
If `locations' is NULL, the first color in `colors' will be at location 0,
|
|
84
|
+
the last color in `colors' will be at location 1, and intervening colors
|
|
85
|
+
will be at equal intervals in between.
|
|
86
|
+
Otherwise, each location in `locations' should be a CGFloat between 0 and
|
|
87
|
+
1; the array of locations should should contain the same number of items
|
|
88
|
+
as `colors'. If no color is provided for 0 or 1, the gradient will use
|
|
89
|
+
the color provided at the locations closest to 0 and 1 for those
|
|
90
|
+
values. If the `space' supports headroom (is either HDR or extended range RGB)
|
|
91
|
+
and `colors' contain RGB CGColors with content headroom, the gradient will
|
|
92
|
+
have the content headroom equal to the maximum of the content headoom of 'colors'. */
|
|
93
|
+
|
|
94
|
+
CG_EXTERN CGGradientRef __nullable CGGradientCreateWithColors(
|
|
95
|
+
CGColorSpaceRef __nullable space, CFArrayRef cg_nullable colors,
|
|
96
|
+
const CGFloat * __nullable locations)
|
|
97
|
+
API_AVAILABLE(macos(10.5), ios(2.0));
|
|
98
|
+
|
|
99
|
+
/* Equivalent to `CFRetain' except that it doesn't crash (as `CFRetain'
|
|
100
|
+
does) if `gradient' is NULL. */
|
|
101
|
+
|
|
102
|
+
CG_EXTERN CGGradientRef cg_nullable CGGradientRetain(
|
|
103
|
+
CGGradientRef cg_nullable gradient)
|
|
104
|
+
API_AVAILABLE(macos(10.5), ios(2.0));
|
|
105
|
+
|
|
106
|
+
/* Equivalent to `CFRelease' except that it doesn't crash (as `CFRelease'
|
|
107
|
+
does) if `gradient' is NULL. */
|
|
108
|
+
|
|
109
|
+
CG_EXTERN void CGGradientRelease(CGGradientRef cg_nullable gradient)
|
|
110
|
+
API_AVAILABLE(macos(10.5), ios(2.0));
|
|
111
|
+
|
|
112
|
+
/* Return gradient's content headroom, and return 0.0f if unknown or unspecified.
|
|
113
|
+
Gradient's content headroom is a maximum headroom of HDR colors used by the gradient. */
|
|
114
|
+
|
|
115
|
+
CG_EXTERN float CGGradientGetContentHeadroom(CGGradientRef cg_nullable gradient)
|
|
116
|
+
CF_SWIFT_NAME(getter:CGGradient.contentHeadroom(self:))
|
|
117
|
+
API_AVAILABLE(macos(26.0), ios(26.0), tvos(26.0), watchos(26.0), visionos(26.0));
|
|
118
|
+
|
|
119
|
+
CF_ASSUME_NONNULL_END
|
|
120
|
+
|
|
121
|
+
CF_IMPLICIT_BRIDGING_DISABLED
|
|
122
|
+
|
|
123
|
+
#endif /* CGGRADIENT_H_ */
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* CoreGraphics - CGITUToneMapping.h
|
|
2
|
+
Copyright (c) 2024 Apple Inc.
|
|
3
|
+
All rights reserved. */
|
|
4
|
+
|
|
5
|
+
#ifndef CGITUTONEMAPPING_H
|
|
6
|
+
#define CGITUTONEMAPPING_H
|
|
7
|
+
|
|
8
|
+
#include <CoreFoundation/CFAvailability.h>
|
|
9
|
+
#include <CoreGraphics/CGBase.h>
|
|
10
|
+
|
|
11
|
+
CF_IMPLICIT_BRIDGING_ENABLED
|
|
12
|
+
|
|
13
|
+
CF_ASSUME_NONNULL_BEGIN
|
|
14
|
+
|
|
15
|
+
/* kCGUse100nitsHLGOOTF allows for using HLG OOTF targeting 100 nits when converting HLG to SDR when applying kCGColorITURecommended tone mapping method */
|
|
16
|
+
CG_EXTERN const CFStringRef kCGUse100nitsHLGOOTF API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0)); /* The expected value is a CFBooleanRef (kCFBooleanTrue) */
|
|
17
|
+
|
|
18
|
+
/* kCGUseBT1886ForCoreVideoGamma allows for choosing BT1886 recommended gamma in lieu of CoreVideo Gamma. */
|
|
19
|
+
CG_EXTERN const CFStringRef kCGUseBT1886ForCoreVideoGamma API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0)); /* The expected value is a CFBooleanRef (kCFBooleanTrue) */
|
|
20
|
+
|
|
21
|
+
/* kCGSkipBoostToHDR allows for skipping linear boost when converting non-HDR content (either SDR or extended range) to HDR when applying kCGColorITURecommended tone mapping method */
|
|
22
|
+
CG_EXTERN const CFStringRef kCGSkipBoostToHDR API_AVAILABLE(macos(15.0), ios(18.0), tvos(18.0), watchos(11.0)); /* The expected value is a CFBooleanRef (kCFBooleanTrue) */
|
|
23
|
+
|
|
24
|
+
/* kCGUseLegacyHDREcosystem allows for choosing legacy HDR conversion functions implemented in previous versions of the OS when applying kCGColorITURecommended tone mapping method */
|
|
25
|
+
CG_EXTERN const CFStringRef kCGUseLegacyHDREcosystem API_AVAILABLE(macos(15.1), ios(18.1), tvos(18.1), watchos(11.1)); /* The expected value is a CFBooleanRef (kCFBooleanTrue) */
|
|
26
|
+
|
|
27
|
+
CF_ASSUME_NONNULL_END
|
|
28
|
+
|
|
29
|
+
CF_IMPLICIT_BRIDGING_DISABLED
|
|
30
|
+
|
|
31
|
+
#endif /* CGITUTONEMAPPING_H */
|