| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| !function(e,o){"object"==typeof exports&&"undefined"!=typeof module?module.exports=o(require("echarts")):"function"==typeof define&&define.amd?define(["echarts"],o):(e="undefined"!=typeof globalThis?globalThis:e||self).lineRangeCustomSeriesInstaller=o(e.echarts)}(this,(function(e){"use strict";var o=function(o,t){var a={type:"group",children:[]},s=o.dataInsideLength;if(o.dataIndex===s-1){for(var i=o.itemPayload,l=1===o.encode.x.length,r=l?o.encode.y[0]:o.encode.x[0],d=l?o.encode.y[1]:o.encode.x[1],n=[],h="",f="",p=0;p<s;p++){var c=t.value(r,p),u=t.coord(l?[p,c]:[c,p]);n.push(u),h+=(0===p?"M":"L")+u[0]+","+u[1]+" "}for(p=s-1;p>=0;p--){var y=t.value(d,p),w=t.coord(l?[p,y]:[y,p]);n.push(w),f+=(p===s-1?"M":"L")+w[0]+","+w[1]+" "}if(i.areaStyle){var v=i.areaStyle;a.children.push({type:"polygon",shape:{points:n},style:{fill:v.color||t.visual("color"),opacity:e.zrUtil.retrieve2(v.opacity,.2),shadowBlur:v.shadowBlur,shadowColor:v.shadowColor,shadowOffsetX:v.shadowOffsetX,shadowOffsetY:v.shadowOffsetY},disableTooltip:!0})}var m=i.lineStyle||{},O={fill:"none",stroke:m.color||t.visual("color"),lineWidth:e.zrUtil.retrieve2(m.width,0),opacity:e.zrUtil.retrieve2(m.opacity,1),type:m.type,dashOffset:m.dashOffset,lineCap:m.cap,lineJoin:m.join,miterLimit:m.miterLimit,shadowBlur:m.shadowBlur,shadowColor:m.shadowColor,shadowOffsetX:m.shadowOffsetX,shadowOffsetY:m.shadowOffsetY};a.children.push({type:"path",shape:{pathData:h},style:O,disableTooltip:!0}),a.children.push({type:"path",shape:{pathData:f},style:O,disableTooltip:!0})}return a};return{install:function(e){e.registerCustomSeries("lineRange",o)}}})); |
| //# sourceMappingURL=index.min.js.map |