@visactor/vgrammar-core 0.7.2 → 0.7.3

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/README.md CHANGED
@@ -1,12 +1,65 @@
1
- # @visactor/vgrammar
1
+ <div align="center">
2
+ <a href="https://github.com/VisActor#gh-light-mode-only" target="_blank">
3
+ <img alt="VisActor Logo" width="200" src="https://github.com/VisActor/.github/blob/main/profile/logo_500_200_light.svg"/>
4
+ </a>
5
+ <a href="https://github.com/VisActor#gh-dark-mode-only" target="_blank">
6
+ <img alt="VisActor Logo" width="200" src="https://github.com/VisActor/.github/blob/main/profile/logo_500_200_dark.svg"/>
7
+ </a>
8
+ </div>
2
9
 
3
- ## Description
10
+ <div align="center">
11
+ <h1>VGrammar</h1>
12
+ </div>
4
13
 
5
- @visactor/vgrammar is the core package of VGrammar, which is a visual grammar library based on visual rendering engine [VRender](https://github.com/VisActor/VRender).
14
+ <div align="center">
6
15
 
7
- ## Usage
16
+ VGrammar, not only generate charts, but also provide data visualization tools.
8
17
 
9
- ### Installation
18
+ <p align="center">
19
+ <a href="https://www.visactor.io/vgrammar">Introduction</a> •
20
+ <a href="https://www.visactor.io/vgrammar/example">Demo</a> •
21
+ <a href="https://www.visactor.io/vgrammar/guide/guides/quick-start">Tutorial</a> •
22
+ <a href="https://www.visactor.io/vgrammar/api/API/View">API</a>•
23
+ <a href="https://www.visactor.io/vgrammar/option/">Option</a>
24
+ </p>
25
+
26
+ ![image test](https://github.com/visactor/vgrammar/actions/workflows/bug-server.yml/badge.svg?event=push)
27
+ ![unit test](https://github.com/visactor/vgrammar/actions/workflows/unit-test.yml/badge.svg?event=push)
28
+ [![npm Version](https://img.shields.io/npm/v/@visactor/vgrammar.svg)](https://www.npmjs.com/package/@visactor/vgrammar)
29
+ [![npm Download](https://img.shields.io/npm/dm/@visactor/vgrammar.svg)](https://www.npmjs.com/package/@visactor/vgrammar)
30
+ [![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/visactor/vgrammar/blob/main/LICENSE)
31
+
32
+ </div>
33
+
34
+ <div align="center">
35
+
36
+ English| [简体中文](./README.zh-CN.md)
37
+
38
+ </div>
39
+
40
+ <div align="center">
41
+
42
+ (video)
43
+
44
+ </div>
45
+
46
+ # Introduction
47
+
48
+ VGrammar is a visual grammar library based on visual rendering engine [VRender](https://github.com/VisActor/VRender). The core capabilities are as follows:
49
+
50
+ 1. Easy to Use by Default: VGrammar features a concise syntax, comprehensive interface, rich component library, and simplified development process.
51
+ 2. Rich in Capabilities: VGrammar provides extensive capabilities for chart definition, animation arrangement, artistic expression, and complete coverage of various needs.
52
+ 3. Flexible and Extensible: VGrammar offers flexible extension options, including custom rendering of graphical elements, data mapping, automatic layout, and effortless expansion possibilities.
53
+
54
+ # Repo Intro
55
+
56
+ This repository includes the following packages:
57
+
58
+ 1. VGrammar: The main package of VGrammar
59
+
60
+ # Usage
61
+
62
+ ## Installation
10
63
 
11
64
  [npm package](https://www.npmjs.com/package/@visactor/vgrammar)
12
65
 
@@ -18,126 +71,86 @@ npm install @visactor/vgrammar
18
71
  yarn add @visactor/vgrammar
19
72
  ```
20
73
 
21
- ### Quick Start
74
+ ## Quick Start
22
75
 
23
76
  ```javascript
24
- import { View } from '@visactor/vgrammar-core';
77
+ import { View } from '@visactor/vgrammar';
25
78
 
26
79
  const spec = {
27
- padding: { top: 5, right: 5, bottom: 30, left: 60 },
28
80
  data: [
29
81
  {
30
82
  id: 'table',
31
83
  values: [
32
84
  {
33
- name: 'A',
34
- value: 214480
85
+ value: 3676,
86
+ name: ' ~ 29'
35
87
  },
36
88
  {
37
- name: 'B',
38
- value: 155506
89
+ value: 3872,
90
+ name: '30 ~ 39'
39
91
  },
40
92
  {
41
- name: 'C',
42
- value: 100764
93
+ value: 1668,
94
+ name: '40 ~ 49'
43
95
  },
44
96
  {
45
- name: 'D',
46
- value: 92715
97
+ value: 610,
98
+ name: '50 ~'
99
+ }
100
+ ]
101
+ },
102
+ {
103
+ id: 'pie',
104
+ source: 'table',
105
+ transform: [
106
+ {
107
+ type: 'pie',
108
+ field: 'value',
109
+ asStartAngle: 'startAngle',
110
+ asEndAngle: 'endAngle'
47
111
  }
48
112
  ]
49
113
  }
50
114
  ],
115
+
51
116
  scales: [
52
117
  {
53
- id: 'xscale',
54
- type: 'band',
118
+ id: 'colorScale',
119
+ type: 'ordinal',
55
120
  domain: { data: 'table', field: 'name' },
56
- dependency: ['viewBox'],
57
- range: (scale, params) => {
58
- return [params.viewBox.x1, params.viewBox.x2];
59
- },
60
- padding: 0.05,
61
- round: true
62
- },
63
- {
64
- id: 'yscale',
65
- type: 'linear',
66
- domain: { data: 'table', field: 'value' },
67
- dependency: ['viewBox'],
68
- range: (scale, params) => {
69
- return [params.viewBox.y2, params.viewBox.y1];
70
- },
71
- nice: true
121
+ range: [
122
+ '#6690F2',
123
+ '#70D6A3',
124
+ '#B4E6E2',
125
+ '#63B5FC',
126
+ '#FF8F62',
127
+ '#FFDC83',
128
+ '#BCC5FD',
129
+ '#A29BFE',
130
+ '#63C4C7',
131
+ '#F68484'
132
+ ]
72
133
  }
73
134
  ],
74
135
 
75
136
  marks: [
76
137
  {
77
- type: 'component',
78
- componentType: 'axis',
79
- scale: 'xscale',
80
- tickCount: -1,
81
- dependency: ['viewBox'],
82
- encode: {
83
- update: (scale, elment, params) => {
84
- return {
85
- x: params.viewBox.x1,
86
- y: params.viewBox.y2,
87
- start: { x: 0, y: 0 },
88
- end: { x: params.viewBox.width(), y: 0 }
89
- };
90
- }
91
- }
92
- },
93
- {
94
- type: 'component',
95
- componentType: 'axis',
96
- scale: 'yscale',
97
- dependency: ['viewBox'],
98
- encode: {
99
- update: (scale, elment, params) => {
100
- return {
101
- x: params.viewBox.x1,
102
- y: params.viewBox.y1,
103
- start: { x: 0, y: params.viewBox.height() },
104
- end: { x: 0, y: 0 },
105
- verticalFactor: -1
106
- };
107
- }
108
- }
109
- },
110
- {
111
- type: 'component',
112
- componentType: 'crosshair',
113
- scale: 'xscale',
114
- crosshairShape: 'rect',
115
- crosshairType: 'x',
116
- dependency: ['viewBox'],
138
+ type: 'arc',
139
+ from: { data: 'pie' },
140
+ dependency: ['viewBox', 'colorScale'],
117
141
  encode: {
118
- update: (scale, elment, params) => {
142
+ update: (datum, element, params) => {
143
+ const viewBox = params.viewBox;
144
+ const maxR = Math.min(viewBox.width() / 2, viewBox.height() / 2);
119
145
  return {
120
- start: { y: params.viewBox.y1 },
121
- rectStyle: { height: params.viewBox.height() }
146
+ x: viewBox.x1 + viewBox.width() / 2,
147
+ y: viewBox.y1 + viewBox.height() / 2,
148
+ startAngle: datum.startAngle,
149
+ endAngle: datum.endAngle,
150
+ innerRadius: 100,
151
+ outerRadius: maxR,
152
+ fill: params.colorScale.scale(datum.name)
122
153
  };
123
- }
124
- }
125
- },
126
- {
127
- type: 'rect',
128
- from: { data: 'table' },
129
- encode: {
130
- update: {
131
- x: { scale: 'xscale', field: 'name' },
132
- width: { scale: 'xscale', band: 1 },
133
- y: { scale: 'yscale', field: 'value' },
134
- y1: {
135
- callback: (datum, element, params) => {
136
- return params.yscale.scale(params.yscale.domain()[0]);
137
- },
138
- dependency: ['yscale']
139
- },
140
- fill: '#6690F2'
141
154
  },
142
155
  hover: {
143
156
  fill: 'red'
@@ -149,8 +162,6 @@ const spec = {
149
162
 
150
163
  const vGrammarView = new View({
151
164
  autoFit: true,
152
- width: spec.width,
153
- height: spec.height,
154
165
  container: 'chart',
155
166
  hover: true
156
167
  });
@@ -158,3 +169,31 @@ vGrammarView.parseSpec(spec);
158
169
 
159
170
  vGrammarView.runAsync();
160
171
  ```
172
+
173
+ ##
174
+
175
+ [More demos and detailed tutorials](https://visactor.io/vgrammar)
176
+
177
+ # Related Links
178
+
179
+ - [Official website](https://visactor.io/vgrammar)
180
+
181
+ # Ecosystem
182
+
183
+ | Project | Description |
184
+ | ----------------------------------------------------------- | -------------------------------------------------------------------------------------- |
185
+ | [VChart](https://visactor.io/vchart) | A charts lib based on [VisActor/VGrammar](https://visactor.io/vgrammar) |
186
+ | [React Component Library](https://visactor.io/react-vchart) | A React chart component library based on [VisActor/VChart](https://visactor.io/vchart) |
187
+ | [AI-generated Components](https://visactor.io/ai-vchart) | AI-generated chart component. |
188
+
189
+ # Contribution
190
+
191
+ If you would like to contribute, please read the [Code of Conduct ](./CODE_OF_CONDUCT.md) and [ Guide](./CONTRIBUTING.zh-CN.md) first。
192
+
193
+ Small streams converge to make great rivers and seas!
194
+
195
+ <a href="https://github.com/visactor/vgrammar/graphs/contributors"><img src="https://contrib.rocks/image?repo=visactor/vgrammar" /></a>
196
+
197
+ # License
198
+
199
+ [MIT License](./LICENSE)
package/README.zh-CN.md CHANGED
@@ -1,11 +1,200 @@
1
- # @visactor/vgrammar
1
+ <div align="center">
2
+ <a href="https://github.com/VisActor#gh-light-mode-only" target="_blank">
3
+ <img alt="VisActor Logo" width="200" src="https://github.com/VisActor/.github/blob/main/profile/logo_500_200_light.svg"/>
4
+ </a>
5
+ <a href="https://github.com/VisActor#gh-dark-mode-only" target="_blank">
6
+ <img alt="VisActor Logo" width="200" src="https://github.com/VisActor/.github/blob/main/profile/logo_500_200_dark.svg"/>
7
+ </a>
8
+ </div>
2
9
 
3
- ## Description
10
+ <div align="center">
11
+ <h1>VGrammar</h1>
12
+ </div>
4
13
 
5
- VGrammar 可视化语法
14
+ <div align="center">
6
15
 
7
- ## Usage
16
+ VGrammar,不只是生成万千图表的可视化语法,更是化枯燥为神奇的数据魔法师。
8
17
 
9
- ```typescript
10
- import { xxx } from '@visactor/vgrammar-core';
18
+ <p align="center">
19
+ <a href="https://www.visactor.io/vgrammar">简介</a> •
20
+ <a href="https://www.visactor.io/vgrammar/example">Demo</a> •
21
+ <a href="https://www.visactor.io/vgrammar/guide/guides/quick-start">教程</a> •
22
+ <a href="https://www.visactor.io/vgrammar/api/API/View">API</a>•
23
+ <a href="https://www.visactor.io/vgrammar/option/">配置</a>
24
+ </p>
25
+
26
+ ![image test](https://github.com/visactor/vgrammar/actions/workflows/bug-server.yml/badge.svg?event=push)
27
+ ![unit test](https://github.com/visactor/vgrammar/actions/workflows/unit-test.yml/badge.svg?event=push)
28
+ [![npm Version](https://img.shields.io/npm/v/@visactor/vgrammar.svg)](https://www.npmjs.com/package/@visactor/vgrammar)
29
+ [![npm Download](https://img.shields.io/npm/dm/@visactor/vgrammar.svg)](https://www.npmjs.com/package/@visactor/vgrammar)
30
+ [![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/visactor/vgrammar/blob/main/LICENSE)
31
+
32
+ </div>
33
+
34
+ <div align="center">
35
+
36
+ [English](./README.md) | 简体中文
37
+
38
+ </div>
39
+
40
+ <div align="center">
41
+
42
+ (演示视频)
43
+
44
+ </div>
45
+
46
+ # 简介
47
+
48
+ VGrammar 是 VisActor 可视化体系中的可视化语法库,基于可视化渲染引擎 [VRender](https://github.com/VisActor/VRender) 进行组件封装。核心能力如下:
49
+
50
+ 1. 默认好用:语法简洁,接口完备,组件丰富,开发简单;
51
+ 2. 能力丰富:图表定义,动画编排,艺术表达,完整覆盖;
52
+ 3. 灵活扩展:图元渲染,数据映射,自动布局,轻松扩展;
53
+
54
+ # 仓库简介
55
+
56
+ 本仓库包含如下 package
57
+
58
+ 1. VGrammar: 图形语法
59
+
60
+ # 使用
61
+
62
+ ## 安装
63
+
64
+ [npm package](https://www.npmjs.com/package/@visactor/vgrammar)
65
+
66
+ ```bash
67
+ // npm
68
+ npm install @visactor/vgrammar
69
+
70
+ // yarn
71
+ yarn add @visactor/vgrammar
72
+ ```
73
+
74
+ ## 快速上手
75
+
76
+ ```javascript
77
+ import { View } from '@visactor/vgrammar';
78
+
79
+ const spec = {
80
+ data: [
81
+ {
82
+ id: 'table',
83
+ values: [
84
+ {
85
+ value: 3676,
86
+ name: ' ~ 29'
87
+ },
88
+ {
89
+ value: 3872,
90
+ name: '30 ~ 39'
91
+ },
92
+ {
93
+ value: 1668,
94
+ name: '40 ~ 49'
95
+ },
96
+ {
97
+ value: 610,
98
+ name: '50 ~'
99
+ }
100
+ ]
101
+ },
102
+ {
103
+ id: 'pie',
104
+ source: 'table',
105
+ transform: [
106
+ {
107
+ type: 'pie',
108
+ field: 'value',
109
+ asStartAngle: 'startAngle',
110
+ asEndAngle: 'endAngle'
111
+ }
112
+ ]
113
+ }
114
+ ],
115
+
116
+ scales: [
117
+ {
118
+ id: 'colorScale',
119
+ type: 'ordinal',
120
+ domain: { data: 'table', field: 'name' },
121
+ range: [
122
+ '#6690F2',
123
+ '#70D6A3',
124
+ '#B4E6E2',
125
+ '#63B5FC',
126
+ '#FF8F62',
127
+ '#FFDC83',
128
+ '#BCC5FD',
129
+ '#A29BFE',
130
+ '#63C4C7',
131
+ '#F68484'
132
+ ]
133
+ }
134
+ ],
135
+
136
+ marks: [
137
+ {
138
+ type: 'arc',
139
+ from: { data: 'pie' },
140
+ dependency: ['viewBox', 'colorScale'],
141
+ encode: {
142
+ update: (datum, element, params) => {
143
+ const viewBox = params.viewBox;
144
+ const maxR = Math.min(viewBox.width() / 2, viewBox.height() / 2);
145
+ return {
146
+ x: viewBox.x1 + viewBox.width() / 2,
147
+ y: viewBox.y1 + viewBox.height() / 2,
148
+ startAngle: datum.startAngle,
149
+ endAngle: datum.endAngle,
150
+ innerRadius: 100,
151
+ outerRadius: maxR,
152
+ fill: params.colorScale.scale(datum.name)
153
+ };
154
+ },
155
+ hover: {
156
+ fill: 'red'
157
+ }
158
+ }
159
+ }
160
+ ]
161
+ };
162
+
163
+ const vGrammarView = new View({
164
+ autoFit: true,
165
+ container: 'chart',
166
+ hover: true
167
+ });
168
+ vGrammarView.parseSpec(spec);
169
+
170
+ vGrammarView.runAsync();
11
171
  ```
172
+
173
+ ##
174
+
175
+ [更多 demo 和详细教程](https://visactor.io/vgrammar)
176
+
177
+ # 相关链接
178
+
179
+ - [官网](https://visactor.io/vgrammar)
180
+
181
+ # 生态
182
+
183
+ | 项目 | 介绍 |
184
+ | ---- | ---- |
185
+
186
+ | [VChart](https://visactor.io/vchart) | 基于 [VisActor/VGrammar](https://visactor.io/vgrammar) 封装的图表库。 |
187
+ | [React 组件库](https://visactor.io/react-vgrammar) | 基于 [VisActor/VChart](https://visactor.io/vgrammar) 的 React 图表 组件库。 |
188
+ | [智能生成组件](https://visactor.io/ai-vgrammar) | 基于 AI 的智能图表生成组件 |
189
+
190
+ # 参与贡献
191
+
192
+ 如想参与贡献,请先阅读 [行为准则](./CODE_OF_CONDUCT.md) 和 [贡献指南](./CONTRIBUTING.zh-CN.md)。
193
+
194
+ 细流成河,终成大海!
195
+
196
+ <a href="https://github.com/visactor/vgrammar/graphs/contributors"><img src="https://contrib.rocks/image?repo=visactor/vgrammar" /></a>
197
+
198
+ # 许可证
199
+
200
+ [MIT 协议](./LICENSE)
package/cjs/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const version = "0.7.2";
1
+ export declare const version = "0.7.3";
2
2
  export * from './graph';
3
3
  export { View } from './view';
4
4
  export { parseFunctionType, invokeFunctionType } from './parse/util';
package/cjs/index.js CHANGED
@@ -18,7 +18,7 @@ var __createBinding = this && this.__createBinding || (Object.create ? function(
18
18
  Object.defineProperty(exports, "__esModule", {
19
19
  value: !0
20
20
  }), exports.ThemeManager = exports.SIGNAL_VIEW_BOX = exports.SIGNAL_WIDTH = exports.SIGNAL_VIEW_WIDTH = exports.SIGNAL_VIEW_HEIGHT = exports.SIGNAL_PADDING = exports.SIGNAL_HEIGHT = exports.SIGNAL_AUTOFIT = exports.Factory = exports.GrammarBase = exports.invokeFunctionType = exports.parseFunctionType = exports.View = exports.version = void 0,
21
- exports.version = "0.7.2", __exportStar(require("./graph"), exports);
21
+ exports.version = "0.7.3", __exportStar(require("./graph"), exports);
22
22
 
23
23
  var view_1 = require("./view");
24
24
 
package/cjs/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,OAAO,CAAC;AAE/B,0CAAwB;AAExB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,qCAAqE;AAA5D,yGAAA,iBAAiB,OAAA;AAAE,0GAAA,kBAAkB,OAAA;AAC9C,oDAAkD;AAAzC,2GAAA,WAAW,OAAA;AACpB,8CAA4B;AAC5B,0CAAwB;AACxB,0CAAyC;AAAhC,kGAAA,OAAO,OAAA;AAChB,8CAQ0B;AAPxB,2GAAA,cAAc,OAAA;AACd,0GAAA,aAAa,OAAA;AACb,2GAAA,cAAc,OAAA;AACd,+GAAA,kBAAkB,OAAA;AAClB,8GAAA,iBAAiB,OAAA;AACjB,yGAAA,YAAY,OAAA;AACZ,4GAAA,eAAe,OAAA;AAGjB,uDAAqD;AAA5C,6GAAA,YAAY,OAAA;AAErB,0CAAwB;AACxB,8CAA4B;AAC5B,+CAA6B;AAC7B,8DAA4C","file":"index.js","sourcesContent":["// -- Exports -----\nexport const version = \"0.7.2\";\n\nexport * from './graph';\n\nexport { View } from './view';\nexport { parseFunctionType, invokeFunctionType } from './parse/util';\nexport { GrammarBase } from './view/grammar-base';\nexport * from './util/text';\nexport * from './types';\nexport { Factory } from './core/factory';\nexport {\n SIGNAL_AUTOFIT,\n SIGNAL_HEIGHT,\n SIGNAL_PADDING,\n SIGNAL_VIEW_HEIGHT,\n SIGNAL_VIEW_WIDTH,\n SIGNAL_WIDTH,\n SIGNAL_VIEW_BOX\n} from './view/constants';\n\nexport { ThemeManager } from './theme/theme-manager';\n\nexport * from './glyph';\nexport * from './component';\nexport * from './transforms';\nexport * from './graph/animation/animation';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACa,QAAA,OAAO,GAAG,OAAO,CAAC;AAE/B,0CAAwB;AAExB,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,qCAAqE;AAA5D,yGAAA,iBAAiB,OAAA;AAAE,0GAAA,kBAAkB,OAAA;AAC9C,oDAAkD;AAAzC,2GAAA,WAAW,OAAA;AACpB,8CAA4B;AAC5B,0CAAwB;AACxB,0CAAyC;AAAhC,kGAAA,OAAO,OAAA;AAChB,8CAQ0B;AAPxB,2GAAA,cAAc,OAAA;AACd,0GAAA,aAAa,OAAA;AACb,2GAAA,cAAc,OAAA;AACd,+GAAA,kBAAkB,OAAA;AAClB,8GAAA,iBAAiB,OAAA;AACjB,yGAAA,YAAY,OAAA;AACZ,4GAAA,eAAe,OAAA;AAGjB,uDAAqD;AAA5C,6GAAA,YAAY,OAAA;AAErB,0CAAwB;AACxB,8CAA4B;AAC5B,+CAA6B;AAC7B,8DAA4C","file":"index.js","sourcesContent":["// -- Exports -----\nexport const version = \"0.7.3\";\n\nexport * from './graph';\n\nexport { View } from './view';\nexport { parseFunctionType, invokeFunctionType } from './parse/util';\nexport { GrammarBase } from './view/grammar-base';\nexport * from './util/text';\nexport * from './types';\nexport { Factory } from './core/factory';\nexport {\n SIGNAL_AUTOFIT,\n SIGNAL_HEIGHT,\n SIGNAL_PADDING,\n SIGNAL_VIEW_HEIGHT,\n SIGNAL_VIEW_WIDTH,\n SIGNAL_WIDTH,\n SIGNAL_VIEW_BOX\n} from './view/constants';\n\nexport { ThemeManager } from './theme/theme-manager';\n\nexport * from './glyph';\nexport * from './component';\nexport * from './transforms';\nexport * from './graph/animation/animation';\n"]}
package/es/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const version = "0.7.2";
1
+ export declare const version = "0.7.3";
2
2
  export * from './graph';
3
3
  export { View } from './view';
4
4
  export { parseFunctionType, invokeFunctionType } from './parse/util';
package/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export const version = "0.7.2";
1
+ export const version = "0.7.3";
2
2
 
3
3
  export * from "./graph";
4
4
 
package/es/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC;AAE/B,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EACL,cAAc,EACd,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,6BAA6B,CAAC","file":"index.js","sourcesContent":["// -- Exports -----\nexport const version = \"0.7.2\";\n\nexport * from './graph';\n\nexport { View } from './view';\nexport { parseFunctionType, invokeFunctionType } from './parse/util';\nexport { GrammarBase } from './view/grammar-base';\nexport * from './util/text';\nexport * from './types';\nexport { Factory } from './core/factory';\nexport {\n SIGNAL_AUTOFIT,\n SIGNAL_HEIGHT,\n SIGNAL_PADDING,\n SIGNAL_VIEW_HEIGHT,\n SIGNAL_VIEW_WIDTH,\n SIGNAL_WIDTH,\n SIGNAL_VIEW_BOX\n} from './view/constants';\n\nexport { ThemeManager } from './theme/theme-manager';\n\nexport * from './glyph';\nexport * from './component';\nexport * from './transforms';\nexport * from './graph/animation/animation';\n"]}
1
+ {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":"AACA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC;AAE/B,cAAc,SAAS,CAAC;AAExB,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EACL,cAAc,EACd,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,YAAY,EACZ,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,6BAA6B,CAAC","file":"index.js","sourcesContent":["// -- Exports -----\nexport const version = \"0.7.3\";\n\nexport * from './graph';\n\nexport { View } from './view';\nexport { parseFunctionType, invokeFunctionType } from './parse/util';\nexport { GrammarBase } from './view/grammar-base';\nexport * from './util/text';\nexport * from './types';\nexport { Factory } from './core/factory';\nexport {\n SIGNAL_AUTOFIT,\n SIGNAL_HEIGHT,\n SIGNAL_PADDING,\n SIGNAL_VIEW_HEIGHT,\n SIGNAL_VIEW_WIDTH,\n SIGNAL_WIDTH,\n SIGNAL_VIEW_BOX\n} from './view/constants';\n\nexport { ThemeManager } from './theme/theme-manager';\n\nexport * from './glyph';\nexport * from './component';\nexport * from './transforms';\nexport * from './graph/animation/animation';\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visactor/vgrammar-core",
3
- "version": "0.7.2",
3
+ "version": "0.7.3",
4
4
  "description": "VGrammar is a visual grammar library",
5
5
  "keywords": [
6
6
  "grammar",
@@ -24,13 +24,13 @@
24
24
  "dist"
25
25
  ],
26
26
  "dependencies": {
27
- "@visactor/vgrammar-coordinate": "0.7.2",
28
- "@visactor/vgrammar-util": "0.7.2",
29
- "@visactor/vscale": "~0.15.12",
30
- "@visactor/vrender": "~0.15.1",
31
- "@visactor/vrender-components": "~0.15.1",
32
- "@visactor/vutils": "~0.15.12",
33
- "@visactor/vdataset": "~0.15.12"
27
+ "@visactor/vgrammar-coordinate": "0.7.3",
28
+ "@visactor/vgrammar-util": "0.7.3",
29
+ "@visactor/vscale": "~0.16.0",
30
+ "@visactor/vrender": "~0.15.2",
31
+ "@visactor/vrender-components": "~0.15.2",
32
+ "@visactor/vutils": "~0.16.0",
33
+ "@visactor/vdataset": "~0.16.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@rushstack/eslint-patch": "~1.1.4",