MCPcopy Create free account
hub / github.com/microsoft/SandDance / allowNoneForSize

Function allowNoneForSize

packages/sanddance-specs/src/size.ts:5–15  ·  view source on GitHub ↗
(specContext: SpecContext)

Source from the content-addressed store, hash-verified

3import { SpecContext } from './types';
4
5export function allowNoneForSize(specContext: SpecContext) {
6 switch (specContext.insight.totalStyle) {
7 case 'sum-strip':
8 case 'sum-strip-percent':
9 case 'sum-treemap':
10 return false;
11 default:
12 //if totalStyle is blank, count is assumed
13 return true;
14 }
15}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected