@papercraftgames/estragon 0.1.0-beta.18 → 0.1.0-beta.19
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.
|
@@ -159,7 +159,12 @@ func _flush() -> void:
|
|
|
159
159
|
flush_count += 1
|
|
160
160
|
if Profile.is_enabled(): Profile.add("layout_flushes")
|
|
161
161
|
var visible := _viewport.get_visible_rect().size if _viewport!=null else Vector2.ZERO
|
|
162
|
-
|
|
162
|
+
# An independent 2D Entry has a native containing rectangle even without
|
|
163
|
+
# an Estragon parent. Use the visible logical viewport for every eligible
|
|
164
|
+
# root percentage, including insets/gap/offsets; child preparation remains
|
|
165
|
+
# exclusively the core's immediate-content responsibility. No 3D Z inference.
|
|
166
|
+
var reference := Vector3(visible.x,visible.y,-1) if _mode==Mode.ENTRY and _dimension==2 else Vector3(-1,-1,-1)
|
|
167
|
+
model.prepare(reference,visible)
|
|
163
168
|
var available: Vector3 = model.measure()
|
|
164
169
|
model.arrange(available)
|
|
165
170
|
if host is Node2D:
|
|
@@ -76,7 +76,7 @@ func _warn_unanchored() -> void:
|
|
|
76
76
|
for index in range(3):
|
|
77
77
|
if _parent_axes[index]>0 and parent_reference[index]<0:
|
|
78
78
|
_reported_unanchored = true
|
|
79
|
-
push_warning("Estragon percentage has no definite containing content axis and resolves to zero;
|
|
79
|
+
push_warning("Estragon percentage has no definite containing content axis and resolves to zero; give the containing auto layout axis an independent extent or grow allocation; independent 2D Entries use their visible viewport")
|
|
80
80
|
return
|
|
81
81
|
|
|
82
82
|
func _edges(prefix: String) -> Vector4:
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
extends RefCounted
|
|
3
3
|
## Sole length grammar, property domains, conversion and dependency contract.
|
|
4
4
|
## Numeric values preserve native units; explicit pixel/reference strings use
|
|
5
|
-
## pixels_per_unit in 3D. Percent
|
|
5
|
+
## pixels_per_unit in 3D. Percent uses the containing layout content axis;
|
|
6
|
+
## independent 2D Entries receive their visible viewport as that context.
|
|
6
7
|
const LIMIT := 1.0e12
|
|
7
8
|
const FACTORS := {"":1.0,"px":1.0,"in":96.0,"cm":96.0/2.54,"mm":96.0/25.4,"q":96.0/101.6,"pt":96.0/72.0,"pc":16.0}
|
|
8
9
|
const DIMENSIONS := ["width","height","depth"]
|
package/package.json
CHANGED