MCPcopy
hub / github.com/canvg/canvg / getString

Method getString

src/Property.ts:129–137  ·  view source on GitHub ↗
(def?: T)

Source from the content-addressed store, hash-verified

127 }
128
129 getString(def?: T) {
130 if (typeof def === 'undefined' || this.hasValue()) {
131 return typeof this.value === 'undefined'
132 ? ''
133 : String(this.value)
134 }
135
136 return String(def)
137 }
138
139 getColor(def?: T) {
140 let color = this.getString(def)

Callers 15

splitMethod · 0.95
isPixelsMethod · 0.95
getColorMethod · 0.95
getUnitsMethod · 0.95
getDefinitionMethod · 0.95
getTextBaselineMethod · 0.95
renderMethod · 0.80
constructorMethod · 0.80
renderChildrenMethod · 0.80
setTextDataMethod · 0.80
constructorMethod · 0.80
constructorMethod · 0.80

Calls 1

hasValueMethod · 0.95

Tested by

no test coverage detected