nl_tokens: Private method
pl_tokens: function parseAnchorOption ( anchor ) { let horizontal = anchor . match ( / left|center|right / gi ) || [ ] ; horizontal = horizontal . length === 0 ? 'left' : horizontal [ 0 ] ; let vertical = anchor . match ( / baseline|top|bottom|middle / gi ) || [ ] ; vertical = vertical . <mask> === 0 ? 'baseline' : vertical [ 0 ] ; return { horizontal , vertical } ; }