@antv/g-lite 1.0.20 → 1.0.21

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.
@@ -10,4 +10,5 @@ export * from './pointer-events';
10
10
  export * from './string';
11
11
  export * from './tapable';
12
12
  export * from './text';
13
+ export * from './raf';
13
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Thanks for following contributor of codes
3
+ * https://gist.github.com/1866474
4
+ * http://paulirish.com/2011/requestanimationframe-for-smart-animating/
5
+ * http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating
6
+ * https://github.com/Financial-Times/polyfill-library/blob/master/polyfills/requestAnimationFrame/polyfill.js
7
+ **/
8
+ export declare const root: any;
9
+ export declare const pnow: () => number;
10
+ type TRequestAnimationFrame = (callback: (...args: any[]) => any) => number;
11
+ type TCancelAnimationFrame = (id: number) => void;
12
+ export declare const raf: TRequestAnimationFrame;
13
+ export declare const caf: TCancelAnimationFrame;
14
+ export {};
15
+ //# sourceMappingURL=raf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raf.d.ts","sourceRoot":"","sources":["../src/utils/raf.ts"],"names":[],"mappings":"AAAA;;;;;;IAMI;AAMJ,eAAO,MAAM,IAAI,EAAE,GAOX,CAAC;AAMT,eAAO,MAAM,IAAI,QAAO,MAOvB,CAAC;AA0CF,KAAK,sBAAsB,GAAG,CAAC,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,KAAK,MAAM,CAAC;AAC5E,KAAK,qBAAqB,GAAG,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;AA8BlD,eAAO,MAAM,GAAG,EAAE,sBAAqD,CAAC;AACxE,eAAO,MAAM,GAAG,EAAE,qBAAmD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/g-lite",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "A core module for rendering engine implements DOM API.",
5
5
  "keywords": [
6
6
  "antv",
@@ -32,14 +32,13 @@
32
32
  "sync": "tnpm sync"
33
33
  },
34
34
  "dependencies": {
35
- "@antv/g-math": "^1.7.31",
35
+ "@antv/g-math": "^1.7.32",
36
36
  "@antv/util": "^3.3.1",
37
37
  "@types/offscreencanvas": "^2019.6.4",
38
38
  "d3-color": "^1.4.0",
39
39
  "eventemitter3": "^4.0.0",
40
40
  "gl-matrix": "^3.1.0",
41
41
  "rbush": "^3.0.1",
42
- "request-animation-frame-polyfill": "^1.1.2",
43
42
  "tslib": "^2.3.1"
44
43
  },
45
44
  "devDependencies": {
@@ -51,5 +50,5 @@
51
50
  "publishConfig": {
52
51
  "access": "public"
53
52
  },
54
- "gitHead": "fd630334431f4104ffd6d805e65d951e6313a578"
53
+ "gitHead": "a4ea86f17b561d0483129ca2022586fcd9e42b7b"
55
54
  }