({ legendRenderType, styleField, simpleStyle, defaultSetting, custom, interpolateInfo, shape })
| 1164 | } |
| 1165 | |
| 1166 | _parseUniqueStyle({ legendRenderType, styleField, simpleStyle, defaultSetting, custom, interpolateInfo, shape }) { |
| 1167 | const styleGroup = custom.map((c) => { |
| 1168 | const itemStyle = this._getSettingStyle(styleField, c.value, simpleStyle); |
| 1169 | const resData = this._parseLegendtyle({ legendRenderType, customValue: itemStyle }); |
| 1170 | return { |
| 1171 | fieldValue: c.key, |
| 1172 | style: { |
| 1173 | ...resData, |
| 1174 | shape |
| 1175 | } |
| 1176 | }; |
| 1177 | }); |
| 1178 | if (!interpolateInfo.type || interpolateInfo.type === 'custom') { |
| 1179 | const resData = this._parseLegendtyle({ legendRenderType, customValue: defaultSetting }); |
| 1180 | styleGroup.push({ |
| 1181 | fieldValue: null, |
| 1182 | style: { |
| 1183 | ...resData, |
| 1184 | shape |
| 1185 | } |
| 1186 | }); |
| 1187 | } |
| 1188 | return styleGroup; |
| 1189 | } |
| 1190 | |
| 1191 | _parseRangeStyle({ legendRenderType, styleField, simpleStyle, defaultSetting, custom, shape }) { |
| 1192 | const styleGroup = custom.map((c) => { |
no test coverage detected