Skip to content

Commit 55ca350

Browse files
rayliverifiedclaude
andcommitted
Tooltips and pinch-to-zoom on any node
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 2b2c4f4 commit 55ca350

40 files changed

Lines changed: 262 additions & 4 deletions

‎lib/src/api/nodes/accordion_node.g.dart‎

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎lib/src/api/nodes/app_bar_node.g.dart‎

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎lib/src/api/nodes/auto_placeholder_node.g.dart‎

Lines changed: 7 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎lib/src/api/nodes/badge_node.g.dart‎

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎lib/src/api/nodes/base_node.dart‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,16 @@ abstract class BaseNode
378378
/// Whether this node changes how it looks in any interaction state.
379379
bool get hasInteractionStates => interactionStates.isNotEmpty;
380380

381+
/// Text shown when the user hovers or long-presses the node; may hold
382+
/// `${...}` data. Empty for none.
383+
@JsonKey(defaultValue: '')
384+
String tooltip = '';
385+
386+
/// Whether the user can pinch, scroll or double-tap to zoom and pan the
387+
/// node, e.g. a photo.
388+
@JsonKey(defaultValue: false)
389+
bool zoomable = false;
390+
381391
/// Determines whether the node is enabled or not. When translating the node
382392
/// into a widget or code, this value is used to determine whether this node
383393
/// should be included and accounted for or not.

‎lib/src/api/nodes/button_node.g.dart‎

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎lib/src/api/nodes/canvas_node.g.dart‎

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎lib/src/api/nodes/checkbox_node.g.dart‎

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎lib/src/api/nodes/chip_node.g.dart‎

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎lib/src/api/nodes/divider_node.g.dart‎

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)