zaniah 0.12.1 → 0.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/zaniah/element.rb +1 -2
- data/lib/zaniah/layout/style.rb +5 -1
- data/lib/zaniah/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 386e75cb5db3d2027ed3c94ca7bbb3df1d1f7c1980df89bf108456da24993255
|
|
4
|
+
data.tar.gz: 7f546b6bda16e84eccd36310ff8bc1f065bead904ad8cd68c5ef26a45b6ef913
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1e8b40e41c9f23d9d954e83fa78e8929cddbbc1e651244a409c30c9cfb14943821aaaf096b41febeba568e912761cbf2da18f768efc4c5c83642d6fb74a223bf
|
|
7
|
+
data.tar.gz: adc23e2da904fff7f30520676dcf961f303f6295d3bb914fd994c928b97ef6091ce05981f85d4b8587f1048ff2fc0c13fb91f4739ff3fbc6d3d1821a8e049b4e
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.12.3 — 2026-10-02
|
|
4
|
+
|
|
5
|
+
- Improve redraw responsiveness in views with many styled controls.
|
|
6
|
+
|
|
7
|
+
## 0.12.2 — 2026-10-02
|
|
8
|
+
|
|
9
|
+
- Reduce redraw allocations to improve rendering responsiveness.
|
|
10
|
+
|
|
3
11
|
## 0.12.1 — 2026-10-02
|
|
4
12
|
|
|
5
13
|
- Prevent obsolete focus controls from accumulating across redraws, reducing memory use and keeping keyboard navigation on current controls.
|
data/lib/zaniah/element.rb
CHANGED
data/lib/zaniah/layout/style.rb
CHANGED
|
@@ -22,7 +22,11 @@ module Zaniah
|
|
|
22
22
|
|
|
23
23
|
def initialize(**properties) = @values = DEFAULTS.merge(properties).freeze
|
|
24
24
|
def [](name) = @values[name]
|
|
25
|
-
def merge(**properties)
|
|
25
|
+
def merge(**properties)
|
|
26
|
+
style = Style.allocate
|
|
27
|
+
style.instance_variable_set(:@values, @values.merge(properties).freeze)
|
|
28
|
+
style
|
|
29
|
+
end
|
|
26
30
|
def to_h = @values
|
|
27
31
|
|
|
28
32
|
def inherit(parent)
|
data/lib/zaniah/version.rb
CHANGED