Repository navigation
From 06 to 07
0.7 is a minor release of a pre-1.0 crate, so it carries breaking changes. This page gathers the
ones that need a code change. Each crate's CHANGELOG.md lists everything, in more detail.
The rich text editor moved from blinc_layout to blinc_cn, so that its toolbar can use the cn
components. Change the import path. The functions, types and CSS classes keep their names.
// 0.6
use blinc_layout::widgets::rich_text_editor::{RichDocument, rich_text_editor, rich_text_state};
// 0.7
use blinc_cn::components::rich_text_editor::{RichDocument, rich_text_editor, rich_text_state};With the blinc facade crate, the path is blinc::cn::components::rich_text_editor. Its rules
are part of CN_STYLES, so a theme bundle that sets only the layout stylesheet must add
CN_STYLES to style the editor.
The editor's CSS classes carry the cn prefix: .blinc-rich-text is now
.cn-rich-text-editor-document, the root .blinc-rich-text-editor is .cn-rich-text-editor, and
the other .blinc-rich-text-* and .blinc-rte-* classes are .cn-rich-text-editor-*. The caret
variable --blinc-rich-text-caret is --cn-rich-text-editor-caret.
The toolbar is built from cn components, and PickerState and RichTextData::picker are
removed: the colour picker, the heading select and the link popover keep their own open state.
BlockKind has TaskItem { checked } and Table { columns } variants, so a match on it needs
arms for them. It has no Quote variant: Block::quote is a flag on a paragraph or a heading,
and Block::quote(text, color) makes a quoted paragraph. Code that builds a Block field by
field must set quote. Use BlockKind::is_list_item where any list will do. LineGeometry has a cell
field, and RichTextData::line_at_y is now line_at, which takes the point's x too.
Block has an align field, so code that builds one field by field must set it. Use
Default::default(), or the constructors such as Block::paragraph, which do.
The editor now wraps its text to the width it is laid out at. The width passed to
rich_text_editor is the width it wraps to until its first layout, so an editor in a parent of
another width wraps differently than in 0.6. Give the parent the width the editor should have.
NotchRenderData is removed. A Notch is a Div element whose RenderProps::notch holds its
outline, so code that matched on it as a canvas needs no change, and a stylesheet rule on its
class now sets its fill, border, radius and shadow.
Getting Started
Migrating
Mobile Development
Example Gallery
- Example Gallery
- Canvas Element
- Canvas Kit Interactive
- Carousel Demo - Selector API Showcase
- Chrome-Style Tabs
- blinc_cn Components
- Run with
cargo run -p blinc_app_examples --features cn --example cn_pickers_demo. - Code Element
- Complex SVG
- CSS Debug
- CSS Visual Features
- Layer Effects
- Emoji and HTML Entities
- @flow Shader
- Fluid Surface
- Skeleton animation with glTF +
blinc_canvas_kit. - Gpu Pass Demo
- Image CSS Styling
- Image Layer Test
- Keyframe Animation Canvas
- Markdown Editor
- 3D Mesh Demo — renders the Khronos glTF
DamagedHelmetsample model - Motion Demo
- Music Player Glass Card
- Node-editor demo — pre-wired graph with three node types, typed
- Notch Menu Bar
- Overflow Fade
- Overlay System
- Pointer Query
- Rich Text Element
- Rich Text Editor
- Scroll Container
- Semantic @flow
- Sortable
- Stateful API + Signal-bound modifiers demo.
- End-to-end 3D demo wiring Blinc's SceneKit3D renderer up to
- Unified Styling API
- SVG Animation
- Table Builder
- Tabler Icons
- Minimal text positioning test
- Text Input Widgets
- KHR_texture_transform
- Theme System
- Timeline Animation
- Typography
- Wet Glass
- Windowed Application
Web Development
Core Concepts
- Elements & Layout
- Styling & Materials
- CSS Styling
- Theming
- Event Handling
- Accessibility
- State Management
- Lists & Conditional Content
- Element Refs
Animation
Components
Component Library (blinc_cn)
- Overview
- Button
- Card
- Icons
- Typography
- Dialog
- Form Components
- Date, Time and Colour Pickers
- Rich Text Editor
- Code Editor
- Navigation
- Feedback
- Layout
- Data Display
Widgets
- Buttons & Inputs
- Text & Rich Text
- Code Editor
- Scroll Containers
- Virtualized List
- Canvas Drawing
- Gestures
- Notched Surfaces
- Images & SVG
- Audio & Video
- Markdown Rendering
Canvas Kit
Advanced
- Routing & Navigation
- Multi-Window
- System Integration
- Element Query API
- Overlay System
- Custom State Machines
- Pointer Query
- Performance Tips
- Flow Shaders
- 3D Rendering
- Custom GPU Passes
- Hot reloading
Architecture
Contributing