ide_previewer:基于ArkUI的IDE预览器组件项目

可集成到OpenHarmony SDK,为DevEco Studio提供ArkUI渲染能力,支持Windows、MacOS运行ArkTS及JS应用,通过命名管道实现实时渲染与动态页面刷新。【此简介由AI生成】

Branch233Tags31
FilesLast commitLast update
5 months ago
11 months ago
3 years ago
3 years ago
1 year ago
6 months ago
1 year ago
11 months ago
5 months ago
3 years ago
2 years ago
1 year ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
1 year ago
5 months ago
3 years ago
3 years ago
3 years ago
1 year ago
3 years ago

Previewer

Introduction

The Previewer is a component that empowers the DevEco Studio Previewer to leverage the ArkUI rendering engine for real-time rendering and preview. To be specific, with the Previewer component, the DevEco Studio Previewer can send commands through the named pipe to instruct the ArkUI rendering engine to implement real-time rendering and receive the resultant images for preview presentation. The Previewer component supports ArkTS and JS applications on Windows or macOS.

Figure 1 Previewer component architecture

To start with, the DevEco Studio Previewer launches the Previewer component through the command line and passes to it startup parameters such as the ArkTS build product path and preview specifications. When starting up, the Previewer component launches the ArkUI rendering engine, which then renders pages based on the startup parameters and delivers preview images for the DevEco Studio Previewer. When page information changes, the DevEco Studio Previewer sends page refresh commands through the named pipe to the Previewer component. Based on the received commands, the Previewer component calls the ArkUI processing APIs to refresh and render the pages and deliver the images.

Directory Structure

The source code of the Previewer component is stored in /ide_previewer. The following shows the directory structure.

/ide_previewer
├── cli                       # Command processing
├── gn                        # Build dependencies and toolchain configuration
├── jsapp                     # Rendering engine invoking
├── mock                      # Code of the interaction layer
├── util                      # Utility

Application Scenarios

The Previewer component is built and released with the OpenHarmony SDK. You can use it to enable the DevEco Studio Previewer to leverage the ArkUI rendering engine for page rendering.

Building and Compilation

For details, see the README in the build repository.

Repositories Involved

ide_previewer

arkui_ace_engine_lite

arkui_ace_engine

How to Contribute

For details about how to contribute, see Contribution Guide.

Introduction

可集成到OpenHarmony SDK,为DevEco Studio提供ArkUI渲染能力,支持Windows、MacOS运行ArkTS及JS应用,通过命名管道实现实时渲染与动态页面刷新。【此简介由AI生成】

Customize your domain