hokusai-zero 0.2.2 → 0.2.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/README.md +1 -1
- data/hokusai.gemspec +1 -1
- data/ui/src/hokusai/blocks/text.rb +2 -2
- data/ui/src/hokusai/mounting/loop_entry.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: b0b51936165c28af713ec3b359aec1b2cfc7b47f64bbe5dd365e31ea701e7640
|
4
|
+
data.tar.gz: 38dc1e09dae8a502c0e89e32c21c6cd99fdfa20eac15c15577441827c48fa097
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7df65215d0dd03500b92809ba8d05d996aa7ef2f1d25c8a418da3b78e82dd69ef88b44c12b120bbc913aff1063a817b653bf0c0ca1ba5c7c5fec48fb2f00cfc
|
7
|
+
data.tar.gz: e59f199ebcc5ecf2179d5b69e5b4a8e79b0b09e11862403b002a86fd18bfe534d09086c9b43c409218d124b63aa5076f10d020fbb9b8b4efaa5f244b15d13cdf
|
data/README.md
CHANGED
data/hokusai.gemspec
CHANGED
@@ -199,11 +199,11 @@ class Hokusai::Blocks::Text < Hokusai::Block
|
|
199
199
|
|
200
200
|
def render(canvas)
|
201
201
|
if Hokusai.can_render(canvas)
|
202
|
-
|
202
|
+
if last_content != content || last_width != canvas.width
|
203
203
|
# self.last_clamping&.free
|
204
204
|
self.last_clamping = clamp(content, canvas.width - (padding.left + padding.right))
|
205
205
|
self.last_width = canvas.width
|
206
|
-
self.last_content = content
|
206
|
+
self.last_content = content.clone
|
207
207
|
end
|
208
208
|
|
209
209
|
height = internal_render(last_clamping, canvas)
|
@@ -149,7 +149,7 @@ module Hokusai
|
|
149
149
|
children[patch.target].node.add_styles(target.class)
|
150
150
|
children[patch.target].node.add_props_from_block(target, context: ctx)
|
151
151
|
|
152
|
-
|
152
|
+
UpdateEntry.new(children[patch.target], uparent, utarget).register(context: ctx)
|
153
153
|
when MovePatch
|
154
154
|
if patch.delete
|
155
155
|
from = children[patch.from]
|