MCPcopy
hub / github.com/processing/p5.js / _parseArgs

Method _parseArgs

src/type/p5.Font.js:812–823  ·  view source on GitHub ↗
(width, height, options = {})

Source from the content-addressed store, hash-verified

810 }
811
812 _parseArgs(width, height, options = {}) {
813
814 if (typeof width === 'object') {
815 options = width;
816 width = height = undefined;
817 }
818 else if (typeof height === 'object') {
819 options = height;
820 height = undefined;
821 }
822 return { width, height, options };
823 }
824
825 _position(renderer, lines, bounds, width, height) {
826

Callers 6

fontBoundsMethod · 0.95
textBoundsMethod · 0.95
textToPathsMethod · 0.95
textToContoursMethod · 0.95
textToModelMethod · 0.95
_textToPathPointsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected