leafer-x-tooltip-canvas 1.0.1 → 1.0.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.en.md +6 -0
- package/README.md +6 -0
- package/dev/bundle.js +230 -13461
- package/dist/index.cjs +215 -12713
- package/dist/index.esm.js +215 -12713
- package/dist/index.esm.min.js +1 -1
- package/dist/index.js +215 -12713
- package/dist/index.min.cjs +1 -1
- package/dist/index.min.js +1 -1
- package/package.json +18 -18
- package/src/Tooltip.ts +44 -10
- package/src/TooltipPlugin.ts +175 -47
- package/src/constants.ts +21 -0
- package/src/defaultConfig.ts +1 -0
- package/src/interface/config.ts +1 -0
- package/src/utils.ts +86 -25
- package/types/index.d.ts +8 -0
package/types/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { App } from '@leafer-ui/core';
|
|
|
2
2
|
import { IFontWeight, ILeafer } from '@leafer-ui/interface';
|
|
3
3
|
|
|
4
4
|
interface IUserConfig {
|
|
5
|
+
debug?: boolean;
|
|
5
6
|
reference?: 'pointer' | 'element';
|
|
6
7
|
showDelay?: number;
|
|
7
8
|
arrow?: boolean;
|
|
@@ -35,7 +36,14 @@ declare class TooltipPlugin {
|
|
|
35
36
|
private aimLeafer;
|
|
36
37
|
private readonly config;
|
|
37
38
|
private readonly pointEventId;
|
|
39
|
+
private tooltipCache;
|
|
40
|
+
private includesTypeSet;
|
|
41
|
+
private excludesTypeSet;
|
|
42
|
+
private ignoreTypeSet;
|
|
43
|
+
private log;
|
|
38
44
|
constructor(instance: ILeafer | App, config?: IUserConfig);
|
|
45
|
+
private mergeConfig;
|
|
46
|
+
private isAppInstance;
|
|
39
47
|
private initState;
|
|
40
48
|
private handleConfig;
|
|
41
49
|
private initEvent;
|