@visactor/wx-vchart 0.10.0-alpha.2

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/index.json ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "component": true
3
+ }
package/index.wxml ADDED
@@ -0,0 +1,20 @@
1
+ <view class="vchart" id="{{ canvasId }}" style="{{ styles }}">
2
+ <canvas
3
+ class="cs-canvas"
4
+ bindtouchstart="bindEvent"
5
+ bindtouchmove="bindEvent"
6
+ bindtouchend="bindEvent"
7
+ bindmousemove="bindEvent"
8
+ bindmouseover="bindEvent"
9
+ bindmouseout="bindEvent"
10
+ bindmousedown="bindEvent"
11
+ bindmouseup="bindEvent"
12
+ id="{{ canvasId }}_draw_canvas"
13
+ canvas-id="{{ canvasId }}_draw_canvas"
14
+ type="2d"
15
+ ></canvas>
16
+ <canvas width="{{ offscreenCanvasWidth }}" height="{{ offscreenCanvasHeight }}" id="{{ canvasId }}_hit_canvas"
17
+ canvas-id="{{ canvasId }}_hit_canvas" class="cs-tooltip-canvas" type="2d"></canvas>
18
+ <canvas width="{{ offscreenCanvasWidth }}" height="{{ offscreenCanvasHeight }}" id="{{ canvasId }}_tooltip_canvas"
19
+ canvas-id="{{ canvasId }}_tooltip_canvas" class="cs-tooltip-canvas" type="2d"></canvas>
20
+ </view>
package/index.wxss ADDED
@@ -0,0 +1,29 @@
1
+ .vchart {
2
+ width: 100%;
3
+ height: 100%;
4
+ position: relative;
5
+ padding: 0!important;
6
+ }
7
+
8
+ .cs-canvas {
9
+ width: 100%;
10
+ height: 100%;
11
+ display: block;
12
+ margin: 0px;
13
+ }
14
+
15
+ .cs-canvas-hidden {
16
+ opacity: 0;
17
+ visibility: hidden;
18
+ display: none;
19
+ }
20
+
21
+ .cs-tooltip-canvas {
22
+ width: 100%;
23
+ height: 100%;
24
+ position: absolute;
25
+ top: 0;
26
+ left: 0;
27
+ z-index: 1;
28
+ pointer-events: none;
29
+ }
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@visactor/wx-vchart",
3
+ "version": "0.10.0-alpha.2",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "miniprogram": ".",
7
+ "files": [
8
+ "index.js",
9
+ "index.json",
10
+ "index.wxml",
11
+ "index.wxss"
12
+ ],
13
+ "keywords": [],
14
+ "author": "",
15
+ "dependencies": {},
16
+ "license": "MIT",
17
+ "devDependencies": {
18
+ "@babel/core": "7.20.12",
19
+ "@babel/preset-env": "7.20.2",
20
+ "miniprogram-api-typings": "^2.8.3-1",
21
+ "@rollup/plugin-babel": "6.0.3",
22
+ "@rollup/plugin-commonjs": "24.1.0",
23
+ "@rollup/plugin-node-resolve": "15.0.2",
24
+ "@rollup/plugin-typescript": "11.1.0",
25
+ "rimraf": "3.0.2",
26
+ "rollup": "3.20.5",
27
+ "rollup-plugin-copy": "3.4.0",
28
+ "rollup-plugin-terser": "7.0.2",
29
+ "@rushstack/eslint-patch": "~1.1.4",
30
+ "eslint": "~8.18.0",
31
+ "@internal/bundler": "0.0.1",
32
+ "@internal/eslint-config": "0.0.1",
33
+ "@internal/ts-config": "0.0.1"
34
+ },
35
+ "publishConfig": {
36
+ "access": "public",
37
+ "registry": "https://registry.npmjs.org/"
38
+ },
39
+ "scripts": {
40
+ "rollup": "npm run build",
41
+ "build": "npm run clear && rollup -c --configPlugin typescript --bundleConfigAsCjs",
42
+ "clear": "rimraf index.js"
43
+ }
44
+ }