@pictor-sdk/ui
v0.3.0
Published
Default slot-based editor UI for Pictor, built entirely on the public headless API.
Readme
@pictor-sdk/ui
Default slot-based editor UI for Pictor, built entirely on the public headless API.
Part of Pictor, an MIT-licensed, composable photo and video editor SDK for React Native. Public APIs are pre-1.0 and experimental.
Install
pnpm add @pictor-sdk/[email protected]Install the package's declared peer dependencies in your app. Keep React, React Native, Skia, Reanimated and Worklets single-instance; never install a second renderer stack.
The reference host uses Expo SDK 54, React Native 0.81, React 19.1, Skia 2.2.12, Reanimated 4.1 and Worklets 0.5.1 (New Architecture). Device acceptance was performed on a Pixel 7; broader peer ranges are not a claim of device verification on every supported version/platform.
Documentation and contributing
Story Layout in 0.2.0
Upgrade @pictor-sdk/core, @pictor-sdk/skia and @pictor-sdk/ui together.
layoutCellBounds('6grid') supplies a two-column, three-row grid;
fitImageToLayoutCell(cell, document.size, intrinsic, { zoom, center }) returns
the fixed-cell transform, source crop and pixelSnap flag. Apply all three in
one history batch. Zoom and pan change the crop, not the layer's cell bounds.
See the host integration guide.
Project links
The original development scope was @pictor/; public packages use @pictor-sdk/. Use the public scope in all imports and app configuration.
