Donner 0.8.0-pre
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
ReferenceFanout.h File Reference
#include <cstddef>
#include <string_view>
Include dependency graph for ReferenceFanout.h:

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.

Functions

constexpr bool donner::editor::IsLargeReverseReferenceFanout (std::size_t count)
 Return true when a reverse-reference fanout should stay summarized.

Variables

constexpr std::size_t donner::editor::kMaxExpandedReverseReferences = 5
 Maximum number of reverse references that source focus expands directly.
constexpr std::string_view donner::editor::kReverseReferenceOverflowTooltip
 Tooltip shown when a reverse-reference fanout is too large to expand.

Function Documentation

◆ IsLargeReverseReferenceFanout()

bool donner::editor::IsLargeReverseReferenceFanout ( std::size_t count)
nodiscardconstexpr

Return true when a reverse-reference fanout should stay summarized.

Parameters
countNumber of reverse references or selector-matched elements.
Returns
True when expanding the fanout would be too noisy or expensive.

Variable Documentation

◆ kReverseReferenceOverflowTooltip

std::string_view donner::editor::kReverseReferenceOverflowTooltip
inlineconstexpr
Initial value:
=
"Too many reverse refs to draw lines"

Tooltip shown when a reverse-reference fanout is too large to expand.