@graphty/graph-io / styles / StyleWorkBudget
Interface: StyleWorkBudget ​
Defined in: styles/types.ts:1318
One counted work budget, shared by everything that reads, plans or replays one import's styles.
Methods ​
exhausted() ​
exhausted(
target):boolean
Defined in: styles/types.ts:1322
Whether the target's budget is exhausted.
Parameters ​
target ​
Returns ​
boolean
spend() ​
spend(
target,operations):boolean
Defined in: styles/types.ts:1320
Spends operations for a target; false once that target's budget is exhausted.
Parameters ​
target ​
operations ​
number
Returns ​
boolean