Skip to content

Commit 8ece346

Browse files
committed
Create collections
1 parent 581533b commit 8ece346

66 files changed

Lines changed: 2801 additions & 824 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
layout: docs
32
title: Quick Start
3+
slug: quick-start
44
sections:
55
- Why Rish?
66
- Elements Composition
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
2-
layout: docs
32
title: Installation
3+
slug: installation
44
sections:
55
- Setup
66
- Next Steps
7-
order: 1
87
icon: download
98
---
109

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
---
2-
layout: docs
32
title: The Render Pipeline
3+
slug: render-pipeline
44
sections:
55
- Element Definitions
66
- Mounting and Unmounting
77
- The Update Cycle
88
- Keys
99
- Manual Dirty
10-
order: 2
11-
# icon: timeline
1210
icon: arrows-turn-to-dots
1311
---
1412

@@ -43,13 +41,13 @@ An element is automatically flagged as dirty when:
4341
- Its Props change (passed down from a parent).
4442
- Its State changes (internal logic).
4543

46-
## REVISIT
47-
When a `RishElement` is dirty, Rish calls its `Render` function. This process is recursive but efficient:
44+
When a `RishElement` is dirty, Rish calls its `Render` function.
4845
- If the Render call results in the exact same structure and properties, the update stops there.
49-
- If the Props (or styling) change, the element updates.
50-
- If the structure changes (elements added/removed), Rish reconciles the lists.
51-
- **Optimization:** If a parent renders but a child's Props have not changed, Rish skips re-rendering that child entirely.
52-
## REVISIT
46+
- If the structure changes (elements added/removed or modified), Rish reconciles the tree:
47+
- New elements are added and also get rendered.
48+
- Elements that changed are updated and rendered.
49+
- Elements that stayed the same are skipped.
50+
- Elements that are not needed anymore get unmounted.
5351

5452
#### Example
5553
Let's look at how Rish handles updates with a concrete example.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
layout: docs
32
title: VisualElements
3+
slug: visualelements
44
sections:
55
- Visual Tree
66
- Styling
@@ -9,7 +9,6 @@ sections:
99
- Input Handling
1010
- Lifecycle and Callbacks
1111
- The Render Process
12-
order: 3
1312
icon: eye
1413
---
1514

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
---
2-
layout: docs
32
title: RishElements
3+
slug: rishelements
44
sections:
55
- Inputs
66
- DOMDescriptor
77
- Wrap VisualElements
88
- Callbacks
99
- UIToolkit Events
10-
order: 4
1110
icon: brain
1211
---
1312

@@ -296,7 +295,7 @@ public struct FooState {
296295
}
297296
{% endhighlight %}
298297

299-
### REVIEW
298+
### Manipulators
300299
You can also create a `ToolkitManipulator` (similar to UI Toolkit's `Manipulator`) and add it to your RishElement with `AddManipulator` and remove it with `RemoveManipulator`.
301300

302301
{% highlight csharp %}
@@ -322,4 +321,5 @@ public partial class ClickManipulator : ToolkitManipulator
322321
}
323322
}
324323
{% endhighlight %}
325-
### REVIEW
324+
325+
These are useful to throw new types of events or to standarize responses to certain events.
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
2-
layout: docs
32
title: UI Data
3+
slug: data
44
sections:
55
- Value Types
66
- Reference Types
7-
order: 5
87
icon: database
98
---
109

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
---
2-
layout: docs
32
title: Memory Management
3+
slug: memory-management
44
sections:
55
- The Pooling System
66
- Managed Contexts
77
- Custom Managed Types
8-
order: 6
98
icon: memory
109
---
1110

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
---
2-
layout: docs
32
title: Visual Manipulation
3+
slug: visual-manipulation
44
sections:
55
- Implementation
66
- The Lifecycle
77
- Performance
8-
order: 7
98
icon: sliders
109
---
1110

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
---
2-
layout: docs
32
title: Source Code Generation
3+
slug: rishenerator
44
sections:
55
- Factory Methods (Create)
66
- Comparers
77
- Memory Management
88
- Props Methods
99
- State Setters
10-
order: 8
1110
icon: file-circle-plus
1211
---
1312

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
---
2-
layout: docs
32
title: Best Practices
3+
slug: best-practices
44
sections:
55
- Performance & Optimization
66
- Architecture and Logic
77
- Style Guide And Conventions
8-
order: 9
98
icon: award
109
---
1110

0 commit comments

Comments
 (0)