Javascript 如何公开svg模式属性?

Javascript 如何公开svg模式属性?,javascript,html,css,svg,d3.js,Javascript,Html,Css,Svg,D3.js,假设我们有一个复杂的SVG模式用于对象填充: <svg width=650 height=680> <defs> <radialGradient id='rg' cx='50%' cy='50%' r='50%' fx='50%' fy='50%'> <stop offset='10%' style='stop-color:#3d3d3d;'/> <stop offse

假设我们有一个复杂的SVG模式用于对象填充:

<svg width=650 height=680>
    <defs> 
        <radialGradient id='rg' cx='50%' cy='50%' r='50%' fx='50%' fy='50%'>
            <stop offset='10%' style='stop-color:#3d3d3d;'/>
            <stop offset='80%' style='stop-color:#3d3d3d;'/>
            <stop offset='100%' style='stop-color:#fa9fb5; stop-opacity:1;' /> <!-- mutate stop-color per instance/application -->
        </radialGradient>
        <pattern id="texture" patternUnits="userSpaceOnUse"  width="5" height="5" viewBox="0 0 5 5">
            <rect width='5' height='5' fill='url(#rg)'/>
        </pattern>
    </defs>
</svg>
所以,当我们使用模式时,我们可以将其设置为相似的

fill: url(#texture-jeans?ExposedPatternValue=#333&OtherParam=0.5);
我想知道SVG(1.1/1.2/2.0)中是否有类似的东西,或者我们一直使用静态填充模式模型

fill: url(#texture-jeans?ExposedPatternValue=#333&OtherParam=0.5);