@antv/g2 5.0.0-beta.10 → 5.0.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/g2-lite.min.js +3 -3
- package/dist/g2.min.js +4 -4
- package/esm/composition/view.js +2 -6
- package/esm/composition/view.js.map +1 -1
- package/esm/interaction/native/tooltip.js +11 -4
- package/esm/interaction/native/tooltip.js.map +1 -1
- package/esm/mark/area.js +1 -0
- package/esm/mark/area.js.map +1 -1
- package/esm/mark/box.js +1 -0
- package/esm/mark/box.js.map +1 -1
- package/esm/mark/boxplot.js +1 -3
- package/esm/mark/boxplot.js.map +1 -1
- package/esm/mark/cell.js +1 -0
- package/esm/mark/cell.js.map +1 -1
- package/esm/mark/connector.js +1 -0
- package/esm/mark/connector.js.map +1 -1
- package/esm/mark/forceGraph.js +1 -1
- package/esm/mark/forceGraph.js.map +1 -1
- package/esm/mark/image.js +1 -0
- package/esm/mark/image.js.map +1 -1
- package/esm/mark/interval.js +1 -0
- package/esm/mark/interval.js.map +1 -1
- package/esm/mark/line.js +1 -0
- package/esm/mark/line.js.map +1 -1
- package/esm/mark/lineX.js +1 -0
- package/esm/mark/lineX.js.map +1 -1
- package/esm/mark/lineY.js +1 -0
- package/esm/mark/lineY.js.map +1 -1
- package/esm/mark/link.js +1 -0
- package/esm/mark/link.js.map +1 -1
- package/esm/mark/pack.js +1 -1
- package/esm/mark/pack.js.map +1 -1
- package/esm/mark/path.js +1 -0
- package/esm/mark/path.js.map +1 -1
- package/esm/mark/point.js +1 -0
- package/esm/mark/point.js.map +1 -1
- package/esm/mark/polygon.js +1 -0
- package/esm/mark/polygon.js.map +1 -1
- package/esm/mark/range.js +1 -0
- package/esm/mark/range.js.map +1 -1
- package/esm/mark/rangeX.js +1 -0
- package/esm/mark/rangeX.js.map +1 -1
- package/esm/mark/rangeY.js +1 -0
- package/esm/mark/rangeY.js.map +1 -1
- package/esm/mark/rect.js +1 -0
- package/esm/mark/rect.js.map +1 -1
- package/esm/mark/sankey.js +1 -1
- package/esm/mark/sankey.js.map +1 -1
- package/esm/mark/shape.js +1 -0
- package/esm/mark/shape.js.map +1 -1
- package/esm/mark/text.js +1 -0
- package/esm/mark/text.js.map +1 -1
- package/esm/mark/tree.js +1 -1
- package/esm/mark/tree.js.map +1 -1
- package/esm/mark/treemap.js +1 -1
- package/esm/mark/treemap.js.map +1 -1
- package/esm/mark/vector.js +1 -0
- package/esm/mark/vector.js.map +1 -1
- package/esm/mark/wordCloud.js +1 -1
- package/esm/mark/wordCloud.js.map +1 -1
- package/esm/runtime/mark.js +7 -4
- package/esm/runtime/mark.js.map +1 -1
- package/esm/runtime/plot.js +49 -24
- package/esm/runtime/plot.js.map +1 -1
- package/esm/runtime/scale.js +2 -0
- package/esm/runtime/scale.js.map +1 -1
- package/esm/runtime/transform.js +1 -2
- package/esm/runtime/transform.js.map +1 -1
- package/esm/runtime/types/mark.d.ts +3 -3
- package/esm/runtime/types/options.d.ts +2 -0
- package/esm/scale/constant.d.ts +4 -0
- package/esm/scale/constant.js +6 -0
- package/esm/scale/constant.js.map +1 -0
- package/esm/scale/index.d.ts +2 -0
- package/esm/scale/index.js +1 -0
- package/esm/scale/index.js.map +1 -1
- package/esm/shape/interval/color.js +6 -4
- package/esm/shape/interval/color.js.map +1 -1
- package/esm/spec/scale.d.ts +4 -3
- package/esm/stdlib/index.js +2 -2
- package/esm/stdlib/index.js.map +1 -1
- package/lib/composition/view.js +2 -6
- package/lib/composition/view.js.map +1 -1
- package/lib/interaction/native/tooltip.js +10 -3
- package/lib/interaction/native/tooltip.js.map +1 -1
- package/lib/mark/area.js +1 -0
- package/lib/mark/area.js.map +1 -1
- package/lib/mark/box.js +1 -0
- package/lib/mark/box.js.map +1 -1
- package/lib/mark/boxplot.js +1 -3
- package/lib/mark/boxplot.js.map +1 -1
- package/lib/mark/cell.js +1 -0
- package/lib/mark/cell.js.map +1 -1
- package/lib/mark/connector.js +1 -0
- package/lib/mark/connector.js.map +1 -1
- package/lib/mark/forceGraph.js +1 -1
- package/lib/mark/forceGraph.js.map +1 -1
- package/lib/mark/image.js +1 -0
- package/lib/mark/image.js.map +1 -1
- package/lib/mark/interval.js +1 -0
- package/lib/mark/interval.js.map +1 -1
- package/lib/mark/line.js +1 -0
- package/lib/mark/line.js.map +1 -1
- package/lib/mark/lineX.js +1 -0
- package/lib/mark/lineX.js.map +1 -1
- package/lib/mark/lineY.js +1 -0
- package/lib/mark/lineY.js.map +1 -1
- package/lib/mark/link.js +1 -0
- package/lib/mark/link.js.map +1 -1
- package/lib/mark/pack.js +1 -1
- package/lib/mark/pack.js.map +1 -1
- package/lib/mark/path.js +1 -0
- package/lib/mark/path.js.map +1 -1
- package/lib/mark/point.js +1 -0
- package/lib/mark/point.js.map +1 -1
- package/lib/mark/polygon.js +1 -0
- package/lib/mark/polygon.js.map +1 -1
- package/lib/mark/range.js +1 -0
- package/lib/mark/range.js.map +1 -1
- package/lib/mark/rangeX.js +1 -0
- package/lib/mark/rangeX.js.map +1 -1
- package/lib/mark/rangeY.js +1 -0
- package/lib/mark/rangeY.js.map +1 -1
- package/lib/mark/rect.js +1 -0
- package/lib/mark/rect.js.map +1 -1
- package/lib/mark/sankey.js +1 -1
- package/lib/mark/sankey.js.map +1 -1
- package/lib/mark/shape.js +1 -0
- package/lib/mark/shape.js.map +1 -1
- package/lib/mark/text.js +1 -0
- package/lib/mark/text.js.map +1 -1
- package/lib/mark/tree.js +1 -1
- package/lib/mark/tree.js.map +1 -1
- package/lib/mark/treemap.js +1 -1
- package/lib/mark/treemap.js.map +1 -1
- package/lib/mark/vector.js +1 -0
- package/lib/mark/vector.js.map +1 -1
- package/lib/mark/wordCloud.js +1 -1
- package/lib/mark/wordCloud.js.map +1 -1
- package/lib/runtime/mark.js +7 -4
- package/lib/runtime/mark.js.map +1 -1
- package/lib/runtime/plot.js +49 -24
- package/lib/runtime/plot.js.map +1 -1
- package/lib/runtime/scale.js +2 -0
- package/lib/runtime/scale.js.map +1 -1
- package/lib/runtime/transform.js +1 -2
- package/lib/runtime/transform.js.map +1 -1
- package/lib/runtime/types/mark.d.ts +3 -3
- package/lib/runtime/types/options.d.ts +2 -0
- package/lib/scale/constant.d.ts +4 -0
- package/lib/scale/constant.js +10 -0
- package/lib/scale/constant.js.map +1 -0
- package/lib/scale/index.d.ts +2 -0
- package/lib/scale/index.js +3 -1
- package/lib/scale/index.js.map +1 -1
- package/lib/shape/interval/color.js +6 -4
- package/lib/shape/interval/color.js.map +1 -1
- package/lib/spec/scale.d.ts +4 -3
- package/lib/stdlib/index.js +1 -1
- package/lib/stdlib/index.js.map +1 -1
- package/package.json +4 -4
- package/src/composition/view.ts +1 -9
- package/src/interaction/native/tooltip.ts +13 -4
- package/src/mark/area.ts +1 -0
- package/src/mark/box.ts +1 -0
- package/src/mark/boxplot.ts +1 -3
- package/src/mark/cell.ts +1 -0
- package/src/mark/connector.ts +1 -0
- package/src/mark/forceGraph.ts +1 -1
- package/src/mark/image.ts +1 -0
- package/src/mark/interval.ts +1 -0
- package/src/mark/line.ts +1 -0
- package/src/mark/lineX.ts +1 -0
- package/src/mark/lineY.ts +1 -0
- package/src/mark/link.ts +1 -0
- package/src/mark/pack.ts +1 -1
- package/src/mark/path.ts +1 -0
- package/src/mark/point.ts +1 -0
- package/src/mark/polygon.ts +1 -0
- package/src/mark/range.ts +1 -0
- package/src/mark/rangeX.ts +1 -0
- package/src/mark/rangeY.ts +1 -0
- package/src/mark/rect.ts +1 -0
- package/src/mark/sankey.ts +1 -1
- package/src/mark/shape.ts +1 -0
- package/src/mark/text.ts +1 -0
- package/src/mark/tree.ts +1 -1
- package/src/mark/treemap.ts +1 -1
- package/src/mark/vector.ts +1 -0
- package/src/mark/wordCloud.ts +1 -1
- package/src/runtime/mark.ts +7 -3
- package/src/runtime/plot.ts +74 -33
- package/src/runtime/scale.ts +2 -0
- package/src/runtime/transform.ts +1 -2
- package/src/runtime/types/mark.ts +3 -3
- package/src/runtime/types/options.ts +2 -0
- package/src/scale/constant.ts +11 -0
- package/src/scale/index.ts +2 -0
- package/src/shape/interval/color.ts +11 -7
- package/src/spec/scale.ts +6 -1
- package/src/stdlib/index.ts +2 -0
package/lib/stdlib/index.js
CHANGED
|
@@ -19,7 +19,7 @@ const geo_1 = require("../geo");
|
|
|
19
19
|
function createLibrary() {
|
|
20
20
|
return Object.assign({ 'data.fetch': data_1.Fetch, 'data.inline': data_1.Inline, 'data.sortBy': data_1.SortBy, 'data.sort': data_1.Sort, 'data.filter': data_1.Filter, 'data.pick': data_1.Pick, 'data.rename': data_1.Rename, 'data.fold': data_1.Fold, 'data.slice': data_1.Slice, 'data.custom': data_1.Custom, 'data.map': data_1.Map, 'data.cluster': data_1.Cluster, 'data.tree': data_1.Tree, 'data.sankey': data_1.Sankey, 'data.arc': data_1.Arc, 'data.wordCloud': data_1.WordCloud, 'data.join': data_1.Join,
|
|
21
21
|
// 'transform.voronoi': Voronoi,
|
|
22
|
-
'transform.maybeZeroY1': transform_1.MaybeZeroY1, 'transform.maybeZeroX': transform_1.MaybeZeroX, 'transform.maybeStackY': transform_1.MaybeStackY, 'transform.maybeTitle': transform_1.MaybeTitle, 'transform.maybeSeries': transform_1.MaybeSeries, 'transform.maybeZeroPadding': transform_1.MaybeZeroPadding, 'transform.stackY': transform_1.StackY, 'transform.binX': transform_1.BinX, 'transform.bin': transform_1.Bin, 'transform.dodgeX': transform_1.DodgeX, 'transform.jitter': transform_1.Jitter, 'transform.jitterX': transform_1.JitterX, 'transform.symmetryY': transform_1.SymmetryY, 'transform.diffY': transform_1.DiffY, 'transform.stackEnter': transform_1.StackEnter, 'transform.normalizeY': transform_1.NormalizeY, 'transform.select': transform_1.Select, 'transform.selectX': transform_1.SelectX, 'transform.selectY': transform_1.SelectY, 'transform.groupX': transform_1.GroupX, 'transform.groupY': transform_1.GroupY, 'transform.groupColor': transform_1.GroupColor, 'transform.group': transform_1.Group, 'transform.maybeSize': transform_1.MaybeSize, 'transform.maybeZeroY': transform_1.MaybeZeroY, 'transform.maybeKey': transform_1.MaybeKey, 'transform.sortX': transform_1.SortX, 'transform.sortY': transform_1.SortY, 'transform.sortColor': transform_1.SortColor, 'transform.flexX': transform_1.FlexX, 'transform.maybeTupleY': transform_1.MaybeTupleY, 'transform.maybeTupleX': transform_1.MaybeTupleX, 'transform.maybeIdentityY': transform_1.MaybeIdentityY, 'transform.maybeIdentityX': transform_1.MaybeIdentityX, 'transform.maybeTuple': transform_1.MaybeTuple, 'transform.maybeVisualPosition': transform_1.MaybeVisualPosition, 'transform.maybeFunctionAttribute': transform_1.MaybeFunctionAttribute, 'transform.maybeGradient': transform_1.MaybeGradient, 'transform.maybeTooltip': transform_1.MaybeTooltip, 'transform.pack': transform_1.Pack, 'transform.sample': transform_1.Sample, 'transform.filter': transform_1.Filter, 'coordinate.cartesian': coordinate_1.Cartesian, 'coordinate.polar': coordinate_1.Polar, 'coordinate.helix': coordinate_1.Helix, 'coordinate.transpose': coordinate_1.Transpose, 'coordinate.theta': coordinate_1.Theta, 'coordinate.parallel': coordinate_1.Parallel, 'coordinate.fisheye': coordinate_1.Fisheye, 'coordinate.radial': coordinate_1.Radial, 'coordinate.radar': coordinate_1.Radar, 'encode.constant': encode_1.Constant, 'encode.field': encode_1.Field, 'encode.transform': encode_1.Transform, 'encode.column': encode_1.Column, 'mark.interval': mark_1.Interval, 'mark.rect': mark_1.Rect, 'mark.line': mark_1.Line, 'mark.point': mark_1.Point, 'mark.text': mark_1.Text, 'mark.cell': mark_1.Cell, 'mark.area': mark_1.Area, 'mark.link': mark_1.Link, 'mark.image': mark_1.Image, 'mark.polygon': mark_1.Polygon, 'mark.box': mark_1.Box, 'mark.vector': mark_1.Vector, 'mark.lineX': mark_1.LineX, 'mark.lineY': mark_1.LineY, 'mark.connector': mark_1.Connector, 'mark.range': mark_1.Range, 'mark.rangeX': mark_1.RangeX, 'mark.rangeY': mark_1.RangeY, 'mark.sankey': mark_1.Sankey, 'mark.path': mark_1.Path, 'mark.treemap': mark_1.Treemap, 'mark.pack': mark_1.Pack, 'mark.boxplot': mark_1.Boxplot, 'mark.shape': mark_1.Shape, 'mark.forceGraph': mark_1.ForceGraph, 'mark.tree': mark_1.Tree, 'mark.wordCloud': mark_1.WordCloud, 'palette.category10': palette_1.Category10, 'palette.category20': palette_1.Category20, 'palette.sequentialBlue': palette_1.SequentialBlue, 'palette.sequentialDarkBlue': palette_1.SequentialDarkBlue, 'palette.sequentialGreen': palette_1.SequentialGreen, 'palette.sequentialDarkGreen': palette_1.SequentialDarkGreen, 'palette.sequentialGrey': palette_1.SequentialGrey, 'palette.sequentialOrange': palette_1.SequentialOrange, 'palette.sequentialPink': palette_1.SequentialPink, 'palette.sequentialRed': palette_1.SequentialRed, 'palette.sequentialYellow': palette_1.SequentialYellow, 'palette.sequentialPurple': palette_1.SequentialPurple, 'palette.sequentialYellowOrange': palette_1.SequentialYellowOrange, 'palette.sequentialYellowGreen': palette_1.SequentialYellowGreen, 'palette.sequentialPinkPurple': palette_1.SequentialPinkPurple, 'palette.sequentialGreenBlue': palette_1.SequentialGreenBlue, 'palette.divergingGreenYellow': palette_1.DivergingGreenYellow, 'palette.divergingRedBlue': palette_1.DivergingRedBlue, 'palette.divergingGreenRed': palette_1.DivergingGreenRed, 'palette.divergingRedPurple': palette_1.DivergingRedPurple, 'scale.linear': scale_1.Linear, 'scale.ordinal': scale_1.Ordinal, 'scale.band': scale_1.Band, 'scale.identity': scale_1.Identity, 'scale.point': scale_1.Point, 'scale.time': scale_1.Time, 'scale.log': scale_1.Log, 'scale.pow': scale_1.Pow, 'scale.sqrt': scale_1.Sqrt, 'scale.threshold': scale_1.Threshold, 'scale.quantile': scale_1.Quantile, 'scale.quantize': scale_1.Quantize, 'scale.sequential': scale_1.Sequential, 'shape.interval.rect': shape_1.Rect, 'shape.interval.hollow': shape_1.HollowRect, 'shape.interval.funnel': shape_1.Funnel, 'shape.interval.pyramid': shape_1.Pyramid, 'shape.rect.rect': shape_1.Rect, 'shape.rect.hollow': shape_1.HollowRect, 'shape.cell.cell': shape_1.Rect, 'shape.cell.hollow': shape_1.HollowRect, 'shape.line.line': shape_1.Line, 'shape.line.hv': shape_1.HV, 'shape.line.vh': shape_1.VH, 'shape.line.hvh': shape_1.HVH, 'shape.line.smooth': shape_1.Smooth, 'shape.point.bowtie': shape_1.Bowtie, 'shape.point.cross': shape_1.Cross, 'shape.point.diamond': shape_1.Diamond, 'shape.point.hexagon': shape_1.Hexagon, 'shape.point.hollowBowtie': shape_1.HollowBowtie, 'shape.point.hollowDiamond': shape_1.HollowDiamond, 'shape.point.hollowHexagon': shape_1.HollowHexagon, 'shape.point.hollow': shape_1.HollowPoint, 'shape.point.hollowSquare': shape_1.HollowSquare, 'shape.point.hollowTriangle': shape_1.HollowTriangle, 'shape.point.hollowTriangleDown': shape_1.HollowTriangleDown, 'shape.point.hyphen': shape_1.Hyphen, 'shape.point.line': shape_1.LinePoint, 'shape.point.plus': shape_1.Plus, 'shape.point.point': shape_1.Point, 'shape.point.square': shape_1.Square, 'shape.point.tick': shape_1.Tick, 'shape.point.triangle': shape_1.Triangle, 'shape.point.triangleDown': shape_1.TriangleDown, 'shape.text.text': shape_1.Text, 'shape.area.area': shape_1.Area, 'shape.area.smooth': shape_1.SmoothArea, 'shape.area.hvh': shape_1.HVHArea, 'shape.area.vh': shape_1.VHArea, 'shape.area.hv': shape_1.HVArea, 'shape.link.smooth': shape_1.SmoothEdge, 'shape.link.vhv': shape_1.VHVEdge, 'shape.link.arc': shape_1.Arc, 'shape.link.link': shape_1.Link, 'shape.image.image': shape_1.Image, 'shape.polygon.polygon': shape_1.Polygon, 'shape.polygon.ribbon': shape_1.Ribbon, 'shape.box.box': shape_1.Box, 'shape.vector.vector': shape_1.Vector, 'shape.label.label': shape_1.Label, 'shape.text.badge': shape_1.Badge, 'shape.lineX.line': shape_1.LineXY, 'shape.lineY.line': shape_1.LineXY, 'shape.shape.shape': shape_1.Shape, 'shape.connector.connector': shape_1.Connector, 'shape.range.range': shape_1.Rect, 'shape.rangeX.range': shape_1.Rect, 'shape.rangeY.range': shape_1.Rect, 'shape.path.path': shape_1.Path, 'shape.path.hollow': shape_1.HollowPath, 'theme.light': theme_1.Light, 'theme.dark': theme_1.Dark, 'theme.academy': theme_1.Academy, 'component.axisX': component_1.AxisX, 'component.axisY': component_1.AxisY, 'component.axisRadar': component_1.AxisRadar, 'component.axisLinear': component_1.AxisLinear, 'component.axisArc': component_1.AxisArc, 'component.legendCategory': component_1.LegendCategory, 'component.legendContinuous': component_1.LegendContinuous, 'component.legendContinuousBlock': component_1.LegendContinuousBlock, 'component.legendContinuousBlockSize': component_1.LegendContinuousBlockSize, 'component.legendContinuousSize': component_1.LegendContinuousSize, 'component.title': component_1.TitleComponent, 'component.sliderX': component_1.SliderX, 'component.sliderY': component_1.SliderY, 'component.scrollbarX': component_1.ScrollbarX, 'component.scrollbarY': component_1.ScrollbarY, 'animation.scaleInX': animation_1.ScaleInX, 'animation.scaleOutX': animation_1.ScaleOutX, 'animation.scaleInY': animation_1.ScaleInY, 'animation.scaleOutY': animation_1.ScaleOutY, 'animation.waveIn': animation_1.WaveIn, 'animation.fadeIn': animation_1.FadeIn, 'animation.fadeOut': animation_1.FadeOut, 'animation.zoomIn': animation_1.ZoomIn, 'animation.zoomOut': animation_1.ZoomOut, 'animation.pathIn': animation_1.PathIn, 'animation.morphing': animation_1.Morphing, 'animation.growInX': animation_1.GrowInX, 'animation.growInY': animation_1.GrowInY, 'interaction.elementHighlight': interaction_1.ElementHighlight, 'interaction.elementHighlightByX': interaction_1.ElementHighlightByX, 'interaction.elementHighlightByColor': interaction_1.ElementHighlightByColor, 'interaction.elementSelect': interaction_1.ElementSelect, 'interaction.elementSelectByX': interaction_1.ElementSelectByX, 'interaction.elementSelectByColor': interaction_1.ElementSelectByColor, 'interaction.fisheye': interaction_1.Fisheye, 'interaction.chartIndex': interaction_1.ChartIndex, 'interaction.tooltip': interaction_1.Tooltip, 'interaction.legendFilter': interaction_1.LegendFilter, 'interaction.legendHighlight': interaction_1.LegendHighlight, 'interaction.brushHighlight': interaction_1.BrushHighlight, 'interaction.brushXHighlight': interaction_1.BrushXHighlight, 'interaction.brushYHighlight': interaction_1.BrushYHighlight, 'interaction.brushAxisHighlight': interaction_1.BrushAxisHighlight, 'interaction.brushFilter': interaction_1.BrushFilter, 'interaction.brushXFilter': interaction_1.BrushXFilter, 'interaction.brushYFilter': interaction_1.BrushYFilter, 'interaction.sliderFilter': interaction_1.SliderFilter, 'interaction.poptip': interaction_1.Poptip,
|
|
22
|
+
'transform.maybeZeroY1': transform_1.MaybeZeroY1, 'transform.maybeZeroX': transform_1.MaybeZeroX, 'transform.maybeStackY': transform_1.MaybeStackY, 'transform.maybeTitle': transform_1.MaybeTitle, 'transform.maybeSeries': transform_1.MaybeSeries, 'transform.maybeZeroPadding': transform_1.MaybeZeroPadding, 'transform.stackY': transform_1.StackY, 'transform.binX': transform_1.BinX, 'transform.bin': transform_1.Bin, 'transform.dodgeX': transform_1.DodgeX, 'transform.jitter': transform_1.Jitter, 'transform.jitterX': transform_1.JitterX, 'transform.symmetryY': transform_1.SymmetryY, 'transform.diffY': transform_1.DiffY, 'transform.stackEnter': transform_1.StackEnter, 'transform.normalizeY': transform_1.NormalizeY, 'transform.select': transform_1.Select, 'transform.selectX': transform_1.SelectX, 'transform.selectY': transform_1.SelectY, 'transform.groupX': transform_1.GroupX, 'transform.groupY': transform_1.GroupY, 'transform.groupColor': transform_1.GroupColor, 'transform.group': transform_1.Group, 'transform.maybeSize': transform_1.MaybeSize, 'transform.maybeZeroY': transform_1.MaybeZeroY, 'transform.maybeKey': transform_1.MaybeKey, 'transform.sortX': transform_1.SortX, 'transform.sortY': transform_1.SortY, 'transform.sortColor': transform_1.SortColor, 'transform.flexX': transform_1.FlexX, 'transform.maybeTupleY': transform_1.MaybeTupleY, 'transform.maybeTupleX': transform_1.MaybeTupleX, 'transform.maybeIdentityY': transform_1.MaybeIdentityY, 'transform.maybeIdentityX': transform_1.MaybeIdentityX, 'transform.maybeTuple': transform_1.MaybeTuple, 'transform.maybeVisualPosition': transform_1.MaybeVisualPosition, 'transform.maybeFunctionAttribute': transform_1.MaybeFunctionAttribute, 'transform.maybeGradient': transform_1.MaybeGradient, 'transform.maybeTooltip': transform_1.MaybeTooltip, 'transform.pack': transform_1.Pack, 'transform.sample': transform_1.Sample, 'transform.filter': transform_1.Filter, 'coordinate.cartesian': coordinate_1.Cartesian, 'coordinate.polar': coordinate_1.Polar, 'coordinate.helix': coordinate_1.Helix, 'coordinate.transpose': coordinate_1.Transpose, 'coordinate.theta': coordinate_1.Theta, 'coordinate.parallel': coordinate_1.Parallel, 'coordinate.fisheye': coordinate_1.Fisheye, 'coordinate.radial': coordinate_1.Radial, 'coordinate.radar': coordinate_1.Radar, 'encode.constant': encode_1.Constant, 'encode.field': encode_1.Field, 'encode.transform': encode_1.Transform, 'encode.column': encode_1.Column, 'mark.interval': mark_1.Interval, 'mark.rect': mark_1.Rect, 'mark.line': mark_1.Line, 'mark.point': mark_1.Point, 'mark.text': mark_1.Text, 'mark.cell': mark_1.Cell, 'mark.area': mark_1.Area, 'mark.link': mark_1.Link, 'mark.image': mark_1.Image, 'mark.polygon': mark_1.Polygon, 'mark.box': mark_1.Box, 'mark.vector': mark_1.Vector, 'mark.lineX': mark_1.LineX, 'mark.lineY': mark_1.LineY, 'mark.connector': mark_1.Connector, 'mark.range': mark_1.Range, 'mark.rangeX': mark_1.RangeX, 'mark.rangeY': mark_1.RangeY, 'mark.sankey': mark_1.Sankey, 'mark.path': mark_1.Path, 'mark.treemap': mark_1.Treemap, 'mark.pack': mark_1.Pack, 'mark.boxplot': mark_1.Boxplot, 'mark.shape': mark_1.Shape, 'mark.forceGraph': mark_1.ForceGraph, 'mark.tree': mark_1.Tree, 'mark.wordCloud': mark_1.WordCloud, 'palette.category10': palette_1.Category10, 'palette.category20': palette_1.Category20, 'palette.sequentialBlue': palette_1.SequentialBlue, 'palette.sequentialDarkBlue': palette_1.SequentialDarkBlue, 'palette.sequentialGreen': palette_1.SequentialGreen, 'palette.sequentialDarkGreen': palette_1.SequentialDarkGreen, 'palette.sequentialGrey': palette_1.SequentialGrey, 'palette.sequentialOrange': palette_1.SequentialOrange, 'palette.sequentialPink': palette_1.SequentialPink, 'palette.sequentialRed': palette_1.SequentialRed, 'palette.sequentialYellow': palette_1.SequentialYellow, 'palette.sequentialPurple': palette_1.SequentialPurple, 'palette.sequentialYellowOrange': palette_1.SequentialYellowOrange, 'palette.sequentialYellowGreen': palette_1.SequentialYellowGreen, 'palette.sequentialPinkPurple': palette_1.SequentialPinkPurple, 'palette.sequentialGreenBlue': palette_1.SequentialGreenBlue, 'palette.divergingGreenYellow': palette_1.DivergingGreenYellow, 'palette.divergingRedBlue': palette_1.DivergingRedBlue, 'palette.divergingGreenRed': palette_1.DivergingGreenRed, 'palette.divergingRedPurple': palette_1.DivergingRedPurple, 'scale.linear': scale_1.Linear, 'scale.ordinal': scale_1.Ordinal, 'scale.band': scale_1.Band, 'scale.identity': scale_1.Identity, 'scale.point': scale_1.Point, 'scale.time': scale_1.Time, 'scale.log': scale_1.Log, 'scale.pow': scale_1.Pow, 'scale.sqrt': scale_1.Sqrt, 'scale.threshold': scale_1.Threshold, 'scale.quantile': scale_1.Quantile, 'scale.quantize': scale_1.Quantize, 'scale.sequential': scale_1.Sequential, 'scale.constant': scale_1.Constant, 'shape.interval.rect': shape_1.Rect, 'shape.interval.hollow': shape_1.HollowRect, 'shape.interval.funnel': shape_1.Funnel, 'shape.interval.pyramid': shape_1.Pyramid, 'shape.rect.rect': shape_1.Rect, 'shape.rect.hollow': shape_1.HollowRect, 'shape.cell.cell': shape_1.Rect, 'shape.cell.hollow': shape_1.HollowRect, 'shape.line.line': shape_1.Line, 'shape.line.hv': shape_1.HV, 'shape.line.vh': shape_1.VH, 'shape.line.hvh': shape_1.HVH, 'shape.line.smooth': shape_1.Smooth, 'shape.point.bowtie': shape_1.Bowtie, 'shape.point.cross': shape_1.Cross, 'shape.point.diamond': shape_1.Diamond, 'shape.point.hexagon': shape_1.Hexagon, 'shape.point.hollowBowtie': shape_1.HollowBowtie, 'shape.point.hollowDiamond': shape_1.HollowDiamond, 'shape.point.hollowHexagon': shape_1.HollowHexagon, 'shape.point.hollow': shape_1.HollowPoint, 'shape.point.hollowSquare': shape_1.HollowSquare, 'shape.point.hollowTriangle': shape_1.HollowTriangle, 'shape.point.hollowTriangleDown': shape_1.HollowTriangleDown, 'shape.point.hyphen': shape_1.Hyphen, 'shape.point.line': shape_1.LinePoint, 'shape.point.plus': shape_1.Plus, 'shape.point.point': shape_1.Point, 'shape.point.square': shape_1.Square, 'shape.point.tick': shape_1.Tick, 'shape.point.triangle': shape_1.Triangle, 'shape.point.triangleDown': shape_1.TriangleDown, 'shape.text.text': shape_1.Text, 'shape.area.area': shape_1.Area, 'shape.area.smooth': shape_1.SmoothArea, 'shape.area.hvh': shape_1.HVHArea, 'shape.area.vh': shape_1.VHArea, 'shape.area.hv': shape_1.HVArea, 'shape.link.smooth': shape_1.SmoothEdge, 'shape.link.vhv': shape_1.VHVEdge, 'shape.link.arc': shape_1.Arc, 'shape.link.link': shape_1.Link, 'shape.image.image': shape_1.Image, 'shape.polygon.polygon': shape_1.Polygon, 'shape.polygon.ribbon': shape_1.Ribbon, 'shape.box.box': shape_1.Box, 'shape.vector.vector': shape_1.Vector, 'shape.label.label': shape_1.Label, 'shape.text.badge': shape_1.Badge, 'shape.lineX.line': shape_1.LineXY, 'shape.lineY.line': shape_1.LineXY, 'shape.shape.shape': shape_1.Shape, 'shape.connector.connector': shape_1.Connector, 'shape.range.range': shape_1.Rect, 'shape.rangeX.range': shape_1.Rect, 'shape.rangeY.range': shape_1.Rect, 'shape.path.path': shape_1.Path, 'shape.path.hollow': shape_1.HollowPath, 'theme.light': theme_1.Light, 'theme.dark': theme_1.Dark, 'theme.academy': theme_1.Academy, 'component.axisX': component_1.AxisX, 'component.axisY': component_1.AxisY, 'component.axisRadar': component_1.AxisRadar, 'component.axisLinear': component_1.AxisLinear, 'component.axisArc': component_1.AxisArc, 'component.legendCategory': component_1.LegendCategory, 'component.legendContinuous': component_1.LegendContinuous, 'component.legendContinuousBlock': component_1.LegendContinuousBlock, 'component.legendContinuousBlockSize': component_1.LegendContinuousBlockSize, 'component.legendContinuousSize': component_1.LegendContinuousSize, 'component.title': component_1.TitleComponent, 'component.sliderX': component_1.SliderX, 'component.sliderY': component_1.SliderY, 'component.scrollbarX': component_1.ScrollbarX, 'component.scrollbarY': component_1.ScrollbarY, 'animation.scaleInX': animation_1.ScaleInX, 'animation.scaleOutX': animation_1.ScaleOutX, 'animation.scaleInY': animation_1.ScaleInY, 'animation.scaleOutY': animation_1.ScaleOutY, 'animation.waveIn': animation_1.WaveIn, 'animation.fadeIn': animation_1.FadeIn, 'animation.fadeOut': animation_1.FadeOut, 'animation.zoomIn': animation_1.ZoomIn, 'animation.zoomOut': animation_1.ZoomOut, 'animation.pathIn': animation_1.PathIn, 'animation.morphing': animation_1.Morphing, 'animation.growInX': animation_1.GrowInX, 'animation.growInY': animation_1.GrowInY, 'interaction.elementHighlight': interaction_1.ElementHighlight, 'interaction.elementHighlightByX': interaction_1.ElementHighlightByX, 'interaction.elementHighlightByColor': interaction_1.ElementHighlightByColor, 'interaction.elementSelect': interaction_1.ElementSelect, 'interaction.elementSelectByX': interaction_1.ElementSelectByX, 'interaction.elementSelectByColor': interaction_1.ElementSelectByColor, 'interaction.fisheye': interaction_1.Fisheye, 'interaction.chartIndex': interaction_1.ChartIndex, 'interaction.tooltip': interaction_1.Tooltip, 'interaction.legendFilter': interaction_1.LegendFilter, 'interaction.legendHighlight': interaction_1.LegendHighlight, 'interaction.brushHighlight': interaction_1.BrushHighlight, 'interaction.brushXHighlight': interaction_1.BrushXHighlight, 'interaction.brushYHighlight': interaction_1.BrushYHighlight, 'interaction.brushAxisHighlight': interaction_1.BrushAxisHighlight, 'interaction.brushFilter': interaction_1.BrushFilter, 'interaction.brushXFilter': interaction_1.BrushXFilter, 'interaction.brushYFilter': interaction_1.BrushYFilter, 'interaction.sliderFilter': interaction_1.SliderFilter, 'interaction.poptip': interaction_1.Poptip,
|
|
23
23
|
// 'interaction.elementSelected': ElementSelected,
|
|
24
24
|
// 'interaction.elementHighlight': ElementHighlight,
|
|
25
25
|
// 'interaction.elementHighlightByX': ElementHighlightByX,
|
package/lib/stdlib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["stdlib/index.ts"],"names":[],"mappings":";;;AACA,8CAUuB;AACvB,sCAA+D;AAC/D,kCA4BiB;AACjB,wCAqBoB;AACpB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["stdlib/index.ts"],"names":[],"mappings":";;;AACA,8CAUuB;AACvB,sCAA+D;AAC/D,kCA4BiB;AACjB,wCAqBoB;AACpB,oCAekB;AAClB,oCAmDkB;AAClB,oCAAgD;AAChD,4CAgBsB;AACtB,4CAcsB;AACtB,gDA+BwB;AACxB,gDASwB;AACxB,4CA2CsB;AACtB,kCAkBiB;AACjB,wDAK4B;AAC5B,gCAAoC;AAEpC,SAAgB,aAAa;IAC3B,uBACE,YAAY,EAAE,YAAK,EACnB,aAAa,EAAE,aAAM,EACrB,aAAa,EAAE,aAAM,EACrB,WAAW,EAAE,WAAI,EACjB,aAAa,EAAE,aAAU,EACzB,WAAW,EAAE,WAAI,EACjB,aAAa,EAAE,aAAM,EACrB,WAAW,EAAE,WAAI,EACjB,YAAY,EAAE,YAAK,EACnB,aAAa,EAAE,aAAM,EACrB,UAAU,EAAE,UAAG,EACf,cAAc,EAAE,cAAO,EACvB,WAAW,EAAE,WAAI,EACjB,aAAa,EAAE,aAAe,EAC9B,UAAU,EAAE,UAAY,EACxB,gBAAgB,EAAE,gBAAS,EAC3B,WAAW,EAAE,WAAI;QACjB,gCAAgC;QAChC,uBAAuB,EAAE,uBAAW,EACpC,sBAAsB,EAAE,sBAAU,EAClC,uBAAuB,EAAE,uBAAW,EACpC,sB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E,4DAA4D;QAC5D,4CAA4C;QAC5C,kDAAkD;QAClD,kCAAkC;QAClC,6CAA6C;QAC7C,8BAA8B;QAE9B,4CAA4C;QAC5C,4CAA4C;QAC5C,4CAA4C;QAC5C,wBAAwB,EAAE,wBAAU,EACpC,uBAAuB,EAAE,uBAAS,EAClC,kBAAkB,EAAE,kBAAI,EACxB,kBAAkB,EAAE,kBAAI,EACxB,uBAAuB,EAAE,uBAAS,EAClC,0BAA0B,EAAE,0BAAY,EACxC,yBAAyB,EAAE,yBAAW,EACtC,4BAA4B,EAAE,4BAAc,EAC5C,4BAA4B,EAAE,6BAAW,EACzC,8BAA8B,EAAE,+BAAa,EAC7C,6BAA6B,EAAE,8BAAY,EAC3C,gCAAgC,EAAE,iCAAe,IAC9C,gBAAU,EACb;AACJ,CAAC;AAjRD,sCAiRC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antv/g2",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.11",
|
|
4
4
|
"description": "the Grammar of Graphics in Javascript",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"size": "limit-size",
|
|
20
20
|
"lint": "eslint ./src ./__tests__ && prettier ./src ./__tests__ --check ",
|
|
21
21
|
"fix": "eslint ./src ./__tests__ --fix && prettier ./src ./__tests__ --write ",
|
|
22
|
-
"test": "
|
|
23
|
-
"test:unit": "jest __tests__/unit/ --coverage -i",
|
|
24
|
-
"test:integration": "jest __tests__/integration/ --coverage -i",
|
|
22
|
+
"test": "node --expose-gc --max-old-space-size=4096 node_modules/jest/bin/jest __tests__/ --coverage -i --logHeapUsage",
|
|
23
|
+
"test:unit": "node --expose-gc --max-old-space-size=4096 node_modules/jest/bin/jest __tests__/unit/ --coverage -i --logHeapUsage",
|
|
24
|
+
"test:integration": "node --expose-gc --max-old-space-size=4096 node_modules/jest/bin/jest __tests__/integration/ --coverage -i --logHeapUsage",
|
|
25
25
|
"test-live": "cross-env DEBUG_MODE=1 jest --watch",
|
|
26
26
|
"build:umd": "rimraf ./dist && rollup -c && npm run size",
|
|
27
27
|
"build:cjs": "rimraf ./lib && tsc --module commonjs --outDir lib",
|
package/src/composition/view.ts
CHANGED
|
@@ -19,7 +19,6 @@ export const View: CC<ViewOptions> = () => {
|
|
|
19
19
|
scale: viewScale = {},
|
|
20
20
|
axis: viewAxis = {},
|
|
21
21
|
legend: viewLegend = {},
|
|
22
|
-
coordinate: viewCoordinate = {},
|
|
23
22
|
encode: viewEncode = {},
|
|
24
23
|
transform: viewTransform = [],
|
|
25
24
|
...rest
|
|
@@ -43,14 +42,7 @@ export const View: CC<ViewOptions> = () => {
|
|
|
43
42
|
...rest,
|
|
44
43
|
}),
|
|
45
44
|
);
|
|
46
|
-
|
|
47
|
-
const newCoordinate = [...markCoordinates, viewCoordinate].reduceRight(
|
|
48
|
-
(prev, cur) => deepMix(prev, cur),
|
|
49
|
-
{},
|
|
50
|
-
);
|
|
51
|
-
return [
|
|
52
|
-
{ ...rest, marks, type: 'standardView', coordinate: newCoordinate },
|
|
53
|
-
];
|
|
45
|
+
return [{ ...rest, marks, type: 'standardView' }];
|
|
54
46
|
};
|
|
55
47
|
};
|
|
56
48
|
|
|
@@ -2,7 +2,7 @@ import { DisplayObject, IElement, Line } from '@antv/g';
|
|
|
2
2
|
import { sort, group, mean, range, bisector } from 'd3-array';
|
|
3
3
|
import { lowerFirst, throttle } from '@antv/util';
|
|
4
4
|
import { Tooltip as TooltipComponent } from '@antv/gui';
|
|
5
|
-
import { Identity } from '@antv/scale';
|
|
5
|
+
import { Constant, Identity } from '@antv/scale';
|
|
6
6
|
import { defined, subObject, isStrictObject } from '../../utils/helper';
|
|
7
7
|
import {
|
|
8
8
|
selectG2Elements,
|
|
@@ -120,7 +120,12 @@ function groupNameOf(scale, datum) {
|
|
|
120
120
|
const { color: scaleColor, series: scaleSeries } = scale;
|
|
121
121
|
const { color, series } = datum;
|
|
122
122
|
const invertAble = (scale) => {
|
|
123
|
-
return
|
|
123
|
+
return (
|
|
124
|
+
scale &&
|
|
125
|
+
scale.invert &&
|
|
126
|
+
!(scale instanceof Identity) &&
|
|
127
|
+
!(scale instanceof Constant)
|
|
128
|
+
);
|
|
124
129
|
};
|
|
125
130
|
if (invertAble(scaleColor)) return scaleColor.invert(color);
|
|
126
131
|
if (invertAble(scaleSeries)) return scaleSeries.invert(series);
|
|
@@ -136,7 +141,11 @@ function itemColorOf(element) {
|
|
|
136
141
|
}
|
|
137
142
|
|
|
138
143
|
function normalizeTooltip(d) {
|
|
139
|
-
return isStrictObject(d)
|
|
144
|
+
return isStrictObject(d)
|
|
145
|
+
? d
|
|
146
|
+
: d === null || d === undefined
|
|
147
|
+
? { value: d }
|
|
148
|
+
: { value: `${d}` };
|
|
140
149
|
}
|
|
141
150
|
|
|
142
151
|
function uniqueTitles(titles) {
|
|
@@ -176,7 +185,7 @@ function groupItems(
|
|
|
176
185
|
...filterDefined(item({ channel: key, value })),
|
|
177
186
|
};
|
|
178
187
|
})
|
|
179
|
-
.filter(({ value }) => value
|
|
188
|
+
.filter(({ value }) => defined(value));
|
|
180
189
|
});
|
|
181
190
|
return {
|
|
182
191
|
...(T.length > 0 && { title: T.join(',') }),
|
package/src/mark/area.ts
CHANGED
package/src/mark/box.ts
CHANGED
package/src/mark/boxplot.ts
CHANGED
package/src/mark/cell.ts
CHANGED
package/src/mark/connector.ts
CHANGED
package/src/mark/forceGraph.ts
CHANGED
package/src/mark/image.ts
CHANGED
package/src/mark/interval.ts
CHANGED
package/src/mark/line.ts
CHANGED
package/src/mark/lineX.ts
CHANGED
package/src/mark/lineY.ts
CHANGED
package/src/mark/link.ts
CHANGED
package/src/mark/pack.ts
CHANGED
package/src/mark/path.ts
CHANGED
package/src/mark/point.ts
CHANGED
package/src/mark/polygon.ts
CHANGED
package/src/mark/range.ts
CHANGED
package/src/mark/rangeX.ts
CHANGED
package/src/mark/rangeY.ts
CHANGED
package/src/mark/rect.ts
CHANGED
package/src/mark/sankey.ts
CHANGED
package/src/mark/shape.ts
CHANGED
package/src/mark/text.ts
CHANGED
package/src/mark/tree.ts
CHANGED
package/src/mark/treemap.ts
CHANGED
package/src/mark/vector.ts
CHANGED
package/src/mark/wordCloud.ts
CHANGED
package/src/runtime/mark.ts
CHANGED
|
@@ -82,23 +82,27 @@ export async function initializeMark(
|
|
|
82
82
|
);
|
|
83
83
|
return valuesArray.map(([channel, values], i) => {
|
|
84
84
|
const visual = values.some((d) => d.visual);
|
|
85
|
+
const constant = values.some((d) => d.constant);
|
|
85
86
|
const {
|
|
86
87
|
independent = false,
|
|
87
88
|
// Use channel name as default scale key.
|
|
88
89
|
key = scaleKey || channel,
|
|
89
90
|
// Visual channel use identity scale.
|
|
90
|
-
type = visual ? 'identity' : scaleType,
|
|
91
|
+
type = constant ? 'constant' : visual ? 'identity' : scaleType,
|
|
91
92
|
...scaleOptions
|
|
92
93
|
} = scale[channel] || {};
|
|
94
|
+
// For constant scale, infer range from data.
|
|
95
|
+
const isConstant = type === 'constant';
|
|
96
|
+
const finalRange = isConstant ? undefined : range;
|
|
93
97
|
return {
|
|
94
98
|
name: channel,
|
|
95
99
|
values,
|
|
96
100
|
// Generate a unique key for independent channel,
|
|
97
101
|
// which will not group with any other channels.
|
|
98
|
-
scaleKey: independent ? Symbol('independent') : key,
|
|
102
|
+
scaleKey: independent || isConstant ? Symbol('independent') : key,
|
|
99
103
|
scale: {
|
|
100
104
|
type,
|
|
101
|
-
range,
|
|
105
|
+
range: finalRange,
|
|
102
106
|
...scaleOptions,
|
|
103
107
|
},
|
|
104
108
|
};
|
package/src/runtime/plot.ts
CHANGED
|
@@ -7,7 +7,6 @@ import { mapObject } from '../utils/array';
|
|
|
7
7
|
import { CHART_LIFE_CIRCLE } from '../utils/event';
|
|
8
8
|
import {
|
|
9
9
|
appendTransform,
|
|
10
|
-
compose,
|
|
11
10
|
copyAttributes,
|
|
12
11
|
defined,
|
|
13
12
|
error,
|
|
@@ -100,6 +99,12 @@ export async function plot<T extends G2ViewTree>(
|
|
|
100
99
|
);
|
|
101
100
|
const typeOf = (node: G2ViewTree) => {
|
|
102
101
|
const { type } = node;
|
|
102
|
+
if (typeof type === 'function') {
|
|
103
|
+
// @ts-ignore
|
|
104
|
+
const { props = {} } = type;
|
|
105
|
+
const { composite = true } = props;
|
|
106
|
+
if (composite) return 'mark';
|
|
107
|
+
}
|
|
103
108
|
return typeof type === 'string' && marks.has(type) ? 'mark' : type;
|
|
104
109
|
};
|
|
105
110
|
const isMark = (node: G2ViewTree) => typeOf(node) === 'mark';
|
|
@@ -311,11 +316,73 @@ async function initializeView(
|
|
|
311
316
|
options: G2View,
|
|
312
317
|
library: G2Library,
|
|
313
318
|
): Promise<[G2ViewDescriptor, G2ViewTree[]]> {
|
|
314
|
-
const
|
|
319
|
+
const flattenOptions = await transformMarks(options, library);
|
|
320
|
+
const mergedOptions = bubbleOptions(flattenOptions);
|
|
321
|
+
const transformedOptions = coordinate2Transform(mergedOptions, library);
|
|
315
322
|
const state = await initializeMarks(transformedOptions, library);
|
|
316
323
|
return initializeState(state, transformedOptions, library);
|
|
317
324
|
}
|
|
318
325
|
|
|
326
|
+
function bubbleOptions(options: G2View): G2View {
|
|
327
|
+
const {
|
|
328
|
+
coordinate: viewCoordinate = {},
|
|
329
|
+
interaction: viewInteraction = {},
|
|
330
|
+
marks,
|
|
331
|
+
...rest
|
|
332
|
+
} = options;
|
|
333
|
+
const markCoordinates = marks.map((d) => d.coordinate || {});
|
|
334
|
+
const markInteractions = marks.map((d) => d.interaction || {});
|
|
335
|
+
const newCoordinate = [...markCoordinates, viewCoordinate].reduceRight(
|
|
336
|
+
(prev, cur) => deepMix(prev, cur),
|
|
337
|
+
{},
|
|
338
|
+
);
|
|
339
|
+
const newInteraction = [viewInteraction, ...markInteractions].reduce(
|
|
340
|
+
(prev, cur) => deepMix(prev, cur),
|
|
341
|
+
{},
|
|
342
|
+
);
|
|
343
|
+
return {
|
|
344
|
+
...rest,
|
|
345
|
+
marks,
|
|
346
|
+
coordinate: newCoordinate,
|
|
347
|
+
interaction: newInteraction,
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
async function transformMarks(
|
|
352
|
+
options: G2View,
|
|
353
|
+
library: G2Library,
|
|
354
|
+
): Promise<G2View> {
|
|
355
|
+
const [useMark, createMark] = useLibrary<G2MarkOptions, MarkComponent, Mark>(
|
|
356
|
+
'mark',
|
|
357
|
+
library,
|
|
358
|
+
);
|
|
359
|
+
|
|
360
|
+
const { marks } = options;
|
|
361
|
+
const flattenMarks = [];
|
|
362
|
+
const discovered = [...marks];
|
|
363
|
+
|
|
364
|
+
// Pre order traversal.
|
|
365
|
+
while (discovered.length) {
|
|
366
|
+
const [node] = discovered.splice(0, 1);
|
|
367
|
+
// Apply data transform to get data.
|
|
368
|
+
const mark = (await applyTransform(node, library)) as G2Mark;
|
|
369
|
+
const { type = error('G2Mark type is required.'), key } = mark;
|
|
370
|
+
const { props = {} } = createMark(type);
|
|
371
|
+
const { composite = true } = props;
|
|
372
|
+
if (!composite) flattenMarks.push(mark);
|
|
373
|
+
else {
|
|
374
|
+
// Convert composite mark to marks.
|
|
375
|
+
const marks = await (
|
|
376
|
+
useMark as (options: G2MarkOptions) => CompositeMark
|
|
377
|
+
)(mark)(options);
|
|
378
|
+
const M = Array.isArray(marks) ? marks : [marks];
|
|
379
|
+
discovered.unshift(...M.map((d, i) => ({ key: `${key}-${i}`, ...d })));
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
return { ...options, marks: flattenMarks };
|
|
384
|
+
}
|
|
385
|
+
|
|
319
386
|
async function initializeMarks(
|
|
320
387
|
options: G2View,
|
|
321
388
|
library: G2Library,
|
|
@@ -324,7 +391,7 @@ async function initializeMarks(
|
|
|
324
391
|
'theme',
|
|
325
392
|
library,
|
|
326
393
|
);
|
|
327
|
-
const [
|
|
394
|
+
const [, createMark] = useLibrary<G2MarkOptions, MarkComponent, Mark>(
|
|
328
395
|
'mark',
|
|
329
396
|
library,
|
|
330
397
|
);
|
|
@@ -337,31 +404,10 @@ async function initializeMarks(
|
|
|
337
404
|
const theme = useTheme(inferTheme(partialTheme));
|
|
338
405
|
const markState = new Map<G2Mark, G2MarkState>();
|
|
339
406
|
|
|
340
|
-
// Apply data transform to get data.
|
|
341
|
-
const dataMarks = [];
|
|
342
|
-
for (const mark of partialMarks) {
|
|
343
|
-
const dataMark = await applyTransform(mark, library);
|
|
344
|
-
dataMarks.push(dataMark);
|
|
345
|
-
}
|
|
346
|
-
|
|
347
|
-
// Convert composite mark to single mark.
|
|
348
|
-
const flattenMarks = await Promise.all(
|
|
349
|
-
dataMarks.map(async (mark) => {
|
|
350
|
-
const { type = error('G2Mark type is required.'), key } = mark;
|
|
351
|
-
const { props } = createMark(type);
|
|
352
|
-
const { composite = false } = props;
|
|
353
|
-
if (!composite) return mark;
|
|
354
|
-
const marks = await (
|
|
355
|
-
useMark as (options: G2MarkOptions) => CompositeMark
|
|
356
|
-
)(mark)(options);
|
|
357
|
-
return marks.map((d, i) => ({ key: `${key}-${i}`, ...d }));
|
|
358
|
-
}),
|
|
359
|
-
).then((res) => res.flat());
|
|
360
|
-
|
|
361
407
|
// Initialize channels for marks.
|
|
362
|
-
for (const markOptions of
|
|
408
|
+
for (const markOptions of partialMarks) {
|
|
363
409
|
const { type } = markOptions;
|
|
364
|
-
const { props } = createMark(type);
|
|
410
|
+
const { props = {} } = createMark(type);
|
|
365
411
|
const markAndState = await initializeMark(markOptions, props, library);
|
|
366
412
|
if (markAndState) {
|
|
367
413
|
const [initializedMark, state] = markAndState;
|
|
@@ -1227,13 +1273,8 @@ function inferTheme(theme: G2ThemeOptions = { type: 'light' }): G2ThemeOptions {
|
|
|
1227
1273
|
*/
|
|
1228
1274
|
function inferInteraction(view: G2View): G2InteractionOptions[] {
|
|
1229
1275
|
const defaults = {};
|
|
1230
|
-
const { interaction = {}
|
|
1231
|
-
|
|
1232
|
-
const all = [defaults, interaction, ...markInteractions].reduce(
|
|
1233
|
-
(total, value) => deepMix(total, value),
|
|
1234
|
-
{},
|
|
1235
|
-
);
|
|
1236
|
-
return Object.entries(all)
|
|
1276
|
+
const { interaction = {} } = view;
|
|
1277
|
+
return Object.entries(deepMix(defaults, interaction))
|
|
1237
1278
|
.filter((d) => !!d[1])
|
|
1238
1279
|
.map(([key, value]) => ({
|
|
1239
1280
|
type: key,
|
package/src/runtime/scale.ts
CHANGED
package/src/runtime/transform.ts
CHANGED
|
@@ -77,7 +77,6 @@ export function inferChannelsType(
|
|
|
77
77
|
return [I, { ...mark, encode: typedEncode }];
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
// @todo Move visual property to style instead of flagging visual.
|
|
81
80
|
export function maybeVisualChannel(
|
|
82
81
|
I: number[],
|
|
83
82
|
mark: G2Mark,
|
|
@@ -88,7 +87,7 @@ export function maybeVisualChannel(
|
|
|
88
87
|
const newEncode = mapObject(encode, (channel, name) => {
|
|
89
88
|
const { type } = channel;
|
|
90
89
|
if (type !== 'constant' || isPosition(name)) return channel;
|
|
91
|
-
return { ...channel,
|
|
90
|
+
return { ...channel, constant: true };
|
|
92
91
|
});
|
|
93
92
|
return [I, { ...mark, encode: newEncode }];
|
|
94
93
|
}
|