@leafer/miniapp 1.0.0-rc.4 → 1.0.0-rc.5

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.
Files changed (2) hide show
  1. package/package.json +7 -7
  2. package/src/index.ts +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer/miniapp",
3
- "version": "1.0.0-rc.4",
3
+ "version": "1.0.0-rc.5",
4
4
  "description": "@leafer/miniapp",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,13 +22,13 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/core": "1.0.0-rc.4",
26
- "@leafer/partner": "1.0.0-rc.4",
27
- "@leafer/canvas-miniapp": "1.0.0-rc.4",
28
- "@leafer/image-miniapp": "1.0.0-rc.4",
29
- "@leafer/interaction-miniapp": "1.0.0-rc.4"
25
+ "@leafer/core": "1.0.0-rc.5",
26
+ "@leafer/partner": "1.0.0-rc.5",
27
+ "@leafer/canvas-miniapp": "1.0.0-rc.5",
28
+ "@leafer/image-miniapp": "1.0.0-rc.5",
29
+ "@leafer/interaction-miniapp": "1.0.0-rc.5"
30
30
  },
31
31
  "devDependencies": {
32
- "@leafer/interface": "1.0.0-rc.4"
32
+ "@leafer/interface": "1.0.0-rc.5"
33
33
  }
34
34
  }
package/src/index.ts CHANGED
@@ -123,6 +123,12 @@ export function useCanvas(_canvasType: ICanvasType, app?: IObject): void {
123
123
  }
124
124
  }
125
125
 
126
+ Platform.event = {
127
+ stopDefault(_origin: IObject): void { },
128
+ stopNow(_origin: IObject): void { },
129
+ stop(_origin: IObject): void { }
130
+ }
131
+
126
132
  Platform.canvas = Creator.canvas()
127
133
  Platform.conicGradientSupport = !!Platform.canvas.context.createConicGradient
128
134
  }