{"version":3,"file":"component.js","sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 0afd93223f0fee63cab9","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/util/index.js","webpack:///./src/util.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/each.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-array.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/core/shape.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-function.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-type.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-nil.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-array-like.js","webpack:///./src/const.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-number.js","webpack:///./src/guide/base.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-string.js","webpack:///./node_modules/_d3-color@1.4.0@d3-color/src/index.js","webpack:///./src/axis/base.js","webpack:///./src/component.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-plain-object.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/mix.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/to-string.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/util/format.js","webpack:///./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/color.js","webpack:///./node_modules/_@antv_attr@0.1.2@@antv/attr/lib/base.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/index.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/to-array.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/math/line.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/math/arc.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/util/arrow.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/util/path-segment.js","webpack:///./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/number.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/array/contains.js","webpack:///./src/base.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-object.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/clone.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/deep-mix.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-object-like.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/is-equal.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/math/clamp.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/matrix/mat3.js","webpack:///./node_modules/_@antv_gl-matrix@2.7.1@@antv/gl-matrix/lib/gl-matrix/common.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/util/inside.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/math/cubic.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/marker.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/util/path.js","webpack:///./node_modules/_d3-timer@1.0.10@d3-timer/src/timer.js","webpack:///./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/value.js","webpack:///./node_modules/_d3-color@1.4.0@d3-color/src/color.js","webpack:///./node_modules/_d3-color@1.4.0@d3-color/src/define.js","webpack:///./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/basis.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/filter.js","webpack:///./src/legend/continuous.js","webpack:///./src/tooltip/base.js","webpack:///./node_modules/_wolfy87-eventemitter@5.1.0@wolfy87-eventemitter/EventEmitter.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/util/common.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-boolean.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/is-empty.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/get-type.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-prototype.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/unique-id.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/string/upper-first.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/extend.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/augment.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/array/pull.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/math/is-number-equal.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/math/to-radian.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/math/to-degree.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/math/mod.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/dom/create-dom.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/dom/modify-css.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/dom/request-animation-frame.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/matrix/vec2.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/matrix/vec3.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/matrix/transform.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/event.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/core/group.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/core/element.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/math/quadratic.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/math/ellipse.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/arc.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/circle.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/dom.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/ellipse.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/fan.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/image.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/line.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/path.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/polygon.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/polyline.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/rect.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/text.js","webpack:///./node_modules/_d3-color@1.4.0@d3-color/src/math.js","webpack:///./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/rgb.js","webpack:///./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/basisClosed.js","webpack:///./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/constant.js","webpack:///./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/array.js","webpack:///./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/date.js","webpack:///./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/object.js","webpack:///./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/string.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/object/is-match.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/object/keys.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/array/pull-at.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/array/uniq.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/math/to-integer.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/object/has.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/object/values.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/path/rect-path.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/path/parse-path-array.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/path/path2curve.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/path/path2absolute.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/path/parse-path-string.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/path/catmull-rom2bezier.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/string/lower-case.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/string/upper-case.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/group-to-map.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/group-by.js","webpack:///./src/axis/grid.js","webpack:///./src/label/base.js","webpack:///./src/label/utils/greedy.js","webpack:///./src/guide/util/helper.js","webpack:///./src/legend/category.js","webpack:///./src/legend/base.js","webpack:///./src/legend/cat-html.js","webpack:///./node_modules/_@antv_attr@0.1.2@@antv/attr/lib/color-util.js","webpack:///./src/tooltip/crosshair.js","webpack:///./src/tooltip/mixin/position.js","webpack:///./src/tooltip/mixin/marker-group.js","webpack:///./src/tooltip/canvas.js","webpack:///./src/index.js","webpack:///./src/axis/index.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/canvas.js","webpack:///./node_modules/_@antv_gl-matrix@2.7.1@@antv/gl-matrix/lib/gl-matrix/mat3.js","webpack:///./node_modules/_@antv_gl-matrix@2.7.1@@antv/gl-matrix/lib/gl-matrix/vec2.js","webpack:///./node_modules/_@antv_gl-matrix@2.7.1@@antv/gl-matrix/lib/gl-matrix/vec3.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/core/mixin/attribute.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/core/mixin/transform.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/core/mixin/animation.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/index.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/core/mixin/isPointInPath.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/core/mixin/timeline.js","webpack:///./node_modules/_d3-timer@1.0.10@d3-timer/src/index.js","webpack:///./node_modules/_d3-timer@1.0.10@d3-timer/src/timeout.js","webpack:///./node_modules/_d3-timer@1.0.10@d3-timer/src/interval.js","webpack:///./node_modules/_d3-ease@1.0.6@d3-ease/src/index.js","webpack:///./node_modules/_d3-ease@1.0.6@d3-ease/src/linear.js","webpack:///./node_modules/_d3-ease@1.0.6@d3-ease/src/quad.js","webpack:///./node_modules/_d3-ease@1.0.6@d3-ease/src/cubic.js","webpack:///./node_modules/_d3-ease@1.0.6@d3-ease/src/poly.js","webpack:///./node_modules/_d3-ease@1.0.6@d3-ease/src/sin.js","webpack:///./node_modules/_d3-ease@1.0.6@d3-ease/src/exp.js","webpack:///./node_modules/_d3-ease@1.0.6@d3-ease/src/circle.js","webpack:///./node_modules/_d3-ease@1.0.6@d3-ease/src/bounce.js","webpack:///./node_modules/_d3-ease@1.0.6@d3-ease/src/back.js","webpack:///./node_modules/_d3-ease@1.0.6@d3-ease/src/elastic.js","webpack:///./node_modules/_d3-interpolate@1.1.6@d3-interpolate/index.js","webpack:///./node_modules/_d3-color@1.4.0@d3-color/src/lab.js","webpack:///./node_modules/_d3-color@1.4.0@d3-color/src/cubehelix.js","webpack:///./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/round.js","webpack:///./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/transform/index.js","webpack:///./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/transform/parse.js","webpack:///./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/transform/decompose.js","webpack:///./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/zoom.js","webpack:///./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/hsl.js","webpack:///./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/lab.js","webpack:///./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/hcl.js","webpack:///./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/cubehelix.js","webpack:///./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/quantize.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/renderers/index.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/renderers/canvas/index.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/renderers/canvas/painter.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/renderers/canvas/util.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/renderers/svg/index.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/renderers/svg/painter.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/renderers/svg/defs.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/renderers/svg/defs/gradient.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/renderers/svg/defs/shadow.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/renderers/svg/defs/arrow.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/renderers/svg/defs/clip.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/renderers/svg/defs/pattern.js","webpack:///./node_modules/_@antv_g@3.3.6@@antv/g/lib/renderers/svg/getShape.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/index.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/dom/index.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/dom/add-event-listener.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/dom/get-bounding-client-rect.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/dom/get-height.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/dom/get-outer-height.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/dom/get-outer-width.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/dom/get-ratio.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/dom/get-style.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/dom/get-width.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/array/index.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/array/difference.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/array/find.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/array/first-value.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/array/flatten.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/array/flatten-deep.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/array/get-range.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/array/merge.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/array/reduce.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/array/remove.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/array/sort-by.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/array/union.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/array/values-of-key.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/event/index.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/event/get-wrap-behavior.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/event/wrap-behavior.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/format/index.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/format/number2color.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/format/parse-path.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/format/parse-radius.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/math/index.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/math/fixed-base.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/math/is-decimal.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/math/is-even.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/math/is-integer.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/math/is-negative.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/math/is-odd.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/math/is-positive.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/math/max-by.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/math/min-by.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/matrix/index.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/object/index.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/object/for-in.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/object/has-key.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/object/has-value.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/path/index.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/path/path-intersection.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/path/fill-path.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/path/fill-path-by-diff.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/path/is-segment-equal.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/path/format-path.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/string/index.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/string/lc.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/string/lower-first.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/string/substitute.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/string/uc.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/index.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-null.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-undefined.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-reg-exp.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-date.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-arguments.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-error.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/debounce.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/group.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/index-of.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/is-equal-with.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/map.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/pick.js","webpack:///./node_modules/_@antv_util@1.3.1@@antv/util/lib/throttle.js","webpack:///./src/label/utils/position-adjust.js","webpack:///./src/label/utils/spiral-adjust.js","webpack:///./src/label/utils/bbox-adjust.js","webpack:///./src/axis/circle.js","webpack:///./src/axis/helix.js","webpack:///./src/axis/line.js","webpack:///./src/axis/polyline.js","webpack:///./src/guide/index.js","webpack:///./src/guide/arc.js","webpack:///./src/guide/data-marker.js","webpack:///./src/guide/data-region.js","webpack:///./src/guide/html.js","webpack:///./src/guide/image.js","webpack:///./src/guide/line.js","webpack:///./src/guide/region.js","webpack:///./src/guide/text.js","webpack:///./src/label/index.js","webpack:///./src/legend/index.js","webpack:///./src/legend/cat-page-html.js","webpack:///./src/legend/color.js","webpack:///./node_modules/_@antv_attr@0.1.2@@antv/attr/lib/index.js","webpack:///./node_modules/_@antv_attr@0.1.2@@antv/attr/lib/position.js","webpack:///./node_modules/_@antv_attr@0.1.2@@antv/attr/lib/color.js","webpack:///./node_modules/_@antv_attr@0.1.2@@antv/attr/lib/shape.js","webpack:///./node_modules/_@antv_attr@0.1.2@@antv/attr/lib/size.js","webpack:///./node_modules/_@antv_attr@0.1.2@@antv/attr/lib/opacity.js","webpack:///./src/legend/slider.js","webpack:///./src/legend/size.js","webpack:///./src/legend/size-circle.js","webpack:///./src/tooltip/index.js","webpack:///./src/tooltip/html.js","webpack:///./src/tooltip/theme.js","webpack:///./src/tooltip/mini.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"component\"] = factory();\n\telse\n\t\troot[\"component\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 126);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 0afd93223f0fee63cab9","var CommonUtil = require('./common');\n\nvar Util = {};\nCommonUtil.merge(Util, CommonUtil, {\n mixin: function mixin(c, mixins) {\n var Param = c.CFG ? 'CFG' : 'ATTRS';\n\n if (c && mixins) {\n c._mixins = mixins;\n c[Param] = c[Param] || {};\n var temp = {};\n Util.each(mixins, function (mixin) {\n Util.augment(c, mixin);\n var attrs = mixin[Param];\n\n if (attrs) {\n Util.merge(temp, attrs);\n }\n });\n c[Param] = Util.merge(temp, c[Param]);\n }\n }\n});\nmodule.exports = Util;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/util/index.js\n// module id = 0\n// module chunks = 0","/**\n * @fileOverview The util method based on the lodash.\n * @author dxq613@gmail.com\n */\nvar G = require('@antv/g/lib');\n\nvar Utils = require('@antv/util/lib');\n\nvar Util = Utils.mix({\n assign: Utils.mix,\n isFinite: isFinite,\n isNaN: isNaN,\n Group: G.Group,\n Event: G.Event\n}, Utils);\nmodule.exports = Util;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/util.js\n// module id = 1\n// module chunks = 0","var isObject = require('./type/is-object');\n\nvar isArray = require('./type/is-array');\n\nvar each = function each(elements, func) {\n if (!elements) {\n return;\n }\n\n var rst = void 0;\n\n if (isArray(elements)) {\n for (var i = 0, len = elements.length; i < len; i++) {\n rst = func(elements[i], i);\n\n if (rst === false) {\n break;\n }\n }\n } else if (isObject(elements)) {\n for (var k in elements) {\n if (elements.hasOwnProperty(k)) {\n rst = func(elements[k], k);\n\n if (rst === false) {\n break;\n }\n }\n }\n }\n};\n\nmodule.exports = each;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/each.js\n// module id = 2\n// module chunks = 0","var isType = require('./is-type');\n\nvar isArray = Array.isArray ? Array.isArray : function (value) {\n return isType(value, 'Array');\n};\nmodule.exports = isArray;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-array.js\n// module id = 3\n// module chunks = 0","var Util = require('../util/index');\n\nvar isPointInPath = require('./mixin/isPointInPath');\n\nvar Element = require('./element');\n\nvar Inside = require('../shapes/util/inside');\n\nvar Shape = function Shape(cfg) {\n Shape.superclass.constructor.call(this, cfg);\n};\n\nShape.ATTRS = {};\nUtil.extend(Shape, Element);\nvar ARRAY_ATTRS = {\n matrix: 'matrix',\n path: 'path',\n points: 'points',\n lineDash: 'lineDash'\n};\n\nfunction _cloneArrayAttr(arr) {\n var result = [];\n\n for (var i = 0; i < arr.length; i++) {\n if (Util.isArray(arr[i])) {\n result.push([].concat(arr[i]));\n } else {\n result.push(arr[i]);\n }\n }\n\n return result;\n}\n\nUtil.augment(Shape, isPointInPath, {\n isShape: true,\n drawInner: function drawInner(context) {\n var self = this;\n var attrs = self._attrs;\n self.createPath(context);\n var originOpacity = context.globalAlpha;\n\n if (self.hasFill()) {\n var fillOpacity = attrs.fillOpacity;\n\n if (!Util.isNil(fillOpacity) && fillOpacity !== 1) {\n context.globalAlpha = fillOpacity;\n context.fill();\n context.globalAlpha = originOpacity;\n } else {\n context.fill();\n }\n }\n\n if (self.hasStroke()) {\n var lineWidth = self._attrs.lineWidth;\n\n if (lineWidth > 0) {\n var strokeOpacity = attrs.strokeOpacity;\n\n if (!Util.isNil(strokeOpacity) && strokeOpacity !== 1) {\n context.globalAlpha = strokeOpacity;\n }\n\n context.stroke();\n }\n }\n\n self.afterPath(context);\n },\n afterPath: function afterPath() {},\n\n /**\n * 击中图形时是否进行包围盒判断\n * @return {Boolean} [description]\n */\n isHitBox: function isHitBox() {\n return true;\n },\n\n /**\n * 节点是否能够被击中\n * @param {Number} x x坐标\n * @param {Number} y y坐标\n * @return {Boolean} 是否在图形中\n */\n isHit: function isHit(x, y) {\n var self = this;\n var v = [x, y, 1];\n self.invert(v); // canvas\n\n if (self.isHitBox()) {\n var box = self.getBBox();\n\n if (box && !Inside.box(box.minX, box.maxX, box.minY, box.maxY, v[0], v[1])) {\n return false;\n }\n }\n\n var clip = self._attrs.clip;\n\n if (clip) {\n clip.invert(v, self.get('canvas'));\n\n if (clip.isPointInPath(v[0], v[1])) {\n return self.isPointInPath(v[0], v[1]);\n }\n } else {\n return self.isPointInPath(v[0], v[1]);\n }\n\n return false;\n },\n\n /**\n * @protected\n * 计算包围盒\n * @return {Object} 包围盒\n */\n calculateBox: function calculateBox() {\n return null;\n },\n // 获取拾取时线的宽度,需要考虑附加的线的宽度\n getHitLineWidth: function getHitLineWidth() {\n var attrs = this._attrs; // if (!attrs.stroke) {\n // return 0;\n // }\n\n var lineAppendWidth = attrs.lineAppendWidth || 0;\n var lineWidth = attrs.lineWidth || 0;\n return lineWidth + lineAppendWidth;\n },\n // 清除当前的矩阵\n clearTotalMatrix: function clearTotalMatrix() {\n this._cfg.totalMatrix = null;\n this._cfg.region = null;\n },\n clearBBox: function clearBBox() {\n this._cfg.box = null;\n this._cfg.region = null;\n },\n getBBox: function getBBox() {\n var box = this._cfg.box; // 延迟计算\n\n if (!box) {\n box = this.calculateBox();\n\n if (box) {\n box.x = box.minX;\n box.y = box.minY;\n box.width = box.maxX - box.minX;\n box.height = box.maxY - box.minY;\n }\n\n this._cfg.box = box;\n }\n\n return box;\n },\n clone: function clone() {\n var self = this;\n var clone = null;\n var _attrs = self._attrs;\n var attrs = {};\n Util.each(_attrs, function (i, k) {\n if (ARRAY_ATTRS[k] && Util.isArray(_attrs[k])) {\n attrs[k] = _cloneArrayAttr(_attrs[k]);\n } else {\n attrs[k] = _attrs[k];\n }\n });\n clone = new self.constructor({\n attrs: attrs\n }); // zIndex也是绘图属性,但是在cfg中,特殊处理\n\n clone._cfg.zIndex = self._cfg.zIndex;\n return clone;\n }\n});\nmodule.exports = Shape;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/core/shape.js\n// module id = 4\n// module chunks = 0","/**\n * 是否为函数\n * @param {*} fn 对象\n * @return {Boolean} 是否函数\n */\nvar isType = require('./is-type');\n\nvar isFunction = function isFunction(value) {\n return isType(value, 'Function');\n};\n\nmodule.exports = isFunction;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-function.js\n// module id = 5\n// module chunks = 0","var toString = {}.toString;\n\nvar isType = function isType(value, type) {\n return toString.call(value) === '[object ' + type + ']';\n};\n\nmodule.exports = isType;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-type.js\n// module id = 6\n// module chunks = 0","// isFinite,\nvar isNil = function isNil(value) {\n /**\n * isNil(null) => true\n * isNil() => true\n */\n return value === null || value === undefined;\n};\n\nmodule.exports = isNil;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-nil.js\n// module id = 7\n// module chunks = 0","var isArrayLike = function isArrayLike(value) {\n /**\n * isArrayLike([1, 2, 3]) => true\n * isArrayLike(document.body.children) => true\n * isArrayLike('abc') => true\n * isArrayLike(Function) => false\n */\n return value !== null && typeof value !== 'function' && isFinite(value.length);\n};\n\nmodule.exports = isArrayLike;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-array-like.js\n// module id = 8\n// module chunks = 0","module.exports = {\n FONT_FAMILY: '\"-apple-system\", BlinkMacSystemFont, \"Segoe UI\", Roboto,\"Helvetica Neue\", Helvetica, \"PingFang SC\", \"Hiragino Sans GB\", \"Microsoft YaHei\",SimSun, \"sans-serif\"'\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/const.js\n// module id = 9\n// module chunks = 0","/**\n * 判断是否数字\n * @return {Boolean} 是否数字\n */\nvar isType = require('./is-type');\n\nvar isNumber = function isNumber(value) {\n return isType(value, 'Number');\n};\n\nmodule.exports = isNumber;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-number.js\n// module id = 10\n// module chunks = 0","function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nvar Util = require('../util');\n\nvar Helper = require('./util/helper');\n\nvar Component = require('../component');\n\nvar KEYWORDS = ['min', 'max', 'median', 'start', 'end'];\n\nvar Guide = /*#__PURE__*/function (_Component) {\n _inheritsLoose(Guide, _Component);\n\n var _super = _createSuper(Guide);\n\n function Guide() {\n return _Component.apply(this, arguments) || this;\n }\n\n var _proto = Guide.prototype;\n\n _proto.getDefaultCfg = function getDefaultCfg() {\n var cfg = _Component.prototype.getDefaultCfg.call(this);\n\n return Util.mix({}, cfg, {\n xScales: null,\n yScales: null,\n el: null\n });\n };\n\n _proto.render = function render() {}\n /**\n * clear container\n * @override\n */\n ;\n\n _proto.clear = function clear() {\n var self = this;\n var el = self.get('el');\n el && el.remove();\n this.set('el', null);\n };\n\n _proto.destroy = function destroy() {\n this.clear();\n\n _Component.prototype.destroy.call(this);\n }\n /**\n * show or hide\n * @protected\n * @param {Boolean} visible true means show, false means hide\n */\n ;\n\n _proto.changeVisible = function changeVisible(visible) {\n var self = this;\n self.set('visible', visible);\n var el = self.get('el');\n if (!el) return;\n\n if (el.set) {\n el.set('visible', visible);\n } else {\n el.style.display = visible ? '' : 'none';\n }\n }\n /**\n * calculate the canvas coordinate value\n * @protected\n * @param {Coordinate} coord the instance of Coordinate class\n * @param {Object | Array | Function} position the value need to convert\n * @return {Object} return the result\n */\n ;\n\n _proto.parsePoint = function parsePoint(coord, position) {\n var self = this;\n var xScales = self.get('xScales');\n var yScales = self.get('yScales');\n\n if (Util.isFunction(position)) {\n position = position(xScales, yScales);\n }\n\n var x;\n var y; // 如果数据格式是 ['50%', '50%'] 的格式\n\n if (Util.isArray(position) && Util.isString(position[0]) && position[0].indexOf('%') !== -1) {\n return this._parsePercentPoint(coord, position);\n }\n\n if (Util.isArray(position)) {\n // Array,suuport for mixing of keyword, percent and value\n x = self._getNormalizedValue(position[0], Helper.getFirstScale(xScales));\n y = self._getNormalizedValue(position[1], Helper.getFirstScale(yScales));\n } else {\n for (var field in position) {\n var value = position[field];\n\n if (xScales[field]) {\n x = self._getNormalizedValue(value, xScales[field]);\n }\n\n if (yScales[field]) {\n y = self._getNormalizedValue(value, yScales[field], 'y');\n }\n }\n }\n\n if (!Util.isNil(x) && !Util.isNil(y) && !isNaN(x) && !isNaN(y)) {\n return coord.convert({\n x: x,\n y: y\n });\n }\n\n return null;\n }\n /**\n * Normalized the value\n * @param {String | Number} val param\n * @param {Scale} scale the instance of Scale\n * @return {Number} return the normalized value\n */\n ;\n\n _proto._getNormalizedValue = function _getNormalizedValue(val, scale) {\n var result;\n\n if (Util.indexOf(KEYWORDS, val) !== -1) {\n // keyword\n var scaleValue;\n\n if (val === 'start') {\n // the start of coordinate\n result = 0;\n } else if (val === 'end') {\n result = 1;\n } else if (val === 'median') {\n scaleValue = scale.isCategory ? (scale.values.length - 1) / 2 : (scale.min + scale.max) / 2;\n result = scale.scale(scaleValue);\n } else {\n if (scale.isCategory) {\n scaleValue = val === 'min' ? 0 : scale.values.length - 1;\n } else {\n scaleValue = scale[val];\n }\n\n result = scale.scale(scaleValue);\n }\n } else {\n // 数值\n result = scale.scale(val);\n }\n\n return result;\n };\n\n _proto._parsePercentPoint = function _parsePercentPoint(coord, position) {\n var xPercent = parseFloat(position[0]) / 100;\n var yPercent = parseFloat(position[1]) / 100;\n var start = coord.start,\n end = coord.end;\n var topLeft = {\n x: Math.min(start.x, end.x),\n y: Math.min(start.y, end.y)\n };\n var x = coord.width * xPercent + topLeft.x;\n var y = coord.height * yPercent + topLeft.y;\n return {\n x: x,\n y: y\n };\n };\n\n return Guide;\n}(Component);\n\nmodule.exports = Guide;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/guide/base.js\n// module id = 11\n// module chunks = 0","var isType = require('./is-type');\n\nvar isString = function isString(str) {\n return isType(str, 'String');\n};\n\nmodule.exports = isString;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-string.js\n// module id = 12\n// module chunks = 0","export { default as color, rgb, hsl } from \"./color.js\";\nexport { default as lab, hcl, lch, gray } from \"./lab.js\";\nexport { default as cubehelix } from \"./cubehelix.js\";\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_d3-color@1.4.0@d3-color/src/index.js\n// module id = 13\n// module chunks = 0","function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nvar Component = require('../component');\n\nvar Util = require('../util');\n\nvar Grid = require('./grid');\n\nvar Label = require('../label/base');\n\nvar _require = require('../const'),\n FONT_FAMILY = _require.FONT_FAMILY;\n\nvar Axis = /*#__PURE__*/function (_Component) {\n _inheritsLoose(Axis, _Component);\n\n var _super = _createSuper(Axis);\n\n function Axis() {\n return _Component.apply(this, arguments) || this;\n }\n\n var _proto = Axis.prototype;\n\n _proto.getDefaultCfg = function getDefaultCfg() {\n var cfg = _Component.prototype.getDefaultCfg.call(this);\n\n return Util.mix({}, cfg, {\n /**\n * 用于动画,唯一标识的 id\n * @type {[type]}\n */\n _id: null,\n zIndex: 4,\n\n /**\n * 坐标轴上的坐标点\n * @type {Array}\n */\n ticks: null,\n\n /**\n * 坐标轴线的配置信息,如果设置成null,则不显示轴线\n * @type {Object}\n */\n line: null,\n\n /**\n * 坐标轴刻度线的配置,如果设置成null,则不显示刻度线\n * @type {Object}\n */\n tickLine: null,\n\n /**\n * 次刻度线个数配置\n * @type {Number}\n */\n subTickCount: 0,\n\n /**\n * 次刻度线样式配置\n * @type {Object}\n */\n subTickLine: null,\n\n /**\n * 网格线配置,如果值为 null,则不显示\n * @type {Object}\n */\n grid: null,\n\n /**\n * 坐标轴文本配置\n * @type {Object}\n */\n label: {\n offset: 0,\n offsetX: 0,\n offsetY: 0,\n textStyle: {},\n // 坐标轴文本样式\n autoRotate: true,\n autoHide: false,\n formatter: null // 坐标轴文本格式化回调函数\n\n },\n labelItems: [],\n\n /**\n * 坐标轴标题配置\n * @type {Object}\n */\n title: {\n autoRotate: true,\n // 文本是否自动旋转\n textStyle: {} // 坐标轴标题样式\n\n },\n autoPaint: true\n });\n };\n\n _proto.beforeRender = function beforeRender() {\n var self = this;\n var title = self.get('title');\n var label = self.get('label');\n var grid = self.get('grid');\n\n if (title) {\n self.set('title', Util.deepMix({\n autoRotate: true,\n textStyle: {\n fontSize: 12,\n fill: '#ccc',\n textBaseline: 'middle',\n fontFamily: FONT_FAMILY,\n textAlign: 'center'\n },\n offset: 48\n }, title));\n }\n\n if (label) {\n self.set('label', Util.deepMix({\n autoRotate: true,\n autoHide: true,\n textStyle: {\n fontSize: 12,\n fill: '#ccc',\n textBaseline: 'middle',\n fontFamily: FONT_FAMILY\n },\n offset: 10\n }, label));\n }\n\n if (grid) {\n self.set('grid', Util.deepMix({\n lineStyle: {\n lineWidth: 1,\n stroke: '#C0D0E0'\n }\n }, grid));\n }\n };\n\n _proto.render = function render() {\n var self = this;\n self.beforeRender();\n var labelCfg = self.get('label');\n\n if (labelCfg) {\n self.renderLabels();\n }\n\n if (self.get('autoPaint')) {\n self.paint();\n }\n\n if (!Util.isNil(self.get('title'))) {\n self.renderTitle();\n }\n\n self.get('group').sort();\n };\n\n _proto.renderLabels = function renderLabels() {\n var self = this;\n var group = self.get('group');\n var labelCfg = self.get('label');\n var labelRenderer = new Label({\n name: 'axis-label'\n });\n self.set('labelRenderer', labelRenderer);\n labelRenderer.set('labelCfg', labelCfg);\n var cfgs2copy = ['formatter', 'htmlTemplate', 'labelLine', 'textStyle', 'useHtml'];\n Util.each(cfgs2copy, function (cfg) {\n if (labelCfg[cfg]) {\n labelRenderer.set(cfg, labelCfg[cfg]);\n }\n });\n labelRenderer.set('coord', self.get('coord'));\n labelRenderer.set('group', group.addGroup());\n labelRenderer.set('canvas', self.get('canvas'));\n };\n\n _proto._parseTicks = function _parseTicks(ticks) {\n ticks = ticks || [];\n var ticksLength = ticks.length;\n\n for (var i = 0; i < ticksLength; i++) {\n var item = ticks[i];\n\n if (!Util.isObject(item)) {\n ticks[i] = this.parseTick(item, i, ticksLength);\n }\n }\n\n this.set('ticks', ticks);\n return ticks;\n };\n\n _proto._addTickItem = function _addTickItem(index, point, length, type) {\n if (type === void 0) {\n type = '';\n }\n\n var tickItems = this.get('tickItems');\n var subTickItems = this.get('subTickItems');\n var end = this.getTickEnd(point, length, index);\n var cfg = {\n x1: point.x,\n y1: point.y,\n x2: end.x,\n y2: end.y\n };\n\n if (!tickItems) {\n tickItems = [];\n }\n\n if (!subTickItems) {\n subTickItems = [];\n }\n\n if (type === 'sub') {\n subTickItems.push(cfg);\n } else {\n tickItems.push(cfg);\n }\n\n this.set('tickItems', tickItems);\n this.set('subTickItems', subTickItems);\n };\n\n _proto._renderLine = function _renderLine() {\n var self = this;\n var lineCfg = self.get('line');\n var path;\n\n if (lineCfg) {\n path = self.getLinePath();\n lineCfg = Util.mix({\n path: path\n }, lineCfg);\n var group = self.get('group');\n var lineShape = group.addShape('path', {\n attrs: lineCfg\n });\n lineShape.name = 'axis-line';\n self.get('appendInfo') && lineShape.setSilent('appendInfo', self.get('appendInfo'));\n self.set('lineShape', lineShape);\n }\n };\n\n _proto._processCatTicks = function _processCatTicks() {\n var self = this;\n var labelCfg = self.get('label');\n var tickLineCfg = self.get('tickLine');\n var ticks = self.get('ticks');\n ticks = self._parseTicks(ticks);\n\n var new_ticks = self._getNormalizedTicks(ticks);\n\n for (var i = 0; i < new_ticks.length; i += 3) {\n var p = self.getTickPoint(new_ticks[i]);\n var p0 = self.getTickPoint(new_ticks[i + 1]);\n var p1 = self.getTickPoint(new_ticks[i + 2]);\n var index = Math.floor(i / 3);\n var tick = ticks[index];\n\n if (tickLineCfg) {\n if (index === 0) {\n self._addTickItem(index, p0, tickLineCfg.length);\n }\n\n self._addTickItem(index, p1, tickLineCfg.length);\n }\n\n if (labelCfg) {\n self.addLabel(tick, p, index);\n }\n }\n };\n\n _proto._getNormalizedTicks = function _getNormalizedTicks(ticks) {\n var tickSeg = 0;\n\n if (ticks.length > 1) {\n tickSeg = (ticks[1].value - ticks[0].value) / 2;\n }\n\n var points = [];\n\n for (var i = 0; i < ticks.length; i++) {\n var tick = ticks[i];\n var p = tick.value;\n var p0 = tick.value - tickSeg;\n var p1 = tick.value + tickSeg;\n points.push(p, p0, p1);\n }\n\n var range = Util.arrayUtil.getRange(points);\n return points.map(function (p) {\n var norm = (p - range.min) / (range.max - range.min);\n return norm;\n });\n };\n\n _proto.addLabel = function addLabel(tick, point, index) {\n var self = this;\n var labelItems = self.get('labelItems');\n var labelRenderer = self.get('labelRenderer');\n var label = Util.deepMix({}, self.get('label'));\n var rst;\n\n if (labelRenderer) {\n var offset = self.get('_labelOffset');\n\n if (!Util.isNil(self.get('label').offset)) {\n offset = self.get('label').offset;\n }\n\n var vector = self.getSideVector(offset, point, index);\n point = {\n x: point.x + vector[0] + label.offsetX,\n y: point.y + vector[1] + label.offsetY\n };\n label.text = tick.text;\n label.x = point.x;\n label.y = point.y;\n label.point = point;\n label.textAlign = self.getTextAnchor(vector);\n\n if (point.rotate) {\n label.rotate = point.rotate;\n }\n\n labelItems.push(label);\n }\n\n return rst;\n };\n\n _proto._processTicks = function _processTicks() {\n var self = this;\n var labelCfg = self.get('label');\n var subTickCount = self.get('subTickCount');\n var tickLineCfg = self.get('tickLine');\n var ticks = self.get('ticks');\n ticks = self._parseTicks(ticks);\n Util.each(ticks, function (tick, index) {\n var tickPoint = self.getTickPoint(tick.value, index);\n\n if (tickLineCfg) {\n self._addTickItem(index, tickPoint, tickLineCfg.length);\n }\n\n if (labelCfg) {\n self.addLabel(tick, tickPoint, index);\n }\n });\n\n if (subTickCount) {\n // 如果有设置次级分点,添加次级tick\n var subTickLineCfg = self.get('subTickLine');\n Util.each(ticks, function (tick, index) {\n if (index > 0) {\n var diff = tick.value - ticks[index - 1].value;\n diff = diff / (self.get('subTickCount') + 1);\n\n for (var i = 1; i <= subTickCount; i++) {\n var subTick = {\n text: '',\n value: index ? ticks[index - 1].value + i * diff : i * diff\n };\n var tickPoint = self.getTickPoint(subTick.value);\n var subTickLength = void 0;\n\n if (subTickLineCfg && subTickLineCfg.length) {\n subTickLength = subTickLineCfg.length;\n } else {\n subTickLength = parseInt(tickLineCfg.length * (3 / 5), 10);\n }\n\n self._addTickItem(i - 1, tickPoint, subTickLength, 'sub');\n }\n }\n });\n }\n };\n\n _proto._addTickLine = function _addTickLine(ticks, lineCfg) {\n var self = this;\n var cfg = Util.mix({}, lineCfg);\n var path = [];\n Util.each(ticks, function (item) {\n path.push(['M', item.x1, item.y1]);\n path.push(['L', item.x2, item.y2]);\n });\n delete cfg.length;\n cfg.path = path;\n var group = self.get('group');\n var tickShape = group.addShape('path', {\n attrs: cfg\n });\n tickShape.name = 'axis-ticks';\n tickShape._id = self.get('_id') + '-ticks';\n tickShape.set('coord', self.get('coord'));\n self.get('appendInfo') && tickShape.setSilent('appendInfo', self.get('appendInfo'));\n };\n\n _proto._renderTicks = function _renderTicks() {\n var self = this;\n var tickItems = self.get('tickItems');\n var subTickItems = self.get('subTickItems');\n\n if (!Util.isEmpty(tickItems)) {\n var tickLineCfg = self.get('tickLine');\n\n self._addTickLine(tickItems, tickLineCfg);\n }\n\n if (!Util.isEmpty(subTickItems)) {\n var subTickLineCfg = self.get('subTickLine') || self.get('tickLine');\n\n self._addTickLine(subTickItems, subTickLineCfg);\n }\n };\n\n _proto._renderGrid = function _renderGrid() {\n var grid = this.get('grid');\n\n if (!grid) {\n return;\n }\n\n grid.coord = this.get('coord');\n grid.appendInfo = this.get('appendInfo');\n var group = this.get('group');\n this.set('gridGroup', group.addGroup(Grid, grid));\n };\n\n _proto._renderLabels = function _renderLabels() {\n var self = this;\n var labelRenderer = self.get('labelRenderer');\n var labelItems = self.get('labelItems');\n\n if (labelRenderer) {\n labelRenderer.set('items', labelItems);\n\n labelRenderer._dryDraw();\n }\n };\n\n _proto.paint = function paint() {\n var self = this;\n var tickLineCfg = self.get('tickLine');\n var alignWithLabel = true;\n\n if (tickLineCfg && tickLineCfg.hasOwnProperty('alignWithLabel')) {\n alignWithLabel = tickLineCfg.alignWithLabel;\n }\n\n self._renderLine();\n\n var type = self.get('type');\n var isCat = type === 'cat' || type === 'timeCat';\n\n if (isCat && alignWithLabel === false) {\n self._processCatTicks();\n } else {\n self._processTicks();\n }\n\n self._renderTicks();\n\n self._renderGrid();\n\n self._renderLabels();\n\n var labelCfg = this.get('label');\n\n if (labelCfg && labelCfg.autoRotate) {\n self.autoRotateLabels();\n }\n\n if (labelCfg && labelCfg.autoHide) {\n self.autoHideLabels();\n }\n };\n\n _proto.parseTick = function parseTick(tick, index, length) {\n return {\n text: tick,\n value: index / (length - 1)\n };\n };\n\n _proto.getTextAnchor = function getTextAnchor(vector) {\n var ratio = Math.abs(vector[1] / vector[0]);\n var align;\n\n if (ratio >= 1) {\n // 上面或者下面\n align = 'center';\n } else {\n if (vector[0] > 0) {\n // 右侧\n align = 'start';\n } else {\n // 左侧\n align = 'end';\n }\n }\n\n return align;\n };\n\n _proto.getMaxLabelWidth = function getMaxLabelWidth(labelRenderer) {\n var labels = labelRenderer.getLabels();\n var max = 0;\n Util.each(labels, function (label) {\n var bbox = label.getBBox();\n var width = bbox.width;\n\n if (max < width) {\n max = width;\n }\n });\n return max;\n };\n\n _proto.getMaxLabelHeight = function getMaxLabelHeight(labelRenderer) {\n var labels = labelRenderer.getLabels();\n var max = 0;\n Util.each(labels, function (label) {\n var bbox = label.getBBox();\n var height = bbox.height;\n\n if (max < height) {\n max = height;\n }\n });\n return max;\n };\n\n _proto.destroy = function destroy() {\n var self = this;\n\n if (!self.destroyed) {\n var gridGroup = self.get('gridGroup');\n gridGroup && gridGroup.remove();\n var labelRenderer = this.get('labelRenderer');\n labelRenderer && labelRenderer.destroy();\n var group = self.get('group');\n group.destroy();\n\n _Component.prototype.destroy.call(this); // 要最后调用 super.destroy 否则 get 属性会无效\n\n }\n };\n\n _proto.clear = function clear() {\n var self = this;\n var group = self.get('group');\n\n if (!group.get('destroyed') && group.get('children').length) {\n var gridGroup = self.get('gridGroup');\n gridGroup && gridGroup.clear();\n var labelRenderer = this.get('labelRenderer');\n labelRenderer && labelRenderer.clear();\n\n var _group = self.get('group');\n\n _group.clear();\n }\n }\n /**\n * 旋转文本\n * @abstract\n * @return {[type]} [description]\n */\n ;\n\n _proto.autoRotateLabels = function autoRotateLabels() {}\n /**\n * 文本自动防遮罩\n * @abstract\n * @return {[type]} [description]\n */\n ;\n\n _proto.autoHideLabels = function autoHideLabels() {}\n /**\n * 渲染标题\n * @abstract\n * @return {[type]} [description]\n */\n ;\n\n _proto.renderTitle = function renderTitle() {}\n /**\n * 获取坐标轴线的 path\n * @abstract\n * @return {[type]} [description]\n */\n ;\n\n _proto.getLinePath = function getLinePath() {}\n /**\n * 获取 tick 在画布上的位置\n * @abstract\n * @return {[type]} [description]\n */\n ;\n\n _proto.getTickPoint = function getTickPoint() {}\n /**\n * 获取标示坐标点的线的终点\n * @abstract\n * @return {[type]} [description]\n */\n ;\n\n _proto.getTickEnd = function getTickEnd() {}\n /**\n * 获取距离坐标轴的向量\n * @abstract\n * @return {[type]} [description]\n */\n ;\n\n _proto.getSideVector = function getSideVector() {};\n\n return Axis;\n}(Component);\n\nmodule.exports = Axis;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/axis/base.js\n// module id = 14\n// module chunks = 0","function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nvar Base = require('./base');\n\nvar Component = /*#__PURE__*/function (_Base) {\n _inheritsLoose(Component, _Base);\n\n var _super = _createSuper(Component);\n\n function Component() {\n return _Base.apply(this, arguments) || this;\n }\n\n var _proto = Component.prototype;\n\n // 配置\n _proto.getDefaultCfg = function getDefaultCfg() {\n return {\n // 顶层标志位\n _id: null,\n // 用于动画\n // 容器\n canvas: null,\n container: null,\n // html,可选\n group: null,\n // G Group,可选\n // 交互属性\n capture: false,\n // props\n coord: null,\n offset: [0, 0],\n plotRange: null,\n // BBox\n position: [0, 0],\n visible: true,\n zIndex: 1\n };\n } // 基础生命周期\n ;\n\n _proto._init = function _init() {};\n\n _proto.clear = function clear() {};\n\n _proto.destroy = function destroy() {\n // 之前未指定销毁\n _Base.prototype.destroy.call(this);\n } // 绘图\n ;\n\n _proto.beforeRender = function beforeRender() {};\n\n _proto.render = function render() {} // 初始化、绑事件和绘图\n ;\n\n _proto.afterRender = function afterRender() {};\n\n _proto.beforeDraw = function beforeDraw() {};\n\n _proto.draw = function draw() {} // 单纯更新视图\n ;\n\n _proto.afterDraw = function afterDraw() {} // visibility\n ;\n\n _proto.show = function show() {};\n\n _proto.hide = function hide() {} // props operating syntactic sugar\n ;\n\n _proto.setOffset = function setOffset() {};\n\n _proto.setPosition = function setPosition() {};\n\n _proto.setVisible = function setVisible() {};\n\n _proto.setZIndex = function setZIndex() {};\n\n return Component;\n}(Base);\n\nmodule.exports = Component;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/component.js\n// module id = 15\n// module chunks = 0","var isObjectLike = require('./is-object-like');\n\nvar isType = require('./is-type');\n\nvar isPlainObject = function isPlainObject(value) {\n /**\n * isObjectLike(new Foo) => false\n * isObjectLike([1, 2, 3]) => false\n * isObjectLike({ x: 0, y: 0 }) => true\n * isObjectLike(Object.create(null)) => true\n */\n if (!isObjectLike(value) || !isType(value, 'Object')) {\n return false;\n }\n\n if (Object.getPrototypeOf(value) === null) {\n return true;\n }\n\n var proto = value;\n\n while (Object.getPrototypeOf(proto) !== null) {\n proto = Object.getPrototypeOf(proto);\n }\n\n return Object.getPrototypeOf(value) === proto;\n};\n\nmodule.exports = isPlainObject;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-plain-object.js\n// module id = 16\n// module chunks = 0","function _mix(dist, obj) {\n for (var key in obj) {\n if (obj.hasOwnProperty(key) && key !== 'constructor' && obj[key] !== undefined) {\n dist[key] = obj[key];\n }\n }\n}\n\nvar mix = function mix(dist, src1, src2, src3) {\n if (src1) _mix(dist, src1);\n if (src2) _mix(dist, src2);\n if (src3) _mix(dist, src3);\n return dist;\n};\n\nmodule.exports = mix;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/mix.js\n// module id = 17\n// module chunks = 0","var isNil = require('./type/is-nil');\n\nfunction toString(value) {\n if (isNil(value)) return '';\n return value.toString();\n}\n\nmodule.exports = toString;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/to-string.js\n// module id = 18\n// module chunks = 0","var Util = require('../util/index');\n\nvar regexTags = /[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/ig;\nvar regexDot = /[^\\s\\,]+/ig;\nvar numColorCache = {};\nmodule.exports = {\n parseRadius: function parseRadius(radius) {\n var r1 = 0,\n r2 = 0,\n r3 = 0,\n r4 = 0;\n\n if (Util.isArray(radius)) {\n if (radius.length === 1) {\n r1 = r2 = r3 = r4 = radius[0];\n } else if (radius.length === 2) {\n r1 = r3 = radius[0];\n r2 = r4 = radius[1];\n } else if (radius.length === 3) {\n r1 = radius[0];\n r2 = r4 = radius[1];\n r3 = radius[2];\n } else {\n r1 = radius[0];\n r2 = radius[1];\n r3 = radius[2];\n r4 = radius[3];\n }\n } else {\n r1 = r2 = r3 = r4 = radius;\n }\n\n return {\n r1: r1,\n r2: r2,\n r3: r3,\n r4: r4\n };\n },\n parsePath: function parsePath(path) {\n path = path || [];\n\n if (Util.isArray(path)) {\n return path;\n }\n\n if (Util.isString(path)) {\n path = path.match(regexTags);\n Util.each(path, function (item, index) {\n item = item.match(regexDot);\n\n if (item[0].length > 1) {\n var tag = item[0].charAt(0);\n item.splice(1, 0, item[0].substr(1));\n item[0] = tag;\n }\n\n Util.each(item, function (sub, i) {\n if (!isNaN(sub)) {\n item[i] = +sub;\n }\n });\n path[index] = item;\n });\n return path;\n }\n },\n numberToColor: function numberToColor(num) {\n // 增加缓存\n var color = numColorCache[num];\n\n if (!color) {\n var str = num.toString(16);\n\n for (var i = str.length; i < 6; i++) {\n str = '0' + str;\n }\n\n color = '#' + str;\n numColorCache[num] = color;\n }\n\n return color;\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/util/format.js\n// module id = 19\n// module chunks = 0","import constant from \"./constant\";\n\nfunction linear(a, d) {\n return function (t) {\n return a + t * d;\n };\n}\n\nfunction exponential(a, b, y) {\n return a = Math.pow(a, y), b = Math.pow(b, y) - a, y = 1 / y, function (t) {\n return Math.pow(a + t * b, y);\n };\n}\n\nexport function hue(a, b) {\n var d = b - a;\n return d ? linear(a, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant(isNaN(a) ? b : a);\n}\nexport function gamma(y) {\n return (y = +y) === 1 ? nogamma : function (a, b) {\n return b - a ? exponential(a, b, y) : constant(isNaN(a) ? b : a);\n };\n}\nexport default function nogamma(a, b) {\n var d = b - a;\n return d ? linear(a, d) : constant(isNaN(a) ? b : a);\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/color.js\n// module id = 20\n// module chunks = 0","/**\n * @fileOverview the Attribute base class\n */\nvar isString = require('@antv/util/lib/type/is-string');\n\nvar isArray = require('@antv/util/lib/type/is-array');\n\nvar isNil = require('@antv/util/lib/type/is-nil');\n\nvar mix = require('@antv/util/lib/mix');\n\nvar each = require('@antv/util/lib/each');\n\nfunction toScaleString(scale, value) {\n if (isString(value)) {\n return value;\n }\n\n return scale.invert(scale.scale(value));\n}\n/**\n * 所有视觉通道属性的基类\n * @class Attr\n */\n\n\nvar AttributeBase = /*#__PURE__*/function () {\n function AttributeBase(cfg) {\n var _this = this;\n /**\n * 属性的类型\n * @type {String}\n */\n\n\n this.type = 'base';\n /**\n * 属性的名称\n * @type {String}\n */\n\n this.name = null;\n /**\n * 回调函数\n * @type {Function}\n */\n\n this.method = null;\n /**\n * 备选的值数组\n * @type {Array}\n */\n\n this.values = [];\n /**\n * 属性内部的度量\n * @type {Array}\n */\n\n this.scales = [];\n /**\n * 是否通过线性取值, 如果未指定,则根据数值的类型判定\n * @type {Boolean}\n */\n\n this.linear = null;\n /**\n * 当用户设置的 callback 返回 null 时, 应该返回默认 callback 中的值\n */\n\n var mixedCallback = null;\n var defaultCallback = this.callback;\n\n if (cfg.callback) {\n var userCallback = cfg.callback;\n\n mixedCallback = function mixedCallback() {\n for (var _len = arguments.length, params = new Array(_len), _key = 0; _key < _len; _key++) {\n params[_key] = arguments[_key];\n }\n\n var ret = userCallback.apply(void 0, params);\n\n if (isNil(ret)) {\n ret = defaultCallback.apply(_this, params);\n }\n\n return ret;\n };\n }\n\n mix(this, cfg);\n\n if (mixedCallback) {\n mix(this, {\n callback: mixedCallback\n });\n }\n } // 获取属性值,将值映射到视觉通道\n\n\n var _proto = AttributeBase.prototype;\n\n _proto._getAttrValue = function _getAttrValue(scale, value) {\n var values = this.values;\n\n if (scale.isCategory && !this.linear) {\n var index = scale.translate(value);\n return values[index % values.length];\n }\n\n var percent = scale.scale(value);\n return this.getLinearValue(percent);\n };\n /**\n * 如果进行线性映射,返回对应的映射值\n * @protected\n * @param {Number} percent 百分比\n * @return {*} 颜色值、形状、大小等\n */\n\n\n _proto.getLinearValue = function getLinearValue(percent) {\n var values = this.values;\n var steps = values.length - 1;\n var step = Math.floor(steps * percent);\n var leftPercent = steps * percent - step;\n var start = values[step];\n var end = step === steps ? start : values[step + 1];\n var rstValue = start + (end - start) * leftPercent;\n return rstValue;\n };\n /**\n * 默认的回调函数\n * @param {*} value 回调函数的值\n * @type {Function}\n * @return {Array} 返回映射后的值\n */\n\n\n _proto.callback = function callback(value) {\n var self = this;\n var scale = self.scales[0];\n var rstValue = null;\n\n if (scale.type === 'identity') {\n rstValue = scale.value;\n } else {\n rstValue = self._getAttrValue(scale, value);\n }\n\n return rstValue;\n };\n /**\n * 根据度量获取属性名\n * @return {Array} dims of this Attribute\n */\n\n\n _proto.getNames = function getNames() {\n var scales = this.scales;\n var names = this.names;\n var length = Math.min(scales.length, names.length);\n var rst = [];\n\n for (var i = 0; i < length; i++) {\n rst.push(names[i]);\n }\n\n return rst;\n };\n /**\n * 根据度量获取维度名\n * @return {Array} dims of this Attribute\n */\n\n\n _proto.getFields = function getFields() {\n var scales = this.scales;\n var rst = [];\n each(scales, function (scale) {\n rst.push(scale.field);\n });\n return rst;\n };\n /**\n * 根据名称获取度量\n * @param {String} name the name of scale\n * @return {Scale} scale\n */\n\n\n _proto.getScale = function getScale(name) {\n var scales = this.scales;\n var names = this.names;\n var index = names.indexOf(name);\n return scales[index];\n };\n /**\n * 映射数据\n * @param {*} param1...paramn 多个数值\n * @return {Array} 映射的值组成的数组\n */\n\n\n _proto.mapping = function mapping() {\n var scales = this.scales;\n var callback = this.callback;\n\n for (var _len2 = arguments.length, params = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {\n params[_key2] = arguments[_key2];\n }\n\n var values = params;\n\n if (callback) {\n for (var i = 0, len = params.length; i < len; i++) {\n params[i] = this._toOriginParam(params[i], scales[i]);\n }\n\n values = callback.apply(this, params);\n }\n\n values = [].concat(values);\n return values;\n }; // 原始的参数\n\n\n _proto._toOriginParam = function _toOriginParam(param, scale) {\n var rst = param;\n\n if (!scale.isLinear) {\n if (isArray(param)) {\n rst = [];\n\n for (var i = 0, len = param.length; i < len; i++) {\n rst.push(toScaleString(scale, param[i]));\n }\n } else {\n rst = toScaleString(scale, param);\n }\n }\n\n return rst;\n };\n\n return AttributeBase;\n}();\n\nmodule.exports = AttributeBase;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_attr@0.1.2@@antv/attr/lib/base.js\n// module id = 21\n// module chunks = 0","module.exports = {\n Canvas: require('./canvas'),\n Group: require('./core/group'),\n Shape: require('./core/shape'),\n Arc: require('./shapes/arc'),\n Circle: require('./shapes/circle'),\n Dom: require('./shapes/dom'),\n Ellipse: require('./shapes/ellipse'),\n Fan: require('./shapes/fan'),\n Image: require('./shapes/image'),\n Line: require('./shapes/line'),\n Marker: require('./shapes/marker'),\n Path: require('./shapes/path'),\n Polygon: require('./shapes/polygon'),\n Polyline: require('./shapes/polyline'),\n Rect: require('./shapes/rect'),\n Text: require('./shapes/text'),\n PathSegment: require('./shapes/util/path-segment'),\n PathUtil: require('./util/path'),\n Event: require('./event'),\n // version, etc.\n version: '3.3.6'\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/index.js\n// module id = 22\n// module chunks = 0","var isArrayLike = require('./type/is-array-like');\n\nfunction toArray(value) {\n return isArrayLike(value) ? Array.prototype.slice.call(value) : [];\n}\n\nmodule.exports = toArray;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/to-array.js\n// module id = 23\n// module chunks = 0","var vec2 = require('../../util/index').vec2;\n\nmodule.exports = {\n at: function at(p1, p2, t) {\n return (p2 - p1) * t + p1;\n },\n pointDistance: function pointDistance(x1, y1, x2, y2, x, y) {\n var d = [x2 - x1, y2 - y1];\n\n if (vec2.exactEquals(d, [0, 0])) {\n return NaN;\n }\n\n var u = [-d[1], d[0]];\n vec2.normalize(u, u);\n var a = [x - x1, y - y1];\n return Math.abs(vec2.dot(a, u));\n },\n box: function box(x1, y1, x2, y2, lineWidth) {\n var halfWidth = lineWidth / 2;\n var minX = Math.min(x1, x2);\n var maxX = Math.max(x1, x2);\n var minY = Math.min(y1, y2);\n var maxY = Math.max(y1, y2);\n return {\n minX: minX - halfWidth,\n minY: minY - halfWidth,\n maxX: maxX + halfWidth,\n maxY: maxY + halfWidth\n };\n },\n len: function len(x1, y1, x2, y2) {\n return Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/math/line.js\n// module id = 24\n// module chunks = 0","var Util = require('../../util/index');\n\nfunction circlePoint(cx, cy, r, angle) {\n return {\n x: Math.cos(angle) * r + cx,\n y: Math.sin(angle) * r + cy\n };\n}\n\nfunction angleNearTo(angle, min, max, out) {\n var v1;\n var v2;\n\n if (out) {\n if (angle < min) {\n v1 = min - angle;\n v2 = Math.PI * 2 - max + angle;\n } else if (angle > max) {\n v1 = Math.PI * 2 - angle + min;\n v2 = angle - max;\n }\n } else {\n v1 = angle - min;\n v2 = max - angle;\n }\n\n return v1 > v2 ? max : min;\n}\n\nfunction nearAngle(angle, startAngle, endAngle, clockwise) {\n var plus = 0;\n\n if (endAngle - startAngle >= Math.PI * 2) {\n plus = Math.PI * 2;\n }\n\n startAngle = Util.mod(startAngle, Math.PI * 2);\n endAngle = Util.mod(endAngle, Math.PI * 2) + plus;\n angle = Util.mod(angle, Math.PI * 2);\n\n if (clockwise) {\n if (startAngle >= endAngle) {\n if (angle > endAngle && angle < startAngle) {\n return angle;\n }\n\n return angleNearTo(angle, endAngle, startAngle, true);\n }\n\n if (angle < startAngle || angle > endAngle) {\n return angle;\n }\n\n return angleNearTo(angle, startAngle, endAngle);\n }\n\n if (startAngle <= endAngle) {\n if (startAngle < angle && angle < endAngle) {\n return angle;\n }\n\n return angleNearTo(angle, startAngle, endAngle, true);\n }\n\n if (angle > startAngle || angle < endAngle) {\n return angle;\n }\n\n return angleNearTo(angle, endAngle, startAngle);\n}\n\nfunction arcProjectPoint(cx, cy, r, startAngle, endAngle, clockwise, x, y, out) {\n var v = [x, y];\n var v0 = [cx, cy];\n var v1 = [1, 0];\n var subv = Util.vec2.subtract([], v, v0);\n var angle = Util.vec2.angleTo(v1, subv);\n angle = nearAngle(angle, startAngle, endAngle, clockwise);\n var vpoint = [r * Math.cos(angle) + cx, r * Math.sin(angle) + cy];\n\n if (out) {\n out.x = vpoint[0];\n out.y = vpoint[1];\n }\n\n var d = Util.vec2.distance(vpoint, v);\n return d;\n}\n\nfunction arcBox(cx, cy, r, startAngle, endAngle, clockwise) {\n var angleRight = 0;\n var angleBottom = Math.PI / 2;\n var angleLeft = Math.PI;\n var angleTop = Math.PI * 3 / 2;\n var points = [];\n var angle = nearAngle(angleRight, startAngle, endAngle, clockwise);\n\n if (angle === angleRight) {\n points.push(circlePoint(cx, cy, r, angleRight));\n }\n\n angle = nearAngle(angleBottom, startAngle, endAngle, clockwise);\n\n if (angle === angleBottom) {\n points.push(circlePoint(cx, cy, r, angleBottom));\n }\n\n angle = nearAngle(angleLeft, startAngle, endAngle, clockwise);\n\n if (angle === angleLeft) {\n points.push(circlePoint(cx, cy, r, angleLeft));\n }\n\n angle = nearAngle(angleTop, startAngle, endAngle, clockwise);\n\n if (angle === angleTop) {\n points.push(circlePoint(cx, cy, r, angleTop));\n }\n\n points.push(circlePoint(cx, cy, r, startAngle));\n points.push(circlePoint(cx, cy, r, endAngle));\n var minX = Infinity;\n var maxX = -Infinity;\n var minY = Infinity;\n var maxY = -Infinity;\n Util.each(points, function (point) {\n if (minX > point.x) {\n minX = point.x;\n }\n\n if (maxX < point.x) {\n maxX = point.x;\n }\n\n if (minY > point.y) {\n minY = point.y;\n }\n\n if (maxY < point.y) {\n maxY = point.y;\n }\n });\n return {\n minX: minX,\n minY: minY,\n maxX: maxX,\n maxY: maxY\n };\n}\n\nmodule.exports = {\n nearAngle: nearAngle,\n projectPoint: function projectPoint(cx, cy, r, startAngle, endAngle, clockwise, x, y) {\n var rst = {};\n arcProjectPoint(cx, cy, r, startAngle, endAngle, clockwise, x, y, rst);\n return rst;\n },\n pointDistance: arcProjectPoint,\n box: arcBox\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/math/arc.js\n// module id = 25\n// module chunks = 0","var Format = require('../../util/format');\n\nvar PathSegment = require('../util/path-segment');\n\nvar PI = Math.PI;\nvar sin = Math.sin;\nvar cos = Math.cos;\nvar atan2 = Math.atan2;\nvar DEFAULT_LENGTH = 10;\nvar DEFAULT_ANGLE = PI / 3;\n\nfunction _addArrow(ctx, attrs, x1, y1, x2, y2, isStart) {\n var leftX;\n var leftY;\n var rightX;\n var rightY;\n var offsetX;\n var offsetY;\n var angle;\n\n if (!attrs.fill) {\n // 闭合的不绘制箭头\n var arrowLength = attrs.arrowLength || DEFAULT_LENGTH;\n var arrowAngle = attrs.arrowAngle ? attrs.arrowAngle * PI / 180 : DEFAULT_ANGLE; // 转换为弧\n // Calculate angle\n\n angle = atan2(y1 - y2, x1 - x2);\n /* // Adjust angle correctly\n angle -= PI;*/\n // Calculate offset to place arrow at edge of path\n\n offsetX = Math.abs(attrs.lineWidth * cos(angle)) / 2;\n offsetY = Math.abs(attrs.lineWidth * sin(angle)) / 2;\n\n if (isStart) {\n offsetX = -offsetX;\n offsetY = -offsetY;\n } // Calculate coordinates for left half of arrow\n\n\n leftX = x2 + arrowLength * cos(angle + arrowAngle / 2);\n leftY = y2 + arrowLength * sin(angle + arrowAngle / 2); // Calculate coordinates for right half of arrow\n\n rightX = x2 + arrowLength * cos(angle - arrowAngle / 2);\n rightY = y2 + arrowLength * sin(angle - arrowAngle / 2);\n ctx.beginPath(); // Draw left half of arrow\n\n ctx.moveTo(leftX - offsetX, leftY - offsetY);\n ctx.lineTo(x2 - offsetX, y2 - offsetY); // Draw right half of arrow\n\n ctx.lineTo(rightX - offsetX, rightY - offsetY); // Visually connect arrow to path\n\n ctx.moveTo(x2 - offsetX, y2 - offsetY);\n ctx.lineTo(x2 + offsetX, y2 + offsetY); // Move back to end of path\n\n ctx.moveTo(x2, y2);\n ctx.stroke();\n }\n}\n\nfunction parsePath(attrs) {\n var segments = [];\n var pathArray = Format.parsePath(attrs.path);\n var preSegment;\n\n if (!Array.isArray(pathArray) || pathArray.length === 0 || pathArray[0][0] !== 'M' && pathArray[0][0] !== 'm') {\n return false;\n }\n\n var count = pathArray.length;\n\n for (var i = 0; i < pathArray.length; i++) {\n var item = pathArray[i];\n preSegment = new PathSegment(item, preSegment, i === count - 1);\n segments.push(preSegment);\n }\n\n return segments;\n}\n\nfunction _addCustomizedArrow(ctx, attrs, x1, y1, x2, y2, isStart) {\n var shape = isStart ? attrs.startArrow : attrs.endArrow;\n var d = shape.d;\n var deg = 0;\n var x = x2 - x1;\n var y = y2 - y1;\n var tan = Math.atan(x / y);\n\n if (y === 0 && x < 0) {\n deg = Math.PI;\n } else if (x > 0 && y > 0) {\n deg = Math.PI / 2 - tan;\n } else if (x < 0 && y < 0) {\n deg = -Math.PI / 2 - tan;\n } else if (x >= 0 && y < 0) {\n deg = -tan - Math.PI / 2;\n } else if (x <= 0 && y > 0) {\n deg = Math.PI / 2 - tan;\n }\n\n var path = parsePath(shape);\n\n if (!path) {\n return;\n }\n\n if (d) {\n if (isStart) {\n x2 = x2 + Math.sin(Math.abs(tan)) * d;\n y2 = y2 + Math.cos(Math.abs(tan)) * d - 0.5 * ctx.lineWidth;\n } else {\n x2 = x2 - Math.sin(Math.abs(tan)) * d;\n y2 = y2 - Math.cos(Math.abs(tan)) * d + 0.5 * ctx.lineWidth;\n }\n }\n\n ctx.save();\n ctx.beginPath();\n ctx.translate(x2, y2);\n ctx.rotate(deg);\n\n for (var i = 0; i < path.length; i++) {\n path[i].draw(ctx);\n }\n\n ctx.setTransform(1, 0, 0, 1, 0, 0);\n ctx.fillStyle = ctx.strokeStyle;\n ctx.fill();\n ctx.restore();\n}\n\nmodule.exports = {\n addStartArrow: function addStartArrow(ctx, attrs, x1, y1, x2, y2) {\n if (typeof attrs.startArrow === 'object') {\n _addCustomizedArrow(ctx, attrs, x1, y1, x2, y2, true);\n } else if (attrs.startArrow) {\n _addArrow(ctx, attrs, x1, y1, x2, y2, true);\n }\n },\n addEndArrow: function addEndArrow(ctx, attrs, x1, y1, x2, y2) {\n if (typeof attrs.endArrow === 'object') {\n _addCustomizedArrow(ctx, attrs, x1, y1, x2, y2, false);\n } else if (attrs.endArrow) {\n _addArrow(ctx, attrs, x1, y1, x2, y2, false);\n }\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/util/arrow.js\n// module id = 26\n// module chunks = 0","var Util = require('../../util/index');\n\nvar Inside = require('./inside');\n\nvar Cubic = require('../math/cubic');\n\nvar Quadratic = require('../math/quadratic');\n\nvar Ellipse = require('../math/ellipse');\n\nvar vec3 = Util.vec3;\nvar mat3 = Util.mat3;\nvar ARR_CMD = ['m', 'l', 'c', 'a', 'q', 'h', 'v', 't', 's', 'z'];\n\nfunction toAbsolute(x, y, curPoint) {\n // 获取绝对坐标\n return {\n x: curPoint.x + x,\n y: curPoint.y + y\n };\n}\n\nfunction toSymmetry(point, center) {\n // 点对称\n return {\n x: center.x + (center.x - point.x),\n y: center.y + (center.y - point.y)\n };\n}\n\nfunction vMag(v) {\n return Math.sqrt(v[0] * v[0] + v[1] * v[1]);\n}\n\nfunction vRatio(u, v) {\n return (u[0] * v[0] + u[1] * v[1]) / (vMag(u) * vMag(v));\n}\n\nfunction vAngle(u, v) {\n return (u[0] * v[1] < u[1] * v[0] ? -1 : 1) * Math.acos(vRatio(u, v));\n}\n\nfunction getArcParams(point1, point2, fa, fs, rx, ry, psiDeg) {\n var psi = Util.mod(Util.toRadian(psiDeg), Math.PI * 2);\n var x1 = point1.x;\n var y1 = point1.y;\n var x2 = point2.x;\n var y2 = point2.y;\n var xp = Math.cos(psi) * (x1 - x2) / 2.0 + Math.sin(psi) * (y1 - y2) / 2.0;\n var yp = -1 * Math.sin(psi) * (x1 - x2) / 2.0 + Math.cos(psi) * (y1 - y2) / 2.0;\n var lambda = xp * xp / (rx * rx) + yp * yp / (ry * ry);\n\n if (lambda > 1) {\n rx *= Math.sqrt(lambda);\n ry *= Math.sqrt(lambda);\n }\n\n var diff = rx * rx * (yp * yp) + ry * ry * (xp * xp);\n var f = Math.sqrt((rx * rx * (ry * ry) - diff) / diff);\n\n if (fa === fs) {\n f *= -1;\n }\n\n if (isNaN(f)) {\n f = 0;\n }\n\n var cxp = f * rx * yp / ry;\n var cyp = f * -ry * xp / rx;\n var cx = (x1 + x2) / 2.0 + Math.cos(psi) * cxp - Math.sin(psi) * cyp;\n var cy = (y1 + y2) / 2.0 + Math.sin(psi) * cxp + Math.cos(psi) * cyp;\n var theta = vAngle([1, 0], [(xp - cxp) / rx, (yp - cyp) / ry]);\n var u = [(xp - cxp) / rx, (yp - cyp) / ry];\n var v = [(-1 * xp - cxp) / rx, (-1 * yp - cyp) / ry];\n var dTheta = vAngle(u, v);\n\n if (vRatio(u, v) <= -1) {\n dTheta = Math.PI;\n }\n\n if (vRatio(u, v) >= 1) {\n dTheta = 0;\n }\n\n if (fs === 0 && dTheta > 0) {\n dTheta = dTheta - 2 * Math.PI;\n }\n\n if (fs === 1 && dTheta < 0) {\n dTheta = dTheta + 2 * Math.PI;\n }\n\n return [point1, cx, cy, rx, ry, theta, dTheta, psi, fs];\n}\n\nvar PathSegment = function PathSegment(item, preSegment, isLast) {\n this.preSegment = preSegment;\n this.isLast = isLast;\n this.init(item, preSegment);\n};\n\nUtil.augment(PathSegment, {\n init: function init(item, preSegment) {\n var command = item[0];\n preSegment = preSegment || {\n endPoint: {\n x: 0,\n y: 0\n }\n };\n var relative = ARR_CMD.indexOf(command) >= 0; // /[a-z]/.test(command);\n\n var cmd = relative ? command.toUpperCase() : command;\n var p = item;\n var point1;\n var point2;\n var point3;\n var point;\n var preEndPoint = preSegment.endPoint;\n var p1 = p[1];\n var p2 = p[2];\n\n switch (cmd) {\n default:\n break;\n\n case 'M':\n if (relative) {\n point = toAbsolute(p1, p2, preEndPoint);\n } else {\n point = {\n x: p1,\n y: p2\n };\n }\n\n this.command = 'M';\n this.params = [preEndPoint, point];\n this.subStart = point;\n this.endPoint = point;\n break;\n\n case 'L':\n if (relative) {\n point = toAbsolute(p1, p2, preEndPoint);\n } else {\n point = {\n x: p1,\n y: p2\n };\n }\n\n this.command = 'L';\n this.params = [preEndPoint, point];\n this.subStart = preSegment.subStart;\n this.endPoint = point;\n\n this.endTangent = function () {\n return [point.x - preEndPoint.x, point.y - preEndPoint.y];\n };\n\n this.startTangent = function () {\n return [preEndPoint.x - point.x, preEndPoint.y - point.y];\n };\n\n break;\n\n case 'H':\n if (relative) {\n point = toAbsolute(p1, 0, preEndPoint);\n } else {\n point = {\n x: p1,\n y: preEndPoint.y\n };\n }\n\n this.command = 'L';\n this.params = [preEndPoint, point];\n this.subStart = preSegment.subStart;\n this.endPoint = point;\n\n this.endTangent = function () {\n return [point.x - preEndPoint.x, point.y - preEndPoint.y];\n };\n\n this.startTangent = function () {\n return [preEndPoint.x - point.x, preEndPoint.y - point.y];\n };\n\n break;\n\n case 'V':\n if (relative) {\n point = toAbsolute(0, p1, preEndPoint);\n } else {\n point = {\n x: preEndPoint.x,\n y: p1\n };\n }\n\n this.command = 'L';\n this.params = [preEndPoint, point];\n this.subStart = preSegment.subStart;\n this.endPoint = point;\n\n this.endTangent = function () {\n return [point.x - preEndPoint.x, point.y - preEndPoint.y];\n };\n\n this.startTangent = function () {\n return [preEndPoint.x - point.x, preEndPoint.y - point.y];\n };\n\n break;\n\n case 'Q':\n if (relative) {\n point1 = toAbsolute(p1, p2, preEndPoint);\n point2 = toAbsolute(p[3], p[4], preEndPoint);\n } else {\n point1 = {\n x: p1,\n y: p2\n };\n point2 = {\n x: p[3],\n y: p[4]\n };\n }\n\n this.command = 'Q';\n this.params = [preEndPoint, point1, point2];\n this.subStart = preSegment.subStart;\n this.endPoint = point2;\n\n this.endTangent = function () {\n return [point2.x - point1.x, point2.y - point1.y];\n };\n\n this.startTangent = function () {\n return [preEndPoint.x - point1.x, preEndPoint.y - point1.y];\n };\n\n break;\n\n case 'T':\n if (relative) {\n point2 = toAbsolute(p1, p2, preEndPoint);\n } else {\n point2 = {\n x: p1,\n y: p2\n };\n }\n\n if (preSegment.command === 'Q') {\n point1 = toSymmetry(preSegment.params[1], preEndPoint);\n this.command = 'Q';\n this.params = [preEndPoint, point1, point2];\n this.subStart = preSegment.subStart;\n this.endPoint = point2;\n\n this.endTangent = function () {\n return [point2.x - point1.x, point2.y - point1.y];\n };\n\n this.startTangent = function () {\n return [preEndPoint.x - point1.x, preEndPoint.y - point1.y];\n };\n } else {\n this.command = 'TL';\n this.params = [preEndPoint, point2];\n this.subStart = preSegment.subStart;\n this.endPoint = point2;\n\n this.endTangent = function () {\n return [point2.x - preEndPoint.x, point2.y - preEndPoint.y];\n };\n\n this.startTangent = function () {\n return [preEndPoint.x - point2.x, preEndPoint.y - point2.y];\n };\n }\n\n break;\n\n case 'C':\n if (relative) {\n point1 = toAbsolute(p1, p2, preEndPoint);\n point2 = toAbsolute(p[3], p[4], preEndPoint);\n point3 = toAbsolute(p[5], p[6], preEndPoint);\n } else {\n point1 = {\n x: p1,\n y: p2\n };\n point2 = {\n x: p[3],\n y: p[4]\n };\n point3 = {\n x: p[5],\n y: p[6]\n };\n }\n\n this.command = 'C';\n this.params = [preEndPoint, point1, point2, point3];\n this.subStart = preSegment.subStart;\n this.endPoint = point3;\n\n this.endTangent = function () {\n return [point3.x - point2.x, point3.y - point2.y];\n };\n\n this.startTangent = function () {\n return [preEndPoint.x - point1.x, preEndPoint.y - point1.y];\n };\n\n break;\n\n case 'S':\n if (relative) {\n point2 = toAbsolute(p1, p2, preEndPoint);\n point3 = toAbsolute(p[3], p[4], preEndPoint);\n } else {\n point2 = {\n x: p1,\n y: p2\n };\n point3 = {\n x: p[3],\n y: p[4]\n };\n }\n\n if (preSegment.command === 'C') {\n point1 = toSymmetry(preSegment.params[2], preEndPoint);\n this.command = 'C';\n this.params = [preEndPoint, point1, point2, point3];\n this.subStart = preSegment.subStart;\n this.endPoint = point3;\n\n this.endTangent = function () {\n return [point3.x - point2.x, point3.y - point2.y];\n };\n\n this.startTangent = function () {\n return [preEndPoint.x - point1.x, preEndPoint.y - point1.y];\n };\n } else {\n this.command = 'SQ';\n this.params = [preEndPoint, point2, point3];\n this.subStart = preSegment.subStart;\n this.endPoint = point3;\n\n this.endTangent = function () {\n return [point3.x - point2.x, point3.y - point2.y];\n };\n\n this.startTangent = function () {\n return [preEndPoint.x - point2.x, preEndPoint.y - point2.y];\n };\n }\n\n break;\n\n case 'A':\n {\n var rx = p1;\n var ry = p2;\n var psi = p[3];\n var fa = p[4];\n var fs = p[5];\n\n if (relative) {\n point = toAbsolute(p[6], p[7], preEndPoint);\n } else {\n point = {\n x: p[6],\n y: p[7]\n };\n }\n\n this.command = 'A';\n var params = getArcParams(preEndPoint, point, fa, fs, rx, ry, psi);\n this.params = params;\n var start = preSegment.subStart;\n this.subStart = start;\n this.endPoint = point;\n var startAngle = params[5] % (Math.PI * 2);\n\n if (Util.isNumberEqual(startAngle, Math.PI * 2)) {\n startAngle = 0;\n }\n\n var endAngle = params[6] % (Math.PI * 2);\n\n if (Util.isNumberEqual(endAngle, Math.PI * 2)) {\n endAngle = 0;\n }\n\n var d = 0.001;\n\n this.startTangent = function () {\n if (fs === 0) {\n d *= -1;\n }\n\n var dx = params[3] * Math.cos(startAngle - d) + params[1];\n var dy = params[4] * Math.sin(startAngle - d) + params[2];\n return [dx - start.x, dy - start.y];\n };\n\n this.endTangent = function () {\n var endAngle = params[6];\n\n if (endAngle - Math.PI * 2 < 0.0001) {\n endAngle = 0;\n }\n\n var dx = params[3] * Math.cos(startAngle + endAngle + d) + params[1];\n var dy = params[4] * Math.sin(startAngle + endAngle - d) + params[2];\n return [preEndPoint.x - dx, preEndPoint.y - dy];\n };\n\n break;\n }\n\n case 'Z':\n {\n this.command = 'Z';\n this.params = [preEndPoint, preSegment.subStart];\n this.subStart = preSegment.subStart;\n this.endPoint = preSegment.subStart;\n }\n }\n },\n isInside: function isInside(x, y, lineWidth) {\n var self = this;\n var command = self.command;\n var params = self.params;\n var box = self.box;\n\n if (box) {\n if (!Inside.box(box.minX, box.maxX, box.minY, box.maxY, x, y)) {\n return false;\n }\n }\n\n switch (command) {\n default:\n break;\n\n case 'M':\n return false;\n\n case 'TL':\n case 'L':\n case 'Z':\n return Inside.line(params[0].x, params[0].y, params[1].x, params[1].y, lineWidth, x, y);\n\n case 'SQ':\n case 'Q':\n return Inside.quadraticline(params[0].x, params[0].y, params[1].x, params[1].y, params[2].x, params[2].y, lineWidth, x, y);\n\n case 'C':\n {\n return Inside.cubicline(params[0].x, params[0].y, params[1].x, params[1].y, params[2].x, params[2].y, params[3].x, params[3].y, lineWidth, x, y);\n }\n\n case 'A':\n {\n var p = params;\n var cx = p[1];\n var cy = p[2];\n var rx = p[3];\n var ry = p[4];\n var theta = p[5];\n var dTheta = p[6];\n var psi = p[7];\n var fs = p[8];\n var r = rx > ry ? rx : ry;\n var scaleX = rx > ry ? 1 : rx / ry;\n var scaleY = rx > ry ? ry / rx : 1;\n p = [x, y, 1];\n var m = [1, 0, 0, 0, 1, 0, 0, 0, 1];\n mat3.translate(m, m, [-cx, -cy]);\n mat3.rotate(m, m, -psi);\n mat3.scale(m, m, [1 / scaleX, 1 / scaleY]);\n vec3.transformMat3(p, p, m);\n return Inside.arcline(0, 0, r, theta, theta + dTheta, 1 - fs, lineWidth, p[0], p[1]);\n }\n }\n\n return false;\n },\n draw: function draw(context) {\n var command = this.command;\n var params = this.params;\n var point1;\n var point2;\n var point3;\n\n switch (command) {\n default:\n break;\n\n case 'M':\n context.moveTo(params[1].x, params[1].y);\n break;\n\n case 'TL':\n case 'L':\n context.lineTo(params[1].x, params[1].y);\n break;\n\n case 'SQ':\n case 'Q':\n point1 = params[1];\n point2 = params[2];\n context.quadraticCurveTo(point1.x, point1.y, point2.x, point2.y);\n break;\n\n case 'C':\n point1 = params[1];\n point2 = params[2];\n point3 = params[3];\n context.bezierCurveTo(point1.x, point1.y, point2.x, point2.y, point3.x, point3.y);\n break;\n\n case 'A':\n {\n var p = params;\n var p1 = p[1];\n var p2 = p[2];\n var cx = p1;\n var cy = p2;\n var rx = p[3];\n var ry = p[4];\n var theta = p[5];\n var dTheta = p[6];\n var psi = p[7];\n var fs = p[8];\n var r = rx > ry ? rx : ry;\n var scaleX = rx > ry ? 1 : rx / ry;\n var scaleY = rx > ry ? ry / rx : 1;\n context.translate(cx, cy);\n context.rotate(psi);\n context.scale(scaleX, scaleY);\n context.arc(0, 0, r, theta, theta + dTheta, 1 - fs);\n context.scale(1 / scaleX, 1 / scaleY);\n context.rotate(-psi);\n context.translate(-cx, -cy);\n break;\n }\n\n case 'Z':\n context.closePath();\n break;\n }\n },\n getBBox: function getBBox(lineWidth) {\n var halfWidth = lineWidth / 2;\n var params = this.params;\n var yDims;\n var xDims;\n var i;\n var l;\n\n switch (this.command) {\n default:\n case 'M':\n case 'Z':\n break;\n\n case 'TL':\n case 'L':\n this.box = {\n minX: Math.min(params[0].x, params[1].x) - halfWidth,\n maxX: Math.max(params[0].x, params[1].x) + halfWidth,\n minY: Math.min(params[0].y, params[1].y) - halfWidth,\n maxY: Math.max(params[0].y, params[1].y) + halfWidth\n };\n break;\n\n case 'SQ':\n case 'Q':\n xDims = Quadratic.extrema(params[0].x, params[1].x, params[2].x);\n\n for (i = 0, l = xDims.length; i < l; i++) {\n xDims[i] = Quadratic.at(params[0].x, params[1].x, params[2].x, xDims[i]);\n }\n\n xDims.push(params[0].x, params[2].x);\n yDims = Quadratic.extrema(params[0].y, params[1].y, params[2].y);\n\n for (i = 0, l = yDims.length; i < l; i++) {\n yDims[i] = Quadratic.at(params[0].y, params[1].y, params[2].y, yDims);\n }\n\n yDims.push(params[0].y, params[2].y);\n this.box = {\n minX: Math.min.apply(Math, xDims) - halfWidth,\n maxX: Math.max.apply(Math, xDims) + halfWidth,\n minY: Math.min.apply(Math, yDims) - halfWidth,\n maxY: Math.max.apply(Math, yDims) + halfWidth\n };\n break;\n\n case 'C':\n xDims = Cubic.extrema(params[0].x, params[1].x, params[2].x, params[3].x);\n\n for (i = 0, l = xDims.length; i < l; i++) {\n xDims[i] = Cubic.at(params[0].x, params[1].x, params[2].x, params[3].x, xDims[i]);\n }\n\n yDims = Cubic.extrema(params[0].y, params[1].y, params[2].y, params[3].y);\n\n for (i = 0, l = yDims.length; i < l; i++) {\n yDims[i] = Cubic.at(params[0].y, params[1].y, params[2].y, params[3].y, yDims[i]);\n }\n\n xDims.push(params[0].x, params[3].x);\n yDims.push(params[0].y, params[3].y);\n this.box = {\n minX: Math.min.apply(Math, xDims) - halfWidth,\n maxX: Math.max.apply(Math, xDims) + halfWidth,\n minY: Math.min.apply(Math, yDims) - halfWidth,\n maxY: Math.max.apply(Math, yDims) + halfWidth\n };\n break;\n\n case 'A':\n {\n // todo 待优化\n var p = params;\n var cx = p[1];\n var cy = p[2];\n var rx = p[3];\n var ry = p[4];\n var theta = p[5];\n var dTheta = p[6];\n var psi = p[7];\n var fs = p[8];\n var start = theta;\n var end = theta + dTheta;\n var xDim = Ellipse.xExtrema(psi, rx, ry);\n var minX = Infinity;\n var maxX = -Infinity;\n var xs = [start, end];\n\n for (i = -Math.PI * 2; i <= Math.PI * 2; i += Math.PI) {\n var xAngle = xDim + i;\n\n if (fs === 1) {\n if (start < xAngle && xAngle < end) {\n xs.push(xAngle);\n }\n } else {\n if (end < xAngle && xAngle < start) {\n xs.push(xAngle);\n }\n }\n }\n\n for (i = 0, l = xs.length; i < l; i++) {\n var x = Ellipse.xAt(psi, rx, ry, cx, xs[i]);\n\n if (x < minX) {\n minX = x;\n }\n\n if (x > maxX) {\n maxX = x;\n }\n }\n\n var yDim = Ellipse.yExtrema(psi, rx, ry);\n var minY = Infinity;\n var maxY = -Infinity;\n var ys = [start, end];\n\n for (i = -Math.PI * 2; i <= Math.PI * 2; i += Math.PI) {\n var yAngle = yDim + i;\n\n if (fs === 1) {\n if (start < yAngle && yAngle < end) {\n ys.push(yAngle);\n }\n } else {\n if (end < yAngle && yAngle < start) {\n ys.push(yAngle);\n }\n }\n }\n\n for (i = 0, l = ys.length; i < l; i++) {\n var y = Ellipse.yAt(psi, rx, ry, cy, ys[i]);\n\n if (y < minY) {\n minY = y;\n }\n\n if (y > maxY) {\n maxY = y;\n }\n }\n\n this.box = {\n minX: minX - halfWidth,\n maxX: maxX + halfWidth,\n minY: minY - halfWidth,\n maxY: maxY + halfWidth\n };\n break;\n }\n }\n }\n});\nmodule.exports = PathSegment;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/util/path-segment.js\n// module id = 27\n// module chunks = 0","export default function (a, b) {\n return a = +a, b -= a, function (t) {\n return a + b * t;\n };\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/number.js\n// module id = 28\n// module chunks = 0","var isArrayLike = require('../type/is-array-like');\n\nvar indexOf = Array.prototype.indexOf;\n\nvar contains = function contains(arr, value) {\n if (!isArrayLike(arr)) {\n return false;\n }\n\n return indexOf.call(arr, value) > -1;\n};\n\nmodule.exports = contains;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/array/contains.js\n// module id = 29\n// module chunks = 0","function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\n/**\n * @fileOverview Chart、View、Geometry 的基类\n * @author dxq613@gmail.com\n */\nvar EventEmitter = require('wolfy87-eventemitter');\n\nvar Util = require('./util');\n\nvar Base = /*#__PURE__*/function (_EventEmitter) {\n _inheritsLoose(Base, _EventEmitter);\n\n var _super = _createSuper(Base);\n\n var _proto = Base.prototype;\n\n _proto.getDefaultCfg = function getDefaultCfg() {\n return {};\n };\n\n function Base(cfg) {\n var _this;\n\n _this = _EventEmitter.call(this) || this;\n\n var self = _assertThisInitialized(_this);\n\n var attrs = {\n visible: true\n };\n var defaultCfg = self.getDefaultCfg();\n self._attrs = attrs;\n Util.deepMix(attrs, defaultCfg, cfg);\n return _this;\n }\n\n _proto.get = function get(name) {\n return this._attrs[name];\n };\n\n _proto.set = function set(name, value) {\n this._attrs[name] = value;\n }\n /**\n * @protected\n * @param {Boolean} visible 是否可见\n * 显示、隐藏\n */\n ;\n\n _proto.changeVisible = function changeVisible()\n /* visible */\n {};\n\n _proto.destroy = function destroy() {\n var self = this;\n self._attrs = {};\n self.removeAllListeners();\n self.destroyed = true;\n };\n\n return Base;\n}(EventEmitter);\n\nmodule.exports = Base;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/base.js\n// module id = 30\n// module chunks = 0","var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n\nvar isObject = function isObject(value) {\n /**\n * isObject({}) => true\n * isObject([1, 2, 3]) => true\n * isObject(Function) => true\n * isObject(null) => false\n */\n var type = typeof value === 'undefined' ? 'undefined' : _typeof(value);\n return value !== null && type === 'object' || type === 'function';\n};\n\nmodule.exports = isObject;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-object.js\n// module id = 31\n// module chunks = 0","var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n\nvar isArray = require('./type/is-array');\n\nvar clone = function clone(obj) {\n if ((typeof obj === 'undefined' ? 'undefined' : _typeof(obj)) !== 'object' || obj === null) {\n return obj;\n }\n\n var rst = void 0;\n\n if (isArray(obj)) {\n rst = [];\n\n for (var i = 0, l = obj.length; i < l; i++) {\n if (_typeof(obj[i]) === 'object' && obj[i] != null) {\n rst[i] = clone(obj[i]);\n } else {\n rst[i] = obj[i];\n }\n }\n } else {\n rst = {};\n\n for (var k in obj) {\n if (_typeof(obj[k]) === 'object' && obj[k] != null) {\n rst[k] = clone(obj[k]);\n } else {\n rst[k] = obj[k];\n }\n }\n }\n\n return rst;\n};\n\nmodule.exports = clone;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/clone.js\n// module id = 32\n// module chunks = 0","var isPlainObject = require('./type/is-plain-object');\n\nvar isArray = require('./type/is-array');\n\nvar MAX_MIX_LEVEL = 5;\n\nfunction _deepMix(dist, src, level, maxLevel) {\n level = level || 0;\n maxLevel = maxLevel || MAX_MIX_LEVEL;\n\n for (var key in src) {\n if (src.hasOwnProperty(key)) {\n var value = src[key];\n\n if (value !== null && isPlainObject(value)) {\n if (!isPlainObject(dist[key])) {\n dist[key] = {};\n }\n\n if (level < maxLevel) {\n _deepMix(dist[key], value, level + 1, maxLevel);\n } else {\n dist[key] = src[key];\n }\n } else if (isArray(value)) {\n dist[key] = [];\n dist[key] = dist[key].concat(value);\n } else if (value !== undefined) {\n dist[key] = value;\n }\n }\n }\n}\n\nvar deepMix = function deepMix() {\n var args = new Array(arguments.length);\n var length = args.length;\n\n for (var i = 0; i < length; i++) {\n args[i] = arguments[i];\n }\n\n var rst = args[0];\n\n for (var _i = 1; _i < length; _i++) {\n _deepMix(rst, args[_i]);\n }\n\n return rst;\n};\n\nmodule.exports = deepMix;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/deep-mix.js\n// module id = 33\n// module chunks = 0","var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n\nvar isObjectLike = function isObjectLike(value) {\n /**\n * isObjectLike({}) => true\n * isObjectLike([1, 2, 3]) => true\n * isObjectLike(Function) => false\n * isObjectLike(null) => false\n */\n return (typeof value === 'undefined' ? 'undefined' : _typeof(value)) === 'object' && value !== null;\n};\n\nmodule.exports = isObjectLike;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-object-like.js\n// module id = 34\n// module chunks = 0","var isObjectLike = require('./type/is-object-like');\n\nvar isArrayLike = require('./type/is-array-like');\n\nvar isString = require('./type/is-string');\n\nvar isEqual = function isEqual(value, other) {\n if (value === other) {\n return true;\n }\n\n if (!value || !other) {\n return false;\n }\n\n if (isString(value) || isString(other)) {\n return false;\n }\n\n if (isArrayLike(value) || isArrayLike(other)) {\n if (value.length !== other.length) {\n return false;\n }\n\n var rst = true;\n\n for (var i = 0; i < value.length; i++) {\n rst = isEqual(value[i], other[i]);\n\n if (!rst) {\n break;\n }\n }\n\n return rst;\n }\n\n if (isObjectLike(value) || isObjectLike(other)) {\n var valueKeys = Object.keys(value);\n var otherKeys = Object.keys(other);\n\n if (valueKeys.length !== otherKeys.length) {\n return false;\n }\n\n var _rst = true;\n\n for (var _i = 0; _i < valueKeys.length; _i++) {\n _rst = isEqual(value[valueKeys[_i]], other[valueKeys[_i]]);\n\n if (!_rst) {\n break;\n }\n }\n\n return _rst;\n }\n\n return false;\n};\n\nmodule.exports = isEqual;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/is-equal.js\n// module id = 35\n// module chunks = 0","var clamp = function clamp(a, min, max) {\n if (a < min) {\n return min;\n } else if (a > max) {\n return max;\n }\n\n return a;\n};\n\nmodule.exports = clamp;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/math/clamp.js\n// module id = 36\n// module chunks = 0","var mat3 = require('@antv/gl-matrix/lib/gl-matrix/mat3');\n\nmat3.translate = function (out, a, v) {\n var transMat = new Array(9);\n mat3.fromTranslation(transMat, v);\n return mat3.multiply(out, transMat, a);\n};\n\nmat3.rotate = function (out, a, rad) {\n var rotateMat = new Array(9);\n mat3.fromRotation(rotateMat, rad);\n return mat3.multiply(out, rotateMat, a);\n};\n\nmat3.scale = function (out, a, v) {\n var scaleMat = new Array(9);\n mat3.fromScaling(scaleMat, v);\n return mat3.multiply(out, scaleMat, a);\n};\n\nmodule.exports = mat3;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/matrix/mat3.js\n// module id = 37\n// module chunks = 0","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.setMatrixArrayType = setMatrixArrayType;\nexports.toRadian = toRadian;\nexports.equals = equals;\n/**\n * Common utilities\n * @module glMatrix\n */\n// Configuration Constants\n\nvar EPSILON = exports.EPSILON = 0.000001;\nvar ARRAY_TYPE = exports.ARRAY_TYPE = typeof Float32Array !== 'undefined' ? Float32Array : Array;\nvar RANDOM = exports.RANDOM = Math.random;\n/**\n * Sets the type of array used when creating new vectors and matrices\n *\n * @param {Type} type Array type, such as Float32Array or Array\n */\n\nfunction setMatrixArrayType(type) {\n exports.ARRAY_TYPE = ARRAY_TYPE = type;\n}\n\nvar degree = Math.PI / 180;\n/**\n * Convert Degree To Radian\n *\n * @param {Number} a Angle in Degrees\n */\n\nfunction toRadian(a) {\n return a * degree;\n}\n/**\n * Tests whether or not the arguments have approximately the same value, within an absolute\n * or relative tolerance of glMatrix.EPSILON (an absolute tolerance is used for values less\n * than or equal to 1.0, and a relative tolerance is used for larger values)\n *\n * @param {Number} a The first number to test.\n * @param {Number} b The second number to test.\n * @returns {Boolean} True if the numbers are approximately equal, false otherwise.\n */\n\n\nfunction equals(a, b) {\n return Math.abs(a - b) <= EPSILON * Math.max(1.0, Math.abs(a), Math.abs(b));\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_gl-matrix@2.7.1@@antv/gl-matrix/lib/gl-matrix/common.js\n// module id = 38\n// module chunks = 0","var Line = require('../math/line');\n\nvar Quadratic = require('../math/quadratic');\n\nvar Cubic = require('../math/cubic');\n\nvar Arc = require('../math/arc');\n\nmodule.exports = {\n line: function line(x1, y1, x2, y2, lineWidth, x, y) {\n var box = Line.box(x1, y1, x2, y2, lineWidth);\n\n if (!this.box(box.minX, box.maxX, box.minY, box.maxY, x, y)) {\n return false;\n }\n\n var d = Line.pointDistance(x1, y1, x2, y2, x, y);\n\n if (isNaN(d)) {\n return false;\n }\n\n return d <= lineWidth / 2;\n },\n polyline: function polyline(points, lineWidth, x, y) {\n var l = points.length - 1;\n\n if (l < 1) {\n return false;\n }\n\n for (var i = 0; i < l; i++) {\n var x1 = points[i][0];\n var y1 = points[i][1];\n var x2 = points[i + 1][0];\n var y2 = points[i + 1][1];\n\n if (this.line(x1, y1, x2, y2, lineWidth, x, y)) {\n return true;\n }\n }\n\n return false;\n },\n cubicline: function cubicline(x1, y1, x2, y2, x3, y3, x4, y4, lineWidth, x, y) {\n return Cubic.pointDistance(x1, y1, x2, y2, x3, y3, x4, y4, x, y) <= lineWidth / 2;\n },\n quadraticline: function quadraticline(x1, y1, x2, y2, x3, y3, lineWidth, x, y) {\n return Quadratic.pointDistance(x1, y1, x2, y2, x3, y3, x, y) <= lineWidth / 2;\n },\n arcline: function arcline(cx, cy, r, startAngle, endAngle, clockwise, lineWidth, x, y) {\n return Arc.pointDistance(cx, cy, r, startAngle, endAngle, clockwise, x, y) <= lineWidth / 2;\n },\n rect: function rect(rx, ry, width, height, x, y) {\n return rx <= x && x <= rx + width && ry <= y && y <= ry + height;\n },\n circle: function circle(cx, cy, r, x, y) {\n return Math.pow(x - cx, 2) + Math.pow(y - cy, 2) <= Math.pow(r, 2);\n },\n box: function box(minX, maxX, minY, maxY, x, y) {\n return minX <= x && x <= maxX && minY <= y && y <= maxY;\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/util/inside.js\n// module id = 39\n// module chunks = 0","var Util = require('../../util/index');\n\nvar vec2 = Util.vec2;\n\nfunction cubicAt(p0, p1, p2, p3, t) {\n var onet = 1 - t;\n return onet * onet * (onet * p3 + 3 * t * p2) + t * t * (t * p0 + 3 * onet * p1);\n}\n\nfunction cubicDerivativeAt(p0, p1, p2, p3, t) {\n var onet = 1 - t;\n return 3 * (((p1 - p0) * onet + 2 * (p2 - p1) * t) * onet + (p3 - p2) * t * t);\n}\n\nfunction cubicProjectPoint(x1, y1, x2, y2, x3, y3, x4, y4, x, y, out) {\n var t;\n var interval = 0.005;\n var d = Infinity;\n\n var _t;\n\n var v1;\n var d1;\n var d2;\n var v2;\n var prev;\n var next;\n var EPSILON = 0.0001;\n var v0 = [x, y];\n\n for (_t = 0; _t < 1; _t += 0.05) {\n v1 = [cubicAt(x1, x2, x3, x4, _t), cubicAt(y1, y2, y3, y4, _t)];\n d1 = vec2.squaredDistance(v0, v1);\n\n if (d1 < d) {\n t = _t;\n d = d1;\n }\n }\n\n d = Infinity;\n\n for (var i = 0; i < 32; i++) {\n if (interval < EPSILON) {\n break;\n }\n\n prev = t - interval;\n next = t + interval;\n v1 = [cubicAt(x1, x2, x3, x4, prev), cubicAt(y1, y2, y3, y4, prev)];\n d1 = vec2.squaredDistance(v0, v1);\n\n if (prev >= 0 && d1 < d) {\n t = prev;\n d = d1;\n } else {\n v2 = [cubicAt(x1, x2, x3, x4, next), cubicAt(y1, y2, y3, y4, next)];\n d2 = vec2.squaredDistance(v0, v2);\n\n if (next <= 1 && d2 < d) {\n t = next;\n d = d2;\n } else {\n interval *= 0.5;\n }\n }\n }\n\n if (out) {\n out.x = cubicAt(x1, x2, x3, x4, t);\n out.y = cubicAt(y1, y2, y3, y4, t);\n }\n\n return Math.sqrt(d);\n}\n\nfunction cubicExtrema(p0, p1, p2, p3) {\n var a = 3 * p0 - 9 * p1 + 9 * p2 - 3 * p3;\n var b = 6 * p1 - 12 * p2 + 6 * p3;\n var c = 3 * p2 - 3 * p3;\n var extrema = [];\n var t1;\n var t2;\n var discSqrt;\n\n if (Util.isNumberEqual(a, 0)) {\n if (!Util.isNumberEqual(b, 0)) {\n t1 = -c / b;\n\n if (t1 >= 0 && t1 <= 1) {\n extrema.push(t1);\n }\n }\n } else {\n var disc = b * b - 4 * a * c;\n\n if (Util.isNumberEqual(disc, 0)) {\n extrema.push(-b / (2 * a));\n } else if (disc > 0) {\n discSqrt = Math.sqrt(disc);\n t1 = (-b + discSqrt) / (2 * a);\n t2 = (-b - discSqrt) / (2 * a);\n\n if (t1 >= 0 && t1 <= 1) {\n extrema.push(t1);\n }\n\n if (t2 >= 0 && t2 <= 1) {\n extrema.push(t2);\n }\n }\n }\n\n return extrema;\n}\n\nfunction base3(t, p1, p2, p3, p4) {\n var t1 = -3 * p1 + 9 * p2 - 9 * p3 + 3 * p4;\n var t2 = t * t1 + 6 * p1 - 12 * p2 + 6 * p3;\n return t * t2 - 3 * p1 + 3 * p2;\n}\n\nfunction cubiclLen(x1, y1, x2, y2, x3, y3, x4, y4, z) {\n if (Util.isNil(z)) {\n z = 1;\n }\n\n z = z > 1 ? 1 : z < 0 ? 0 : z;\n var z2 = z / 2;\n var n = 12;\n var Tvalues = [-0.1252, 0.1252, -0.3678, 0.3678, -0.5873, 0.5873, -0.7699, 0.7699, -0.9041, 0.9041, -0.9816, 0.9816];\n var Cvalues = [0.2491, 0.2491, 0.2335, 0.2335, 0.2032, 0.2032, 0.1601, 0.1601, 0.1069, 0.1069, 0.0472, 0.0472];\n var sum = 0;\n\n for (var i = 0; i < n; i++) {\n var ct = z2 * Tvalues[i] + z2;\n var xbase = base3(ct, x1, x2, x3, x4);\n var ybase = base3(ct, y1, y2, y3, y4);\n var comb = xbase * xbase + ybase * ybase;\n sum += Cvalues[i] * Math.sqrt(comb);\n }\n\n return z2 * sum;\n}\n\nmodule.exports = {\n at: cubicAt,\n derivativeAt: cubicDerivativeAt,\n projectPoint: function projectPoint(x1, y1, x2, y2, x3, y3, x4, y4, x, y) {\n var rst = {};\n cubicProjectPoint(x1, y1, x2, y2, x3, y3, x4, y4, x, y, rst);\n return rst;\n },\n pointDistance: cubicProjectPoint,\n extrema: cubicExtrema,\n len: cubiclLen\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/math/cubic.js\n// module id = 40\n// module chunks = 0","var Util = require('../util/index');\n\nvar Shape = require('../core/shape');\n\nvar Format = require('../util/format');\n\nvar PathSegment = require('./util/path-segment');\n\nvar Marker = function Marker(cfg) {\n Marker.superclass.constructor.call(this, cfg);\n};\n\nMarker.Symbols = {\n // 圆\n circle: function circle(x, y, r) {\n return [['M', x, y], ['m', -r, 0], ['a', r, r, 0, 1, 0, r * 2, 0], ['a', r, r, 0, 1, 0, -r * 2, 0]];\n },\n // 正方形\n square: function square(x, y, r) {\n return [['M', x - r, y - r], ['L', x + r, y - r], ['L', x + r, y + r], ['L', x - r, y + r], ['Z']];\n },\n // 菱形\n diamond: function diamond(x, y, r) {\n return [['M', x - r, y], ['L', x, y - r], ['L', x + r, y], ['L', x, y + r], ['Z']];\n },\n // 三角形\n triangle: function triangle(x, y, r) {\n var diffY = r * Math.sin(1 / 3 * Math.PI);\n return [['M', x - r, y + diffY], ['L', x, y - diffY], ['L', x + r, y + diffY], ['z']];\n },\n // 倒三角形\n 'triangle-down': function triangleDown(x, y, r) {\n var diffY = r * Math.sin(1 / 3 * Math.PI);\n return [['M', x - r, y - diffY], ['L', x + r, y - diffY], ['L', x, y + diffY], ['Z']];\n }\n};\nMarker.ATTRS = {\n path: null,\n lineWidth: 1\n};\nUtil.extend(Marker, Shape);\nUtil.augment(Marker, {\n type: 'marker',\n canFill: true,\n canStroke: true,\n getDefaultAttrs: function getDefaultAttrs() {\n return {\n x: 0,\n y: 0,\n lineWidth: 1\n };\n },\n calculateBox: function calculateBox() {\n var attrs = this._attrs;\n var cx = attrs.x;\n var cy = attrs.y;\n var r = attrs.radius;\n var lineWidth = this.getHitLineWidth();\n var halfWidth = lineWidth / 2 + r;\n return {\n minX: cx - halfWidth,\n minY: cy - halfWidth,\n maxX: cx + halfWidth,\n maxY: cy + halfWidth\n };\n },\n _getPath: function _getPath() {\n var attrs = this._attrs;\n var x = attrs.x;\n var y = attrs.y;\n var r = attrs.radius || attrs.r;\n var symbol = attrs.symbol || 'circle';\n var method;\n\n if (Util.isFunction(symbol)) {\n method = symbol;\n } else {\n method = Marker.Symbols[symbol];\n }\n\n if (!method) {\n console.warn(symbol + \" marker is not supported.\");\n return null;\n }\n\n return method(x, y, r);\n },\n createPath: function createPath(context) {\n var segments = this._cfg.segments;\n\n if (segments && !this._cfg.hasUpdate) {\n context.beginPath();\n\n for (var i = 0; i < segments.length; i++) {\n segments[i].draw(context);\n }\n\n return;\n }\n\n var path = Format.parsePath(this._getPath());\n context.beginPath();\n var preSegment;\n segments = [];\n\n for (var _i = 0; _i < path.length; _i++) {\n var item = path[_i];\n preSegment = new PathSegment(item, preSegment, _i === path.length - 1);\n segments.push(preSegment);\n preSegment.draw(context);\n }\n\n this._cfg.segments = segments;\n this._cfg.hasUpdate = false;\n }\n});\nmodule.exports = Marker;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/marker.js\n// module id = 41\n// module chunks = 0","var Util = require('./common');\n\nvar SPACES = \"\\t\\n\\x0B\\f\\r \\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029\";\nvar PATH_COMMAND = new RegExp('([a-z])[' + SPACES + ',]*((-?\\\\d*\\\\.?\\\\d*(?:e[\\\\-+]?\\\\d+)?[' + SPACES + ']*,?[' + SPACES + ']*)+)', 'ig');\nvar PATH_VALUES = new RegExp('(-?\\\\d*\\\\.?\\\\d*(?:e[\\\\-+]?\\\\d+)?)[' + SPACES + ']*,?[' + SPACES + ']*', 'ig'); // Parses given path string into an array of arrays of path segments\n\nvar parsePathString = function parsePathString(pathString) {\n if (!pathString) {\n return null;\n }\n\n if (typeof pathString === typeof []) {\n return pathString;\n }\n\n var paramCounts = {\n a: 7,\n c: 6,\n o: 2,\n h: 1,\n l: 2,\n m: 2,\n r: 4,\n q: 4,\n s: 4,\n t: 2,\n v: 1,\n u: 3,\n z: 0\n };\n var data = [];\n String(pathString).replace(PATH_COMMAND, function (a, b, c) {\n var params = [];\n var name = b.toLowerCase();\n c.replace(PATH_VALUES, function (a, b) {\n b && params.push(+b);\n });\n\n if (name === 'm' && params.length > 2) {\n data.push([b].concat(params.splice(0, 2)));\n name = 'l';\n b = b === 'm' ? 'l' : 'L';\n }\n\n if (name === 'o' && params.length === 1) {\n data.push([b, params[0]]);\n }\n\n if (name === 'r') {\n data.push([b].concat(params));\n } else {\n while (params.length >= paramCounts[name]) {\n data.push([b].concat(params.splice(0, paramCounts[name])));\n\n if (!paramCounts[name]) {\n break;\n }\n }\n }\n });\n return data;\n}; // http://schepers.cc/getting-to-the-point\n\n\nvar catmullRom2bezier = function catmullRom2bezier(crp, z) {\n var d = [];\n\n for (var i = 0, iLen = crp.length; iLen - 2 * !z > i; i += 2) {\n var p = [{\n x: +crp[i - 2],\n y: +crp[i - 1]\n }, {\n x: +crp[i],\n y: +crp[i + 1]\n }, {\n x: +crp[i + 2],\n y: +crp[i + 3]\n }, {\n x: +crp[i + 4],\n y: +crp[i + 5]\n }];\n\n if (z) {\n if (!i) {\n p[0] = {\n x: +crp[iLen - 2],\n y: +crp[iLen - 1]\n };\n } else if (iLen - 4 === i) {\n p[3] = {\n x: +crp[0],\n y: +crp[1]\n };\n } else if (iLen - 2 === i) {\n p[2] = {\n x: +crp[0],\n y: +crp[1]\n };\n p[3] = {\n x: +crp[2],\n y: +crp[3]\n };\n }\n } else {\n if (iLen - 4 === i) {\n p[3] = p[2];\n } else if (!i) {\n p[0] = {\n x: +crp[i],\n y: +crp[i + 1]\n };\n }\n }\n\n d.push(['C', (-p[0].x + 6 * p[1].x + p[2].x) / 6, (-p[0].y + 6 * p[1].y + p[2].y) / 6, (p[1].x + 6 * p[2].x - p[3].x) / 6, (p[1].y + 6 * p[2].y - p[3].y) / 6, p[2].x, p[2].y]);\n }\n\n return d;\n};\n\nvar ellipsePath = function ellipsePath(x, y, rx, ry, a) {\n var res = [];\n\n if (a === null && ry === null) {\n ry = rx;\n }\n\n x = +x;\n y = +y;\n rx = +rx;\n ry = +ry;\n\n if (a !== null) {\n var rad = Math.PI / 180;\n var x1 = x + rx * Math.cos(-ry * rad);\n var x2 = x + rx * Math.cos(-a * rad);\n var y1 = y + rx * Math.sin(-ry * rad);\n var y2 = y + rx * Math.sin(-a * rad);\n res = [['M', x1, y1], ['A', rx, rx, 0, +(a - ry > 180), 0, x2, y2]];\n } else {\n res = [['M', x, y], ['m', 0, -ry], ['a', rx, ry, 0, 1, 1, 0, 2 * ry], ['a', rx, ry, 0, 1, 1, 0, -2 * ry], ['z']];\n }\n\n return res;\n};\n\nvar pathToAbsolute = function pathToAbsolute(pathArray) {\n pathArray = parsePathString(pathArray);\n\n if (!pathArray || !pathArray.length) {\n return [['M', 0, 0]];\n }\n\n var res = [];\n var x = 0;\n var y = 0;\n var mx = 0;\n var my = 0;\n var start = 0;\n var pa0;\n var dots;\n\n if (pathArray[0][0] === 'M') {\n x = +pathArray[0][1];\n y = +pathArray[0][2];\n mx = x;\n my = y;\n start++;\n res[0] = ['M', x, y];\n }\n\n var crz = pathArray.length === 3 && pathArray[0][0] === 'M' && pathArray[1][0].toUpperCase() === 'R' && pathArray[2][0].toUpperCase() === 'Z';\n\n for (var r, pa, i = start, ii = pathArray.length; i < ii; i++) {\n res.push(r = []);\n pa = pathArray[i];\n pa0 = pa[0];\n\n if (pa0 !== pa0.toUpperCase()) {\n r[0] = pa0.toUpperCase();\n\n switch (r[0]) {\n case 'A':\n r[1] = pa[1];\n r[2] = pa[2];\n r[3] = pa[3];\n r[4] = pa[4];\n r[5] = pa[5];\n r[6] = +pa[6] + x;\n r[7] = +pa[7] + y;\n break;\n\n case 'V':\n r[1] = +pa[1] + y;\n break;\n\n case 'H':\n r[1] = +pa[1] + x;\n break;\n\n case 'R':\n dots = [x, y].concat(pa.slice(1));\n\n for (var j = 2, jj = dots.length; j < jj; j++) {\n dots[j] = +dots[j] + x;\n dots[++j] = +dots[j] + y;\n }\n\n res.pop();\n res = res.concat(catmullRom2bezier(dots, crz));\n break;\n\n case 'O':\n res.pop();\n dots = ellipsePath(x, y, pa[1], pa[2]);\n dots.push(dots[0]);\n res = res.concat(dots);\n break;\n\n case 'U':\n res.pop();\n res = res.concat(ellipsePath(x, y, pa[1], pa[2], pa[3]));\n r = ['U'].concat(res[res.length - 1].slice(-2));\n break;\n\n case 'M':\n mx = +pa[1] + x;\n my = +pa[2] + y;\n break;\n // for lint\n\n default:\n for (var _j = 1, _jj = pa.length; _j < _jj; _j++) {\n r[_j] = +pa[_j] + (_j % 2 ? x : y);\n }\n\n }\n } else if (pa0 === 'R') {\n dots = [x, y].concat(pa.slice(1));\n res.pop();\n res = res.concat(catmullRom2bezier(dots, crz));\n r = ['R'].concat(pa.slice(-2));\n } else if (pa0 === 'O') {\n res.pop();\n dots = ellipsePath(x, y, pa[1], pa[2]);\n dots.push(dots[0]);\n res = res.concat(dots);\n } else if (pa0 === 'U') {\n res.pop();\n res = res.concat(ellipsePath(x, y, pa[1], pa[2], pa[3]));\n r = ['U'].concat(res[res.length - 1].slice(-2));\n } else {\n for (var k = 0, kk = pa.length; k < kk; k++) {\n r[k] = pa[k];\n }\n }\n\n pa0 = pa0.toUpperCase();\n\n if (pa0 !== 'O') {\n switch (r[0]) {\n case 'Z':\n x = +mx;\n y = +my;\n break;\n\n case 'H':\n x = r[1];\n break;\n\n case 'V':\n y = r[1];\n break;\n\n case 'M':\n mx = r[r.length - 2];\n my = r[r.length - 1];\n break;\n // for lint\n\n default:\n x = r[r.length - 2];\n y = r[r.length - 1];\n }\n }\n }\n\n return res;\n};\n\nvar l2c = function l2c(x1, y1, x2, y2) {\n return [x1, y1, x2, y2, x2, y2];\n};\n\nvar q2c = function q2c(x1, y1, ax, ay, x2, y2) {\n var _13 = 1 / 3;\n\n var _23 = 2 / 3;\n\n return [_13 * x1 + _23 * ax, _13 * y1 + _23 * ay, _13 * x2 + _23 * ax, _13 * y2 + _23 * ay, x2, y2];\n};\n\nvar a2c = function a2c(x1, y1, rx, ry, angle, large_arc_flag, sweep_flag, x2, y2, recursive) {\n // for more information of where this math came from visit:\n // http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes\n if (rx === ry) {\n rx += 1;\n }\n\n var _120 = Math.PI * 120 / 180;\n\n var rad = Math.PI / 180 * (+angle || 0);\n var res = [];\n var xy;\n var f1;\n var f2;\n var cx;\n var cy;\n\n var rotate = function rotate(x, y, rad) {\n var X = x * Math.cos(rad) - y * Math.sin(rad);\n var Y = x * Math.sin(rad) + y * Math.cos(rad);\n return {\n x: X,\n y: Y\n };\n };\n\n if (!recursive) {\n xy = rotate(x1, y1, -rad);\n x1 = xy.x;\n y1 = xy.y;\n xy = rotate(x2, y2, -rad);\n x2 = xy.x;\n y2 = xy.y;\n\n if (x1 === x2 && y1 === y2) {\n // 若弧的起始点和终点重叠则错开一点\n x2 += 1;\n y2 += 1;\n } // const cos = Math.cos(Math.PI / 180 * angle);\n // const sin = Math.sin(Math.PI / 180 * angle);\n\n\n var x = (x1 - x2) / 2;\n var y = (y1 - y2) / 2;\n var h = x * x / (rx * rx) + y * y / (ry * ry);\n\n if (h > 1) {\n h = Math.sqrt(h);\n rx = h * rx;\n ry = h * ry;\n }\n\n var rx2 = rx * rx;\n var ry2 = ry * ry;\n var k = (large_arc_flag === sweep_flag ? -1 : 1) * Math.sqrt(Math.abs((rx2 * ry2 - rx2 * y * y - ry2 * x * x) / (rx2 * y * y + ry2 * x * x)));\n cx = k * rx * y / ry + (x1 + x2) / 2;\n cy = k * -ry * x / rx + (y1 + y2) / 2;\n f1 = Math.asin(((y1 - cy) / ry).toFixed(9));\n f2 = Math.asin(((y2 - cy) / ry).toFixed(9));\n f1 = x1 < cx ? Math.PI - f1 : f1;\n f2 = x2 < cx ? Math.PI - f2 : f2;\n f1 < 0 && (f1 = Math.PI * 2 + f1);\n f2 < 0 && (f2 = Math.PI * 2 + f2);\n\n if (sweep_flag && f1 > f2) {\n f1 = f1 - Math.PI * 2;\n }\n\n if (!sweep_flag && f2 > f1) {\n f2 = f2 - Math.PI * 2;\n }\n } else {\n f1 = recursive[0];\n f2 = recursive[1];\n cx = recursive[2];\n cy = recursive[3];\n }\n\n var df = f2 - f1;\n\n if (Math.abs(df) > _120) {\n var f2old = f2;\n var x2old = x2;\n var y2old = y2;\n f2 = f1 + _120 * (sweep_flag && f2 > f1 ? 1 : -1);\n x2 = cx + rx * Math.cos(f2);\n y2 = cy + ry * Math.sin(f2);\n res = a2c(x2, y2, rx, ry, angle, 0, sweep_flag, x2old, y2old, [f2, f2old, cx, cy]);\n }\n\n df = f2 - f1;\n var c1 = Math.cos(f1);\n var s1 = Math.sin(f1);\n var c2 = Math.cos(f2);\n var s2 = Math.sin(f2);\n var t = Math.tan(df / 4);\n var hx = 4 / 3 * rx * t;\n var hy = 4 / 3 * ry * t;\n var m1 = [x1, y1];\n var m2 = [x1 + hx * s1, y1 - hy * c1];\n var m3 = [x2 + hx * s2, y2 - hy * c2];\n var m4 = [x2, y2];\n m2[0] = 2 * m1[0] - m2[0];\n m2[1] = 2 * m1[1] - m2[1];\n\n if (recursive) {\n return [m2, m3, m4].concat(res);\n }\n\n res = [m2, m3, m4].concat(res).join().split(',');\n var newres = [];\n\n for (var i = 0, ii = res.length; i < ii; i++) {\n newres[i] = i % 2 ? rotate(res[i - 1], res[i], rad).y : rotate(res[i], res[i + 1], rad).x;\n }\n\n return newres;\n};\n\nvar pathTocurve = function pathTocurve(path, path2) {\n var p = pathToAbsolute(path);\n var p2 = path2 && pathToAbsolute(path2);\n var attrs = {\n x: 0,\n y: 0,\n bx: 0,\n by: 0,\n X: 0,\n Y: 0,\n qx: null,\n qy: null\n };\n var attrs2 = {\n x: 0,\n y: 0,\n bx: 0,\n by: 0,\n X: 0,\n Y: 0,\n qx: null,\n qy: null\n };\n var pcoms1 = []; // path commands of original path p\n\n var pcoms2 = []; // path commands of original path p2\n\n var pfirst = ''; // temporary holder for original path command\n\n var pcom = ''; // holder for previous path command of original path\n\n var ii;\n\n var processPath = function processPath(path, d, pcom) {\n var nx, ny;\n\n if (!path) {\n return ['C', d.x, d.y, d.x, d.y, d.x, d.y];\n }\n\n !(path[0] in {\n T: 1,\n Q: 1\n }) && (d.qx = d.qy = null);\n\n switch (path[0]) {\n case 'M':\n d.X = path[1];\n d.Y = path[2];\n break;\n\n case 'A':\n path = ['C'].concat(a2c.apply(0, [d.x, d.y].concat(path.slice(1))));\n break;\n\n case 'S':\n if (pcom === 'C' || pcom === 'S') {\n // In \"S\" case we have to take into account, if the previous command is C/S.\n nx = d.x * 2 - d.bx; // And reflect the previous\n\n ny = d.y * 2 - d.by; // command's control point relative to the current point.\n } else {\n // or some else or nothing\n nx = d.x;\n ny = d.y;\n }\n\n path = ['C', nx, ny].concat(path.slice(1));\n break;\n\n case 'T':\n if (pcom === 'Q' || pcom === 'T') {\n // In \"T\" case we have to take into account, if the previous command is Q/T.\n d.qx = d.x * 2 - d.qx; // And make a reflection similar\n\n d.qy = d.y * 2 - d.qy; // to case \"S\".\n } else {\n // or something else or nothing\n d.qx = d.x;\n d.qy = d.y;\n }\n\n path = ['C'].concat(q2c(d.x, d.y, d.qx, d.qy, path[1], path[2]));\n break;\n\n case 'Q':\n d.qx = path[1];\n d.qy = path[2];\n path = ['C'].concat(q2c(d.x, d.y, path[1], path[2], path[3], path[4]));\n break;\n\n case 'L':\n path = ['C'].concat(l2c(d.x, d.y, path[1], path[2]));\n break;\n\n case 'H':\n path = ['C'].concat(l2c(d.x, d.y, path[1], d.y));\n break;\n\n case 'V':\n path = ['C'].concat(l2c(d.x, d.y, d.x, path[1]));\n break;\n\n case 'Z':\n path = ['C'].concat(l2c(d.x, d.y, d.X, d.Y));\n break;\n\n default:\n break;\n }\n\n return path;\n };\n\n var fixArc = function fixArc(pp, i) {\n if (pp[i].length > 7) {\n pp[i].shift();\n var pi = pp[i];\n\n while (pi.length) {\n pcoms1[i] = 'A'; // if created multiple C:s, their original seg is saved\n\n p2 && (pcoms2[i] = 'A'); // the same as above\n\n pp.splice(i++, 0, ['C'].concat(pi.splice(0, 6)));\n }\n\n pp.splice(i, 1);\n ii = Math.max(p.length, p2 && p2.length || 0);\n }\n };\n\n var fixM = function fixM(path1, path2, a1, a2, i) {\n if (path1 && path2 && path1[i][0] === 'M' && path2[i][0] !== 'M') {\n path2.splice(i, 0, ['M', a2.x, a2.y]);\n a1.bx = 0;\n a1.by = 0;\n a1.x = path1[i][1];\n a1.y = path1[i][2];\n ii = Math.max(p.length, p2 && p2.length || 0);\n }\n };\n\n ii = Math.max(p.length, p2 && p2.length || 0);\n\n for (var i = 0; i < ii; i++) {\n p[i] && (pfirst = p[i][0]); // save current path command\n\n if (pfirst !== 'C') {\n // C is not saved yet, because it may be result of conversion\n pcoms1[i] = pfirst; // Save current path command\n\n i && (pcom = pcoms1[i - 1]); // Get previous path command pcom\n }\n\n p[i] = processPath(p[i], attrs, pcom); // Previous path command is inputted to processPath\n\n if (pcoms1[i] !== 'A' && pfirst === 'C') pcoms1[i] = 'C'; // A is the only command\n // which may produce multiple C:s\n // so we have to make sure that C is also C in original path\n\n fixArc(p, i); // fixArc adds also the right amount of A:s to pcoms1\n\n if (p2) {\n // the same procedures is done to p2\n p2[i] && (pfirst = p2[i][0]);\n\n if (pfirst !== 'C') {\n pcoms2[i] = pfirst;\n i && (pcom = pcoms2[i - 1]);\n }\n\n p2[i] = processPath(p2[i], attrs2, pcom);\n\n if (pcoms2[i] !== 'A' && pfirst === 'C') {\n pcoms2[i] = 'C';\n }\n\n fixArc(p2, i);\n }\n\n fixM(p, p2, attrs, attrs2, i);\n fixM(p2, p, attrs2, attrs, i);\n var seg = p[i];\n var seg2 = p2 && p2[i];\n var seglen = seg.length;\n var seg2len = p2 && seg2.length;\n attrs.x = seg[seglen - 2];\n attrs.y = seg[seglen - 1];\n attrs.bx = parseFloat(seg[seglen - 4]) || attrs.x;\n attrs.by = parseFloat(seg[seglen - 3]) || attrs.y;\n attrs2.bx = p2 && (parseFloat(seg2[seg2len - 4]) || attrs2.x);\n attrs2.by = p2 && (parseFloat(seg2[seg2len - 3]) || attrs2.y);\n attrs2.x = p2 && seg2[seg2len - 2];\n attrs2.y = p2 && seg2[seg2len - 1];\n }\n\n return p2 ? [p, p2] : p;\n};\n\nvar p2s = /,?([a-z]),?/gi;\n\nvar parsePathArray = function parsePathArray(path) {\n return path.join(',').replace(p2s, '$1');\n};\n\nvar base3 = function base3(t, p1, p2, p3, p4) {\n var t1 = -3 * p1 + 9 * p2 - 9 * p3 + 3 * p4;\n var t2 = t * t1 + 6 * p1 - 12 * p2 + 6 * p3;\n return t * t2 - 3 * p1 + 3 * p2;\n};\n\nvar bezlen = function bezlen(x1, y1, x2, y2, x3, y3, x4, y4, z) {\n if (z === null) {\n z = 1;\n }\n\n z = z > 1 ? 1 : z < 0 ? 0 : z;\n var z2 = z / 2;\n var n = 12;\n var Tvalues = [-0.1252, 0.1252, -0.3678, 0.3678, -0.5873, 0.5873, -0.7699, 0.7699, -0.9041, 0.9041, -0.9816, 0.9816];\n var Cvalues = [0.2491, 0.2491, 0.2335, 0.2335, 0.2032, 0.2032, 0.1601, 0.1601, 0.1069, 0.1069, 0.0472, 0.0472];\n var sum = 0;\n\n for (var i = 0; i < n; i++) {\n var ct = z2 * Tvalues[i] + z2;\n var xbase = base3(ct, x1, x2, x3, x4);\n var ybase = base3(ct, y1, y2, y3, y4);\n var comb = xbase * xbase + ybase * ybase;\n sum += Cvalues[i] * Math.sqrt(comb);\n }\n\n return z2 * sum;\n};\n\nvar curveDim = function curveDim(x0, y0, x1, y1, x2, y2, x3, y3) {\n var tvalues = [];\n var bounds = [[], []];\n var a;\n var b;\n var c;\n var t;\n\n for (var i = 0; i < 2; ++i) {\n if (i === 0) {\n b = 6 * x0 - 12 * x1 + 6 * x2;\n a = -3 * x0 + 9 * x1 - 9 * x2 + 3 * x3;\n c = 3 * x1 - 3 * x0;\n } else {\n b = 6 * y0 - 12 * y1 + 6 * y2;\n a = -3 * y0 + 9 * y1 - 9 * y2 + 3 * y3;\n c = 3 * y1 - 3 * y0;\n }\n\n if (Math.abs(a) < 1e-12) {\n if (Math.abs(b) < 1e-12) {\n continue;\n }\n\n t = -c / b;\n\n if (t > 0 && t < 1) {\n tvalues.push(t);\n }\n\n continue;\n }\n\n var b2ac = b * b - 4 * c * a;\n var sqrtb2ac = Math.sqrt(b2ac);\n\n if (b2ac < 0) {\n continue;\n }\n\n var t1 = (-b + sqrtb2ac) / (2 * a);\n\n if (t1 > 0 && t1 < 1) {\n tvalues.push(t1);\n }\n\n var t2 = (-b - sqrtb2ac) / (2 * a);\n\n if (t2 > 0 && t2 < 1) {\n tvalues.push(t2);\n }\n }\n\n var j = tvalues.length;\n var jlen = j;\n var mt;\n\n while (j--) {\n t = tvalues[j];\n mt = 1 - t;\n bounds[0][j] = mt * mt * mt * x0 + 3 * mt * mt * t * x1 + 3 * mt * t * t * x2 + t * t * t * x3;\n bounds[1][j] = mt * mt * mt * y0 + 3 * mt * mt * t * y1 + 3 * mt * t * t * y2 + t * t * t * y3;\n }\n\n bounds[0][jlen] = x0;\n bounds[1][jlen] = y0;\n bounds[0][jlen + 1] = x3;\n bounds[1][jlen + 1] = y3;\n bounds[0].length = bounds[1].length = jlen + 2;\n return {\n min: {\n x: Math.min.apply(0, bounds[0]),\n y: Math.min.apply(0, bounds[1])\n },\n max: {\n x: Math.max.apply(0, bounds[0]),\n y: Math.max.apply(0, bounds[1])\n }\n };\n};\n\nvar intersect = function intersect(x1, y1, x2, y2, x3, y3, x4, y4) {\n if (Math.max(x1, x2) < Math.min(x3, x4) || Math.min(x1, x2) > Math.max(x3, x4) || Math.max(y1, y2) < Math.min(y3, y4) || Math.min(y1, y2) > Math.max(y3, y4)) {\n return;\n }\n\n var nx = (x1 * y2 - y1 * x2) * (x3 - x4) - (x1 - x2) * (x3 * y4 - y3 * x4);\n var ny = (x1 * y2 - y1 * x2) * (y3 - y4) - (y1 - y2) * (x3 * y4 - y3 * x4);\n var denominator = (x1 - x2) * (y3 - y4) - (y1 - y2) * (x3 - x4);\n\n if (!denominator) {\n return;\n }\n\n var px = nx / denominator;\n var py = ny / denominator;\n var px2 = +px.toFixed(2);\n var py2 = +py.toFixed(2);\n\n if (px2 < +Math.min(x1, x2).toFixed(2) || px2 > +Math.max(x1, x2).toFixed(2) || px2 < +Math.min(x3, x4).toFixed(2) || px2 > +Math.max(x3, x4).toFixed(2) || py2 < +Math.min(y1, y2).toFixed(2) || py2 > +Math.max(y1, y2).toFixed(2) || py2 < +Math.min(y3, y4).toFixed(2) || py2 > +Math.max(y3, y4).toFixed(2)) {\n return;\n }\n\n return {\n x: px,\n y: py\n };\n};\n\nvar isPointInsideBBox = function isPointInsideBBox(bbox, x, y) {\n return x >= bbox.x && x <= bbox.x + bbox.width && y >= bbox.y && y <= bbox.y + bbox.height;\n};\n\nvar rectPath = function rectPath(x, y, w, h, r) {\n if (r) {\n return [['M', +x + +r, y], ['l', w - r * 2, 0], ['a', r, r, 0, 0, 1, r, r], ['l', 0, h - r * 2], ['a', r, r, 0, 0, 1, -r, r], ['l', r * 2 - w, 0], ['a', r, r, 0, 0, 1, -r, -r], ['l', 0, r * 2 - h], ['a', r, r, 0, 0, 1, r, -r], ['z']];\n }\n\n var res = [['M', x, y], ['l', w, 0], ['l', 0, h], ['l', -w, 0], ['z']];\n res.parsePathArray = parsePathArray;\n return res;\n};\n\nvar box = function box(x, y, width, height) {\n if (x === null) {\n x = y = width = height = 0;\n }\n\n if (y === null) {\n y = x.y;\n width = x.width;\n height = x.height;\n x = x.x;\n }\n\n return {\n x: x,\n y: y,\n width: width,\n w: width,\n height: height,\n h: height,\n x2: x + width,\n y2: y + height,\n cx: x + width / 2,\n cy: y + height / 2,\n r1: Math.min(width, height) / 2,\n r2: Math.max(width, height) / 2,\n r0: Math.sqrt(width * width + height * height) / 2,\n path: rectPath(x, y, width, height),\n vb: [x, y, width, height].join(' ')\n };\n};\n\nvar isBBoxIntersect = function isBBoxIntersect(bbox1, bbox2) {\n bbox1 = box(bbox1);\n bbox2 = box(bbox2);\n return isPointInsideBBox(bbox2, bbox1.x, bbox1.y) || isPointInsideBBox(bbox2, bbox1.x2, bbox1.y) || isPointInsideBBox(bbox2, bbox1.x, bbox1.y2) || isPointInsideBBox(bbox2, bbox1.x2, bbox1.y2) || isPointInsideBBox(bbox1, bbox2.x, bbox2.y) || isPointInsideBBox(bbox1, bbox2.x2, bbox2.y) || isPointInsideBBox(bbox1, bbox2.x, bbox2.y2) || isPointInsideBBox(bbox1, bbox2.x2, bbox2.y2) || (bbox1.x < bbox2.x2 && bbox1.x > bbox2.x || bbox2.x < bbox1.x2 && bbox2.x > bbox1.x) && (bbox1.y < bbox2.y2 && bbox1.y > bbox2.y || bbox2.y < bbox1.y2 && bbox2.y > bbox1.y);\n};\n\nvar bezierBBox = function bezierBBox(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y) {\n if (!Util.isArray(p1x)) {\n p1x = [p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y];\n }\n\n var bbox = curveDim.apply(null, p1x);\n return box(bbox.min.x, bbox.min.y, bbox.max.x - bbox.min.x, bbox.max.y - bbox.min.y);\n};\n\nvar findDotsAtSegment = function findDotsAtSegment(p1x, p1y, c1x, c1y, c2x, c2y, p2x, p2y, t) {\n var t1 = 1 - t;\n var t13 = Math.pow(t1, 3);\n var t12 = Math.pow(t1, 2);\n var t2 = t * t;\n var t3 = t2 * t;\n var x = t13 * p1x + t12 * 3 * t * c1x + t1 * 3 * t * t * c2x + t3 * p2x;\n var y = t13 * p1y + t12 * 3 * t * c1y + t1 * 3 * t * t * c2y + t3 * p2y;\n var mx = p1x + 2 * t * (c1x - p1x) + t2 * (c2x - 2 * c1x + p1x);\n var my = p1y + 2 * t * (c1y - p1y) + t2 * (c2y - 2 * c1y + p1y);\n var nx = c1x + 2 * t * (c2x - c1x) + t2 * (p2x - 2 * c2x + c1x);\n var ny = c1y + 2 * t * (c2y - c1y) + t2 * (p2y - 2 * c2y + c1y);\n var ax = t1 * p1x + t * c1x;\n var ay = t1 * p1y + t * c1y;\n var cx = t1 * c2x + t * p2x;\n var cy = t1 * c2y + t * p2y;\n var alpha = 90 - Math.atan2(mx - nx, my - ny) * 180 / Math.PI; // (mx > nx || my < ny) && (alpha += 180);\n\n return {\n x: x,\n y: y,\n m: {\n x: mx,\n y: my\n },\n n: {\n x: nx,\n y: ny\n },\n start: {\n x: ax,\n y: ay\n },\n end: {\n x: cx,\n y: cy\n },\n alpha: alpha\n };\n};\n\nvar interHelper = function interHelper(bez1, bez2, justCount) {\n var bbox1 = bezierBBox(bez1);\n var bbox2 = bezierBBox(bez2);\n\n if (!isBBoxIntersect(bbox1, bbox2)) {\n return justCount ? 0 : [];\n }\n\n var l1 = bezlen.apply(0, bez1);\n var l2 = bezlen.apply(0, bez2);\n var n1 = ~~(l1 / 8);\n var n2 = ~~(l2 / 8);\n var dots1 = [];\n var dots2 = [];\n var xy = {};\n var res = justCount ? 0 : [];\n\n for (var i = 0; i < n1 + 1; i++) {\n var d = findDotsAtSegment.apply(0, bez1.concat(i / n1));\n dots1.push({\n x: d.x,\n y: d.y,\n t: i / n1\n });\n }\n\n for (var _i = 0; _i < n2 + 1; _i++) {\n var _d = findDotsAtSegment.apply(0, bez2.concat(_i / n2));\n\n dots2.push({\n x: _d.x,\n y: _d.y,\n t: _i / n2\n });\n }\n\n for (var _i2 = 0; _i2 < n1; _i2++) {\n for (var j = 0; j < n2; j++) {\n var di = dots1[_i2];\n var di1 = dots1[_i2 + 1];\n var dj = dots2[j];\n var dj1 = dots2[j + 1];\n var ci = Math.abs(di1.x - di.x) < 0.001 ? 'y' : 'x';\n var cj = Math.abs(dj1.x - dj.x) < 0.001 ? 'y' : 'x';\n var is = intersect(di.x, di.y, di1.x, di1.y, dj.x, dj.y, dj1.x, dj1.y);\n\n if (is) {\n if (xy[is.x.toFixed(4)] === is.y.toFixed(4)) {\n continue;\n }\n\n xy[is.x.toFixed(4)] = is.y.toFixed(4);\n var t1 = di.t + Math.abs((is[ci] - di[ci]) / (di1[ci] - di[ci])) * (di1.t - di.t);\n var t2 = dj.t + Math.abs((is[cj] - dj[cj]) / (dj1[cj] - dj[cj])) * (dj1.t - dj.t);\n\n if (t1 >= 0 && t1 <= 1 && t2 >= 0 && t2 <= 1) {\n if (justCount) {\n res++;\n } else {\n res.push({\n x: is.x,\n y: is.y,\n t1: t1,\n t2: t2\n });\n }\n }\n }\n }\n }\n\n return res;\n};\n\nvar interPathHelper = function interPathHelper(path1, path2, justCount) {\n path1 = pathTocurve(path1);\n path2 = pathTocurve(path2);\n var x1;\n var y1;\n var x2;\n var y2;\n var x1m;\n var y1m;\n var x2m;\n var y2m;\n var bez1;\n var bez2;\n var res = justCount ? 0 : [];\n\n for (var i = 0, ii = path1.length; i < ii; i++) {\n var pi = path1[i];\n\n if (pi[0] === 'M') {\n x1 = x1m = pi[1];\n y1 = y1m = pi[2];\n } else {\n if (pi[0] === 'C') {\n bez1 = [x1, y1].concat(pi.slice(1));\n x1 = bez1[6];\n y1 = bez1[7];\n } else {\n bez1 = [x1, y1, x1, y1, x1m, y1m, x1m, y1m];\n x1 = x1m;\n y1 = y1m;\n }\n\n for (var j = 0, jj = path2.length; j < jj; j++) {\n var pj = path2[j];\n\n if (pj[0] === 'M') {\n x2 = x2m = pj[1];\n y2 = y2m = pj[2];\n } else {\n if (pj[0] === 'C') {\n bez2 = [x2, y2].concat(pj.slice(1));\n x2 = bez2[6];\n y2 = bez2[7];\n } else {\n bez2 = [x2, y2, x2, y2, x2m, y2m, x2m, y2m];\n x2 = x2m;\n y2 = y2m;\n }\n\n var intr = interHelper(bez1, bez2, justCount);\n\n if (justCount) {\n res += intr;\n } else {\n for (var k = 0, kk = intr.length; k < kk; k++) {\n intr[k].segment1 = i;\n intr[k].segment2 = j;\n intr[k].bez1 = bez1;\n intr[k].bez2 = bez2;\n }\n\n res = res.concat(intr);\n }\n }\n }\n }\n }\n\n return res;\n};\n\nvar pathIntersection = function pathIntersection(path1, path2) {\n return interPathHelper(path1, path2);\n};\n\nfunction decasteljau(points, t) {\n var left = [];\n var right = [];\n\n function recurse(points, t) {\n if (points.length === 1) {\n left.push(points[0]);\n right.push(points[0]);\n } else {\n var middlePoints = [];\n\n for (var i = 0; i < points.length - 1; i++) {\n if (i === 0) {\n left.push(points[0]);\n }\n\n if (i === points.length - 2) {\n right.push(points[i + 1]);\n }\n\n middlePoints[i] = [(1 - t) * points[i][0] + t * points[i + 1][0], (1 - t) * points[i][1] + t * points[i + 1][1]];\n }\n\n recurse(middlePoints, t);\n }\n }\n\n if (points.length) {\n recurse(points, t);\n }\n\n return {\n left: left,\n right: right.reverse()\n };\n}\n\nfunction splitCurve(start, end, count) {\n var points = [[start[1], start[2]]];\n count = count || 2;\n var segments = [];\n\n if (end[0] === 'A') {\n points.push(end[6]);\n points.push(end[7]);\n } else if (end[0] === 'C') {\n points.push([end[1], end[2]]);\n points.push([end[3], end[4]]);\n points.push([end[5], end[6]]);\n } else if (end[0] === 'S' || end[0] === 'Q') {\n points.push([end[1], end[2]]);\n points.push([end[3], end[4]]);\n } else {\n points.push([end[1], end[2]]);\n }\n\n var leftSegments = points;\n var t = 1 / count;\n\n for (var i = 0; i < count - 1; i++) {\n var rt = t / (1 - t * i);\n var split = decasteljau(leftSegments, rt);\n segments.push(split.left);\n leftSegments = split.right;\n }\n\n segments.push(leftSegments);\n var result = segments.map(function (segment) {\n var cmd = [];\n\n if (segment.length === 4) {\n cmd.push('C');\n cmd = cmd.concat(segment[2]);\n }\n\n if (segment.length >= 3) {\n if (segment.length === 3) {\n cmd.push('Q');\n }\n\n cmd = cmd.concat(segment[1]);\n }\n\n if (segment.length === 2) {\n cmd.push('L');\n }\n\n cmd = cmd.concat(segment[segment.length - 1]);\n return cmd;\n });\n return result;\n}\n\nvar splitSegment = function splitSegment(start, end, count) {\n if (count === 1) {\n return [[].concat(start)];\n }\n\n var segments = [];\n\n if (end[0] === 'L' || end[0] === 'C' || end[0] === 'Q') {\n segments = segments.concat(splitCurve(start, end, count));\n } else {\n var temp = [].concat(start);\n\n if (temp[0] === 'M') {\n temp[0] = 'L';\n }\n\n for (var i = 0; i <= count - 1; i++) {\n segments.push(temp);\n }\n }\n\n return segments;\n};\n\nvar fillPath = function fillPath(source, target) {\n if (source.length === 1) {\n return source;\n }\n\n var sourceLen = source.length - 1;\n var targetLen = target.length - 1;\n var ratio = sourceLen / targetLen;\n var segmentsToFill = [];\n\n if (source.length === 1 && source[0][0] === 'M') {\n for (var i = 0; i < targetLen - sourceLen; i++) {\n source.push(source[0]);\n }\n\n return source;\n }\n\n for (var _i3 = 0; _i3 < targetLen; _i3++) {\n var index = Math.floor(ratio * _i3);\n segmentsToFill[index] = (segmentsToFill[index] || 0) + 1;\n }\n\n var filled = segmentsToFill.reduce(function (filled, count, i) {\n if (i === sourceLen) {\n return filled.concat(source[sourceLen]);\n }\n\n return filled.concat(splitSegment(source[i], source[i + 1], count));\n }, []);\n filled.unshift(source[0]);\n\n if (target[targetLen] === 'Z' || target[targetLen] === 'z') {\n filled.push('Z');\n }\n\n return filled;\n};\n\nvar isEqual = function isEqual(obj1, obj2) {\n if (obj1.length !== obj2.length) {\n return false;\n }\n\n var result = true;\n Util.each(obj1, function (item, i) {\n if (item !== obj2[i]) {\n result = false;\n return false;\n }\n });\n return result;\n};\n\nfunction getMinDiff(del, add, modify) {\n var type = null;\n var min = modify;\n\n if (add < min) {\n min = add;\n type = 'add';\n }\n\n if (del < min) {\n min = del;\n type = 'del';\n }\n\n return {\n type: type,\n min: min\n };\n}\n/*\n * https://en.wikipedia.org/wiki/Levenshtein_distance\n * 计算两条path的编辑距离\n */\n\n\nvar levenshteinDistance = function levenshteinDistance(source, target) {\n var sourceLen = source.length;\n var targetLen = target.length;\n var sourceSegment, targetSegment;\n var temp = 0;\n\n if (sourceLen === 0 || targetLen === 0) {\n return null;\n }\n\n var dist = [];\n\n for (var i = 0; i <= sourceLen; i++) {\n dist[i] = [];\n dist[i][0] = {\n min: i\n };\n }\n\n for (var j = 0; j <= targetLen; j++) {\n dist[0][j] = {\n min: j\n };\n }\n\n for (var _i4 = 1; _i4 <= sourceLen; _i4++) {\n sourceSegment = source[_i4 - 1];\n\n for (var _j2 = 1; _j2 <= targetLen; _j2++) {\n targetSegment = target[_j2 - 1];\n\n if (isEqual(sourceSegment, targetSegment)) {\n temp = 0;\n } else {\n temp = 1;\n }\n\n var del = dist[_i4 - 1][_j2].min + 1;\n var add = dist[_i4][_j2 - 1].min + 1;\n var modify = dist[_i4 - 1][_j2 - 1].min + temp;\n dist[_i4][_j2] = getMinDiff(del, add, modify);\n }\n }\n\n return dist;\n};\n\nvar fillPathByDiff = function fillPathByDiff(source, target) {\n var diffMatrix = levenshteinDistance(source, target);\n var sourceLen = source.length;\n var targetLen = target.length;\n var changes = [];\n var index = 1;\n var minPos = 1; // 如果source和target不是完全不相等\n\n if (diffMatrix[sourceLen][targetLen] !== sourceLen) {\n // 获取从source到target所需改动\n for (var i = 1; i <= sourceLen; i++) {\n var min = diffMatrix[i][i].min;\n minPos = i;\n\n for (var j = index; j <= targetLen; j++) {\n if (diffMatrix[i][j].min < min) {\n min = diffMatrix[i][j].min;\n minPos = j;\n }\n }\n\n index = minPos;\n\n if (diffMatrix[i][index].type) {\n changes.push({\n index: i - 1,\n type: diffMatrix[i][index].type\n });\n }\n } // 对source进行增删path\n\n\n for (var _i5 = changes.length - 1; _i5 >= 0; _i5--) {\n index = changes[_i5].index;\n\n if (changes[_i5].type === 'add') {\n source.splice(index, 0, [].concat(source[index]));\n } else {\n source.splice(index, 1);\n }\n }\n } // source尾部补齐\n\n\n sourceLen = source.length;\n var diff = targetLen - sourceLen;\n\n if (sourceLen < targetLen) {\n for (var _i6 = 0; _i6 < diff; _i6++) {\n if (source[sourceLen - 1][0] === 'z' || source[sourceLen - 1][0] === 'Z') {\n source.splice(sourceLen - 2, 0, source[sourceLen - 2]);\n } else {\n source.push(source[sourceLen - 1]);\n }\n\n sourceLen += 1;\n }\n }\n\n return source;\n}; // 将两个点均分成count个点\n\n\nfunction _splitPoints(points, former, count) {\n var result = [].concat(points);\n var index;\n var t = 1 / (count + 1);\n\n var formerEnd = _getSegmentPoints(former)[0];\n\n for (var i = 1; i <= count; i++) {\n t *= i;\n index = Math.floor(points.length * t);\n\n if (index === 0) {\n result.unshift([formerEnd[0] * t + points[index][0] * (1 - t), formerEnd[1] * t + points[index][1] * (1 - t)]);\n } else {\n result.splice(index, 0, [formerEnd[0] * t + points[index][0] * (1 - t), formerEnd[1] * t + points[index][1] * (1 - t)]);\n }\n }\n\n return result;\n}\n/*\n * 抽取pathSegment中的关键点\n * M,L,A,Q,H,V一个端点\n * Q, S抽取一个端点,一个控制点\n * C抽取一个端点,两个控制点\n */\n\n\nfunction _getSegmentPoints(segment) {\n var points = [];\n\n switch (segment[0]) {\n case 'M':\n points.push([segment[1], segment[2]]);\n break;\n\n case 'L':\n points.push([segment[1], segment[2]]);\n break;\n\n case 'A':\n points.push([segment[6], segment[7]]);\n break;\n\n case 'Q':\n points.push([segment[3], segment[4]]);\n points.push([segment[1], segment[2]]);\n break;\n\n case 'T':\n points.push([segment[1], segment[2]]);\n break;\n\n case 'C':\n points.push([segment[5], segment[6]]);\n points.push([segment[1], segment[2]]);\n points.push([segment[3], segment[4]]);\n break;\n\n case 'S':\n points.push([segment[3], segment[4]]);\n points.push([segment[1], segment[2]]);\n break;\n\n case 'H':\n points.push([segment[1], segment[1]]);\n break;\n\n case 'V':\n points.push([segment[1], segment[1]]);\n break;\n\n default:\n }\n\n return points;\n}\n\nvar formatPath = function formatPath(fromPath, toPath) {\n if (fromPath.length <= 1) {\n return fromPath;\n }\n\n var points;\n\n for (var i = 0; i < toPath.length; i++) {\n if (fromPath[i][0] !== toPath[i][0]) {\n // 获取fromPath的pathSegment的端点,根据toPath的指令对其改造\n points = _getSegmentPoints(fromPath[i]);\n\n switch (toPath[i][0]) {\n case 'M':\n fromPath[i] = ['M'].concat(points[0]);\n break;\n\n case 'L':\n fromPath[i] = ['L'].concat(points[0]);\n break;\n\n case 'A':\n fromPath[i] = [].concat(toPath[i]);\n fromPath[i][6] = points[0][0];\n fromPath[i][7] = points[0][1];\n break;\n\n case 'Q':\n if (points.length < 2) {\n if (i > 0) {\n points = _splitPoints(points, fromPath[i - 1], 1);\n } else {\n fromPath[i] = toPath[i];\n break;\n }\n }\n\n fromPath[i] = ['Q'].concat(points.reduce(function (arr, i) {\n return arr.concat(i);\n }, []));\n break;\n\n case 'T':\n fromPath[i] = ['T'].concat(points[0]);\n break;\n\n case 'C':\n if (points.length < 3) {\n if (i > 0) {\n points = _splitPoints(points, fromPath[i - 1], 2);\n } else {\n fromPath[i] = toPath[i];\n break;\n }\n }\n\n fromPath[i] = ['C'].concat(points.reduce(function (arr, i) {\n return arr.concat(i);\n }, []));\n break;\n\n case 'S':\n if (points.length < 2) {\n if (i > 0) {\n points = _splitPoints(points, fromPath[i - 1], 1);\n } else {\n fromPath[i] = toPath[i];\n break;\n }\n }\n\n fromPath[i] = ['S'].concat(points.reduce(function (arr, i) {\n return arr.concat(i);\n }, []));\n break;\n\n default:\n fromPath[i] = toPath[i];\n }\n }\n }\n\n return fromPath;\n};\n\nmodule.exports = {\n parsePathString: parsePathString,\n parsePathArray: parsePathArray,\n pathTocurve: pathTocurve,\n pathToAbsolute: pathToAbsolute,\n catmullRomToBezier: catmullRom2bezier,\n rectPath: rectPath,\n fillPath: fillPath,\n fillPathByDiff: fillPathByDiff,\n formatPath: formatPath,\n intersection: pathIntersection\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/util/path.js\n// module id = 42\n// module chunks = 0","var frame = 0,\n // is an animation frame pending?\ntimeout = 0,\n // is a timeout pending?\ninterval = 0,\n // are any timers active?\npokeDelay = 1000,\n // how frequently we check for clock skew\ntaskHead,\n taskTail,\n clockLast = 0,\n clockNow = 0,\n clockSkew = 0,\n clock = typeof performance === \"object\" && performance.now ? performance : Date,\n setFrame = typeof window === \"object\" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function (f) {\n setTimeout(f, 17);\n};\nexport function now() {\n return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew);\n}\n\nfunction clearNow() {\n clockNow = 0;\n}\n\nexport function Timer() {\n this._call = this._time = this._next = null;\n}\nTimer.prototype = timer.prototype = {\n constructor: Timer,\n restart: function (callback, delay, time) {\n if (typeof callback !== \"function\") throw new TypeError(\"callback is not a function\");\n time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);\n\n if (!this._next && taskTail !== this) {\n if (taskTail) taskTail._next = this;else taskHead = this;\n taskTail = this;\n }\n\n this._call = callback;\n this._time = time;\n sleep();\n },\n stop: function () {\n if (this._call) {\n this._call = null;\n this._time = Infinity;\n sleep();\n }\n }\n};\nexport function timer(callback, delay, time) {\n var t = new Timer();\n t.restart(callback, delay, time);\n return t;\n}\nexport function timerFlush() {\n now(); // Get the current time, if not already set.\n\n ++frame; // Pretend we’ve set an alarm, if we haven’t already.\n\n var t = taskHead,\n e;\n\n while (t) {\n if ((e = clockNow - t._time) >= 0) t._call.call(null, e);\n t = t._next;\n }\n\n --frame;\n}\n\nfunction wake() {\n clockNow = (clockLast = clock.now()) + clockSkew;\n frame = timeout = 0;\n\n try {\n timerFlush();\n } finally {\n frame = 0;\n nap();\n clockNow = 0;\n }\n}\n\nfunction poke() {\n var now = clock.now(),\n delay = now - clockLast;\n if (delay > pokeDelay) clockSkew -= delay, clockLast = now;\n}\n\nfunction nap() {\n var t0,\n t1 = taskHead,\n t2,\n time = Infinity;\n\n while (t1) {\n if (t1._call) {\n if (time > t1._time) time = t1._time;\n t0 = t1, t1 = t1._next;\n } else {\n t2 = t1._next, t1._next = null;\n t1 = t0 ? t0._next = t2 : taskHead = t2;\n }\n }\n\n taskTail = t0;\n sleep(time);\n}\n\nfunction sleep(time) {\n if (frame) return; // Soonest alarm already set, or will be.\n\n if (timeout) timeout = clearTimeout(timeout);\n var delay = time - clockNow; // Strictly less than if we recomputed clockNow.\n\n if (delay > 24) {\n if (time < Infinity) timeout = setTimeout(wake, time - clock.now() - clockSkew);\n if (interval) interval = clearInterval(interval);\n } else {\n if (!interval) clockLast = clock.now(), interval = setInterval(poke, pokeDelay);\n frame = 1, setFrame(wake);\n }\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_d3-timer@1.0.10@d3-timer/src/timer.js\n// module id = 43\n// module chunks = 0","import { color } from \"d3-color\";\nimport rgb from \"./rgb\";\nimport array from \"./array\";\nimport date from \"./date\";\nimport number from \"./number\";\nimport object from \"./object\";\nimport string from \"./string\";\nimport constant from \"./constant\";\nexport default function (a, b) {\n var t = typeof b,\n c;\n return b == null || t === \"boolean\" ? constant(b) : (t === \"number\" ? number : t === \"string\" ? (c = color(b)) ? (b = c, rgb) : string : b instanceof color ? rgb : b instanceof Date ? date : Array.isArray(b) ? array : typeof b.valueOf !== \"function\" && typeof b.toString !== \"function\" || isNaN(b) ? object : number)(a, b);\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/value.js\n// module id = 44\n// module chunks = 0","import define, { extend } from \"./define.js\";\nexport function Color() {}\nexport var darker = 0.7;\nexport var brighter = 1 / darker;\nvar reI = \"\\\\s*([+-]?\\\\d+)\\\\s*\",\n reN = \"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)\\\\s*\",\n reP = \"\\\\s*([+-]?\\\\d*\\\\.?\\\\d+(?:[eE][+-]?\\\\d+)?)%\\\\s*\",\n reHex = /^#([0-9a-f]{3,8})$/,\n reRgbInteger = new RegExp(\"^rgb\\\\(\" + [reI, reI, reI] + \"\\\\)$\"),\n reRgbPercent = new RegExp(\"^rgb\\\\(\" + [reP, reP, reP] + \"\\\\)$\"),\n reRgbaInteger = new RegExp(\"^rgba\\\\(\" + [reI, reI, reI, reN] + \"\\\\)$\"),\n reRgbaPercent = new RegExp(\"^rgba\\\\(\" + [reP, reP, reP, reN] + \"\\\\)$\"),\n reHslPercent = new RegExp(\"^hsl\\\\(\" + [reN, reP, reP] + \"\\\\)$\"),\n reHslaPercent = new RegExp(\"^hsla\\\\(\" + [reN, reP, reP, reN] + \"\\\\)$\");\nvar named = {\n aliceblue: 0xf0f8ff,\n antiquewhite: 0xfaebd7,\n aqua: 0x00ffff,\n aquamarine: 0x7fffd4,\n azure: 0xf0ffff,\n beige: 0xf5f5dc,\n bisque: 0xffe4c4,\n black: 0x000000,\n blanchedalmond: 0xffebcd,\n blue: 0x0000ff,\n blueviolet: 0x8a2be2,\n brown: 0xa52a2a,\n burlywood: 0xdeb887,\n cadetblue: 0x5f9ea0,\n chartreuse: 0x7fff00,\n chocolate: 0xd2691e,\n coral: 0xff7f50,\n cornflowerblue: 0x6495ed,\n cornsilk: 0xfff8dc,\n crimson: 0xdc143c,\n cyan: 0x00ffff,\n darkblue: 0x00008b,\n darkcyan: 0x008b8b,\n darkgoldenrod: 0xb8860b,\n darkgray: 0xa9a9a9,\n darkgreen: 0x006400,\n darkgrey: 0xa9a9a9,\n darkkhaki: 0xbdb76b,\n darkmagenta: 0x8b008b,\n darkolivegreen: 0x556b2f,\n darkorange: 0xff8c00,\n darkorchid: 0x9932cc,\n darkred: 0x8b0000,\n darksalmon: 0xe9967a,\n darkseagreen: 0x8fbc8f,\n darkslateblue: 0x483d8b,\n darkslategray: 0x2f4f4f,\n darkslategrey: 0x2f4f4f,\n darkturquoise: 0x00ced1,\n darkviolet: 0x9400d3,\n deeppink: 0xff1493,\n deepskyblue: 0x00bfff,\n dimgray: 0x696969,\n dimgrey: 0x696969,\n dodgerblue: 0x1e90ff,\n firebrick: 0xb22222,\n floralwhite: 0xfffaf0,\n forestgreen: 0x228b22,\n fuchsia: 0xff00ff,\n gainsboro: 0xdcdcdc,\n ghostwhite: 0xf8f8ff,\n gold: 0xffd700,\n goldenrod: 0xdaa520,\n gray: 0x808080,\n green: 0x008000,\n greenyellow: 0xadff2f,\n grey: 0x808080,\n honeydew: 0xf0fff0,\n hotpink: 0xff69b4,\n indianred: 0xcd5c5c,\n indigo: 0x4b0082,\n ivory: 0xfffff0,\n khaki: 0xf0e68c,\n lavender: 0xe6e6fa,\n lavenderblush: 0xfff0f5,\n lawngreen: 0x7cfc00,\n lemonchiffon: 0xfffacd,\n lightblue: 0xadd8e6,\n lightcoral: 0xf08080,\n lightcyan: 0xe0ffff,\n lightgoldenrodyellow: 0xfafad2,\n lightgray: 0xd3d3d3,\n lightgreen: 0x90ee90,\n lightgrey: 0xd3d3d3,\n lightpink: 0xffb6c1,\n lightsalmon: 0xffa07a,\n lightseagreen: 0x20b2aa,\n lightskyblue: 0x87cefa,\n lightslategray: 0x778899,\n lightslategrey: 0x778899,\n lightsteelblue: 0xb0c4de,\n lightyellow: 0xffffe0,\n lime: 0x00ff00,\n limegreen: 0x32cd32,\n linen: 0xfaf0e6,\n magenta: 0xff00ff,\n maroon: 0x800000,\n mediumaquamarine: 0x66cdaa,\n mediumblue: 0x0000cd,\n mediumorchid: 0xba55d3,\n mediumpurple: 0x9370db,\n mediumseagreen: 0x3cb371,\n mediumslateblue: 0x7b68ee,\n mediumspringgreen: 0x00fa9a,\n mediumturquoise: 0x48d1cc,\n mediumvioletred: 0xc71585,\n midnightblue: 0x191970,\n mintcream: 0xf5fffa,\n mistyrose: 0xffe4e1,\n moccasin: 0xffe4b5,\n navajowhite: 0xffdead,\n navy: 0x000080,\n oldlace: 0xfdf5e6,\n olive: 0x808000,\n olivedrab: 0x6b8e23,\n orange: 0xffa500,\n orangered: 0xff4500,\n orchid: 0xda70d6,\n palegoldenrod: 0xeee8aa,\n palegreen: 0x98fb98,\n paleturquoise: 0xafeeee,\n palevioletred: 0xdb7093,\n papayawhip: 0xffefd5,\n peachpuff: 0xffdab9,\n peru: 0xcd853f,\n pink: 0xffc0cb,\n plum: 0xdda0dd,\n powderblue: 0xb0e0e6,\n purple: 0x800080,\n rebeccapurple: 0x663399,\n red: 0xff0000,\n rosybrown: 0xbc8f8f,\n royalblue: 0x4169e1,\n saddlebrown: 0x8b4513,\n salmon: 0xfa8072,\n sandybrown: 0xf4a460,\n seagreen: 0x2e8b57,\n seashell: 0xfff5ee,\n sienna: 0xa0522d,\n silver: 0xc0c0c0,\n skyblue: 0x87ceeb,\n slateblue: 0x6a5acd,\n slategray: 0x708090,\n slategrey: 0x708090,\n snow: 0xfffafa,\n springgreen: 0x00ff7f,\n steelblue: 0x4682b4,\n tan: 0xd2b48c,\n teal: 0x008080,\n thistle: 0xd8bfd8,\n tomato: 0xff6347,\n turquoise: 0x40e0d0,\n violet: 0xee82ee,\n wheat: 0xf5deb3,\n white: 0xffffff,\n whitesmoke: 0xf5f5f5,\n yellow: 0xffff00,\n yellowgreen: 0x9acd32\n};\ndefine(Color, color, {\n copy: function (channels) {\n return Object.assign(new this.constructor(), this, channels);\n },\n displayable: function () {\n return this.rgb().displayable();\n },\n hex: color_formatHex,\n // Deprecated! Use color.formatHex.\n formatHex: color_formatHex,\n formatHsl: color_formatHsl,\n formatRgb: color_formatRgb,\n toString: color_formatRgb\n});\n\nfunction color_formatHex() {\n return this.rgb().formatHex();\n}\n\nfunction color_formatHsl() {\n return hslConvert(this).formatHsl();\n}\n\nfunction color_formatRgb() {\n return this.rgb().formatRgb();\n}\n\nexport default function color(format) {\n var m, l;\n format = (format + \"\").trim().toLowerCase();\n return (m = reHex.exec(format)) ? (l = m[1].length, m = parseInt(m[1], 16), l === 6 ? rgbn(m) // #ff0000\n : l === 3 ? new Rgb(m >> 8 & 0xf | m >> 4 & 0xf0, m >> 4 & 0xf | m & 0xf0, (m & 0xf) << 4 | m & 0xf, 1) // #f00\n : l === 8 ? new Rgb(m >> 24 & 0xff, m >> 16 & 0xff, m >> 8 & 0xff, (m & 0xff) / 0xff) // #ff000000\n : l === 4 ? new Rgb(m >> 12 & 0xf | m >> 8 & 0xf0, m >> 8 & 0xf | m >> 4 & 0xf0, m >> 4 & 0xf | m & 0xf0, ((m & 0xf) << 4 | m & 0xf) / 0xff) // #f000\n : null // invalid hex\n ) : (m = reRgbInteger.exec(format)) ? new Rgb(m[1], m[2], m[3], 1) // rgb(255, 0, 0)\n : (m = reRgbPercent.exec(format)) ? new Rgb(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, 1) // rgb(100%, 0%, 0%)\n : (m = reRgbaInteger.exec(format)) ? rgba(m[1], m[2], m[3], m[4]) // rgba(255, 0, 0, 1)\n : (m = reRgbaPercent.exec(format)) ? rgba(m[1] * 255 / 100, m[2] * 255 / 100, m[3] * 255 / 100, m[4]) // rgb(100%, 0%, 0%, 1)\n : (m = reHslPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, 1) // hsl(120, 50%, 50%)\n : (m = reHslaPercent.exec(format)) ? hsla(m[1], m[2] / 100, m[3] / 100, m[4]) // hsla(120, 50%, 50%, 1)\n : named.hasOwnProperty(format) ? rgbn(named[format]) // eslint-disable-line no-prototype-builtins\n : format === \"transparent\" ? new Rgb(NaN, NaN, NaN, 0) : null;\n}\n\nfunction rgbn(n) {\n return new Rgb(n >> 16 & 0xff, n >> 8 & 0xff, n & 0xff, 1);\n}\n\nfunction rgba(r, g, b, a) {\n if (a <= 0) r = g = b = NaN;\n return new Rgb(r, g, b, a);\n}\n\nexport function rgbConvert(o) {\n if (!(o instanceof Color)) o = color(o);\n if (!o) return new Rgb();\n o = o.rgb();\n return new Rgb(o.r, o.g, o.b, o.opacity);\n}\nexport function rgb(r, g, b, opacity) {\n return arguments.length === 1 ? rgbConvert(r) : new Rgb(r, g, b, opacity == null ? 1 : opacity);\n}\nexport function Rgb(r, g, b, opacity) {\n this.r = +r;\n this.g = +g;\n this.b = +b;\n this.opacity = +opacity;\n}\ndefine(Rgb, rgb, extend(Color, {\n brighter: function (k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n },\n darker: function (k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);\n },\n rgb: function () {\n return this;\n },\n displayable: function () {\n return -0.5 <= this.r && this.r < 255.5 && -0.5 <= this.g && this.g < 255.5 && -0.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;\n },\n hex: rgb_formatHex,\n // Deprecated! Use color.formatHex.\n formatHex: rgb_formatHex,\n formatRgb: rgb_formatRgb,\n toString: rgb_formatRgb\n}));\n\nfunction rgb_formatHex() {\n return \"#\" + hex(this.r) + hex(this.g) + hex(this.b);\n}\n\nfunction rgb_formatRgb() {\n var a = this.opacity;\n a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));\n return (a === 1 ? \"rgb(\" : \"rgba(\") + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + \", \" + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + \", \" + Math.max(0, Math.min(255, Math.round(this.b) || 0)) + (a === 1 ? \")\" : \", \" + a + \")\");\n}\n\nfunction hex(value) {\n value = Math.max(0, Math.min(255, Math.round(value) || 0));\n return (value < 16 ? \"0\" : \"\") + value.toString(16);\n}\n\nfunction hsla(h, s, l, a) {\n if (a <= 0) h = s = l = NaN;else if (l <= 0 || l >= 1) h = s = NaN;else if (s <= 0) h = NaN;\n return new Hsl(h, s, l, a);\n}\n\nexport function hslConvert(o) {\n if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);\n if (!(o instanceof Color)) o = color(o);\n if (!o) return new Hsl();\n if (o instanceof Hsl) return o;\n o = o.rgb();\n var r = o.r / 255,\n g = o.g / 255,\n b = o.b / 255,\n min = Math.min(r, g, b),\n max = Math.max(r, g, b),\n h = NaN,\n s = max - min,\n l = (max + min) / 2;\n\n if (s) {\n if (r === max) h = (g - b) / s + (g < b) * 6;else if (g === max) h = (b - r) / s + 2;else h = (r - g) / s + 4;\n s /= l < 0.5 ? max + min : 2 - max - min;\n h *= 60;\n } else {\n s = l > 0 && l < 1 ? 0 : h;\n }\n\n return new Hsl(h, s, l, o.opacity);\n}\nexport function hsl(h, s, l, opacity) {\n return arguments.length === 1 ? hslConvert(h) : new Hsl(h, s, l, opacity == null ? 1 : opacity);\n}\n\nfunction Hsl(h, s, l, opacity) {\n this.h = +h;\n this.s = +s;\n this.l = +l;\n this.opacity = +opacity;\n}\n\ndefine(Hsl, hsl, extend(Color, {\n brighter: function (k) {\n k = k == null ? brighter : Math.pow(brighter, k);\n return new Hsl(this.h, this.s, this.l * k, this.opacity);\n },\n darker: function (k) {\n k = k == null ? darker : Math.pow(darker, k);\n return new Hsl(this.h, this.s, this.l * k, this.opacity);\n },\n rgb: function () {\n var h = this.h % 360 + (this.h < 0) * 360,\n s = isNaN(h) || isNaN(this.s) ? 0 : this.s,\n l = this.l,\n m2 = l + (l < 0.5 ? l : 1 - l) * s,\n m1 = 2 * l - m2;\n return new Rgb(hsl2rgb(h >= 240 ? h - 240 : h + 120, m1, m2), hsl2rgb(h, m1, m2), hsl2rgb(h < 120 ? h + 240 : h - 120, m1, m2), this.opacity);\n },\n displayable: function () {\n return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;\n },\n formatHsl: function () {\n var a = this.opacity;\n a = isNaN(a) ? 1 : Math.max(0, Math.min(1, a));\n return (a === 1 ? \"hsl(\" : \"hsla(\") + (this.h || 0) + \", \" + (this.s || 0) * 100 + \"%, \" + (this.l || 0) * 100 + \"%\" + (a === 1 ? \")\" : \", \" + a + \")\");\n }\n}));\n/* From FvD 13.37, CSS Color Module Level 3 */\n\nfunction hsl2rgb(h, m1, m2) {\n return (h < 60 ? m1 + (m2 - m1) * h / 60 : h < 180 ? m2 : h < 240 ? m1 + (m2 - m1) * (240 - h) / 60 : m1) * 255;\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_d3-color@1.4.0@d3-color/src/color.js\n// module id = 45\n// module chunks = 0","export default function (constructor, factory, prototype) {\n constructor.prototype = factory.prototype = prototype;\n prototype.constructor = constructor;\n}\nexport function extend(parent, definition) {\n var prototype = Object.create(parent.prototype);\n\n for (var key in definition) prototype[key] = definition[key];\n\n return prototype;\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_d3-color@1.4.0@d3-color/src/define.js\n// module id = 46\n// module chunks = 0","export function basis(t1, v0, v1, v2, v3) {\n var t2 = t1 * t1,\n t3 = t2 * t1;\n return ((1 - 3 * t1 + 3 * t2 - t3) * v0 + (4 - 6 * t2 + 3 * t3) * v1 + (1 + 3 * t1 + 3 * t2 - 3 * t3) * v2 + t3 * v3) / 6;\n}\nexport default function (values) {\n var n = values.length - 1;\n return function (t) {\n var i = t <= 0 ? t = 0 : t >= 1 ? (t = 1, n - 1) : Math.floor(t * n),\n v1 = values[i],\n v2 = values[i + 1],\n v0 = i > 0 ? values[i - 1] : 2 * v1 - v2,\n v3 = i < n - 1 ? values[i + 2] : 2 * v2 - v1;\n return basis((t - i / n) * n, v0, v1, v2, v3);\n };\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/basis.js\n// module id = 47\n// module chunks = 0","var each = require('./each');\n\nvar isArrayLike = require('./type/is-array-like');\n\nvar filter = function filter(arr, func) {\n if (!isArrayLike(arr)) {\n return arr;\n }\n\n var result = [];\n each(arr, function (value, index) {\n if (func(value, index)) {\n result.push(value);\n }\n });\n return result;\n};\n\nmodule.exports = filter;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/filter.js\n// module id = 48\n// module chunks = 0","function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\n/**\n * @fileOverview The base class of continuous legend\n * @author sima.zhang\n */\nvar Util = require('../util');\n\nvar Legend = require('./base');\n\nvar Slider = require('./slider');\n\nvar _require = require('../const'),\n FONT_FAMILY = _require.FONT_FAMILY;\n\nvar TRIGGER_WIDTH = 8;\nvar Event = Util.Event;\nvar Group = Util.Group;\n\nvar Continuous = /*#__PURE__*/function (_Legend) {\n _inheritsLoose(Continuous, _Legend);\n\n var _super = _createSuper(Continuous);\n\n function Continuous() {\n return _Legend.apply(this, arguments) || this;\n }\n\n var _proto = Continuous.prototype;\n\n _proto.getDefaultCfg = function getDefaultCfg() {\n var cfg = _Legend.prototype.getDefaultCfg.call(this);\n\n return Util.mix({}, cfg, {\n /**\n * 类型\n * @type {String}\n */\n type: 'continuous-legend',\n\n /**\n * 子项\n * @type {Array}\n */\n items: null,\n\n /**\n * 布局方式\n * horizontal 水平\n * vertical 垂直\n * @type {String}\n */\n layout: 'vertical',\n\n /**\n * 宽度\n * @type {Number}\n */\n width: 20,\n\n /**\n * 高度\n * @type {Number}\n */\n height: 156,\n\n /**\n * 默认文本图形属性\n * @type {ATTRS}\n */\n textStyle: {\n fill: '#333',\n textAlign: 'center',\n textBaseline: 'middle',\n stroke: '#fff',\n lineWidth: 5,\n fontFamily: FONT_FAMILY\n },\n hoverTextStyle: {\n fill: 'rgba(0,0,0,0.25)'\n },\n\n /**\n * 连续图例是否可滑动\n * @type {Boolean}\n */\n slidable: true,\n\n /**\n * 两头滑块的样式\n * @type {object}\n */\n triggerAttr: {\n fill: '#fff',\n // shadowOffsetX: -2,\n // shadowOffsetY: 2,\n shadowBlur: 10,\n shadowColor: 'rgba(0,0,0,0.65)',\n radius: 2\n },\n\n /**\n * slider 的范围\n * @type {array}}\n */\n _range: [0, 100],\n\n /**\n * 中间 bar 背景灰色\n * @type {ATTRS}\n */\n middleBackgroundStyle: {\n fill: '#D9D9D9'\n },\n\n /**\n * 文本与图例间距\n * @type {Number}\n */\n textOffset: 4,\n\n /**\n * line segment to seperate the unslidable slider blocks\n * @type {object}\n */\n lineStyle: {\n lineWidth: 1,\n stroke: '#fff'\n },\n\n /**\n * the pointer while activate the legend by mouse hovering or called by outside\n * @type {object}\n */\n pointerStyle: {\n // color: '#ccc',\n fill: 'rgb(230, 230, 230)'\n }\n });\n };\n\n _proto._calStartPoint = function _calStartPoint() {\n var start = {\n x: 10,\n y: this.get('titleGap') - TRIGGER_WIDTH\n };\n var titleShape = this.get('titleShape');\n\n if (titleShape) {\n var titleBox = titleShape.getBBox();\n start.y += titleBox.height;\n }\n\n return start;\n };\n\n _proto.beforeRender = function beforeRender() {\n var items = this.get('items');\n\n if (!Util.isArray(items) || Util.isEmpty(items)) {\n return;\n }\n\n _Legend.prototype.beforeRender.call(this);\n\n this.set('firstItem', items[0]);\n this.set('lastItem', items[items.length - 1]);\n };\n\n _proto._formatItemValue = function _formatItemValue(value) {\n var formatter = this.get('formatter') || this.get('itemFormatter');\n\n if (formatter) {\n value = formatter.call(this, value);\n }\n\n return value;\n };\n\n _proto.render = function render() {\n _Legend.prototype.render.call(this);\n\n if (this.get('slidable')) {\n this._renderSlider();\n } else {\n this._renderUnslidable();\n }\n };\n\n _proto._renderSlider = function _renderSlider() {\n var minHandleElement = new Group();\n var maxHandleElement = new Group();\n var backgroundElement = new Group();\n\n var start = this._calStartPoint();\n\n var group = this.get('group');\n var slider = group.addGroup(Slider, {\n minHandleElement: minHandleElement,\n maxHandleElement: maxHandleElement,\n backgroundElement: backgroundElement,\n layout: this.get('layout'),\n range: this.get('_range'),\n width: this.get('width'),\n height: this.get('height')\n });\n slider.translate(start.x, start.y);\n this.set('slider', slider);\n\n var shape = this._renderSliderShape();\n\n shape.attr('clip', slider.get('middleHandleElement'));\n\n this._renderTrigger();\n } // the middle bar\n ;\n\n _proto._addMiddleBar = function _addMiddleBar(parent, name, attrs) {\n // background of the middle bar\n parent.addShape(name, {\n attrs: Util.mix({}, attrs, this.get('middleBackgroundStyle'))\n }); // frontground of the middle bar\n\n return parent.addShape(name, {\n attrs: attrs\n });\n };\n\n _proto._renderTrigger = function _renderTrigger() {\n var min = this.get('firstItem');\n var max = this.get('lastItem');\n var layout = this.get('layout');\n var textStyle = this.get('textStyle');\n var triggerAttr = this.get('triggerAttr');\n var minBlockAttr = Util.mix({}, triggerAttr);\n var maxBlockAttr = Util.mix({}, triggerAttr);\n var minTextAttr = Util.mix({\n text: this._formatItemValue(min.value) + ''\n }, textStyle);\n var maxTextAttr = Util.mix({\n text: this._formatItemValue(max.value) + ''\n }, textStyle);\n\n if (layout === 'vertical') {\n this._addVerticalTrigger('min', minBlockAttr, minTextAttr);\n\n this._addVerticalTrigger('max', maxBlockAttr, maxTextAttr);\n } else {\n this._addHorizontalTrigger('min', minBlockAttr, minTextAttr);\n\n this._addHorizontalTrigger('max', maxBlockAttr, maxTextAttr);\n }\n };\n\n _proto._addVerticalTrigger = function _addVerticalTrigger(type, blockAttr, textAttr) {\n var slider = this.get('slider');\n var trigger = slider.get(type + 'HandleElement');\n var width = this.get('width');\n var button = trigger.addShape('rect', {\n attrs: Util.mix({\n x: width / 2 - TRIGGER_WIDTH - 2,\n y: type === 'min' ? 0 : -TRIGGER_WIDTH,\n width: 2 * TRIGGER_WIDTH + 2,\n height: TRIGGER_WIDTH\n }, blockAttr)\n });\n var text = trigger.addShape('text', {\n attrs: Util.mix(textAttr, {\n x: width + this.get('textOffset'),\n y: type === 'max' ? -4 : 4,\n textAlign: 'start',\n lineHeight: 1,\n textBaseline: 'middle'\n })\n });\n var layout = this.get('layout');\n var trigerCursor = layout === 'vertical' ? 'ns-resize' : 'ew-resize';\n button.attr('cursor', trigerCursor);\n text.attr('cursor', trigerCursor);\n this.set(type + 'ButtonElement', button);\n this.set(type + 'TextElement', text);\n };\n\n _proto._addHorizontalTrigger = function _addHorizontalTrigger(type, blockAttr, textAttr) {\n var slider = this.get('slider');\n var trigger = slider.get(type + 'HandleElement');\n var button = trigger.addShape('rect', {\n attrs: Util.mix({\n x: type === 'min' ? -TRIGGER_WIDTH : 0,\n y: -TRIGGER_WIDTH - this.get('height') / 2,\n width: TRIGGER_WIDTH,\n height: 2 * TRIGGER_WIDTH\n }, blockAttr)\n });\n var text = trigger.addShape('text', {\n attrs: Util.mix(textAttr, {\n x: type === 'min' ? -TRIGGER_WIDTH - 4 : TRIGGER_WIDTH + 4,\n y: TRIGGER_WIDTH / 2 + this.get('textOffset') + 10,\n textAlign: type === 'min' ? 'end' : 'start',\n textBaseline: 'middle'\n })\n });\n var layout = this.get('layout');\n var trigerCursor = layout === 'vertical' ? 'ns-resize' : 'ew-resize';\n button.attr('cursor', trigerCursor);\n text.attr('cursor', trigerCursor);\n this.set(type + 'ButtonElement', button);\n this.set(type + 'TextElement', text);\n };\n\n _proto._bindEvents = function _bindEvents() {\n var _this = this;\n\n if (this.get('slidable')) {\n var slider = this.get('slider');\n slider.on('sliderchange', function (ev) {\n var range = ev.range;\n\n var firstItemValue = _this.get('firstItem').value;\n\n var lastItemValue = _this.get('lastItem').value;\n\n var minValue = firstItemValue + range[0] / 100 * (lastItemValue - firstItemValue);\n var maxValue = firstItemValue + range[1] / 100 * (lastItemValue - firstItemValue);\n\n _this._updateElement(minValue, maxValue);\n\n var itemFiltered = new Event('itemfilter', ev, true, true);\n itemFiltered.range = [minValue, maxValue];\n\n _this.emit('itemfilter', itemFiltered);\n });\n }\n\n if (this.get('hoverable')) {\n this.get('group').on('mousemove', Util.wrapBehavior(this, '_onMouseMove'));\n this.get('group').on('mouseleave', Util.wrapBehavior(this, '_onMouseLeave'));\n }\n } // update the text of min and max trigger\n ;\n\n _proto._updateElement = function _updateElement(min, max) {\n var minTextElement = this.get('minTextElement');\n var maxTextElement = this.get('maxTextElement');\n\n if (max > 1) {\n // 对于大于 1 的值,默认显示为整数\n min = parseInt(min, 10);\n max = parseInt(max, 10);\n }\n\n minTextElement.attr('text', this._formatItemValue(min) + '');\n maxTextElement.attr('text', this._formatItemValue(max) + '');\n };\n\n _proto._onMouseLeave = function _onMouseLeave() {\n var hoverPointer = this.get('group').findById('hoverPointer');\n hoverPointer && hoverPointer.destroy();\n var hoverText = this.get('group').findById('hoverText');\n hoverText && hoverText.destroy();\n this.get('canvas').draw();\n } // activate the legend while mouse moving\n ;\n\n _proto._onMouseMove = function _onMouseMove(ev) {\n var height = this.get('height');\n var width = this.get('width');\n var items = this.get('items');\n var el = this.get('canvas').get('el');\n var el_bbox = el.getBoundingClientRect();\n var bbox = this.get('group').getBBox();\n var value;\n\n if (this.get('layout') === 'vertical') {\n var valuePadding = 5;\n\n if (this.get('type') === 'color-legend') {\n valuePadding = 30;\n }\n\n var titleOffset = this.get('titleGap');\n var titleShape = this.get('titleShape');\n if (titleShape) titleOffset += titleShape.getBBox().maxY - titleShape.getBBox().minY;\n var currentPage = ev.clientY || ev.event.clientY;\n currentPage = currentPage - el_bbox.y - this.get('group').attr('matrix')[7] + bbox.y - valuePadding + titleOffset;\n value = items[0].value + (1 - currentPage / height) * (items[items.length - 1].value - items[0].value);\n } else {\n var _currentPage = ev.clientX || ev.event.clientX;\n\n _currentPage = _currentPage - el_bbox.x - this.get('group').attr('matrix')[6];\n value = items[0].value + _currentPage / width * (items[items.length - 1].value - items[0].value);\n }\n\n value = value.toFixed(2);\n this.activate(value);\n this.emit('mousehover', {\n value: value\n });\n } // activated by mouse moving or being called\n ;\n\n _proto.activate = function activate(value) {\n if (!value) {\n return;\n }\n\n var hoverPointer = this.get('group').findById('hoverPointer');\n var hoverText = this.get('group').findById('hoverText');\n var items = this.get('items');\n\n if (value < items[0].value || value > items[items.length - 1].value) {\n return;\n }\n\n var height = this.get('height');\n var width = this.get('width');\n var titleShape = this.get('titleShape');\n var titleGap = this.get('titleGap');\n var points = [];\n var page = (value - items[0].value) / (items[items.length - 1].value - items[0].value);\n var textStyle;\n\n if (this.get('layout') === 'vertical') {\n // revise the offset\n var paddingY = 0,\n paddingX = 0;\n\n if (this.get('type') === 'color-legend') {\n paddingY = titleGap;\n if (titleShape) paddingY += titleShape.getBBox().height;\n }\n\n if (this.get('slidable')) {\n if (this.get('type') === 'color-legend') {\n paddingY -= 13;\n } else {\n paddingY = titleGap - 15;\n if (titleShape) paddingY += titleShape.getBBox().height;\n }\n\n paddingX += 10;\n }\n\n page = (1 - page) * height;\n points = [[paddingX, page + paddingY], [paddingX - 10, page + paddingY - 5], [paddingX - 10, page + paddingY + 5]];\n textStyle = Util.mix({}, {\n x: width + this.get('textOffset') / 2 + paddingX,\n y: page + paddingY,\n text: this._formatItemValue(value) + '' // 以字符串格式展示\n\n }, this.get('textStyle'), {\n textAlign: 'start'\n });\n } else {\n var _paddingY = 0,\n _paddingX = 0;\n\n if (this.get('type') === 'color-legend') {\n _paddingY = titleGap;\n if (titleShape) _paddingY += titleShape.getBBox().height;\n }\n\n if (this.get('slidable')) {\n if (this.get('type') === 'color-legend') {\n // hoverPointer三角形的高\n _paddingY -= 7;\n } else {\n _paddingY = titleGap;\n if (!titleShape) _paddingY -= 7;\n }\n\n _paddingX += 10;\n }\n\n page *= width;\n points = [[page + _paddingX, _paddingY], [page + _paddingX - 5, _paddingY - 10], [page + _paddingX + 5, _paddingY - 10]];\n textStyle = Util.mix({}, {\n x: page - 5,\n y: height + this.get('textOffset') + _paddingY,\n text: this._formatItemValue(value) + '' // 以字符串格式展示\n\n }, this.get('textStyle'));\n }\n\n var hoverTextStyle = Util.mix(textStyle, this.get('hoverTextStyle'));\n\n if (!hoverText) {\n // mouse enter the legend, add hoverText\n hoverText = this.get('group').addShape('text', {\n attrs: hoverTextStyle\n });\n hoverText.set('id', 'hoverText');\n } else {\n // mouse move, update hoverText\n hoverText.attr(hoverTextStyle);\n }\n\n if (!hoverPointer) {\n // mouse enter the legend, add hoverPointer\n hoverPointer = this.get('group').addShape('Polygon', {\n attrs: Util.mix({\n points: points\n }, this.get('pointerStyle'))\n });\n hoverPointer.set('id', 'hoverPointer');\n } else {\n // mouse move, update hoverPointer\n hoverPointer.attr(Util.mix({\n points: points\n }, this.get('pointerStyle')));\n }\n\n this.get('canvas').draw();\n };\n\n _proto.deactivate = function deactivate() {\n var hoverPointer = this.get('group').findById('hoverPointer');\n hoverPointer && hoverPointer.destroy();\n var hoverText = this.get('group').findById('hoverText');\n hoverText && hoverText.destroy();\n this.get('canvas').draw();\n };\n\n return Continuous;\n}(Legend);\n\nmodule.exports = Continuous;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/legend/continuous.js\n// module id = 49\n// module chunks = 0","function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nvar Component = require('../base');\n\nvar Util = require('../util');\n\nvar Tooltip = /*#__PURE__*/function (_Component) {\n _inheritsLoose(Tooltip, _Component);\n\n var _super = _createSuper(Tooltip);\n\n function Tooltip() {\n return _Component.apply(this, arguments) || this;\n }\n\n var _proto = Tooltip.prototype;\n\n _proto.getDefaultCfg = function getDefaultCfg() {\n var cfg = _Component.prototype.getDefaultCfg.call(this);\n\n return Util.mix({}, cfg, {\n /**\n * tooltip container\n * @type {Dom / String}\n */\n\n /**\n * 右下角坐标\n * @type {Number}\n */\n x: 0,\n\n /**\n * y 右下角坐标\n * @type {Number}\n */\n y: 0,\n\n /**\n * tooltip 记录项\n * @type {Array}\n */\n items: null,\n\n /**\n * tooltip 标题\n * @type {Array}\n */\n titleContent: null,\n\n /**\n * 是否展示 title\n * @type {Boolean}\n */\n showTitle: true,\n\n /**\n * 视图范围\n * @type {Object}\n */\n plotRange: null,\n\n /**\n * x轴上,移动到位置的偏移量\n * @type {Number}\n */\n offset: 10,\n // TODO:支持xy两个方向上的offset\n\n /**\n * 时间戳\n * @type {Number}\n */\n timeStamp: 0,\n\n /**\n * 将 tooltip 展示在指定区域内\n * @type {Boolean}\n */\n inPlot: true,\n\n /**\n * tooltip 辅助线配置\n * @type {Object}\n */\n crosshairs: null\n });\n };\n\n _proto.isContentChange = function isContentChange(title, items) {\n var titleContent = this.get('titleContent');\n var lastItems = this.get('items');\n var isChanged = !(title === titleContent && lastItems.length === items.length);\n\n if (!isChanged) {\n Util.each(items, function (item, index) {\n var preItem = lastItems[index];\n\n for (var key in item) {\n if (item.hasOwnProperty(key)) {\n if (!Util.isObject(item[key]) && item[key] !== preItem[key]) {\n isChanged = true;\n break;\n }\n }\n }\n\n if (isChanged) {\n return false;\n }\n });\n }\n\n return isChanged;\n };\n\n _proto.setContent = function setContent(title, items) {\n var timeStamp = new Date().valueOf();\n this.set('items', items);\n this.set('titleContent', title);\n this.set('timeStamp', timeStamp);\n this.render();\n return this;\n };\n\n _proto.setPosition = function setPosition(x, y) {\n this.set('x', x);\n this.set('y', y);\n };\n\n _proto.render = function render() {};\n\n _proto.clear = function clear() {};\n\n _proto.show = function show() {\n this.set('visible', true);\n };\n\n _proto.hide = function hide() {\n this.set('visible', false);\n };\n\n return Tooltip;\n}(Component);\n\nmodule.exports = Tooltip;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/tooltip/base.js\n// module id = 50\n// module chunks = 0","/*!\n * EventEmitter v5.1.0 - git.io/ee\n * Unlicense - http://unlicense.org/\n * Oliver Caldwell - http://oli.me.uk/\n * @preserve\n */\n;\n\n(function (exports) {\n 'use strict';\n /**\n * Class for managing events.\n * Can be extended to provide event functionality in other classes.\n *\n * @class EventEmitter Manages event registering and emitting.\n */\n\n function EventEmitter() {} // Shortcuts to improve speed and size\n\n\n var proto = EventEmitter.prototype;\n var originalGlobalValue = exports.EventEmitter;\n /**\n * Finds the index of the listener for the event in its storage array.\n *\n * @param {Function[]} listeners Array of listeners to search through.\n * @param {Function} listener Method to look for.\n * @return {Number} Index of the specified listener, -1 if not found\n * @api private\n */\n\n function indexOfListener(listeners, listener) {\n var i = listeners.length;\n\n while (i--) {\n if (listeners[i].listener === listener) {\n return i;\n }\n }\n\n return -1;\n }\n /**\n * Alias a method while keeping the context correct, to allow for overwriting of target method.\n *\n * @param {String} name The name of the target method.\n * @return {Function} The aliased method\n * @api private\n */\n\n\n function alias(name) {\n return function aliasClosure() {\n return this[name].apply(this, arguments);\n };\n }\n /**\n * Returns the listener array for the specified event.\n * Will initialise the event object and listener arrays if required.\n * Will return an object if you use a regex search. The object contains keys for each matched event. So /ba[rz]/ might return an object containing bar and baz. But only if you have either defined them with defineEvent or added some listeners to them.\n * Each property in the object response is an array of listener functions.\n *\n * @param {String|RegExp} evt Name of the event to return the listeners from.\n * @return {Function[]|Object} All listener functions for the event.\n */\n\n\n proto.getListeners = function getListeners(evt) {\n var events = this._getEvents();\n\n var response;\n var key; // Return a concatenated array of all matching events if\n // the selector is a regular expression.\n\n if (evt instanceof RegExp) {\n response = {};\n\n for (key in events) {\n if (events.hasOwnProperty(key) && evt.test(key)) {\n response[key] = events[key];\n }\n }\n } else {\n response = events[evt] || (events[evt] = []);\n }\n\n return response;\n };\n /**\n * Takes a list of listener objects and flattens it into a list of listener functions.\n *\n * @param {Object[]} listeners Raw listener objects.\n * @return {Function[]} Just the listener functions.\n */\n\n\n proto.flattenListeners = function flattenListeners(listeners) {\n var flatListeners = [];\n var i;\n\n for (i = 0; i < listeners.length; i += 1) {\n flatListeners.push(listeners[i].listener);\n }\n\n return flatListeners;\n };\n /**\n * Fetches the requested listeners via getListeners but will always return the results inside an object. This is mainly for internal use but others may find it useful.\n *\n * @param {String|RegExp} evt Name of the event to return the listeners from.\n * @return {Object} All listener functions for an event in an object.\n */\n\n\n proto.getListenersAsObject = function getListenersAsObject(evt) {\n var listeners = this.getListeners(evt);\n var response;\n\n if (listeners instanceof Array) {\n response = {};\n response[evt] = listeners;\n }\n\n return response || listeners;\n };\n\n function isValidListener(listener) {\n if (typeof listener === 'function' || listener instanceof RegExp) {\n return true;\n } else if (listener && typeof listener === 'object') {\n return isValidListener(listener.listener);\n } else {\n return false;\n }\n }\n /**\n * Adds a listener function to the specified event.\n * The listener will not be added if it is a duplicate.\n * If the listener returns true then it will be removed after it is called.\n * If you pass a regular expression as the event name then the listener will be added to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to attach the listener to.\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n\n\n proto.addListener = function addListener(evt, listener) {\n if (!isValidListener(listener)) {\n throw new TypeError('listener must be a function');\n }\n\n var listeners = this.getListenersAsObject(evt);\n var listenerIsWrapped = typeof listener === 'object';\n var key;\n\n for (key in listeners) {\n if (listeners.hasOwnProperty(key) && indexOfListener(listeners[key], listener) === -1) {\n listeners[key].push(listenerIsWrapped ? listener : {\n listener: listener,\n once: false\n });\n }\n }\n\n return this;\n };\n /**\n * Alias of addListener\n */\n\n\n proto.on = alias('addListener');\n /**\n * Semi-alias of addListener. It will add a listener that will be\n * automatically removed after its first execution.\n *\n * @param {String|RegExp} evt Name of the event to attach the listener to.\n * @param {Function} listener Method to be called when the event is emitted. If the function returns true then it will be removed after calling.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n\n proto.addOnceListener = function addOnceListener(evt, listener) {\n return this.addListener(evt, {\n listener: listener,\n once: true\n });\n };\n /**\n * Alias of addOnceListener.\n */\n\n\n proto.once = alias('addOnceListener');\n /**\n * Defines an event name. This is required if you want to use a regex to add a listener to multiple events at once. If you don't do this then how do you expect it to know what event to add to? Should it just add to every possible match for a regex? No. That is scary and bad.\n * You need to tell it what event names should be matched by a regex.\n *\n * @param {String} evt Name of the event to create.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n\n proto.defineEvent = function defineEvent(evt) {\n this.getListeners(evt);\n return this;\n };\n /**\n * Uses defineEvent to define multiple events.\n *\n * @param {String[]} evts An array of event names to define.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n\n\n proto.defineEvents = function defineEvents(evts) {\n for (var i = 0; i < evts.length; i += 1) {\n this.defineEvent(evts[i]);\n }\n\n return this;\n };\n /**\n * Removes a listener function from the specified event.\n * When passed a regular expression as the event name, it will remove the listener from all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to remove the listener from.\n * @param {Function} listener Method to remove from the event.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n\n\n proto.removeListener = function removeListener(evt, listener) {\n var listeners = this.getListenersAsObject(evt);\n var index;\n var key;\n\n for (key in listeners) {\n if (listeners.hasOwnProperty(key)) {\n index = indexOfListener(listeners[key], listener);\n\n if (index !== -1) {\n listeners[key].splice(index, 1);\n }\n }\n }\n\n return this;\n };\n /**\n * Alias of removeListener\n */\n\n\n proto.off = alias('removeListener');\n /**\n * Adds listeners in bulk using the manipulateListeners method.\n * If you pass an object as the second argument you can add to multiple events at once. The object should contain key value pairs of events and listeners or listener arrays. You can also pass it an event name and an array of listeners to be added.\n * You can also pass it a regular expression to add the array of listeners to all events that match it.\n * Yeah, this function does quite a bit. That's probably a bad thing.\n *\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add to multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to add.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n\n proto.addListeners = function addListeners(evt, listeners) {\n // Pass through to manipulateListeners\n return this.manipulateListeners(false, evt, listeners);\n };\n /**\n * Removes listeners in bulk using the manipulateListeners method.\n * If you pass an object as the second argument you can remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n * You can also pass it an event name and an array of listeners to be removed.\n * You can also pass it a regular expression to remove the listeners from all events that match it.\n *\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to remove from multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to remove.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n\n\n proto.removeListeners = function removeListeners(evt, listeners) {\n // Pass through to manipulateListeners\n return this.manipulateListeners(true, evt, listeners);\n };\n /**\n * Edits listeners in bulk. The addListeners and removeListeners methods both use this to do their job. You should really use those instead, this is a little lower level.\n * The first argument will determine if the listeners are removed (true) or added (false).\n * If you pass an object as the second argument you can add/remove from multiple events at once. The object should contain key value pairs of events and listeners or listener arrays.\n * You can also pass it an event name and an array of listeners to be added/removed.\n * You can also pass it a regular expression to manipulate the listeners of all events that match it.\n *\n * @param {Boolean} remove True if you want to remove listeners, false if you want to add.\n * @param {String|Object|RegExp} evt An event name if you will pass an array of listeners next. An object if you wish to add/remove from multiple events at once.\n * @param {Function[]} [listeners] An optional array of listener functions to add/remove.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n\n\n proto.manipulateListeners = function manipulateListeners(remove, evt, listeners) {\n var i;\n var value;\n var single = remove ? this.removeListener : this.addListener;\n var multiple = remove ? this.removeListeners : this.addListeners; // If evt is an object then pass each of its properties to this method\n\n if (typeof evt === 'object' && !(evt instanceof RegExp)) {\n for (i in evt) {\n if (evt.hasOwnProperty(i) && (value = evt[i])) {\n // Pass the single listener straight through to the singular method\n if (typeof value === 'function') {\n single.call(this, i, value);\n } else {\n // Otherwise pass back to the multiple function\n multiple.call(this, i, value);\n }\n }\n }\n } else {\n // So evt must be a string\n // And listeners must be an array of listeners\n // Loop over it and pass each one to the multiple method\n i = listeners.length;\n\n while (i--) {\n single.call(this, evt, listeners[i]);\n }\n }\n\n return this;\n };\n /**\n * Removes all listeners from a specified event.\n * If you do not specify an event then all listeners will be removed.\n * That means every event will be emptied.\n * You can also pass a regex to remove all events that match it.\n *\n * @param {String|RegExp} [evt] Optional name of the event to remove all listeners for. Will remove from every event if not passed.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n\n\n proto.removeEvent = function removeEvent(evt) {\n var type = typeof evt;\n\n var events = this._getEvents();\n\n var key; // Remove different things depending on the state of evt\n\n if (type === 'string') {\n // Remove all listeners for the specified event\n delete events[evt];\n } else if (evt instanceof RegExp) {\n // Remove all events matching the regex.\n for (key in events) {\n if (events.hasOwnProperty(key) && evt.test(key)) {\n delete events[key];\n }\n }\n } else {\n // Remove all listeners in all events\n delete this._events;\n }\n\n return this;\n };\n /**\n * Alias of removeEvent.\n *\n * Added to mirror the node API.\n */\n\n\n proto.removeAllListeners = alias('removeEvent');\n /**\n * Emits an event of your choice.\n * When emitted, every listener attached to that event will be executed.\n * If you pass the optional argument array then those arguments will be passed to every listener upon execution.\n * Because it uses `apply`, your array of arguments will be passed as if you wrote them out separately.\n * So they will not arrive within the array on the other side, they will be separate.\n * You can also pass a regular expression to emit to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n * @param {Array} [args] Optional array of arguments to be passed to each listener.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n\n proto.emitEvent = function emitEvent(evt, args) {\n var listenersMap = this.getListenersAsObject(evt);\n var listeners;\n var listener;\n var i;\n var key;\n var response;\n\n for (key in listenersMap) {\n if (listenersMap.hasOwnProperty(key)) {\n listeners = listenersMap[key].slice(0);\n\n for (i = 0; i < listeners.length; i++) {\n // If the listener returns true then it shall be removed from the event\n // The function is executed either with a basic call or an apply if there is an args array\n listener = listeners[i];\n\n if (listener.once === true) {\n this.removeListener(evt, listener.listener);\n }\n\n response = listener.listener.apply(this, args || []);\n\n if (response === this._getOnceReturnValue()) {\n this.removeListener(evt, listener.listener);\n }\n }\n }\n }\n\n return this;\n };\n /**\n * Alias of emitEvent\n */\n\n\n proto.trigger = alias('emitEvent');\n /**\n * Subtly different from emitEvent in that it will pass its arguments on to the listeners, as opposed to taking a single array of arguments to pass on.\n * As with emitEvent, you can pass a regex in place of the event name to emit to all events that match it.\n *\n * @param {String|RegExp} evt Name of the event to emit and execute listeners for.\n * @param {...*} Optional additional arguments to be passed to each listener.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n\n proto.emit = function emit(evt) {\n var args = Array.prototype.slice.call(arguments, 1);\n return this.emitEvent(evt, args);\n };\n /**\n * Sets the current value to check against when executing listeners. If a\n * listeners return value matches the one set here then it will be removed\n * after execution. This value defaults to true.\n *\n * @param {*} value The new value to check for when executing listeners.\n * @return {Object} Current instance of EventEmitter for chaining.\n */\n\n\n proto.setOnceReturnValue = function setOnceReturnValue(value) {\n this._onceReturnValue = value;\n return this;\n };\n /**\n * Fetches the current value to check against when executing listeners. If\n * the listeners return value matches this one then it should be removed\n * automatically. It will return true by default.\n *\n * @return {*|Boolean} The current value to check for or the default, true.\n * @api private\n */\n\n\n proto._getOnceReturnValue = function _getOnceReturnValue() {\n if (this.hasOwnProperty('_onceReturnValue')) {\n return this._onceReturnValue;\n } else {\n return true;\n }\n };\n /**\n * Fetches the events object and creates one if required.\n *\n * @return {Object} The events storage object.\n * @api private\n */\n\n\n proto._getEvents = function _getEvents() {\n return this._events || (this._events = {});\n };\n /**\n * Reverts the global {@link EventEmitter} to its previous value and returns a reference to this version.\n *\n * @return {Function} Non conflicting EventEmitter class.\n */\n\n\n EventEmitter.noConflict = function noConflict() {\n exports.EventEmitter = originalGlobalValue;\n return EventEmitter;\n }; // Expose the class either via AMD, CommonJS or the global object\n\n\n if (typeof define === 'function' && define.amd) {\n define(function () {\n return EventEmitter;\n });\n } else if (typeof module === 'object' && module.exports) {\n module.exports = EventEmitter;\n } else {\n exports.EventEmitter = EventEmitter;\n }\n})(this || {});\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_wolfy87-eventemitter@5.1.0@wolfy87-eventemitter/EventEmitter.js\n// module id = 51\n// module chunks = 0","module.exports = {\n isFunction: require('@antv/util/lib/type/is-function'),\n isObject: require('@antv/util/lib/type/is-object'),\n isBoolean: require('@antv/util/lib/type/is-boolean'),\n isNil: require('@antv/util/lib/type/is-nil'),\n isString: require('@antv/util/lib/type/is-string'),\n isArray: require('@antv/util/lib/type/is-array'),\n isNumber: require('@antv/util/lib/type/is-number'),\n isEmpty: require('@antv/util/lib/is-empty'),\n // isBlank\n uniqueId: require('@antv/util/lib/unique-id'),\n clone: require('@antv/util/lib/clone'),\n deepMix: require('@antv/util/lib/deep-mix'),\n assign: require('@antv/util/lib/mix'),\n // simpleMix\n merge: require('@antv/util/lib/deep-mix'),\n // mix\n upperFirst: require('@antv/util/lib/string/upper-first'),\n // ucfirst\n each: require('@antv/util/lib/each'),\n isEqual: require('@antv/util/lib/is-equal'),\n toArray: require('@antv/util/lib/to-array'),\n extend: require('@antv/util/lib/extend'),\n augment: require('@antv/util/lib/augment'),\n remove: require('@antv/util/lib/array/pull'),\n isNumberEqual: require('@antv/util/lib/math/is-number-equal'),\n toRadian: require('@antv/util/lib/math/to-radian'),\n toDegree: require('@antv/util/lib/math/to-degree'),\n mod: require('@antv/util/lib/math/mod'),\n clamp: require('@antv/util/lib/math/clamp'),\n createDom: require('@antv/util/lib/dom/create-dom'),\n modifyCSS: require('@antv/util/lib/dom/modify-css'),\n requestAnimationFrame: require('@antv/util/lib/dom/request-animation-frame'),\n getRatio: function getRatio() {\n return window.devicePixelRatio ? window.devicePixelRatio : 2;\n },\n mat3: require('@antv/util/lib/matrix/mat3'),\n vec2: require('@antv/util/lib/matrix/vec2'),\n vec3: require('@antv/util/lib/matrix/vec3'),\n transform: require('@antv/util/lib/matrix/transform')\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/util/common.js\n// module id = 52\n// module chunks = 0","/**\n * 是否是布尔类型\n *\n * @param {Object} value 测试的值\n * @return {Boolean}\n */\nvar isType = require('./is-type');\n\nvar isBoolean = function isBoolean(value) {\n return isType(value, 'Boolean');\n};\n\nmodule.exports = isBoolean;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-boolean.js\n// module id = 53\n// module chunks = 0","var isNil = require('./type/is-nil');\n\nvar isArrayLike = require('./type/is-array-like');\n\nvar getType = require('./type/get-type');\n\nvar isPrototype = require('./type/is-prototype');\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nfunction isEmpty(value) {\n /**\n * isEmpty(null) => true\n * isEmpty() => true\n * isEmpty(true) => true\n * isEmpty(1) => true\n * isEmpty([1, 2, 3]) => false\n * isEmpty('abc') => false\n * isEmpty({ a: 1 }) => false\n */\n if (isNil(value)) {\n return true;\n }\n\n if (isArrayLike(value)) {\n return !value.length;\n }\n\n var type = getType(value);\n\n if (type === 'Map' || type === 'Set') {\n return !value.size;\n }\n\n if (isPrototype(value)) {\n return !Object.keys(value).length;\n }\n\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n\n return true;\n}\n\nmodule.exports = isEmpty;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/is-empty.js\n// module id = 54\n// module chunks = 0","var toString = {}.toString;\n\nvar getType = function getType(value) {\n return toString.call(value).replace(/^\\[object /, '').replace(/\\]$/, '');\n};\n\nmodule.exports = getType;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/get-type.js\n// module id = 55\n// module chunks = 0","var objectProto = Object.prototype;\n\nvar isPrototype = function isPrototype(value) {\n var Ctor = value && value.constructor;\n var proto = typeof Ctor === 'function' && Ctor.prototype || objectProto;\n return value === proto;\n};\n\nmodule.exports = isPrototype;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/type/is-prototype.js\n// module id = 56\n// module chunks = 0","var uniqueId = function () {\n var map = {};\n return function (prefix) {\n prefix = prefix || 'g';\n\n if (!map[prefix]) {\n map[prefix] = 1;\n } else {\n map[prefix] += 1;\n }\n\n return prefix + map[prefix];\n };\n}();\n\nmodule.exports = uniqueId;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/unique-id.js\n// module id = 57\n// module chunks = 0","var toString = require('../to-string');\n\nvar upperFirst = function upperFirst(value) {\n var str = toString(value);\n return str.charAt(0).toUpperCase() + str.substring(1);\n};\n\nmodule.exports = upperFirst;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/string/upper-first.js\n// module id = 58\n// module chunks = 0","var isFunction = require('./type/is-function');\n\nvar mix = require('./mix');\n\nvar extend = function extend(subclass, superclass, overrides, staticOverrides) {\n // 如果只提供父类构造函数,则自动生成子类构造函数\n if (!isFunction(superclass)) {\n overrides = superclass;\n superclass = subclass;\n\n subclass = function subclass() {};\n }\n\n var create = Object.create ? function (proto, c) {\n return Object.create(proto, {\n constructor: {\n value: c\n }\n });\n } : function (proto, c) {\n function Tmp() {}\n\n Tmp.prototype = proto;\n var o = new Tmp();\n o.constructor = c;\n return o;\n };\n var superObj = create(superclass.prototype, subclass); // new superclass(),//实例化父类作为子类的prototype\n\n subclass.prototype = mix(superObj, subclass.prototype); // 指定子类的prototype\n\n subclass.superclass = create(superclass.prototype, superclass);\n mix(superObj, overrides);\n mix(subclass, staticOverrides);\n return subclass;\n};\n\nmodule.exports = extend;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/extend.js\n// module id = 59\n// module chunks = 0","var isFunction = require('./type/is-function');\n\nvar toArray = require('./to-array');\n\nvar mix = require('./mix');\n\nvar augment = function augment(c) {\n var args = toArray(arguments);\n\n for (var i = 1; i < args.length; i++) {\n var obj = args[i];\n\n if (isFunction(obj)) {\n obj = obj.prototype;\n }\n\n mix(c.prototype, obj);\n }\n};\n\nmodule.exports = augment;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/augment.js\n// module id = 60\n// module chunks = 0","var arrPrototype = Array.prototype;\nvar splice = arrPrototype.splice;\nvar indexOf = arrPrototype.indexOf;\nvar slice = arrPrototype.slice;\n\nvar pull = function pull(arr) {\n var values = slice.call(arguments, 1);\n\n for (var i = 0; i < values.length; i++) {\n var value = values[i];\n var fromIndex = -1;\n\n while ((fromIndex = indexOf.call(arr, value)) > -1) {\n splice.call(arr, fromIndex, 1);\n }\n }\n\n return arr;\n};\n\nmodule.exports = pull;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/array/pull.js\n// module id = 61\n// module chunks = 0","var PRECISION = 0.00001; // numbers less than this is considered as 0\n\nmodule.exports = function isNumberEqual(a, b) {\n var precision = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : PRECISION;\n return Math.abs(a - b) < precision;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/math/is-number-equal.js\n// module id = 62\n// module chunks = 0","var RADIAN = Math.PI / 180;\n\nvar toRadian = function toRadian(degree) {\n return RADIAN * degree;\n};\n\nmodule.exports = toRadian;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/math/to-radian.js\n// module id = 63\n// module chunks = 0","var DEGREE = 180 / Math.PI;\n\nvar toDegree = function toDegree(radian) {\n return DEGREE * radian;\n};\n\nmodule.exports = toDegree;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/math/to-degree.js\n// module id = 64\n// module chunks = 0","var mod = function mod(n, m) {\n return (n % m + m) % m;\n};\n\nmodule.exports = mod;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/math/mod.js\n// module id = 65\n// module chunks = 0","/**\n * 创建DOM 节点\n * @param {String} str Dom 字符串\n * @return {HTMLElement} DOM 节点\n */\nvar TABLE = document.createElement('table');\nvar TABLE_TR = document.createElement('tr');\nvar FRAGMENT_REG = /^\\s*<(\\w+|!)[^>]*>/;\nvar CONTAINERS = {\n tr: document.createElement('tbody'),\n tbody: TABLE,\n thead: TABLE,\n tfoot: TABLE,\n td: TABLE_TR,\n th: TABLE_TR,\n '*': document.createElement('div')\n};\n\nmodule.exports = function createDom(str) {\n var name = FRAGMENT_REG.test(str) && RegExp.$1;\n\n if (!(name in CONTAINERS)) {\n name = '*';\n }\n\n var container = CONTAINERS[name];\n str = str.replace(/(^\\s*)|(\\s*$)/g, '');\n container.innerHTML = '' + str;\n var dom = container.childNodes[0];\n container.removeChild(dom);\n return dom;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/dom/create-dom.js\n// module id = 66\n// module chunks = 0","module.exports = function modifyCSS(dom, css) {\n if (dom) {\n for (var key in css) {\n if (css.hasOwnProperty(key)) {\n dom.style[key] = css[key];\n }\n }\n }\n\n return dom;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/dom/modify-css.js\n// module id = 67\n// module chunks = 0","module.exports = function requestAnimationFrame(fn) {\n var method = window.requestAnimationFrame || window.webkitRequestAnimationFrame || function (fn) {\n return setTimeout(fn, 16);\n };\n\n return method(fn);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/dom/request-animation-frame.js\n// module id = 68\n// module chunks = 0","var vec2 = require('@antv/gl-matrix/lib/gl-matrix/vec2');\n\nvar clamp = require('../math/clamp');\n\nvec2.angle = function (v1, v2) {\n var theta = vec2.dot(v1, v2) / (vec2.length(v1) * vec2.length(v2));\n return Math.acos(clamp(theta, -1, 1));\n};\n/**\n * 向量 v1 到 向量 v2 夹角的方向\n * @param {Array} v1 向量\n * @param {Array} v2 向量\n * @return {Boolean} >= 0 顺时针 < 0 逆时针\n */\n\n\nvec2.direction = function (v1, v2) {\n return v1[0] * v2[1] - v2[0] * v1[1];\n};\n\nvec2.angleTo = function (v1, v2, direct) {\n var angle = vec2.angle(v1, v2);\n var angleLargeThanPI = vec2.direction(v1, v2) >= 0;\n\n if (direct) {\n if (angleLargeThanPI) {\n return Math.PI * 2 - angle;\n }\n\n return angle;\n }\n\n if (angleLargeThanPI) {\n return angle;\n }\n\n return Math.PI * 2 - angle;\n};\n\nvec2.vertical = function (out, v, flag) {\n if (flag) {\n out[0] = v[1];\n out[1] = -1 * v[0];\n } else {\n out[0] = -1 * v[1];\n out[1] = v[0];\n }\n\n return out;\n};\n\nmodule.exports = vec2;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/matrix/vec2.js\n// module id = 69\n// module chunks = 0","var vec3 = require('@antv/gl-matrix/lib/gl-matrix/vec3');\n\nmodule.exports = vec3;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/matrix/vec3.js\n// module id = 70\n// module chunks = 0","var clone = require('../clone');\n\nvar each = require('../each');\n\nvar mat3 = require('./mat3');\n\nmodule.exports = function transform(m, ts) {\n m = clone(m);\n each(ts, function (t) {\n switch (t[0]) {\n case 't':\n mat3.translate(m, m, [t[1], t[2]]);\n break;\n\n case 's':\n mat3.scale(m, m, [t[1], t[2]]);\n break;\n\n case 'r':\n mat3.rotate(m, m, t[1]);\n break;\n\n case 'm':\n mat3.multiply(m, m, t[1]);\n break;\n\n default:\n return false;\n }\n });\n return m;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/matrix/transform.js\n// module id = 71\n// module chunks = 0","var Util = require('./util/index');\n\nvar Event = function Event(type, event, bubbles, cancelable) {\n this.type = type; // 事件类型\n\n this.target = null; // 目标\n\n this.currentTarget = null; // 当前目标\n\n this.bubbles = bubbles; // 冒泡\n\n this.cancelable = cancelable; // 是否能够阻止\n\n this.timeStamp = new Date().getTime(); // 时间戳\n\n this.defaultPrevented = false; // 阻止默认\n\n this.propagationStopped = false; // 阻止冒泡\n\n this.removed = false; // 是否被移除\n\n this.event = event; // 触发的原生事件\n};\n\nUtil.augment(Event, {\n preventDefault: function preventDefault() {\n this.defaultPrevented = this.cancelable && true;\n },\n stopPropagation: function stopPropagation() {\n this.propagationStopped = true;\n },\n remove: function remove() {\n this.remove = true;\n },\n clone: function clone() {\n return Util.clone(this);\n },\n toString: function toString() {\n return '[Event (type=' + this.type + ')]';\n }\n});\nmodule.exports = Event;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/event.js\n// module id = 72\n// module chunks = 0","var Util = require('../util/index');\n\nvar Element = require('./element');\n\nvar Shape = require('../shapes/index');\n\nvar SHAPE_MAP = {}; // 缓存图形类型\n\nvar INDEX = '_INDEX';\n\nfunction getComparer(compare) {\n return function (left, right) {\n var result = compare(left, right);\n return result === 0 ? left[INDEX] - right[INDEX] : result;\n };\n}\n\nfunction find(children, x, y) {\n var rst;\n\n for (var i = children.length - 1; i >= 0; i--) {\n var child = children[i];\n\n if (child._cfg.visible && child._cfg.capture) {\n if (child.isGroup) {\n rst = child.getShape(x, y);\n } else if (child.isHit(x, y)) {\n rst = child;\n }\n }\n\n if (rst) {\n break;\n }\n }\n\n return rst;\n}\n\nvar Group = function Group(cfg) {\n Group.superclass.constructor.call(this, cfg);\n this.set('children', []);\n this.set('tobeRemoved', []);\n\n this._beforeRenderUI();\n\n this._renderUI();\n\n this._bindUI();\n};\n\nfunction initClassCfgs(c) {\n if (c._cfg || c === Group) {\n return;\n }\n\n var superCon = c.superclass.constructor;\n\n if (superCon && !superCon._cfg) {\n initClassCfgs(superCon);\n }\n\n c._cfg = {};\n Util.merge(c._cfg, superCon._cfg);\n Util.merge(c._cfg, c.CFG);\n}\n\nUtil.extend(Group, Element);\nUtil.augment(Group, {\n isGroup: true,\n type: 'group',\n canFill: true,\n canStroke: true,\n getDefaultCfg: function getDefaultCfg() {\n initClassCfgs(this.constructor);\n return Util.merge({}, this.constructor._cfg);\n },\n _beforeRenderUI: function _beforeRenderUI() {},\n _renderUI: function _renderUI() {},\n _bindUI: function _bindUI() {},\n addShape: function addShape(type, cfg) {\n var canvas = this.get('canvas');\n cfg = cfg || {};\n var shapeType = SHAPE_MAP[type];\n\n if (!shapeType) {\n shapeType = Util.upperFirst(type);\n SHAPE_MAP[type] = shapeType;\n }\n\n if (cfg.attrs && canvas) {\n var attrs = cfg.attrs;\n\n if (type === 'text') {\n // 临时解决\n var topFontFamily = canvas.get('fontFamily');\n\n if (topFontFamily) {\n attrs.fontFamily = attrs.fontFamily ? attrs.fontFamily : topFontFamily;\n }\n }\n }\n\n cfg.canvas = canvas;\n cfg.type = type;\n var rst = new Shape[shapeType](cfg);\n this.add(rst);\n return rst;\n },\n\n /** 添加图组\n * @param {Function|Object|undefined} param 图组类\n * @param {Object} cfg 配置项\n * @return {Object} rst 图组\n */\n addGroup: function addGroup(param, cfg) {\n var canvas = this.get('canvas');\n var rst;\n cfg = Util.merge({}, cfg);\n\n if (Util.isFunction(param)) {\n if (cfg) {\n cfg.canvas = canvas;\n cfg.parent = this;\n rst = new param(cfg);\n } else {\n rst = new param({\n canvas: canvas,\n parent: this\n });\n }\n\n this.add(rst);\n } else if (Util.isObject(param)) {\n param.canvas = canvas;\n rst = new Group(param);\n this.add(rst);\n } else if (param === undefined) {\n rst = new Group();\n this.add(rst);\n } else {\n return false;\n }\n\n return rst;\n },\n\n /** 绘制背景\n * @param {Array} padding 内边距\n * @param {Attrs} attrs 图形属性\n * @param {Shape} backShape 背景图形\n * @return {Object} 背景层对象\n */\n renderBack: function renderBack(padding, attrs) {\n var backShape = this.get('backShape');\n var innerBox = this.getBBox(); // const parent = this.get('parent'); // getParent\n\n Util.merge(attrs, {\n x: innerBox.minX - padding[3],\n y: innerBox.minY - padding[0],\n width: innerBox.width + padding[1] + padding[3],\n height: innerBox.height + padding[0] + padding[2]\n });\n\n if (backShape) {\n backShape.attr(attrs);\n } else {\n backShape = this.addShape('rect', {\n zIndex: -1,\n attrs: attrs\n });\n }\n\n this.set('backShape', backShape);\n this.sort();\n return backShape;\n },\n removeChild: function removeChild(item, destroy) {\n if (arguments.length >= 2) {\n if (this.contain(item)) {\n item.remove(destroy);\n }\n } else {\n if (arguments.length === 1) {\n if (Util.isBoolean(item)) {\n destroy = item;\n } else {\n if (this.contain(item)) {\n item.remove(true);\n }\n\n return this;\n }\n }\n\n if (arguments.length === 0) {\n destroy = true;\n }\n\n Group.superclass.remove.call(this, destroy);\n }\n\n return this;\n },\n\n /**\n * 向组中添加shape或者group\n * @param {Object} items 图形或者分组\n * @return {Object} group 本尊\n */\n add: function add(items) {\n var self = this;\n var children = self.get('children');\n\n if (Util.isArray(items)) {\n Util.each(items, function (item) {\n var parent = item.get('parent');\n\n if (parent) {\n parent.removeChild(item, false);\n }\n\n self._setCfgProperty(item);\n });\n self._cfg.children = children.concat(items);\n } else {\n var item = items;\n var parent = item.get('parent');\n\n if (parent) {\n parent.removeChild(item, false);\n }\n\n self._setCfgProperty(item);\n\n children.push(item);\n }\n\n return self;\n },\n _setCfgProperty: function _setCfgProperty(item) {\n var cfg = this._cfg;\n item.set('parent', this);\n item.set('canvas', cfg.canvas);\n\n if (cfg.timeline) {\n item.set('timeline', cfg.timeline);\n }\n },\n contain: function contain(item) {\n var children = this.get('children');\n return children.indexOf(item) > -1;\n },\n getChildByIndex: function getChildByIndex(index) {\n var children = this.get('children');\n return children[index];\n },\n getFirst: function getFirst() {\n return this.getChildByIndex(0);\n },\n getLast: function getLast() {\n var lastIndex = this.get('children').length - 1;\n return this.getChildByIndex(lastIndex);\n },\n getBBox: function getBBox() {\n var self = this;\n var minX = Infinity;\n var maxX = -Infinity;\n var minY = Infinity;\n var maxY = -Infinity;\n var children = self.get('children');\n\n if (children.length > 0) {\n Util.each(children, function (child) {\n if (child.get('visible')) {\n if (child.isGroup && child.get('children').length === 0) {\n return;\n }\n\n var _box = child.getBBox();\n\n if (!_box) {\n return true;\n }\n\n var leftTop = [_box.minX, _box.minY, 1];\n var leftBottom = [_box.minX, _box.maxY, 1];\n var rightTop = [_box.maxX, _box.minY, 1];\n var rightBottom = [_box.maxX, _box.maxY, 1];\n child.apply(leftTop);\n child.apply(leftBottom);\n child.apply(rightTop);\n child.apply(rightBottom);\n var boxMinX = Math.min(leftTop[0], leftBottom[0], rightTop[0], rightBottom[0]);\n var boxMaxX = Math.max(leftTop[0], leftBottom[0], rightTop[0], rightBottom[0]);\n var boxMinY = Math.min(leftTop[1], leftBottom[1], rightTop[1], rightBottom[1]);\n var boxMaxY = Math.max(leftTop[1], leftBottom[1], rightTop[1], rightBottom[1]);\n\n if (boxMinX < minX) {\n minX = boxMinX;\n }\n\n if (boxMaxX > maxX) {\n maxX = boxMaxX;\n }\n\n if (boxMinY < minY) {\n minY = boxMinY;\n }\n\n if (boxMaxY > maxY) {\n maxY = boxMaxY;\n }\n }\n });\n } else {\n minX = 0;\n maxX = 0;\n minY = 0;\n maxY = 0;\n }\n\n var box = {\n minX: minX,\n minY: minY,\n maxX: maxX,\n maxY: maxY\n };\n box.x = box.minX;\n box.y = box.minY;\n box.width = box.maxX - box.minX;\n box.height = box.maxY - box.minY;\n return box;\n },\n getCount: function getCount() {\n return this.get('children').length;\n },\n sort: function sort() {\n var children = this.get('children'); // 稳定排序\n\n Util.each(children, function (child, index) {\n child[INDEX] = index;\n return child;\n });\n children.sort(getComparer(function (obj1, obj2) {\n return obj1.get('zIndex') - obj2.get('zIndex');\n }));\n return this;\n },\n findById: function findById(id) {\n return this.find(function (item) {\n return item.get('id') === id;\n });\n },\n\n /**\n * 根据查找函数查找分组或者图形\n * @param {Function} fn 匹配函数\n * @return {Canvas.Base} 分组或者图形\n */\n find: function find(fn) {\n if (Util.isString(fn)) {\n return this.findById(fn);\n }\n\n var children = this.get('children');\n var rst = null;\n Util.each(children, function (item) {\n if (fn(item)) {\n rst = item;\n } else if (item.find) {\n rst = item.find(fn);\n }\n\n if (rst) {\n return false;\n }\n });\n return rst;\n },\n\n /**\n * @param {Function} fn filter mathod\n * @return {Array} all the matching shapes and groups\n */\n findAll: function findAll(fn) {\n var children = this.get('children');\n var rst = [];\n var childRst = [];\n Util.each(children, function (item) {\n if (fn(item)) {\n rst.push(item);\n }\n\n if (item.findAllBy) {\n childRst = item.findAllBy(fn);\n rst = rst.concat(childRst);\n }\n });\n return rst;\n },\n\n /**\n * @Deprecated\n * @param {Function} fn filter method\n * @return {Object} found shape or group\n */\n findBy: function findBy(fn) {\n var children = this.get('children');\n var rst = null;\n Util.each(children, function (item) {\n if (fn(item)) {\n rst = item;\n } else if (item.findBy) {\n rst = item.findBy(fn);\n }\n\n if (rst) {\n return false;\n }\n });\n return rst;\n },\n\n /**\n * @Deprecated\n * @param {Function} fn filter mathod\n * @return {Array} all the matching shapes and groups\n */\n findAllBy: function findAllBy(fn) {\n var children = this.get('children');\n var rst = [];\n var childRst = [];\n Util.each(children, function (item) {\n if (fn(item)) {\n rst.push(item);\n }\n\n if (item.findAllBy) {\n childRst = item.findAllBy(fn);\n rst = rst.concat(childRst);\n }\n });\n return rst;\n },\n getShape: function getShape(x, y) {\n var self = this;\n var clip = self._attrs.clip;\n var children = self._cfg.children;\n var rst;\n\n if (clip) {\n var v = [x, y, 1];\n clip.invert(v, self.get('canvas')); // 已经在外面转换\n\n if (clip.isPointInPath(v[0], v[1])) {\n rst = find(children, x, y);\n }\n } else {\n rst = find(children, x, y);\n }\n\n return rst;\n },\n clearTotalMatrix: function clearTotalMatrix() {\n var m = this.get('totalMatrix');\n\n if (m) {\n this.setSilent('totalMatrix', null);\n var children = this._cfg.children;\n\n for (var i = 0; i < children.length; i++) {\n var child = children[i];\n child.clearTotalMatrix();\n }\n }\n },\n clear: function clear(delayRemove) {\n var children = this._cfg.children;\n\n for (var i = children.length - 1; i >= 0; i--) {\n children[i].remove(true, delayRemove);\n }\n\n this._cfg.children = [];\n return this;\n },\n destroy: function destroy() {\n if (this.get('destroyed')) {\n return;\n }\n\n this.clear();\n Group.superclass.destroy.call(this);\n },\n clone: function clone() {\n var self = this;\n var children = self._cfg.children;\n var clone = new Group();\n Util.each(children, function (child) {\n clone.add(child.clone());\n });\n return clone;\n }\n});\nmodule.exports = Group;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/core/group.js\n// module id = 73\n// module chunks = 0","var Util = require('../util/index');\n\nvar Attribute = require('./mixin/attribute');\n\nvar Transform = require('./mixin/transform');\n\nvar Animate = require('./mixin/animation');\n\nvar EventEmitter = require('wolfy87-eventemitter');\n\nvar Element = function Element(cfg) {\n this._cfg = {\n zIndex: 0,\n capture: true,\n visible: true,\n destroyed: false\n }; // 配置存放地\n\n Util.assign(this._cfg, this.getDefaultCfg(), cfg); // Element.CFG不合并,提升性能 合并默认配置,用户配置->继承默认配置->Element默认配置\n\n this.initAttrs(this._cfg.attrs); // 初始化绘图属性\n\n this._cfg.attrs = {};\n this.initTransform(); // 初始化变换\n\n this.init(); // 类型初始化\n};\n\nElement.CFG = {\n /**\n * 唯一标示\n * @type {Number}\n */\n id: null,\n\n /**\n * Z轴的层叠关系,Z值越大离用户越近\n * @type {Number}\n */\n zIndex: 0,\n\n /**\n * Canvas对象\n * @type: {Object}\n */\n canvas: null,\n\n /**\n * 父元素指针\n * @type {Object}\n */\n parent: null,\n\n /**\n * 用来设置当前对象是否能被捕捉\n * true 能\n * false 不能\n * 对象默认是都可以被捕捉的, 当capture为false时,group.getShape(x, y)方法无法获得该元素\n * 通过将不必要捕捉的元素的该属性设置成false, 来提高捕捉性能\n * @type {Boolean}\n **/\n capture: true,\n\n /**\n * 画布的上下文\n * @type {Object}\n */\n context: null,\n\n /**\n * 是否显示\n * @type {Boolean}\n */\n visible: true,\n\n /**\n * 是否被销毁\n * @type: {Boolean}\n */\n destroyed: false\n};\nUtil.augment(Element, Attribute, Transform, EventEmitter, Animate, {\n init: function init() {\n this.setSilent('animable', true);\n this.setSilent('animating', false); // 初始时不处于动画状态\n },\n getParent: function getParent() {\n return this._cfg.parent;\n },\n\n /**\n * 获取默认的配置信息\n * @protected\n * @return {Object} 默认的属性\n */\n getDefaultCfg: function getDefaultCfg() {\n return {};\n },\n set: function set(name, value) {\n if (name === 'zIndex' && this._beforeSetZIndex) {\n this._beforeSetZIndex(value);\n }\n\n if (name === 'loading' && this._beforeSetLoading) {\n this._beforeSetLoading(value);\n }\n\n this._cfg[name] = value;\n return this;\n },\n // deprecated\n setSilent: function setSilent(name, value) {\n this._cfg[name] = value;\n },\n get: function get(name) {\n return this._cfg[name];\n },\n show: function show() {\n this._cfg.visible = true;\n return this;\n },\n hide: function hide() {\n this._cfg.visible = false;\n return this;\n },\n remove: function remove(destroy, delayRemove) {\n var cfg = this._cfg;\n var parent = cfg.parent;\n var el = cfg.el;\n\n if (parent) {\n Util.remove(parent.get('children'), this);\n }\n\n if (el) {\n if (delayRemove) {\n parent && parent._cfg.tobeRemoved.push(el);\n } else {\n el.parentNode.removeChild(el);\n }\n }\n\n if (destroy || destroy === undefined) {\n this.destroy();\n }\n\n return this;\n },\n destroy: function destroy() {\n var destroyed = this.get('destroyed');\n\n if (destroyed) {\n return;\n }\n\n this._attrs = null;\n this.removeEvent(); // 移除所有的事件\n\n this._cfg = {\n destroyed: true\n };\n },\n toFront: function toFront() {\n var cfg = this._cfg;\n var parent = cfg.parent;\n\n if (!parent) {\n return;\n }\n\n var children = parent._cfg.children;\n var el = cfg.el;\n var index = children.indexOf(this);\n children.splice(index, 1);\n children.push(this);\n\n if (el) {\n el.parentNode.removeChild(el);\n cfg.el = null;\n }\n },\n toBack: function toBack() {\n var cfg = this._cfg;\n var parent = cfg.parent;\n\n if (!parent) {\n return;\n }\n\n var children = parent._cfg.children;\n var el = cfg.el;\n var index = children.indexOf(this);\n children.splice(index, 1);\n children.unshift(this);\n\n if (el) {\n var parentNode = el.parentNode;\n parentNode.removeChild(el);\n parentNode.insertBefore(el, parentNode.firstChild);\n }\n },\n _beforeSetZIndex: function _beforeSetZIndex(zIndex) {\n var parent = this._cfg.parent;\n this._cfg.zIndex = zIndex;\n\n if (!Util.isNil(parent)) {\n parent.sort();\n }\n\n var el = this._cfg.el;\n\n if (el) {\n var children = parent._cfg.children;\n var index = children.indexOf(this);\n var parentNode = el.parentNode;\n parentNode.removeChild(el);\n\n if (index === children.length - 1) {\n parentNode.appendChild(el);\n } else {\n parentNode.insertBefore(el, parentNode.childNodes[index]);\n }\n }\n\n return zIndex;\n },\n _setAttrs: function _setAttrs(attrs) {\n this.attr(attrs);\n return attrs;\n },\n setZIndex: function setZIndex(zIndex) {\n this._cfg.zIndex = zIndex;\n return this._beforeSetZIndex(zIndex);\n },\n clone: function clone() {\n return Util.clone(this);\n },\n getBBox: function getBBox() {}\n});\nmodule.exports = Element;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/core/element.js\n// module id = 74\n// module chunks = 0","var Util = require('../../util/index');\n\nvar vec2 = Util.vec2;\n\nfunction quadraticAt(p0, p1, p2, t) {\n var onet = 1 - t;\n return onet * (onet * p0 + 2 * t * p1) + t * t * p2;\n}\n\nfunction quadraticProjectPoint(x1, y1, x2, y2, x3, y3, x, y, out) {\n var t;\n var interval = 0.005;\n var d = Infinity;\n var d1;\n var v1;\n var v2;\n\n var _t;\n\n var d2;\n var i;\n var EPSILON = 0.0001;\n var v0 = [x, y];\n\n for (_t = 0; _t < 1; _t += 0.05) {\n v1 = [quadraticAt(x1, x2, x3, _t), quadraticAt(y1, y2, y3, _t)];\n d1 = vec2.squaredDistance(v0, v1);\n\n if (d1 < d) {\n t = _t;\n d = d1;\n }\n }\n\n d = Infinity;\n\n for (i = 0; i < 32; i++) {\n if (interval < EPSILON) {\n break;\n }\n\n var prev = t - interval;\n var next = t + interval;\n v1 = [quadraticAt(x1, x2, x3, prev), quadraticAt(y1, y2, y3, prev)];\n d1 = vec2.squaredDistance(v0, v1);\n\n if (prev >= 0 && d1 < d) {\n t = prev;\n d = d1;\n } else {\n v2 = [quadraticAt(x1, x2, x3, next), quadraticAt(y1, y2, y3, next)];\n d2 = vec2.squaredDistance(v0, v2);\n\n if (next <= 1 && d2 < d) {\n t = next;\n d = d2;\n } else {\n interval *= 0.5;\n }\n }\n }\n\n if (out) {\n out.x = quadraticAt(x1, x2, x3, t);\n out.y = quadraticAt(y1, y2, y3, t);\n }\n\n return Math.sqrt(d);\n}\n\nfunction quadraticExtrema(p0, p1, p2) {\n var a = p0 + p2 - 2 * p1;\n\n if (Util.isNumberEqual(a, 0)) {\n return [0.5];\n }\n\n var rst = (p0 - p1) / a;\n\n if (rst <= 1 && rst >= 0) {\n return [rst];\n }\n\n return [];\n}\n\nmodule.exports = {\n at: quadraticAt,\n projectPoint: function projectPoint(x1, y1, x2, y2, x3, y3, x, y) {\n var rst = {};\n quadraticProjectPoint(x1, y1, x2, y2, x3, y3, x, y, rst);\n return rst;\n },\n pointDistance: quadraticProjectPoint,\n extrema: quadraticExtrema\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/math/quadratic.js\n// module id = 75\n// module chunks = 0","module.exports = {\n xAt: function xAt(psi, rx, ry, cx, t) {\n return rx * Math.cos(psi) * Math.cos(t) - ry * Math.sin(psi) * Math.sin(t) + cx;\n },\n yAt: function yAt(psi, rx, ry, cy, t) {\n return rx * Math.sin(psi) * Math.cos(t) + ry * Math.cos(psi) * Math.sin(t) + cy;\n },\n xExtrema: function xExtrema(psi, rx, ry) {\n return Math.atan(-ry / rx * Math.tan(psi));\n },\n yExtrema: function yExtrema(psi, rx, ry) {\n return Math.atan(ry / (rx * Math.tan(psi)));\n }\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/math/ellipse.js\n// module id = 76\n// module chunks = 0","var Util = require('../util/index');\n\nvar Shape = require('../core/shape');\n\nvar ArcMath = require('./math/arc');\n\nvar Arrow = require('./util/arrow');\n\nfunction _getArcX(x, radius, angle) {\n return x + radius * Math.cos(angle);\n}\n\nfunction _getArcY(y, radius, angle) {\n return y + radius * Math.sin(angle);\n}\n\nvar Arc = function Arc(cfg) {\n Arc.superclass.constructor.call(this, cfg);\n};\n\nArc.ATTRS = {\n x: 0,\n y: 0,\n r: 0,\n startAngle: 0,\n endAngle: 0,\n clockwise: false,\n lineWidth: 1,\n startArrow: false,\n endArrow: false\n};\nUtil.extend(Arc, Shape);\nUtil.augment(Arc, {\n canStroke: true,\n type: 'arc',\n getDefaultAttrs: function getDefaultAttrs() {\n return {\n x: 0,\n y: 0,\n r: 0,\n startAngle: 0,\n endAngle: 0,\n clockwise: false,\n lineWidth: 1,\n startArrow: false,\n endArrow: false\n };\n },\n calculateBox: function calculateBox() {\n var attrs = this._attrs;\n var x = attrs.x,\n y = attrs.y,\n r = attrs.r,\n startAngle = attrs.startAngle,\n endAngle = attrs.endAngle,\n clockwise = attrs.clockwise;\n var lineWidth = this.getHitLineWidth();\n var halfWidth = lineWidth / 2;\n var box = ArcMath.box(x, y, r, startAngle, endAngle, clockwise);\n box.minX -= halfWidth;\n box.minY -= halfWidth;\n box.maxX += halfWidth;\n box.maxY += halfWidth;\n return box;\n },\n getStartTangent: function getStartTangent() {\n var attrs = this._attrs;\n var x = attrs.x,\n y = attrs.y,\n startAngle = attrs.startAngle,\n r = attrs.r,\n clockwise = attrs.clockwise;\n var diff = Math.PI / 180;\n\n if (clockwise) {\n diff *= -1;\n }\n\n var result = [];\n\n var x1 = _getArcX(x, r, startAngle + diff);\n\n var y1 = _getArcY(y, r, startAngle + diff);\n\n var x2 = _getArcX(x, r, startAngle);\n\n var y2 = _getArcY(y, r, startAngle);\n\n result.push([x1, y1]);\n result.push([x2, y2]);\n return result;\n },\n getEndTangent: function getEndTangent() {\n var attrs = this._attrs;\n var x = attrs.x,\n y = attrs.y,\n endAngle = attrs.endAngle,\n r = attrs.r,\n clockwise = attrs.clockwise;\n var diff = Math.PI / 180;\n var result = [];\n\n if (clockwise) {\n diff *= -1;\n }\n\n var x1 = _getArcX(x, r, endAngle + diff);\n\n var y1 = _getArcY(y, r, endAngle + diff);\n\n var x2 = _getArcX(x, r, endAngle);\n\n var y2 = _getArcY(y, r, endAngle);\n\n result.push([x2, y2]);\n result.push([x1, y1]);\n return result;\n },\n createPath: function createPath(context) {\n var attrs = this._attrs;\n var x = attrs.x,\n y = attrs.y,\n r = attrs.r,\n startAngle = attrs.startAngle,\n endAngle = attrs.endAngle,\n clockwise = attrs.clockwise;\n context = context || self.get('context');\n context.beginPath();\n context.arc(x, y, r, startAngle, endAngle, clockwise);\n },\n afterPath: function afterPath(context) {\n var attrs = this._attrs;\n context = context || this.get('context');\n\n if (attrs.startArrow) {\n var startPoints = this.getStartTangent();\n Arrow.addStartArrow(context, attrs, startPoints[0][0], startPoints[0][1], startPoints[1][0], startPoints[1][1]);\n }\n\n if (attrs.endArrow) {\n var endPoints = this.getEndTangent();\n Arrow.addEndArrow(context, attrs, endPoints[0][0], endPoints[0][1], endPoints[1][0], endPoints[1][1]);\n }\n }\n});\nmodule.exports = Arc;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/arc.js\n// module id = 77\n// module chunks = 0","var Util = require('../util/index');\n\nvar Shape = require('../core/shape');\n\nvar Circle = function Circle(cfg) {\n Circle.superclass.constructor.call(this, cfg);\n};\n\nCircle.ATTRS = {\n x: 0,\n y: 0,\n r: 0,\n lineWidth: 1\n};\nUtil.extend(Circle, Shape);\nUtil.augment(Circle, {\n canFill: true,\n canStroke: true,\n type: 'circle',\n getDefaultAttrs: function getDefaultAttrs() {\n return {\n lineWidth: 1\n };\n },\n calculateBox: function calculateBox() {\n var attrs = this._attrs;\n var cx = attrs.x;\n var cy = attrs.y;\n var r = attrs.r;\n var lineWidth = this.getHitLineWidth();\n var halfWidth = lineWidth / 2 + r;\n return {\n minX: cx - halfWidth,\n minY: cy - halfWidth,\n maxX: cx + halfWidth,\n maxY: cy + halfWidth\n };\n },\n createPath: function createPath(context) {\n var attrs = this._attrs;\n var cx = attrs.x;\n var cy = attrs.y;\n var r = attrs.r;\n context.beginPath();\n context.arc(cx, cy, r, 0, Math.PI * 2, false);\n context.closePath();\n }\n});\nmodule.exports = Circle;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/circle.js\n// module id = 78\n// module chunks = 0","var Util = require('../util/index');\n\nvar Shape = require('../core/shape');\n\nvar Dom = function Dom(cfg) {\n Dom.superclass.constructor.call(this, cfg);\n};\n\nUtil.extend(Dom, Shape);\nUtil.augment(Dom, {\n canFill: true,\n canStroke: true,\n type: 'dom',\n calculateBox: function calculateBox() {\n var self = this;\n var attrs = self._attrs;\n var x = attrs.x;\n var y = attrs.y;\n var width = attrs.width;\n var height = attrs.height;\n var lineWidth = this.getHitLineWidth();\n var halfWidth = lineWidth / 2;\n return {\n minX: x - halfWidth,\n minY: y - halfWidth,\n maxX: x + width + halfWidth,\n maxY: y + height + halfWidth\n };\n }\n});\nmodule.exports = Dom;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/dom.js\n// module id = 79\n// module chunks = 0","var Util = require('../util/index');\n\nvar Shape = require('../core/shape');\n\nvar Ellipse = function Ellipse(cfg) {\n Ellipse.superclass.constructor.call(this, cfg);\n};\n\nEllipse.ATTRS = {\n x: 0,\n y: 0,\n rx: 1,\n ry: 1,\n lineWidth: 1\n};\nUtil.extend(Ellipse, Shape);\nUtil.augment(Ellipse, {\n canFill: true,\n canStroke: true,\n type: 'ellipse',\n getDefaultAttrs: function getDefaultAttrs() {\n return {\n lineWidth: 1\n };\n },\n calculateBox: function calculateBox() {\n var attrs = this._attrs;\n var cx = attrs.x;\n var cy = attrs.y;\n var rx = attrs.rx;\n var ry = attrs.ry;\n var lineWidth = this.getHitLineWidth();\n var halfXWidth = rx + lineWidth / 2;\n var halfYWidth = ry + lineWidth / 2;\n return {\n minX: cx - halfXWidth,\n minY: cy - halfYWidth,\n maxX: cx + halfXWidth,\n maxY: cy + halfYWidth\n };\n },\n createPath: function createPath(context) {\n var attrs = this._attrs;\n var cx = attrs.x;\n var cy = attrs.y;\n var rx = attrs.rx;\n var ry = attrs.ry;\n context = context || self.get('context');\n var r = rx > ry ? rx : ry;\n var scaleX = rx > ry ? 1 : rx / ry;\n var scaleY = rx > ry ? ry / rx : 1;\n var m = [1, 0, 0, 0, 1, 0, 0, 0, 1];\n Util.mat3.scale(m, m, [scaleX, scaleY]);\n Util.mat3.translate(m, m, [cx, cy]);\n context.beginPath();\n context.save();\n context.transform(m[0], m[1], m[3], m[4], m[6], m[7]);\n context.arc(0, 0, r, 0, Math.PI * 2);\n context.restore();\n context.closePath();\n }\n});\nmodule.exports = Ellipse;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/ellipse.js\n// module id = 80\n// module chunks = 0","var Util = require('../util/index');\n\nvar Shape = require('../core/shape');\n\nvar ArcMath = require('./math/arc');\n\nvar Fan = function Fan(cfg) {\n Fan.superclass.constructor.call(this, cfg);\n};\n\nFan.ATTRS = {\n x: 0,\n y: 0,\n rs: 0,\n re: 0,\n startAngle: 0,\n endAngle: 0,\n clockwise: false,\n lineWidth: 1\n};\nUtil.extend(Fan, Shape);\nUtil.augment(Fan, {\n canFill: true,\n canStroke: true,\n type: 'fan',\n getDefaultAttrs: function getDefaultAttrs() {\n return {\n clockwise: false,\n lineWidth: 1,\n rs: 0,\n re: 0\n };\n },\n calculateBox: function calculateBox() {\n var self = this;\n var attrs = self._attrs;\n var cx = attrs.x;\n var cy = attrs.y;\n var rs = attrs.rs;\n var re = attrs.re;\n var startAngle = attrs.startAngle;\n var endAngle = attrs.endAngle;\n var clockwise = attrs.clockwise;\n var lineWidth = this.getHitLineWidth();\n var boxs = ArcMath.box(cx, cy, rs, startAngle, endAngle, clockwise);\n var boxe = ArcMath.box(cx, cy, re, startAngle, endAngle, clockwise);\n var minX = Math.min(boxs.minX, boxe.minX);\n var minY = Math.min(boxs.minY, boxe.minY);\n var maxX = Math.max(boxs.maxX, boxe.maxX);\n var maxY = Math.max(boxs.maxY, boxe.maxY);\n var halfWidth = lineWidth / 2;\n return {\n minX: minX - halfWidth,\n minY: minY - halfWidth,\n maxX: maxX + halfWidth,\n maxY: maxY + halfWidth\n };\n },\n createPath: function createPath(context) {\n var attrs = this._attrs;\n var cx = attrs.x;\n var cy = attrs.y;\n var rs = attrs.rs;\n var re = attrs.re;\n var startAngle = attrs.startAngle;\n var endAngle = attrs.endAngle;\n var clockwise = attrs.clockwise;\n var ssp = {\n x: Math.cos(startAngle) * rs + cx,\n y: Math.sin(startAngle) * rs + cy\n };\n var sep = {\n x: Math.cos(startAngle) * re + cx,\n y: Math.sin(startAngle) * re + cy\n };\n var esp = {\n x: Math.cos(endAngle) * rs + cx,\n y: Math.sin(endAngle) * rs + cy\n };\n context = context || self.get('context');\n context.beginPath();\n context.moveTo(ssp.x, ssp.y);\n context.lineTo(sep.x, sep.y);\n context.arc(cx, cy, re, startAngle, endAngle, clockwise);\n context.lineTo(esp.x, esp.y);\n context.arc(cx, cy, rs, endAngle, startAngle, !clockwise);\n context.closePath();\n }\n});\nmodule.exports = Fan;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/fan.js\n// module id = 81\n// module chunks = 0","var Util = require('../util/index');\n\nvar Shape = require('../core/shape');\n\nvar CImage = function CImage(cfg) {\n CImage.superclass.constructor.call(this, cfg);\n};\n\nCImage.ATTRS = {\n x: 0,\n y: 0,\n img: undefined,\n width: 0,\n height: 0,\n sx: null,\n sy: null,\n swidth: null,\n sheight: null\n};\nUtil.extend(CImage, Shape);\nUtil.augment(CImage, {\n type: 'image',\n isHitBox: function isHitBox() {\n return false;\n },\n calculateBox: function calculateBox() {\n var attrs = this._attrs;\n\n if (!this._cfg.attrs || this._cfg.attrs.img !== attrs.img) {\n this._setAttrImg();\n }\n\n var x = attrs.x;\n var y = attrs.y;\n var width = attrs.width;\n var height = attrs.height;\n return {\n minX: x,\n minY: y,\n maxX: x + width,\n maxY: y + height\n };\n },\n _beforeSetLoading: function _beforeSetLoading(loading) {\n var canvas = this.get('canvas');\n\n if (loading === false && this.get('toDraw') === true) {\n this._cfg.loading = false;\n canvas.draw();\n }\n\n return loading;\n },\n _setAttrImg: function _setAttrImg() {\n var self = this;\n var attrs = self._attrs;\n var img = attrs.img;\n\n if (Util.isString(img)) {\n var image = new Image();\n\n image.onload = function () {\n if (self.get('destroyed')) return false;\n self.attr('imgSrc', img);\n self.attr('img', image);\n var callback = self.get('callback');\n\n if (callback) {\n callback.call(self);\n }\n\n self.set('loading', false);\n };\n\n image.src = img;\n image.crossOrigin = 'Anonymous';\n self.set('loading', true);\n } else if (img instanceof Image) {\n if (!attrs.width) {\n self.attr('width', img.width);\n }\n\n if (!attrs.height) {\n self.attr('height', img.height);\n }\n\n return img;\n } else if (img instanceof HTMLElement && Util.isString(img.nodeName) && img.nodeName.toUpperCase() === 'CANVAS') {\n if (!attrs.width) {\n self.attr('width', Number(img.getAttribute('width')));\n }\n\n if (!attrs.height) {\n self.attr('height', Number(img.getAttribute('height')));\n }\n\n return img;\n } else if (img instanceof ImageData) {\n if (!attrs.width) {\n self.attr('width', img.width);\n }\n\n if (!attrs.height) {\n self.attr('height', img.height);\n }\n\n return img;\n } else {\n return null;\n }\n },\n drawInner: function drawInner(context) {\n if (this._cfg.hasUpdate) {\n this._setAttrImg();\n }\n\n if (this.get('loading')) {\n this.set('toDraw', true);\n return;\n }\n\n this._drawImage(context);\n\n this._cfg.hasUpdate = false;\n },\n _drawImage: function _drawImage(context) {\n var attrs = this._attrs;\n var x = attrs.x;\n var y = attrs.y;\n var image = attrs.img;\n var width = attrs.width;\n var height = attrs.height;\n var sx = attrs.sx;\n var sy = attrs.sy;\n var swidth = attrs.swidth;\n var sheight = attrs.sheight;\n this.set('toDraw', false);\n var img = image;\n\n if (img instanceof ImageData) {\n img = new Image();\n img.src = image;\n }\n\n if (img instanceof Image || img instanceof HTMLElement && Util.isString(img.nodeName) && img.nodeName.toUpperCase() === 'CANVAS') {\n if (Util.isNil(sx) || Util.isNil(sy) || Util.isNil(swidth) || Util.isNil(sheight)) {\n context.drawImage(img, x, y, width, height);\n return;\n }\n\n if (!Util.isNil(sx) && !Util.isNil(sy) && !Util.isNil(swidth) && !Util.isNil(sheight)) {\n context.drawImage(img, sx, sy, swidth, sheight, x, y, width, height);\n return;\n }\n }\n\n return;\n }\n});\nmodule.exports = CImage;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/image.js\n// module id = 82\n// module chunks = 0","var Util = require('../util/index');\n\nvar Shape = require('../core/shape');\n\nvar Arrow = require('./util/arrow');\n\nvar LineMath = require('./math/line');\n\nvar Line = function Line(cfg) {\n Line.superclass.constructor.call(this, cfg);\n};\n\nLine.ATTRS = {\n x1: 0,\n y1: 0,\n x2: 0,\n y2: 0,\n lineWidth: 1,\n startArrow: false,\n endArrow: false\n};\nUtil.extend(Line, Shape);\nUtil.augment(Line, {\n canStroke: true,\n type: 'line',\n getDefaultAttrs: function getDefaultAttrs() {\n return {\n lineWidth: 1,\n startArrow: false,\n endArrow: false\n };\n },\n calculateBox: function calculateBox() {\n var attrs = this._attrs;\n var x1 = attrs.x1,\n y1 = attrs.y1,\n x2 = attrs.x2,\n y2 = attrs.y2;\n var lineWidth = this.getHitLineWidth();\n return LineMath.box(x1, y1, x2, y2, lineWidth);\n },\n createPath: function createPath(context) {\n var attrs = this._attrs;\n var x1 = attrs.x1,\n y1 = attrs.y1,\n x2 = attrs.x2,\n y2 = attrs.y2;\n context = context || self.get('context');\n context.beginPath();\n context.moveTo(x1, y1);\n context.lineTo(x2, y2);\n },\n afterPath: function afterPath(context) {\n var attrs = this._attrs;\n var x1 = attrs.x1,\n y1 = attrs.y1,\n x2 = attrs.x2,\n y2 = attrs.y2;\n context = context || this.get('context');\n\n if (attrs.startArrow) {\n Arrow.addStartArrow(context, attrs, x2, y2, x1, y1);\n }\n\n if (attrs.endArrow) {\n Arrow.addEndArrow(context, attrs, x1, y1, x2, y2);\n }\n },\n getPoint: function getPoint(t) {\n var attrs = this._attrs;\n return {\n x: LineMath.at(attrs.x1, attrs.x2, t),\n y: LineMath.at(attrs.y1, attrs.y2, t)\n };\n }\n});\nmodule.exports = Line;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/line.js\n// module id = 83\n// module chunks = 0","var Util = require('../util/index');\n\nvar Shape = require('../core/shape');\n\nvar PathSegment = require('./util/path-segment');\n\nvar Format = require('../util/format');\n\nvar Arrow = require('./util/arrow');\n\nvar PathUtil = require('../util/path');\n\nvar CubicMath = require('./math/cubic');\n\nvar Path = function Path(cfg) {\n Path.superclass.constructor.call(this, cfg);\n};\n\nPath.ATTRS = {\n path: null,\n lineWidth: 1,\n startArrow: false,\n endArrow: false\n};\nUtil.extend(Path, Shape);\nUtil.augment(Path, {\n canFill: true,\n canStroke: true,\n type: 'path',\n getDefaultAttrs: function getDefaultAttrs() {\n return {\n lineWidth: 1,\n startArrow: false,\n endArrow: false\n };\n },\n _afterSetAttrPath: function _afterSetAttrPath(path) {\n var self = this;\n\n if (Util.isNil(path)) {\n self.setSilent('segments', null);\n self.setSilent('box', undefined);\n return;\n }\n\n var pathArray = Format.parsePath(path);\n var preSegment;\n var segments = [];\n\n if (!Util.isArray(pathArray) || pathArray.length === 0 || pathArray[0][0] !== 'M' && pathArray[0][0] !== 'm') {\n return;\n }\n\n var count = pathArray.length;\n\n for (var i = 0; i < pathArray.length; i++) {\n var item = pathArray[i];\n preSegment = new PathSegment(item, preSegment, i === count - 1);\n segments.push(preSegment);\n }\n\n self.setSilent('segments', segments);\n self.setSilent('tCache', null);\n self.setSilent('box', null);\n },\n calculateBox: function calculateBox() {\n var self = this;\n var segments = self.get('segments');\n\n if (!segments) {\n return null;\n }\n\n var lineWidth = this.getHitLineWidth();\n var minX = Infinity;\n var maxX = -Infinity;\n var minY = Infinity;\n var maxY = -Infinity;\n Util.each(segments, function (segment) {\n segment.getBBox(lineWidth);\n var box = segment.box;\n\n if (box) {\n if (box.minX < minX) {\n minX = box.minX;\n }\n\n if (box.maxX > maxX) {\n maxX = box.maxX;\n }\n\n if (box.minY < minY) {\n minY = box.minY;\n }\n\n if (box.maxY > maxY) {\n maxY = box.maxY;\n }\n }\n });\n\n if (minX === Infinity || minY === Infinity) {\n return {\n minX: 0,\n minY: 0,\n maxX: 0,\n maxY: 0\n };\n }\n\n return {\n minX: minX,\n minY: minY,\n maxX: maxX,\n maxY: maxY\n };\n },\n _setTcache: function _setTcache() {\n var totalLength = 0;\n var tempLength = 0;\n var tCache = [];\n var segmentT;\n var segmentL;\n var segmentN;\n var l;\n var curve = this._cfg.curve;\n\n if (!curve) {\n return;\n }\n\n Util.each(curve, function (segment, i) {\n segmentN = curve[i + 1];\n l = segment.length;\n\n if (segmentN) {\n totalLength += CubicMath.len(segment[l - 2], segment[l - 1], segmentN[1], segmentN[2], segmentN[3], segmentN[4], segmentN[5], segmentN[6]);\n }\n });\n Util.each(curve, function (segment, i) {\n segmentN = curve[i + 1];\n l = segment.length;\n\n if (segmentN) {\n segmentT = [];\n segmentT[0] = tempLength / totalLength;\n segmentL = CubicMath.len(segment[l - 2], segment[l - 1], segmentN[1], segmentN[2], segmentN[3], segmentN[4], segmentN[5], segmentN[6]);\n tempLength += segmentL;\n segmentT[1] = tempLength / totalLength;\n tCache.push(segmentT);\n }\n });\n this._cfg.tCache = tCache;\n },\n _calculateCurve: function _calculateCurve() {\n var self = this;\n var attrs = self._attrs;\n var path = attrs.path;\n this._cfg.curve = PathUtil.pathTocurve(path);\n },\n getStartTangent: function getStartTangent() {\n var segments = this.get('segments');\n var startPoint, endPoint, tangent, result;\n\n if (segments.length > 1) {\n startPoint = segments[0].endPoint;\n endPoint = segments[1].endPoint;\n tangent = segments[1].startTangent;\n result = [];\n\n if (Util.isFunction(tangent)) {\n var v = tangent();\n result.push([startPoint.x - v[0], startPoint.y - v[1]]);\n result.push([startPoint.x, startPoint.y]);\n } else {\n result.push([endPoint.x, endPoint.y]);\n result.push([startPoint.x, startPoint.y]);\n }\n }\n\n return result;\n },\n getEndTangent: function getEndTangent() {\n var segments = this.get('segments');\n var segmentsLen = segments.length;\n var startPoint, endPoint, tangent, result;\n\n if (segmentsLen > 1) {\n startPoint = segments[segmentsLen - 2].endPoint;\n endPoint = segments[segmentsLen - 1].endPoint;\n tangent = segments[segmentsLen - 1].endTangent;\n result = [];\n\n if (Util.isFunction(tangent)) {\n var v = tangent();\n result.push([endPoint.x - v[0], endPoint.y - v[1]]);\n result.push([endPoint.x, endPoint.y]);\n } else {\n result.push([startPoint.x, startPoint.y]);\n result.push([endPoint.x, endPoint.y]);\n }\n }\n\n return result;\n },\n getPoint: function getPoint(t) {\n var tCache = this._cfg.tCache;\n var subt;\n var index;\n\n if (!tCache) {\n this._calculateCurve();\n\n this._setTcache();\n\n tCache = this._cfg.tCache;\n }\n\n var curve = this._cfg.curve;\n\n if (!tCache) {\n if (curve) {\n return {\n x: curve[0][1],\n y: curve[0][2]\n };\n }\n\n return null;\n }\n\n Util.each(tCache, function (v, i) {\n if (t >= v[0] && t <= v[1]) {\n subt = (t - v[0]) / (v[1] - v[0]);\n index = i;\n }\n });\n var seg = curve[index];\n\n if (Util.isNil(seg) || Util.isNil(index)) {\n return null;\n }\n\n var l = seg.length;\n var nextSeg = curve[index + 1];\n return {\n x: CubicMath.at(seg[l - 2], nextSeg[1], nextSeg[3], nextSeg[5], 1 - subt),\n y: CubicMath.at(seg[l - 1], nextSeg[2], nextSeg[4], nextSeg[6], 1 - subt)\n };\n },\n createPath: function createPath(context) {\n var self = this;\n var segments = self.get('segments');\n\n if (!Util.isArray(segments)) {\n return;\n }\n\n context = context || self.get('context');\n context.beginPath();\n var segmentsLen = segments.length;\n\n for (var i = 0; i < segmentsLen; i++) {\n segments[i].draw(context);\n }\n },\n afterPath: function afterPath(context) {\n var self = this;\n var attrs = self._attrs;\n var segments = self.get('segments');\n var path = attrs.path;\n context = context || self.get('context');\n\n if (!Util.isArray(segments)) {\n return;\n }\n\n if (segments.length === 1) {\n return;\n }\n\n if (!attrs.startArrow && !attrs.endArrow) {\n return;\n }\n\n if (path[path.length - 1] === 'z' || path[path.length - 1] === 'Z' || attrs.fill) {\n // 闭合路径不绘制箭头\n return;\n }\n\n var startPoints = self.getStartTangent();\n Arrow.addStartArrow(context, attrs, startPoints[0][0], startPoints[0][1], startPoints[1][0], startPoints[1][1]);\n var endPoints = self.getEndTangent();\n Arrow.addEndArrow(context, attrs, endPoints[0][0], endPoints[0][1], endPoints[1][0], endPoints[1][1]);\n }\n});\nmodule.exports = Path;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/path.js\n// module id = 84\n// module chunks = 0","var Util = require('../util/index');\n\nvar Shape = require('../core/shape');\n\nvar Polygon = function Polygon(cfg) {\n Polygon.superclass.constructor.call(this, cfg);\n};\n\nPolygon.ATTRS = {\n points: null,\n lineWidth: 1\n};\nUtil.extend(Polygon, Shape);\nUtil.augment(Polygon, {\n canFill: true,\n canStroke: true,\n type: 'polygon',\n getDefaultAttrs: function getDefaultAttrs() {\n return {\n lineWidth: 1\n };\n },\n calculateBox: function calculateBox() {\n var self = this;\n var attrs = self._attrs;\n var points = attrs.points;\n var lineWidth = this.getHitLineWidth();\n\n if (!points || points.length === 0) {\n return null;\n }\n\n var minX = Infinity;\n var minY = Infinity;\n var maxX = -Infinity;\n var maxY = -Infinity;\n Util.each(points, function (point) {\n var x = point[0];\n var y = point[1];\n\n if (x < minX) {\n minX = x;\n }\n\n if (x > maxX) {\n maxX = x;\n }\n\n if (y < minY) {\n minY = y;\n }\n\n if (y > maxY) {\n maxY = y;\n }\n });\n var halfWidth = lineWidth / 2;\n return {\n minX: minX - halfWidth,\n minY: minY - halfWidth,\n maxX: maxX + halfWidth,\n maxY: maxY + halfWidth\n };\n },\n createPath: function createPath(context) {\n var self = this;\n var attrs = self._attrs;\n var points = attrs.points;\n\n if (points.length < 2) {\n return;\n }\n\n context = context || self.get('context');\n context.beginPath();\n Util.each(points, function (point, index) {\n if (index === 0) {\n context.moveTo(point[0], point[1]);\n } else {\n context.lineTo(point[0], point[1]);\n }\n });\n context.closePath();\n }\n});\nmodule.exports = Polygon;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/polygon.js\n// module id = 85\n// module chunks = 0","var Util = require('../util/index');\n\nvar Shape = require('../core/shape');\n\nvar Arrow = require('./util/arrow');\n\nvar LineMath = require('./math/line');\n\nvar Polyline = function Polyline(cfg) {\n Polyline.superclass.constructor.call(this, cfg);\n};\n\nPolyline.ATTRS = {\n points: null,\n lineWidth: 1,\n startArrow: false,\n endArrow: false,\n tCache: null\n};\nUtil.extend(Polyline, Shape);\nUtil.augment(Polyline, {\n canStroke: true,\n type: 'polyline',\n tCache: null,\n // 缓存各点的t\n getDefaultAttrs: function getDefaultAttrs() {\n return {\n lineWidth: 1,\n startArrow: false,\n endArrow: false\n };\n },\n calculateBox: function calculateBox() {\n var self = this;\n var attrs = self._attrs;\n var lineWidth = this.getHitLineWidth();\n var points = attrs.points;\n\n if (!points || points.length === 0) {\n return null;\n }\n\n var minX = Infinity;\n var minY = Infinity;\n var maxX = -Infinity;\n var maxY = -Infinity;\n Util.each(points, function (point) {\n var x = point[0];\n var y = point[1];\n\n if (x < minX) {\n minX = x;\n }\n\n if (x > maxX) {\n maxX = x;\n }\n\n if (y < minY) {\n minY = y;\n }\n\n if (y > maxY) {\n maxY = y;\n }\n });\n var halfWidth = lineWidth / 2;\n return {\n minX: minX - halfWidth,\n minY: minY - halfWidth,\n maxX: maxX + halfWidth,\n maxY: maxY + halfWidth\n };\n },\n _setTcache: function _setTcache() {\n var self = this;\n var attrs = self._attrs;\n var points = attrs.points;\n var totalLength = 0;\n var tempLength = 0;\n var tCache = [];\n var segmentT;\n var segmentL;\n\n if (!points || points.length === 0) {\n return;\n }\n\n Util.each(points, function (p, i) {\n if (points[i + 1]) {\n totalLength += LineMath.len(p[0], p[1], points[i + 1][0], points[i + 1][1]);\n }\n });\n\n if (totalLength <= 0) {\n return;\n }\n\n Util.each(points, function (p, i) {\n if (points[i + 1]) {\n segmentT = [];\n segmentT[0] = tempLength / totalLength;\n segmentL = LineMath.len(p[0], p[1], points[i + 1][0], points[i + 1][1]);\n tempLength += segmentL;\n segmentT[1] = tempLength / totalLength;\n tCache.push(segmentT);\n }\n });\n this.tCache = tCache;\n },\n createPath: function createPath(context) {\n var self = this;\n var attrs = self._attrs;\n var points = attrs.points;\n var l;\n var i;\n\n if (points.length < 2) {\n return;\n }\n\n context = context || self.get('context');\n context.beginPath();\n context.moveTo(points[0][0], points[0][1]);\n\n for (i = 1, l = points.length - 1; i < l; i++) {\n context.lineTo(points[i][0], points[i][1]);\n }\n\n context.lineTo(points[l][0], points[l][1]);\n },\n getStartTangent: function getStartTangent() {\n var points = this.__attrs.points;\n var result = [];\n result.push([points[1][0], points[1][1]]);\n result.push([points[0][0], points[0][1]]);\n return result;\n },\n getEndTangent: function getEndTangent() {\n var points = this.__attrs.points;\n var l = points.length - 1;\n var result = [];\n result.push([points[l - 1][0], points[l - 1][1]]);\n result.push([points[l][0], points[l][1]]);\n return result;\n },\n afterPath: function afterPath(context) {\n var self = this;\n var attrs = self._attrs;\n var points = attrs.points;\n var l = points.length - 1;\n context = context || self.get('context');\n\n if (attrs.startArrow) {\n Arrow.addStartArrow(context, attrs, points[1][0], points[1][1], points[0][0], points[0][1]);\n }\n\n if (attrs.endArrow) {\n Arrow.addEndArrow(context, attrs, points[l - 1][0], points[l - 1][1], points[l][0], points[l][1]);\n }\n },\n getPoint: function getPoint(t) {\n var attrs = this._attrs;\n var points = attrs.points;\n var tCache = this.tCache;\n var subt;\n var index;\n\n if (!tCache) {\n this._setTcache();\n\n tCache = this.tCache;\n }\n\n Util.each(tCache, function (v, i) {\n if (t >= v[0] && t <= v[1]) {\n subt = (t - v[0]) / (v[1] - v[0]);\n index = i;\n }\n });\n return {\n x: LineMath.at(points[index][0], points[index + 1][0], subt),\n y: LineMath.at(points[index][1], points[index + 1][1], subt)\n };\n }\n});\nmodule.exports = Polyline;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/polyline.js\n// module id = 86\n// module chunks = 0","var Util = require('../util/index');\n\nvar _require = require('../util/format'),\n parseRadius = _require.parseRadius;\n\nvar Shape = require('../core/shape');\n\nvar Rect = function Rect(cfg) {\n Rect.superclass.constructor.call(this, cfg);\n};\n\nRect.ATTRS = {\n x: 0,\n y: 0,\n width: 0,\n height: 0,\n radius: 0,\n lineWidth: 1\n};\nUtil.extend(Rect, Shape);\nUtil.augment(Rect, {\n canFill: true,\n canStroke: true,\n type: 'rect',\n getDefaultAttrs: function getDefaultAttrs() {\n return {\n lineWidth: 1,\n radius: 0\n };\n },\n calculateBox: function calculateBox() {\n var self = this;\n var attrs = self._attrs;\n var x = attrs.x;\n var y = attrs.y;\n var width = attrs.width;\n var height = attrs.height;\n var lineWidth = this.getHitLineWidth();\n var halfWidth = lineWidth / 2;\n return {\n minX: x - halfWidth,\n minY: y - halfWidth,\n maxX: x + width + halfWidth,\n maxY: y + height + halfWidth\n };\n },\n createPath: function createPath(context) {\n var self = this;\n var attrs = self._attrs;\n var x = attrs.x;\n var y = attrs.y;\n var width = attrs.width;\n var height = attrs.height;\n var radius = attrs.radius;\n context = context || self.get('context');\n context.beginPath();\n\n if (radius === 0) {\n // 改成原生的rect方法\n context.rect(x, y, width, height);\n } else {\n var r = parseRadius(radius);\n context.moveTo(x + r.r1, y);\n context.lineTo(x + width - r.r2, y);\n r.r2 !== 0 && context.arc(x + width - r.r2, y + r.r2, r.r2, -Math.PI / 2, 0);\n context.lineTo(x + width, y + height - r.r3);\n r.r3 !== 0 && context.arc(x + width - r.r3, y + height - r.r3, r.r3, 0, Math.PI / 2);\n context.lineTo(x + r.r4, y + height);\n r.r4 !== 0 && context.arc(x + r.r4, y + height - r.r4, r.r4, Math.PI / 2, Math.PI);\n context.lineTo(x, y + r.r1);\n r.r1 !== 0 && context.arc(x + r.r1, y + r.r1, r.r1, Math.PI, Math.PI * 1.5);\n context.closePath();\n }\n }\n});\nmodule.exports = Rect;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/rect.js\n// module id = 87\n// module chunks = 0","var Util = require('../util/index');\n\nvar Shape = require('../core/shape');\n\nvar CText = function CText(cfg) {\n CText.superclass.constructor.call(this, cfg);\n};\n\nCText.ATTRS = {\n x: 0,\n y: 0,\n text: null,\n fontSize: 12,\n fontFamily: 'sans-serif',\n fontStyle: 'normal',\n fontWeight: 'normal',\n fontVariant: 'normal',\n textAlign: 'start',\n textBaseline: 'bottom',\n lineHeight: null,\n textArr: null\n};\nUtil.extend(CText, Shape);\nUtil.augment(CText, {\n canFill: true,\n canStroke: true,\n type: 'text',\n getDefaultAttrs: function getDefaultAttrs() {\n return {\n lineWidth: 1,\n lineCount: 1,\n fontSize: 12,\n fontFamily: 'sans-serif',\n fontStyle: 'normal',\n fontWeight: 'normal',\n fontVariant: 'normal',\n textAlign: 'start',\n textBaseline: 'bottom'\n };\n },\n initTransform: function initTransform() {\n var fontSize = this._attrs.fontSize;\n\n if (fontSize && +fontSize < 12) {\n // 小于 12 像素的文本进行 scale 处理\n this.transform([['t', -1 * this._attrs.x, -1 * this._attrs.y], ['s', +fontSize / 12, +fontSize / 12], ['t', this._attrs.x, this._attrs.y]]);\n }\n },\n _assembleFont: function _assembleFont() {\n // var self = this;\n var attrs = this._attrs;\n var fontSize = attrs.fontSize;\n var fontFamily = attrs.fontFamily;\n var fontWeight = attrs.fontWeight;\n var fontStyle = attrs.fontStyle; // self.attr('fontStyle');\n\n var fontVariant = attrs.fontVariant; // self.attr('fontVariant');\n // self.attr('font', [fontStyle, fontVariant, fontWeight, fontSize + 'px', fontFamily].join(' '));\n\n attrs.font = [fontStyle, fontVariant, fontWeight, fontSize + 'px', fontFamily].join(' ');\n },\n _setAttrText: function _setAttrText() {\n var attrs = this._attrs;\n var text = attrs.text;\n var textArr = null;\n\n if (Util.isString(text) && text.indexOf('\\n') !== -1) {\n textArr = text.split('\\n');\n var lineCount = textArr.length;\n attrs.lineCount = lineCount;\n }\n\n attrs.textArr = textArr;\n },\n _getTextHeight: function _getTextHeight() {\n var attrs = this._attrs;\n var lineCount = attrs.lineCount;\n var fontSize = attrs.fontSize * 1;\n\n if (lineCount > 1) {\n var spaceingY = this._getSpaceingY();\n\n return fontSize * lineCount + spaceingY * (lineCount - 1);\n }\n\n return fontSize;\n },\n isHitBox: function isHitBox() {\n return false;\n },\n calculateBox: function calculateBox() {\n var self = this;\n var attrs = self._attrs;\n var cfg = this._cfg;\n\n if (!cfg.attrs || cfg.hasUpdate) {\n this._assembleFont();\n\n this._setAttrText();\n }\n\n if (!attrs.textArr) {\n this._setAttrText();\n }\n\n var x = attrs.x;\n var y = attrs.y;\n var width = self.measureText(); // attrs.width\n\n if (!width) {\n // 如果width不存在,四点共其实点\n return {\n minX: x,\n minY: y,\n maxX: x,\n maxY: y\n };\n }\n\n var height = self._getTextHeight(); // attrs.height\n\n\n var textAlign = attrs.textAlign;\n var textBaseline = attrs.textBaseline;\n var lineWidth = self.getHitLineWidth();\n var point = {\n x: x,\n y: y - height\n };\n\n if (textAlign) {\n if (textAlign === 'end' || textAlign === 'right') {\n point.x -= width;\n } else if (textAlign === 'center') {\n point.x -= width / 2;\n }\n }\n\n if (textBaseline) {\n if (textBaseline === 'top') {\n point.y += height;\n } else if (textBaseline === 'middle') {\n point.y += height / 2;\n }\n }\n\n this.set('startPoint', point);\n var halfWidth = lineWidth / 2;\n return {\n minX: point.x - halfWidth,\n minY: point.y - halfWidth,\n maxX: point.x + width + halfWidth,\n maxY: point.y + height + halfWidth\n };\n },\n _getSpaceingY: function _getSpaceingY() {\n var attrs = this._attrs;\n var lineHeight = attrs.lineHeight;\n var fontSize = attrs.fontSize * 1;\n return lineHeight ? lineHeight - fontSize : fontSize * 0.14;\n },\n drawInner: function drawInner(context) {\n var self = this;\n var attrs = self._attrs;\n var cfg = this._cfg;\n\n if (!cfg.attrs || cfg.hasUpdate) {\n this._assembleFont();\n\n this._setAttrText();\n }\n\n context.font = attrs.font;\n var text = attrs.text;\n\n if (!text) {\n return;\n }\n\n var textArr = attrs.textArr;\n var x = attrs.x;\n var y = attrs.y;\n context.beginPath();\n\n if (self.hasStroke()) {\n var strokeOpacity = attrs.strokeOpacity;\n\n if (!Util.isNil(strokeOpacity) && strokeOpacity !== 1) {\n context.globalAlpha = strokeOpacity;\n }\n\n if (textArr) {\n self._drawTextArr(context, false);\n } else {\n context.strokeText(text, x, y);\n }\n\n context.globalAlpha = 1;\n }\n\n if (self.hasFill()) {\n var fillOpacity = attrs.fillOpacity;\n\n if (!Util.isNil(fillOpacity) && fillOpacity !== 1) {\n context.globalAlpha = fillOpacity;\n }\n\n if (textArr) {\n self._drawTextArr(context, true);\n } else {\n context.fillText(text, x, y);\n }\n }\n\n cfg.hasUpdate = false;\n },\n _drawTextArr: function _drawTextArr(context, fill) {\n var textArr = this._attrs.textArr;\n var textBaseline = this._attrs.textBaseline;\n var fontSize = this._attrs.fontSize * 1;\n\n var spaceingY = this._getSpaceingY();\n\n var x = this._attrs.x;\n var y = this._attrs.y;\n var box = this.getBBox();\n var height = box.maxY - box.minY;\n var subY;\n Util.each(textArr, function (subText, index) {\n subY = y + index * (spaceingY + fontSize) - height + fontSize; // bottom;\n\n if (textBaseline === 'middle') subY += height - fontSize - (height - fontSize) / 2;\n if (textBaseline === 'top') subY += height - fontSize;\n\n if (fill) {\n context.fillText(subText, x, subY);\n } else {\n context.strokeText(subText, x, subY);\n }\n });\n },\n measureText: function measureText() {\n var self = this;\n var attrs = self._attrs;\n var text = attrs.text;\n var font = attrs.font;\n var textArr = attrs.textArr;\n var measureWidth;\n var width = 0;\n if (Util.isNil(text)) return undefined;\n var context = document.createElement('canvas').getContext('2d');\n context.save();\n context.font = font;\n\n if (textArr) {\n Util.each(textArr, function (subText) {\n measureWidth = context.measureText(subText).width;\n\n if (width < measureWidth) {\n width = measureWidth;\n }\n\n context.restore();\n });\n } else {\n width = context.measureText(text).width;\n context.restore();\n }\n\n return width;\n }\n});\nmodule.exports = CText;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_g@3.3.6@@antv/g/lib/shapes/text.js\n// module id = 88\n// module chunks = 0","export var deg2rad = Math.PI / 180;\nexport var rad2deg = 180 / Math.PI;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_d3-color@1.4.0@d3-color/src/math.js\n// module id = 89\n// module chunks = 0","import { rgb as colorRgb } from \"d3-color\";\nimport basis from \"./basis\";\nimport basisClosed from \"./basisClosed\";\nimport nogamma, { gamma } from \"./color\";\nexport default (function rgbGamma(y) {\n var color = gamma(y);\n\n function rgb(start, end) {\n var r = color((start = colorRgb(start)).r, (end = colorRgb(end)).r),\n g = color(start.g, end.g),\n b = color(start.b, end.b),\n opacity = nogamma(start.opacity, end.opacity);\n return function (t) {\n start.r = r(t);\n start.g = g(t);\n start.b = b(t);\n start.opacity = opacity(t);\n return start + \"\";\n };\n }\n\n rgb.gamma = rgbGamma;\n return rgb;\n})(1);\n\nfunction rgbSpline(spline) {\n return function (colors) {\n var n = colors.length,\n r = new Array(n),\n g = new Array(n),\n b = new Array(n),\n i,\n color;\n\n for (i = 0; i < n; ++i) {\n color = colorRgb(colors[i]);\n r[i] = color.r || 0;\n g[i] = color.g || 0;\n b[i] = color.b || 0;\n }\n\n r = spline(r);\n g = spline(g);\n b = spline(b);\n color.opacity = 1;\n return function (t) {\n color.r = r(t);\n color.g = g(t);\n color.b = b(t);\n return color + \"\";\n };\n };\n}\n\nexport var rgbBasis = rgbSpline(basis);\nexport var rgbBasisClosed = rgbSpline(basisClosed);\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/rgb.js\n// module id = 90\n// module chunks = 0","import { basis } from \"./basis\";\nexport default function (values) {\n var n = values.length;\n return function (t) {\n var i = Math.floor(((t %= 1) < 0 ? ++t : t) * n),\n v0 = values[(i + n - 1) % n],\n v1 = values[i % n],\n v2 = values[(i + 1) % n],\n v3 = values[(i + 2) % n];\n return basis((t - i / n) * n, v0, v1, v2, v3);\n };\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/basisClosed.js\n// module id = 91\n// module chunks = 0","export default function (x) {\n return function () {\n return x;\n };\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/constant.js\n// module id = 92\n// module chunks = 0","import value from \"./value\";\nexport default function (a, b) {\n var nb = b ? b.length : 0,\n na = a ? Math.min(nb, a.length) : 0,\n x = new Array(na),\n c = new Array(nb),\n i;\n\n for (i = 0; i < na; ++i) x[i] = value(a[i], b[i]);\n\n for (; i < nb; ++i) c[i] = b[i];\n\n return function (t) {\n for (i = 0; i < na; ++i) c[i] = x[i](t);\n\n return c;\n };\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/array.js\n// module id = 93\n// module chunks = 0","export default function (a, b) {\n var d = new Date();\n return a = +a, b -= a, function (t) {\n return d.setTime(a + b * t), d;\n };\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/date.js\n// module id = 94\n// module chunks = 0","import value from \"./value\";\nexport default function (a, b) {\n var i = {},\n c = {},\n k;\n if (a === null || typeof a !== \"object\") a = {};\n if (b === null || typeof b !== \"object\") b = {};\n\n for (k in b) {\n if (k in a) {\n i[k] = value(a[k], b[k]);\n } else {\n c[k] = b[k];\n }\n }\n\n return function (t) {\n for (k in i) c[k] = i[k](t);\n\n return c;\n };\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/object.js\n// module id = 95\n// module chunks = 0","import number from \"./number\";\nvar reA = /[-+]?(?:\\d+\\.?\\d*|\\.?\\d+)(?:[eE][-+]?\\d+)?/g,\n reB = new RegExp(reA.source, \"g\");\n\nfunction zero(b) {\n return function () {\n return b;\n };\n}\n\nfunction one(b) {\n return function (t) {\n return b(t) + \"\";\n };\n}\n\nexport default function (a, b) {\n var bi = reA.lastIndex = reB.lastIndex = 0,\n // scan index for next number in b\n am,\n // current match in a\n bm,\n // current match in b\n bs,\n // string preceding current number in b, if any\n i = -1,\n // index in s\n s = [],\n // string constants and placeholders\n q = []; // number interpolators\n // Coerce inputs to strings.\n\n a = a + \"\", b = b + \"\"; // Interpolate pairs of numbers in a & b.\n\n while ((am = reA.exec(a)) && (bm = reB.exec(b))) {\n if ((bs = bm.index) > bi) {\n // a string precedes the next number in b\n bs = b.slice(bi, bs);\n if (s[i]) s[i] += bs; // coalesce with previous string\n else s[++i] = bs;\n }\n\n if ((am = am[0]) === (bm = bm[0])) {\n // numbers in a & b match\n if (s[i]) s[i] += bm; // coalesce with previous string\n else s[++i] = bm;\n } else {\n // interpolate non-matching numbers\n s[++i] = null;\n q.push({\n i: i,\n x: number(am, bm)\n });\n }\n\n bi = reB.lastIndex;\n } // Add remains of b.\n\n\n if (bi < b.length) {\n bs = b.slice(bi);\n if (s[i]) s[i] += bs; // coalesce with previous string\n else s[++i] = bs;\n } // Special optimization for only a single match.\n // Otherwise, interpolate each of the numbers and rejoin the string.\n\n\n return s.length < 2 ? q[0] ? one(q[0].x) : zero(b) : (b = q.length, function (t) {\n for (var i = 0, o; i < b; ++i) s[(o = q[i]).i] = o.x(t);\n\n return s.join(\"\");\n });\n}\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_d3-interpolate@1.1.6@d3-interpolate/src/string.js\n// module id = 96\n// module chunks = 0","var keys = require('./keys');\n\nvar isNil = require('../type/is-nil');\n\nfunction isMatch(obj, attrs) {\n var _keys = keys(attrs);\n\n var length = _keys.length;\n if (isNil(obj)) return !length;\n\n for (var i = 0; i < length; i += 1) {\n var key = _keys[i];\n\n if (attrs[key] !== obj[key] || !(key in obj)) {\n return false;\n }\n }\n\n return true;\n}\n\nmodule.exports = isMatch;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/object/is-match.js\n// module id = 97\n// module chunks = 0","var each = require('../each');\n\nvar isFunction = require('../type/is-function');\n\nvar keys = Object.keys ? function (obj) {\n return Object.keys(obj);\n} : function (obj) {\n var result = [];\n each(obj, function (value, key) {\n if (!(isFunction(obj) && key === 'prototype')) {\n result.push(key);\n }\n });\n return result;\n};\nmodule.exports = keys;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/object/keys.js\n// module id = 98\n// module chunks = 0","var isArrayLike = require('../type/is-array-like');\n\nvar splice = Array.prototype.splice;\n\nvar pullAt = function pullAt(arr, indexes) {\n if (!isArrayLike(arr)) {\n return [];\n }\n\n var length = arr ? indexes.length : 0;\n var last = length - 1;\n\n while (length--) {\n var previous = void 0;\n var index = indexes[length];\n\n if (length === last || index !== previous) {\n previous = index;\n splice.call(arr, index, 1);\n }\n }\n\n return arr;\n};\n\nmodule.exports = pullAt;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/array/pull-at.js\n// module id = 99\n// module chunks = 0","var each = require('../each');\n\nvar contains = require('./contains');\n\nvar uniq = function uniq(arr) {\n var resultArr = [];\n each(arr, function (item) {\n if (!contains(resultArr, item)) {\n resultArr.push(item);\n }\n });\n return resultArr;\n};\n\nmodule.exports = uniq;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/array/uniq.js\n// module id = 100\n// module chunks = 0","module.exports = parseInt;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/math/to-integer.js\n// module id = 101\n// module chunks = 0","module.exports = function (obj, key) {\n return obj.hasOwnProperty(key);\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/object/has.js\n// module id = 102\n// module chunks = 0","var each = require('../each');\n\nvar isFunction = require('../type/is-function');\n\nvar values = Object.values ? function (obj) {\n return Object.values(obj);\n} : function (obj) {\n var result = [];\n each(obj, function (value, key) {\n if (!(isFunction(obj) && key === 'prototype')) {\n result.push(value);\n }\n });\n return result;\n};\nmodule.exports = values;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/object/values.js\n// module id = 103\n// module chunks = 0","var parsePathArray = require('./parse-path-array');\n\nmodule.exports = function rectPath(x, y, w, h, r) {\n if (r) {\n return [['M', +x + +r, y], ['l', w - r * 2, 0], ['a', r, r, 0, 0, 1, r, r], ['l', 0, h - r * 2], ['a', r, r, 0, 0, 1, -r, r], ['l', r * 2 - w, 0], ['a', r, r, 0, 0, 1, -r, -r], ['l', 0, r * 2 - h], ['a', r, r, 0, 0, 1, r, -r], ['z']];\n }\n\n var res = [['M', x, y], ['l', w, 0], ['l', 0, h], ['l', -w, 0], ['z']];\n res.parsePathArray = parsePathArray;\n return res;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/path/rect-path.js\n// module id = 104\n// module chunks = 0","var p2s = /,?([a-z]),?/gi;\n\nmodule.exports = function parsePathArray(path) {\n return path.join(',').replace(p2s, '$1');\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/path/parse-path-array.js\n// module id = 105\n// module chunks = 0","var pathToAbsolute = require('./path2absolute');\n\nvar a2c = function a2c(x1, y1, rx, ry, angle, large_arc_flag, sweep_flag, x2, y2, recursive) {\n // for more information of where this math came from visit:\n // http://www.w3.org/TR/SVG11/implnote.html#ArcImplementationNotes\n if (rx === ry) {\n rx += 1;\n }\n\n var _120 = Math.PI * 120 / 180;\n\n var rad = Math.PI / 180 * (+angle || 0);\n var res = [];\n var xy = void 0;\n var f1 = void 0;\n var f2 = void 0;\n var cx = void 0;\n var cy = void 0;\n\n var rotate = function rotate(x, y, rad) {\n var X = x * Math.cos(rad) - y * Math.sin(rad);\n var Y = x * Math.sin(rad) + y * Math.cos(rad);\n return {\n x: X,\n y: Y\n };\n };\n\n if (!recursive) {\n xy = rotate(x1, y1, -rad);\n x1 = xy.x;\n y1 = xy.y;\n xy = rotate(x2, y2, -rad);\n x2 = xy.x;\n y2 = xy.y;\n\n if (x1 === x2 && y1 === y2) {\n // 若弧的起始点和终点重叠则错开一点\n x2 += 1;\n y2 += 1;\n } // const cos = Math.cos(Math.PI / 180 * angle);\n // const sin = Math.sin(Math.PI / 180 * angle);\n\n\n var x = (x1 - x2) / 2;\n var y = (y1 - y2) / 2;\n var h = x * x / (rx * rx) + y * y / (ry * ry);\n\n if (h > 1) {\n h = Math.sqrt(h);\n rx = h * rx;\n ry = h * ry;\n }\n\n var rx2 = rx * rx;\n var ry2 = ry * ry;\n var k = (large_arc_flag === sweep_flag ? -1 : 1) * Math.sqrt(Math.abs((rx2 * ry2 - rx2 * y * y - ry2 * x * x) / (rx2 * y * y + ry2 * x * x)));\n cx = k * rx * y / ry + (x1 + x2) / 2;\n cy = k * -ry * x / rx + (y1 + y2) / 2;\n f1 = Math.asin(((y1 - cy) / ry).toFixed(9));\n f2 = Math.asin(((y2 - cy) / ry).toFixed(9));\n f1 = x1 < cx ? Math.PI - f1 : f1;\n f2 = x2 < cx ? Math.PI - f2 : f2;\n f1 < 0 && (f1 = Math.PI * 2 + f1);\n f2 < 0 && (f2 = Math.PI * 2 + f2);\n\n if (sweep_flag && f1 > f2) {\n f1 = f1 - Math.PI * 2;\n }\n\n if (!sweep_flag && f2 > f1) {\n f2 = f2 - Math.PI * 2;\n }\n } else {\n f1 = recursive[0];\n f2 = recursive[1];\n cx = recursive[2];\n cy = recursive[3];\n }\n\n var df = f2 - f1;\n\n if (Math.abs(df) > _120) {\n var f2old = f2;\n var x2old = x2;\n var y2old = y2;\n f2 = f1 + _120 * (sweep_flag && f2 > f1 ? 1 : -1);\n x2 = cx + rx * Math.cos(f2);\n y2 = cy + ry * Math.sin(f2);\n res = a2c(x2, y2, rx, ry, angle, 0, sweep_flag, x2old, y2old, [f2, f2old, cx, cy]);\n }\n\n df = f2 - f1;\n var c1 = Math.cos(f1);\n var s1 = Math.sin(f1);\n var c2 = Math.cos(f2);\n var s2 = Math.sin(f2);\n var t = Math.tan(df / 4);\n var hx = 4 / 3 * rx * t;\n var hy = 4 / 3 * ry * t;\n var m1 = [x1, y1];\n var m2 = [x1 + hx * s1, y1 - hy * c1];\n var m3 = [x2 + hx * s2, y2 - hy * c2];\n var m4 = [x2, y2];\n m2[0] = 2 * m1[0] - m2[0];\n m2[1] = 2 * m1[1] - m2[1];\n\n if (recursive) {\n return [m2, m3, m4].concat(res);\n }\n\n res = [m2, m3, m4].concat(res).join().split(',');\n var newres = [];\n\n for (var i = 0, ii = res.length; i < ii; i++) {\n newres[i] = i % 2 ? rotate(res[i - 1], res[i], rad).y : rotate(res[i], res[i + 1], rad).x;\n }\n\n return newres;\n};\n\nvar l2c = function l2c(x1, y1, x2, y2) {\n return [x1, y1, x2, y2, x2, y2];\n};\n\nvar q2c = function q2c(x1, y1, ax, ay, x2, y2) {\n var _13 = 1 / 3;\n\n var _23 = 2 / 3;\n\n return [_13 * x1 + _23 * ax, _13 * y1 + _23 * ay, _13 * x2 + _23 * ax, _13 * y2 + _23 * ay, x2, y2];\n};\n\nmodule.exports = function pathTocurve(path, path2) {\n var p = pathToAbsolute(path);\n var p2 = path2 && pathToAbsolute(path2);\n var attrs = {\n x: 0,\n y: 0,\n bx: 0,\n by: 0,\n X: 0,\n Y: 0,\n qx: null,\n qy: null\n };\n var attrs2 = {\n x: 0,\n y: 0,\n bx: 0,\n by: 0,\n X: 0,\n Y: 0,\n qx: null,\n qy: null\n };\n var pcoms1 = []; // path commands of original path p\n\n var pcoms2 = []; // path commands of original path p2\n\n var pfirst = ''; // temporary holder for original path command\n\n var pcom = ''; // holder for previous path command of original path\n\n var ii = void 0;\n\n var processPath = function processPath(path, d, pcom) {\n var nx = void 0,\n ny = void 0;\n\n if (!path) {\n return ['C', d.x, d.y, d.x, d.y, d.x, d.y];\n }\n\n !(path[0] in {\n T: 1,\n Q: 1\n }) && (d.qx = d.qy = null);\n\n switch (path[0]) {\n case 'M':\n d.X = path[1];\n d.Y = path[2];\n break;\n\n case 'A':\n path = ['C'].concat(a2c.apply(0, [d.x, d.y].concat(path.slice(1))));\n break;\n\n case 'S':\n if (pcom === 'C' || pcom === 'S') {\n // In \"S\" case we have to take into account, if the previous command is C/S.\n nx = d.x * 2 - d.bx; // And reflect the previous\n\n ny = d.y * 2 - d.by; // command's control point relative to the current point.\n } else {\n // or some else or nothing\n nx = d.x;\n ny = d.y;\n }\n\n path = ['C', nx, ny].concat(path.slice(1));\n break;\n\n case 'T':\n if (pcom === 'Q' || pcom === 'T') {\n // In \"T\" case we have to take into account, if the previous command is Q/T.\n d.qx = d.x * 2 - d.qx; // And make a reflection similar\n\n d.qy = d.y * 2 - d.qy; // to case \"S\".\n } else {\n // or something else or nothing\n d.qx = d.x;\n d.qy = d.y;\n }\n\n path = ['C'].concat(q2c(d.x, d.y, d.qx, d.qy, path[1], path[2]));\n break;\n\n case 'Q':\n d.qx = path[1];\n d.qy = path[2];\n path = ['C'].concat(q2c(d.x, d.y, path[1], path[2], path[3], path[4]));\n break;\n\n case 'L':\n path = ['C'].concat(l2c(d.x, d.y, path[1], path[2]));\n break;\n\n case 'H':\n path = ['C'].concat(l2c(d.x, d.y, path[1], d.y));\n break;\n\n case 'V':\n path = ['C'].concat(l2c(d.x, d.y, d.x, path[1]));\n break;\n\n case 'Z':\n path = ['C'].concat(l2c(d.x, d.y, d.X, d.Y));\n break;\n\n default:\n break;\n }\n\n return path;\n };\n\n var fixArc = function fixArc(pp, i) {\n if (pp[i].length > 7) {\n pp[i].shift();\n var pi = pp[i];\n\n while (pi.length) {\n pcoms1[i] = 'A'; // if created multiple C:s, their original seg is saved\n\n p2 && (pcoms2[i] = 'A'); // the same as above\n\n pp.splice(i++, 0, ['C'].concat(pi.splice(0, 6)));\n }\n\n pp.splice(i, 1);\n ii = Math.max(p.length, p2 && p2.length || 0);\n }\n };\n\n var fixM = function fixM(path1, path2, a1, a2, i) {\n if (path1 && path2 && path1[i][0] === 'M' && path2[i][0] !== 'M') {\n path2.splice(i, 0, ['M', a2.x, a2.y]);\n a1.bx = 0;\n a1.by = 0;\n a1.x = path1[i][1];\n a1.y = path1[i][2];\n ii = Math.max(p.length, p2 && p2.length || 0);\n }\n };\n\n ii = Math.max(p.length, p2 && p2.length || 0);\n\n for (var i = 0; i < ii; i++) {\n p[i] && (pfirst = p[i][0]); // save current path command\n\n if (pfirst !== 'C') {\n // C is not saved yet, because it may be result of conversion\n pcoms1[i] = pfirst; // Save current path command\n\n i && (pcom = pcoms1[i - 1]); // Get previous path command pcom\n }\n\n p[i] = processPath(p[i], attrs, pcom); // Previous path command is inputted to processPath\n\n if (pcoms1[i] !== 'A' && pfirst === 'C') pcoms1[i] = 'C'; // A is the only command\n // which may produce multiple C:s\n // so we have to make sure that C is also C in original path\n\n fixArc(p, i); // fixArc adds also the right amount of A:s to pcoms1\n\n if (p2) {\n // the same procedures is done to p2\n p2[i] && (pfirst = p2[i][0]);\n\n if (pfirst !== 'C') {\n pcoms2[i] = pfirst;\n i && (pcom = pcoms2[i - 1]);\n }\n\n p2[i] = processPath(p2[i], attrs2, pcom);\n\n if (pcoms2[i] !== 'A' && pfirst === 'C') {\n pcoms2[i] = 'C';\n }\n\n fixArc(p2, i);\n }\n\n fixM(p, p2, attrs, attrs2, i);\n fixM(p2, p, attrs2, attrs, i);\n var seg = p[i];\n var seg2 = p2 && p2[i];\n var seglen = seg.length;\n var seg2len = p2 && seg2.length;\n attrs.x = seg[seglen - 2];\n attrs.y = seg[seglen - 1];\n attrs.bx = parseFloat(seg[seglen - 4]) || attrs.x;\n attrs.by = parseFloat(seg[seglen - 3]) || attrs.y;\n attrs2.bx = p2 && (parseFloat(seg2[seg2len - 4]) || attrs2.x);\n attrs2.by = p2 && (parseFloat(seg2[seg2len - 3]) || attrs2.y);\n attrs2.x = p2 && seg2[seg2len - 2];\n attrs2.y = p2 && seg2[seg2len - 1];\n }\n\n return p2 ? [p, p2] : p;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/path/path2curve.js\n// module id = 106\n// module chunks = 0","var parsePathString = require('./parse-path-string');\n\nvar catmullRom2bezier = require('./catmull-rom2bezier');\n\nfunction ellipsePath(x, y, rx, ry, a) {\n var res = [];\n\n if (a === null && ry === null) {\n ry = rx;\n }\n\n x = +x;\n y = +y;\n rx = +rx;\n ry = +ry;\n\n if (a !== null) {\n var rad = Math.PI / 180;\n var x1 = x + rx * Math.cos(-ry * rad);\n var x2 = x + rx * Math.cos(-a * rad);\n var y1 = y + rx * Math.sin(-ry * rad);\n var y2 = y + rx * Math.sin(-a * rad);\n res = [['M', x1, y1], ['A', rx, rx, 0, +(a - ry > 180), 0, x2, y2]];\n } else {\n res = [['M', x, y], ['m', 0, -ry], ['a', rx, ry, 0, 1, 1, 0, 2 * ry], ['a', rx, ry, 0, 1, 1, 0, -2 * ry], ['z']];\n }\n\n return res;\n}\n\nmodule.exports = function pathToAbsolute(pathArray) {\n pathArray = parsePathString(pathArray);\n\n if (!pathArray || !pathArray.length) {\n return [['M', 0, 0]];\n }\n\n var res = [];\n var x = 0;\n var y = 0;\n var mx = 0;\n var my = 0;\n var start = 0;\n var pa0 = void 0;\n var dots = void 0;\n\n if (pathArray[0][0] === 'M') {\n x = +pathArray[0][1];\n y = +pathArray[0][2];\n mx = x;\n my = y;\n start++;\n res[0] = ['M', x, y];\n }\n\n var crz = pathArray.length === 3 && pathArray[0][0] === 'M' && pathArray[1][0].toUpperCase() === 'R' && pathArray[2][0].toUpperCase() === 'Z';\n\n for (var r, pa, i = start, ii = pathArray.length; i < ii; i++) {\n res.push(r = []);\n pa = pathArray[i];\n pa0 = pa[0];\n\n if (pa0 !== pa0.toUpperCase()) {\n r[0] = pa0.toUpperCase();\n\n switch (r[0]) {\n case 'A':\n r[1] = pa[1];\n r[2] = pa[2];\n r[3] = pa[3];\n r[4] = pa[4];\n r[5] = pa[5];\n r[6] = +pa[6] + x;\n r[7] = +pa[7] + y;\n break;\n\n case 'V':\n r[1] = +pa[1] + y;\n break;\n\n case 'H':\n r[1] = +pa[1] + x;\n break;\n\n case 'R':\n dots = [x, y].concat(pa.slice(1));\n\n for (var j = 2, jj = dots.length; j < jj; j++) {\n dots[j] = +dots[j] + x;\n dots[++j] = +dots[j] + y;\n }\n\n res.pop();\n res = res.concat(catmullRom2bezier(dots, crz));\n break;\n\n case 'O':\n res.pop();\n dots = ellipsePath(x, y, pa[1], pa[2]);\n dots.push(dots[0]);\n res = res.concat(dots);\n break;\n\n case 'U':\n res.pop();\n res = res.concat(ellipsePath(x, y, pa[1], pa[2], pa[3]));\n r = ['U'].concat(res[res.length - 1].slice(-2));\n break;\n\n case 'M':\n mx = +pa[1] + x;\n my = +pa[2] + y;\n break;\n // for lint\n\n default:\n for (var _j = 1, _jj = pa.length; _j < _jj; _j++) {\n r[_j] = +pa[_j] + (_j % 2 ? x : y);\n }\n\n }\n } else if (pa0 === 'R') {\n dots = [x, y].concat(pa.slice(1));\n res.pop();\n res = res.concat(catmullRom2bezier(dots, crz));\n r = ['R'].concat(pa.slice(-2));\n } else if (pa0 === 'O') {\n res.pop();\n dots = ellipsePath(x, y, pa[1], pa[2]);\n dots.push(dots[0]);\n res = res.concat(dots);\n } else if (pa0 === 'U') {\n res.pop();\n res = res.concat(ellipsePath(x, y, pa[1], pa[2], pa[3]));\n r = ['U'].concat(res[res.length - 1].slice(-2));\n } else {\n for (var k = 0, kk = pa.length; k < kk; k++) {\n r[k] = pa[k];\n }\n }\n\n pa0 = pa0.toUpperCase();\n\n if (pa0 !== 'O') {\n switch (r[0]) {\n case 'Z':\n x = +mx;\n y = +my;\n break;\n\n case 'H':\n x = r[1];\n break;\n\n case 'V':\n y = r[1];\n break;\n\n case 'M':\n mx = r[r.length - 2];\n my = r[r.length - 1];\n break;\n // for lint\n\n default:\n x = r[r.length - 2];\n y = r[r.length - 1];\n }\n }\n }\n\n return res;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/path/path2absolute.js\n// module id = 107\n// module chunks = 0","var _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n\nvar SPACES = '\\t\\n\\x0B\\f\\r \\xA0\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000\\u2028\\u2029';\nvar PATH_COMMAND = new RegExp('([a-z])[' + SPACES + ',]*((-?\\\\d*\\\\.?\\\\d*(?:e[\\\\-+]?\\\\d+)?[' + SPACES + ']*,?[' + SPACES + ']*)+)', 'ig');\nvar PATH_VALUES = new RegExp('(-?\\\\d*\\\\.?\\\\d*(?:e[\\\\-+]?\\\\d+)?)[' + SPACES + ']*,?[' + SPACES + ']*', 'ig'); // Parses given path string into an array of arrays of path segments\n\nmodule.exports = function parsePathString(pathString) {\n if (!pathString) {\n return null;\n }\n\n if ((typeof pathString === 'undefined' ? 'undefined' : _typeof(pathString)) === _typeof([])) {\n return pathString;\n }\n\n var paramCounts = {\n a: 7,\n c: 6,\n o: 2,\n h: 1,\n l: 2,\n m: 2,\n r: 4,\n q: 4,\n s: 4,\n t: 2,\n v: 1,\n u: 3,\n z: 0\n };\n var data = [];\n String(pathString).replace(PATH_COMMAND, function (a, b, c) {\n var params = [];\n var name = b.toLowerCase();\n c.replace(PATH_VALUES, function (a, b) {\n b && params.push(+b);\n });\n\n if (name === 'm' && params.length > 2) {\n data.push([b].concat(params.splice(0, 2)));\n name = 'l';\n b = b === 'm' ? 'l' : 'L';\n }\n\n if (name === 'o' && params.length === 1) {\n data.push([b, params[0]]);\n }\n\n if (name === 'r') {\n data.push([b].concat(params));\n } else {\n while (params.length >= paramCounts[name]) {\n data.push([b].concat(params.splice(0, paramCounts[name])));\n\n if (!paramCounts[name]) {\n break;\n }\n }\n }\n });\n return data;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/path/parse-path-string.js\n// module id = 108\n// module chunks = 0","// http://schepers.cc/getting-to-the-point\nmodule.exports = function catmullRom2bezier(crp, z) {\n var d = [];\n\n for (var i = 0, iLen = crp.length; iLen - 2 * !z > i; i += 2) {\n var p = [{\n x: +crp[i - 2],\n y: +crp[i - 1]\n }, {\n x: +crp[i],\n y: +crp[i + 1]\n }, {\n x: +crp[i + 2],\n y: +crp[i + 3]\n }, {\n x: +crp[i + 4],\n y: +crp[i + 5]\n }];\n\n if (z) {\n if (!i) {\n p[0] = {\n x: +crp[iLen - 2],\n y: +crp[iLen - 1]\n };\n } else if (iLen - 4 === i) {\n p[3] = {\n x: +crp[0],\n y: +crp[1]\n };\n } else if (iLen - 2 === i) {\n p[2] = {\n x: +crp[0],\n y: +crp[1]\n };\n p[3] = {\n x: +crp[2],\n y: +crp[3]\n };\n }\n } else {\n if (iLen - 4 === i) {\n p[3] = p[2];\n } else if (!i) {\n p[0] = {\n x: +crp[i],\n y: +crp[i + 1]\n };\n }\n }\n\n d.push(['C', (-p[0].x + 6 * p[1].x + p[2].x) / 6, (-p[0].y + 6 * p[1].y + p[2].y) / 6, (p[1].x + 6 * p[2].x - p[3].x) / 6, (p[1].y + 6 * p[2].y - p[3].y) / 6, p[2].x, p[2].y]);\n }\n\n return d;\n};\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/path/catmull-rom2bezier.js\n// module id = 109\n// module chunks = 0","var toString = require('../to-string');\n\nvar lowerCase = function lowerCase(str) {\n return toString(str).toLowerCase();\n};\n\nmodule.exports = lowerCase;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/string/lower-case.js\n// module id = 110\n// module chunks = 0","var toString = require('../to-string');\n\nvar upperCase = function upperCase(str) {\n return toString(str).toUpperCase();\n};\n\nmodule.exports = upperCase;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/string/upper-case.js\n// module id = 111\n// module chunks = 0","var isFunction = require('./type/is-function');\n\nvar isArray = require('./type/is-array');\n\nvar groupBy = require('./group-by');\n\nvar groupToMap = function groupToMap(data, condition) {\n if (!condition) {\n return {\n 0: data\n };\n }\n\n if (!isFunction(condition)) {\n var paramsCondition = isArray(condition) ? condition : condition.replace(/\\s+/g, '').split('*');\n\n condition = function condition(row) {\n var unique = '_'; // 避免出现数字作为Key的情况,会进行按照数字的排序\n\n for (var i = 0, l = paramsCondition.length; i < l; i++) {\n unique += row[paramsCondition[i]] && row[paramsCondition[i]].toString();\n }\n\n return unique;\n };\n }\n\n var groups = groupBy(data, condition);\n return groups;\n};\n\nmodule.exports = groupToMap;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/group-to-map.js\n// module id = 112\n// module chunks = 0","var each = require('./each');\n\nvar isArray = require('./type/is-array');\n\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar groupBy = function groupBy(data, condition) {\n if (!condition || !isArray(data)) {\n return data;\n }\n\n var result = {};\n var key = null;\n each(data, function (item) {\n key = condition(item);\n\n if (hasOwnProperty.call(result, key)) {\n result[key].push(item);\n } else {\n result[key] = [item];\n }\n });\n return result;\n};\n\nmodule.exports = groupBy;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/_@antv_util@1.3.1@@antv/util/lib/group-by.js\n// module id = 113\n// module chunks = 0","var _require = require('@antv/g/lib'),\n Group = _require.Group;\n\nvar Util = require('../util');\n\nvar Grid = function Grid(cfg) {\n Grid.superclass.constructor.call(this, cfg);\n};\n\nUtil.extend(Grid, Group);\nUtil.augment(Grid, {\n getDefaultCfg: function getDefaultCfg() {\n // const cfg = super.getDefaultCfg();\n return {\n zIndex: 1,\n\n /**\n * 栅格线的类型\n * - line 不封闭的线\n * - polygon 封闭的多边形\n * @type {String}\n */\n type: 'line',\n\n /**\n * 线的样式配置\n * @type {Object}\n */\n lineStyle: null,\n\n /**\n * 线集合的配置\n * @type {Array}\n */\n items: null,\n\n /**\n * 为网格设置交替的背景色,指定一个值则先渲染奇数层,两个值则交替渲染\n * @type {String | Array}\n */\n alternateColor: null,\n matrix: null,\n\n /**\n * 是否隐藏第一条网格线,默认为 false\n * @type {Boolean}\n */\n hideFirstLine: false,\n\n /**\n * 是否隐藏最后一条网格线,默认为 false\n * @type {Boolean}\n */\n hideLastLine: false,\n\n /**\n * 0基线不在轴线上时,是否强调0基线\n * @type {Boolean}\n */\n hightLightZero: false,\n\n /**\n * 0基线样式\n * @type {Object}\n */\n zeroLineStyle: {\n stroke: '#595959',\n lineDash: [0, 0]\n }\n };\n },\n _renderUI: function _renderUI() {\n Grid.superclass._renderUI.call(this);\n\n this._drawLines();\n },\n _drawLines: function _drawLines() {\n var self = this;\n var lineStyle = self.get('lineStyle');\n var items = self.get('items');\n\n if (items && items.length) {\n self._precessItems(items);\n\n self._drawGridLines(items, lineStyle);\n }\n },\n _precessItems: function _precessItems(items) {\n var self = this;\n var preItem;\n Util.each(items, function (item, index) {\n if (preItem && self.get('alternateColor')) {\n self._drawAlternativeBg(item, preItem, index);\n }\n\n preItem = item;\n });\n },\n _drawGridLines: function _drawGridLines(items, lineStyle) {\n var self = this;\n var type = this.get('type');\n var gridLine;\n var path;\n var cfg;\n var points;\n var itemsLength = items.length;\n\n if (type === 'line' || type === 'polygon') {\n Util.each(items, function (item, idx) {\n if (self.get('hideFirstLine') && idx === 0) {\n // 不展示第一条网格线\n return;\n }\n\n if (self.get('hideLastLine') && idx === itemsLength - 1) {\n // 不展示最后一条网格线\n return;\n }\n\n points = item.points;\n path = [];\n\n if (type === 'line') {\n path.push(['M', points[0].x, points[0].y]);\n path.push(['L', points[points.length - 1].x, points[points.length - 1].y]);\n } else {\n Util.each(points, function (point, index) {\n if (index === 0) {\n path.push(['M', point.x, point.y]);\n } else {\n path.push(['L', point.x, point.y]);\n }\n });\n }\n\n if (self._drawZeroLine(type, idx)) {\n cfg = Util.mix({}, self.get('zeroLineStyle'), {\n path: path\n });\n } else {\n cfg = Util.mix({}, lineStyle, {\n path: path\n });\n }\n\n gridLine = self.addShape('path', {\n attrs: cfg\n });\n gridLine.name = 'axis-grid';\n gridLine._id = item._id;\n gridLine.set('coord', self.get('coord'));\n self.get('appendInfo') && gridLine.setSilent('appendInfo', self.get('appendInfo'));\n });\n } else {\n Util.each(items, function (item, idx) {\n if (self.get('hideFirstLine') && idx === 0) {\n // 不展示第一条网格线\n return;\n }\n\n if (self.get('hideLastLine') && idx === itemsLength - 1) {\n // 不展示最后一条网格线\n return;\n }\n\n points = item.points;\n path = [];\n Util.each(points, function (point, index) {\n var radius = point.radius;\n\n if (index === 0) {\n path.push(['M', point.x, point.y]);\n } else {\n path.push(['A', radius, radius, 0, 0, point.flag, point.x, point.y]);\n }\n });\n cfg = Util.mix({}, lineStyle, {\n path: path\n });\n gridLine = self.addShape('path', {\n attrs: cfg\n });\n gridLine.name = 'axis-grid';\n gridLine._id = item._id;\n gridLine.set('coord', self.get('coord'));\n self.get('appendInfo') && gridLine.setSilent('appendInfo', self.get('appendInfo'));\n });\n }\n },\n _drawZeroLine: function _drawZeroLine(type, idx) {\n var self = this;\n var tickValues = self.get('tickValues');\n\n if (type === 'line' && tickValues) {\n if (tickValues[idx] === 0 && self.get('hightLightZero')) {\n return true;\n }\n }\n\n return false;\n },\n _drawAlternativeBg: function _drawAlternativeBg(item, preItem, index) {\n var self = this;\n var alternateColor = self.get('alternateColor');\n var attrs;\n var oddColor;\n var evenColor;\n\n if (Util.isString(alternateColor)) {\n oddColor = alternateColor;\n } else if (Util.isArray(alternateColor)) {\n oddColor = alternateColor[0];\n evenColor = alternateColor[1];\n }\n\n if (index % 2 === 0) {\n if (evenColor) {\n attrs = self._getBackItem(preItem.points, item.points, evenColor);\n }\n } else if (oddColor) {\n attrs = self._getBackItem(preItem.points, item.points, oddColor);\n }\n\n var shape = self.addShape('Path', {\n attrs: attrs\n });\n shape.name = 'axis-grid-rect';\n shape._id = item._id && item._id.replace('grid', 'grid-rect');\n shape.set('coord', self.get('coord'));\n self.get('appendInfo') && shape.setSilent('appendInfo', self.get('appendInfo'));\n },\n _getBackItem: function _getBackItem(start, end, bgColor) {\n var path = [];\n var type = this.get('type');\n\n if (type === 'line') {\n path.push(['M', start[0].x, start[0].y]);\n path.push(['L', start[start.length - 1].x, start[start.length - 1].y]);\n path.push(['L', end[end.length - 1].x, end[end.length - 1].y]);\n path.push(['L', end[0].x, end[0].y]);\n path.push(['Z']);\n } else if (type === 'polygon') {\n Util.each(start, function (subItem, index) {\n if (index === 0) {\n path.push(['M', subItem.x, subItem.y]);\n } else {\n path.push(['L', subItem.x, subItem.y]);\n }\n });\n\n for (var i = end.length - 1; i >= 0; i--) {\n path.push(['L', end[i].x, end[i].y]);\n }\n\n path.push(['Z']);\n } else {\n var flag = start[0].flag;\n Util.each(start, function (subItem, index) {\n var radius = subItem.radius;\n\n if (index === 0) {\n path.push(['M', subItem.x, subItem.y]);\n } else {\n path.push(['A', radius, radius, 0, 0, subItem.flag, subItem.x, subItem.y]);\n }\n });\n\n for (var j = end.length - 1; j >= 0; j--) {\n var endSubItem = end[j];\n var endRadius = endSubItem.radius;\n\n if (j === end.length - 1) {\n path.push(['M', endSubItem.x, endSubItem.y]);\n } else {\n path.push(['A', endRadius, endRadius, 0, 0, flag === 1 ? 0 : 1, endSubItem.x, endSubItem.y]);\n }\n }\n }\n\n return {\n fill: bgColor,\n path: path\n };\n }\n});\nmodule.exports = Grid;\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./src/axis/grid.js\n// module id = 114\n// module chunks = 0","function _createSuper(Derived) { return function () { var Super = _getPrototypeOf(Derived), result; if (_isNativeReflectConstruct()) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (typeof call === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nvar Util = require('../util');\n\nvar DomUtil = Util.DomUtil;\n\nvar Component = require('../component');\n\nvar positionAdjust = require('./utils/position-adjust');\n\nvar spirialAdjust = require('./utils/spiral-adjust');\n\nvar bboxAdjust = require('./utils/bbox-adjust');\n\nvar LAYOUTS = {\n scatter: positionAdjust,\n map: spirialAdjust,\n treemap: bboxAdjust\n};\n\nvar Label = /*#__PURE__*/function (_Component) {\n _inheritsLoose(Label, _Component);\n\n var _super = _createSuper(Label);\n\n function Label() {\n return _Component.apply(this, arguments) || this;\n }\n\n var _proto = Label.prototype;\n\n _proto.getDefaultCfg = function getDefaultCfg() {\n var cfg = _Component.prototype.getDefaultCfg.call(this);\n\n return Util.mix({}, cfg, {\n name: 'label',\n\n /**\n * label类型\n * @type {(String)}\n */\n type: 'default',\n\n /**\n * 默认文本样式\n * @type {Array}\n */\n textStyle: null,\n\n /**\n * 文本显示格式化回调函数\n * @type {Function}\n */\n formatter: null,\n\n /**\n * 显示的文本集合\n * @type {Array}\n */\n items: null,\n\n /**\n * 是否使用html渲染label\n * @type {String}\n */\n useHtml: false,\n\n /**\n * html 渲染时用的容器的模板,必须存在 class = \"g-labels\"\n * @type {String}\n */\n containerTpl: '
',\n\n /**\n * html 渲染时单个 label 的模板,必须存在 class = \"g-label\"\n * @type {String}\n */\n itemTpl: '1
' + ' ' + '' + '