awesome-repositories.com
博客
MCP
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
leaferjs avatar

leaferjs/leafer-ui

0
View on GitHub↗
4,184 星标·165 分支·TypeScript·MIT·6 次浏览www.leaferjs.com↗

Leafer Ui

Leafer UI 是一个高性能的 HTML5 Canvas 渲染引擎和 2D 矢量图形库。它利用分层场景树来管理形状、路径和文本,为构建交互式 Canvas 应用和无限画布提供了工具包。

该引擎被设计为跨平台 Canvas 工具包,将核心逻辑与绘图 API 解耦,使其能够在 Web、移动端、服务器和小程序环境中运行。它通过提供用于交互式图形编辑器开发的专用工具(包括点击检测、事件冒泡和变换控制)而脱颖而出。

其功能涵盖矢量形状渲染、复杂路径创建和运动动画。该框架包含一个具有灵活盒模型的布局引擎、用于精确定位的坐标空间转换,以及对 Web Worker 中多线程离屏渲染的支持。它还提供场景管理、元素遮罩以及将 Canvas 内容导出为图像或 JSON 的工具。

该库可以通过标准 script 标签集成,也可以在 React、Vue 和 Nuxt 等响应式框架中使用。

Features

  • 2D Vector Graphics Libraries - Provides a comprehensive API for drawing and animating 2D shapes, paths, and text with layering and masking.
  • Scene Organizations - Organizes vector graphics and paths within a hierarchical scene tree to control collective transformations and rendering.
  • High Performance Rendering - Uses a hierarchical scene-tree and high-performance rendering pipeline to create complex visual tools and infinite canvases.
  • Graphic Design Editors - Supplies the fundamental tools for building graphic design editors, including element selection, scaling, and rotation.
  • Touch-to-Canvas Coordinate Mapping - Maps raw browser interaction coordinates back into the canvas world space to align input events.
  • Canvas Rendering - Allows direct manipulation of pixels on a drawing surface for manual rendering and baking graphics.
  • Cross-Platform Graphics Frameworks - Provides a decoupled rendering backend to deploy a single graphics codebase across web, mobile, and server environments.
  • Shape Drawing - Provides tools for programmatically defining and rendering geometric shapes like circles, ellipses, and arcs.
  • Fill and Stroke Styles - Applies colors, gradients, and patterns to define the interior and boundaries of vector shapes.
  • Multi-Threaded Rendering - Distributes rendering and scene logic across multiple threads to ensure a high-performance, responsive user experience.
  • Canvas Rendering Engines - Implements a high-performance rendering engine that translates vector graphics into pixel-based images on canvas.
  • Infinite Canvas Environments - Implements a virtual space that allows users to navigate across expansive coordinates using panning and zooming.
  • Backend-Agnostic Rendering Pipelines - Implements a rendering architecture that decouples core logic from specific graphics APIs to support multiple platforms.
  • Rendering Backends - Decouples core logic from rendering implementations to support different platforms and graphics APIs.
  • Graphic Element Grouping - Supports grouping drawing operations to apply collective transformations like scaling, rotation, and clipping.
  • Shape Rendering - Implements comprehensive tools for defining and rendering geometric primitives and vector paths.
  • SVG Path Rendering - Provides high-performance rendering of 2D shapes using SVG path notation and builder objects.
  • Vector Path Construction - Renders custom vector paths and pen-tool drawings with support for varying colors and styles.
  • Web-Worker Threading - Offloads heavy scene-tree logic and drawing operations to Web Workers to prevent main-thread blocking.
  • Offscreen Canvas Rendering - Executes scene-tree logic and drawing operations in a web worker using offscreen canvas APIs.
  • Background Rendering Workers - Executes the entire scene-tree and rendering pipeline in background threads to maintain a fluid interface.
  • Vector Scene Graph Hierarchies - Organizes vector graphics in a nested tree structure to handle collective transformations and clipping.
  • Coordinate Space Mappers - Implements utilities to convert points between world, page, local, and box spaces using transformation matrices.
  • Coordinate Space Transformations - Maps points between world, page, and local coordinate spaces to ensure accurate element positioning.
  • Cross-Platform UI Toolkits - Offers a cross-platform toolkit that abstracts drawing APIs to work across web, mobile, and server environments.
  • Element Stacking - Controls the stacking order, opacity, and visibility of elements to organize depth and transparency.
  • Layout Containers - Implements versatile box containers for arranging graphic elements with customizable styles and structure.
  • Interaction and Event Handling - Provides frameworks and logic to manage how pointer and touch actions trigger specific responses.
  • Event Bubbling Mechanisms - Processes pointer and touch events using a capture and bubble mechanism for precise hit detection.
  • Hit Detection Systems - Provides pixel-perfect interaction logic to determine if pointer events hit an element or its children.
  • Infinite Canvas Engines - Provides the foundational components required to build zoomable and pannable infinite visual interfaces.
  • Infinite Canvas SDKs - Acts as a high-performance engine for creating zoomable, reactive infinite canvas interfaces.
  • Interaction Handle Configuration - Implements pixel-perfect hit detection to determine how complex visual elements respond to pointer events.
  • Interactive Graphics - Enables direct manipulation of visual objects, such as dragging and moving elements within a scene.
  • Canvas Element Interactions - Provides a specialized system for managing user interactions specifically for 2D canvas shapes and groups.
  • Touch and Drag Interactions - Handles high-speed processing of dragging, scaling, and multi-touch inputs for immediate visual feedback.
  • Visual Element Transforms - Provides capabilities to rotate, scale, skew, and translate visual elements within a coordinate space.
  • Canvas Navigation - Implements continuous panning and zooming interactions for navigating large-scale or infinite virtual workspaces.
  • Cross-Platform Graphics Frameworks - Enables the same graphics codebase to run across web, server, mobile, and mini-program environments.
  • Gaming and Game Development - Provides an integrated set of plugins and rendering tools tailored for real-time game development.
  • Content Formats and Exporting - Renders scene elements into images, JSON, or canvas formats supporting screenshots and slicing.
  • Graphic Interaction Toolkits - Provides a dedicated plugin with tools for scaling, rotating, moving, and multi-selecting graphic elements.
  • Environment Logic Adapters - Supports new environments by overriding platform-specific global variable bindings and adapter code.
  • 2D Game Engine Components - Integrates animation, motion paths, and interactive state management for creating high-performance small-scale games.
  • 2D Game Frameworks - Offers tools for building 2D games using sprite sheets, motion paths, and real-time animation loops.
  • Interactive Game Frameworks - Provides a framework for creating high-performance interactive 2D games and experiences within mini-apps.
  • Canvas Dimensioning - Sets canvas dimensions as fixed, adaptive to a parent container, or automatically growing to fit content.
  • Canvas Exporters - Converts canvas elements into images or JSON files using snapshots and slicing.
  • Layer Management - Organizes content into separate engine layers based on update frequency to optimize redraws in complex tools.
  • Vector Graphics Editors - Provides the libraries and tools necessary to build interactive environments for creating and managing vector graphics.
  • Interactive Canvases - Provides a programmable canvas environment with built-in support for zooming, panning, and pinch gestures.
  • Reactive Framework Integrations - Allows rendering scene-trees as components in reactive frameworks by bypassing data proxies to maintain performance.
  • Vector Graphics Editors - Provides specialized tools and plugins for creating interactive software focused on vector-based shapes and diagrams.
  • Scene Element Queries by Criteria - Allows for the targeted retrieval and removal of scene nodes based on specific attribute criteria like tags or IDs.
  • Keyframe Animations - Produces transition, keyframe, and path animations using delays, loops, and seek controls.
  • Large-Scale Element Rendering - Maintains performance and stability when displaying a massive number of visual elements on a canvas.
  • Layered Render Optimizations - Divides content into separate layers based on update frequency to minimize canvas redraw overhead.
  • State Transition Animators - Executes high-performance transitions and tweening to drive dynamic visual changes between states.
  • Mixed Media Renderers - Displays both raster and vector images with specialized logic to maintain visual clarity during scaling.
  • Path Animation Utilities - Moves elements along predefined trajectories and triggers stroke-based growth animations.
  • Vector Bounding Box Calculations - Calculates the exact dimensions and spatial coordinates of vector elements for alignment and collision detection.
  • Vector Element Animations - Creates transitions, keyframe animations, and motion paths to move canvas elements and change styles.
  • WebGL Canvas Integrations - Embeds the rendering system within a DOM structure to manage viewport sizing and input events.
  • Mobile Gesture Interactions - Maps touch gestures to element manipulation and provides hooks for customizing mobile interactions.
  • Canvas Scene Lifecycle Hooks - Manages the lifecycle of a scene-tree and graphic elements within reactive architectures to maintain performance.
  • Non-Reactive State Optimization - Provides high-performance rendering by preventing internal engine states from being wrapped in framework reactive proxies.
  • Custom Component States - Supports creating named states for elements to trigger complex visual changes based on application or game logic.
  • Visual State Transitions - Smooths the visual shift between different element states using transition effects for fluid animations.
  • Flexbox Canvas Layouts - Arranges graphic elements using a flexible box model for responsive positioning within the canvas.
  • Automatic Element Alignment - Automatically calculates the position and size of canvas elements based on alignment, direction, and spacing rules.
  • Dirty Region Redraw Optimizations - Implements dirty-region tracking to update only changed areas of the canvas, maintaining high performance for many objects.
  • Property Interpolation Animators - Creates smooth transitions and keyframe animations for element properties along predefined motion paths.
  • Responsive Layout Engines - Uses a flexible box model to arrange canvas elements responsively across different screen sizes.
  • Element Locators - Provides utilities for identifying and selecting specific graphic elements using identifiers or spatial coordinates.
  • Element Masks - Defines specific elements within a group to act as clipping masks or erasers for complex cutouts.
  • Visual - Defines visual styles for hover, press, focus, and selected states to provide immediate user feedback.
  • Interactive Applications - Enables the development of high-performance web applications combining complex vector graphics with real-time touch gestures.
  • Interaction Behavior Configurations - Configures draggability, movement bounds, and cursor styles to define precise user interaction with graphics.
  • Visual State Management - Manages the switching of styles for hover, press, focus, and disabled states to provide immediate visual feedback.
  • Interactive Element Styling - Provides styling for interactive states such as hover, focus, and disabled status for canvas elements.
  • Off-Main-Thread Editor Logic - Executes graphic editing and viewport controls in a multi-threaded background environment to keep the UI responsive.
  • Rendering Lifecycle Hooks - Provides hooks to execute custom logic in response to property updates and layout shifts during the rendering process.
  • Canvas Graphics Renderers - Provides the ability to generate images and drawings within server-side environments for background processing or static asset creation.
  • Graphics Rendering - Supports generating images and visual assets on a server by running rendering logic in a headless environment.

Star 历史

leaferjs/leafer-ui 的 Star 历史图表leaferjs/leafer-ui 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

常见问题解答

leaferjs/leafer-ui 是做什么的?

Leafer UI 是一个高性能的 HTML5 Canvas 渲染引擎和 2D 矢量图形库。它利用分层场景树来管理形状、路径和文本,为构建交互式 Canvas 应用和无限画布提供了工具包。

leaferjs/leafer-ui 的主要功能有哪些?

leaferjs/leafer-ui 的主要功能包括:2D Vector Graphics Libraries, Scene Organizations, High Performance Rendering, Graphic Design Editors, Touch-to-Canvas Coordinate Mapping, Canvas Rendering, Cross-Platform Graphics Frameworks, Shape Drawing。

leaferjs/leafer-ui 有哪些开源替代品?

leaferjs/leafer-ui 的开源替代品包括: konvajs/react-konva — react-konva is a declarative React canvas graphics library and 2D vector graphics framework. It serves as a rendering… exyte/macaw — Macaw is a Swift vector graphics library and animation framework used to create and render scalable geometric shapes… konvajs/konva — Konva is an object-oriented HTML5 canvas framework designed for building interactive 2D graphical applications. It… gcssloop/androidnote — AndroidNote is a technical knowledge base and reference resource for Android development. It provides comprehensive… fogleman/gg — gg is a Go 2D graphics library and vector graphics engine designed for programmatic image generation. It provides a… makieorg/makie.jl — Makie.jl is a high-performance Julia data visualization library and hardware-accelerated plotting engine used to…

Leafer Ui 的开源替代方案

相似的开源项目,按与 Leafer Ui 的功能重合度排序。
  • konvajs/react-konvakonvajs 的头像

    konvajs/react-konva

    6,362在 GitHub 上查看↗

    react-konva is a declarative React canvas graphics library and 2D vector graphics framework. It serves as a rendering engine and interactive canvas toolset that allows for the drawing and management of complex 2D shapes and graphics using a React component model. The library maps reactive component trees to an underlying object-oriented graphics scene graph, enabling the synchronization of visual states with application data. It provides specialized tools for building interactive graphical interfaces, including support for multi-touch gestures, drag-and-drop functionality, and real-time trans

    TypeScript
    在 GitHub 上查看↗6,362
  • exyte/macawexyte 的头像

    exyte/Macaw

    6,050在 GitHub 上查看↗

    Macaw is a Swift vector graphics library and animation framework used to create and render scalable geometric shapes and text. It functions as an SVG rendering engine and an interactive vector graphics toolkit for displaying complex artwork while maintaining image quality at any scale. The framework enables the animation of shape properties and node transformations, including the ability to morph one vector path into another. It allows for the integration of external SVG files and the application of linear and radial gradients to fills and strokes. The toolkit covers a range of capabilities

    Swiftanimationdrawinggraphics
    在 GitHub 上查看↗6,050
  • gcssloop/androidnoteGcsSloop 的头像

    GcsSloop/AndroidNote

    9,332在 GitHub 上查看↗

    AndroidNote is a technical knowledge base and reference resource for Android development. It provides comprehensive guidance on application architecture, custom view development, and advanced graphics programming. The project is distinguished by its depth in visual implementation, covering pseudo-3D perspective projections via virtual cameras and complex 2D rendering using Bézier curves and PorterDuff color blending. It also provides detailed methodologies for app modularization and the management of internal libraries through private Maven repositories and JitPack. The reference surface ext

    Javaandroidandroid-studiocustom-view
    在 GitHub 上查看↗9,332
  • konvajs/konvakonvajs 的头像

    konvajs/konva

    14,135在 GitHub 上查看↗

    Konva is an object-oriented HTML5 canvas framework designed for building interactive 2D graphical applications. It provides a hierarchical scene graph that organizes shapes, images, and text into manageable nodes, groups, and layers. By mapping application state to canvas elements, the library enables developers to create complex visual interfaces using declarative patterns that synchronize with modern component-based frameworks. The library distinguishes itself through a robust event system that supports hit detection, bubbling, and direct manipulation of graphical objects, such as dragging,

    TypeScriptanimationcanvasdrag-and-drop
    在 GitHub 上查看↗14,135
查看 Leafer Ui 的所有 30 个替代方案→