gka/d3-jetpack

add blacklist of attribute names that need to remain camelCased in sel.at()

gka opened this issue · 2 comments

gka commented

such as the infamous <feGaussianBlur stdDeviation="4">

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/stdDeviation

gka commented

also viewBox, markerWidth, and markerHeight

gka commented

based this SVG attribute reference I came up with this list which would add 856 bytes to our build. I don't think there are any camelCase attributes in HTML.

/(allowReorder|attributeName|attributeType|autoReverse|baseFrequency|baseProfile
|calcMode|clipPathUnits|contentScriptType|contentStyleType|diffuseConstant|edgeMode
|externalResourcesRequired|filterRes|filterUnits|glyphRef|gradientTransform
|gradientUnits|kernelMatrix|kernelUnitLength|keyPoints|keySplines|keyTimes
|lengthAdjust|limitingConeAngle|markerHeight|markerUnits|markerWidth|maskContentUnits
|maskUnits|numOctaves|pathLength|patternContentUnits|patternTransform|patternUnits
|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits
|referrerPolicy|refX|refY|repeatCount|repeatDur|requiredExtensions|requiredFeatures
|specularConstant|specularExponent|spreadMethod|startOffset|stdDeviation|stitchTiles
|surfaceScale|systemLanguage|tableValues|targetX|targetY|textLength|viewBox|viewTarget
|xChannelSelector|yChannelSelector|zoomAndPan)/

yes or no?