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

Function convertAlignment

docs/tests/v2/es6/js/sanddance.js:146911–146924  ·  view source on GitHub ↗
(textAlign)

Source from the content-addressed store, hash-verified

146909}
146910
146911function convertAlignment(textAlign) {
146912 switch (textAlign) {
146913 case 'center':
146914 return 'middle';
146915
146916 case 'left':
146917 return 'start';
146918
146919 case 'right':
146920 return 'end';
146921 }
146922
146923 return 'start';
146924}
146925
146926function convertBaseline(baseline) {
146927 switch (baseline) {

Callers 1

markStagerFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected