Donner SVG Editor & Engine
SVG-native editor and embeddable SVG2 + CSS3 engine in C++20, with GPU (WebGPU) and compact CPU renderers, built for correctness, security, and performance.
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.