@rafaelaugusto/jolt-native

中文文档
0.1.0-rc.6发布于 2026/11/02MITES Module零依赖构建来源已验证

Optional compiled property adapters for Jolt (MapKit, MapLibre and SceneKit).

原始使用文档

Jolt native property runtime

Optional NativeScript plugin for @rafaelaugusto/jolt/native. Install this package alongside Jolt and rebuild the app. Core Jolt does not depend on this plugin.

npm install @rafaelaugusto/jolt @rafaelaugusto/jolt-native

Includes compiled scalar/compound playback, MapKit and SceneKit pose/light/material sinks on iOS, and a MapLibre sink on Android. It does not install MapLibre; the app chooses its SDK version. Reference demo: MapLibre Android 11.8.0, NativeScript 9.1, iOS 26 / Android 16. Minimum NativeScript 8.9; native helper APIs require iOS 13+ / Android API 23+ (the app/runtime or SDK may require newer).

SceneKit appearance supports light intensity/color and material transparency/solid diffuse/emission colors; textures are rejected. See the lighting guide for interpolation and lifecycle limits.

See the native properties guide for capabilities, authoring, ownership and execution limits.

Release maintainers: publish this optional package together with compatible core releases (npm publish from this directory). Build and pack the core at the repository root. The demo uses local file dependencies and never needs the package published for validation.

SceneKit perspective camera field-of-view bindings use sceneKitFieldOfView(camera) from the core /native entry. See the camera guide for projection, lens ownership and lifecycle limits. Available since beta.15. Install matching core/native versions and rebuild the native app to include this adapter.

Available since beta.17: sceneKitEnvironmentIntensity(scene) and sceneKitUniform(target, name, options) add native environment and literal Metal shader-modifier inputs on iOS 13+. They require the new compiled runtime and a native app rebuild. The environment/shader guide documents float/vector schemas, ranges, ownership, Reduced Motion and unsupported live sources/SCNProgram buffers.

版本与发布记录

@rafaelaugusto/jolt-native 共发布 13 个版本,首次发布于 2026/10/23;过去 12 个月发布了 13 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.1.0-rc.6latest2026/11/021 天前
0.1.0-rc.52026/11/021 天前
0.1.0-rc.42026/10/313 天前
0.1.0-rc.32026/10/313 天前
0.1.0-rc.22026/10/304 天前
0.1.0-rc.12026/10/286 天前

关于 @rafaelaugusto/jolt-native 的常见问题

@rafaelaugusto/jolt-native 是什么?

可选的编译属性适配器为Jolt (MapKit, mapplibre和SceneKit)。

如何安装 @rafaelaugusto/jolt-native?

在项目目录运行 npm install @rafaelaugusto/jolt-native,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:@nativescript/core(>=8.9.0)、@rafaelaugusto/jolt(>=0.1.0-rc.6)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@rafaelaugusto/jolt-native 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/rafaelaugusto__jolt-native 是否存在。

@rafaelaugusto/jolt-native 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@rafaelaugusto/jolt-native 可以商用吗?

@rafaelaugusto/jolt-native 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@rafaelaugusto/jolt-native 还在维护吗?

最新版本 0.1.0-rc.6 发布于 2026/11/02(1 天前);至今共发布 13 个版本,其中过去 12 个月发布了 13 个;首次发布于 2026/10/23。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。