@leafer-game/miniapp 1.2.2 → 1.3.1

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/dist/miniapp.cjs CHANGED
@@ -5,6 +5,7 @@ var robot = require('@leafer-in/robot');
5
5
  var state = require('@leafer-in/state');
6
6
  var animate = require('@leafer-in/animate');
7
7
  var motionPath = require('@leafer-in/motion-path');
8
+ var find = require('@leafer-in/find');
8
9
  var core = require('@leafer/core');
9
10
 
10
11
  const systemInfo = wx.getSystemInfoSync();
@@ -61,3 +62,9 @@ Object.keys(motionPath).forEach(function (k) {
61
62
  get: function () { return motionPath[k]; }
62
63
  });
63
64
  });
65
+ Object.keys(find).forEach(function (k) {
66
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
67
+ enumerable: true,
68
+ get: function () { return find[k]; }
69
+ });
70
+ });
@@ -3,6 +3,7 @@ export * from '@leafer-in/robot';
3
3
  export * from '@leafer-in/state';
4
4
  export * from '@leafer-in/animate';
5
5
  export * from '@leafer-in/motion-path';
6
+ export * from '@leafer-in/find';
6
7
  import { LeaferImage, Platform, MatrixHelper } from '@leafer/core';
7
8
 
8
9
  const systemInfo = wx.getSystemInfoSync();
@@ -1 +1 @@
1
- export*from"@leafer-ui/miniapp";export*from"@leafer-in/robot";export*from"@leafer-in/state";export*from"@leafer-in/animate";export*from"@leafer-in/motion-path";import{LeaferImage as t,Platform as e,MatrixHelper as r}from"@leafer/core";"ios"===wx.getSystemInfoSync().platform&&(t.prototype.getPattern=function(t,o,i,a){const n=e.canvas.createPattern(this.view,o),{width:f,height:h}=t;this.width===f&&this.height===h||(i||(i=r.get()),r.scale(i,f/this.width,h/this.height));try{i&&n.setTransform&&(n.setTransform(i),i=null)}catch(t){}return a&&(a.transform=i),n});
1
+ export*from"@leafer-ui/miniapp";export*from"@leafer-in/robot";export*from"@leafer-in/state";export*from"@leafer-in/animate";export*from"@leafer-in/motion-path";export*from"@leafer-in/find";import{LeaferImage as t,Platform as e,MatrixHelper as r}from"@leafer/core";"ios"===wx.getSystemInfoSync().platform&&(t.prototype.getPattern=function(t,o,i,a){const n=e.canvas.createPattern(this.view,o),{width:f,height:h}=t;this.width===f&&this.height===h||(i||(i=r.get()),r.scale(i,f/this.width,h/this.height));try{i&&n.setTransform&&(n.setTransform(i),i=null)}catch(t){}return a&&(a.transform=i),n});
@@ -1 +1 @@
1
- "use strict";var e=require("@leafer-ui/miniapp"),t=require("@leafer-in/robot"),r=require("@leafer-in/state"),o=require("@leafer-in/animate"),n=require("@leafer-in/motion-path"),a=require("@leafer/core");"ios"===wx.getSystemInfoSync().platform&&(a.LeaferImage.prototype.getPattern=function(e,t,r,o){const n=a.Platform.canvas.createPattern(this.view,t),{width:i,height:c}=e;this.width===i&&this.height===c||(r||(r=a.MatrixHelper.get()),a.MatrixHelper.scale(r,i/this.width,c/this.height));try{r&&n.setTransform&&(n.setTransform(r),r=null)}catch(e){}return o&&(o.transform=r),n}),Object.keys(e).forEach((function(t){"default"===t||Object.prototype.hasOwnProperty.call(exports,t)||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return e[t]}})})),Object.keys(t).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return t[e]}})})),Object.keys(r).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return r[e]}})})),Object.keys(o).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return o[e]}})})),Object.keys(n).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return n[e]}})}));
1
+ "use strict";var e=require("@leafer-ui/miniapp"),t=require("@leafer-in/robot"),r=require("@leafer-in/state"),n=require("@leafer-in/animate"),o=require("@leafer-in/motion-path"),a=require("@leafer-in/find"),i=require("@leafer/core");"ios"===wx.getSystemInfoSync().platform&&(i.LeaferImage.prototype.getPattern=function(e,t,r,n){const o=i.Platform.canvas.createPattern(this.view,t),{width:a,height:c}=e;this.width===a&&this.height===c||(r||(r=i.MatrixHelper.get()),i.MatrixHelper.scale(r,a/this.width,c/this.height));try{r&&o.setTransform&&(o.setTransform(r),r=null)}catch(e){}return n&&(n.transform=r),o}),Object.keys(e).forEach((function(t){"default"===t||Object.prototype.hasOwnProperty.call(exports,t)||Object.defineProperty(exports,t,{enumerable:!0,get:function(){return e[t]}})})),Object.keys(t).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return t[e]}})})),Object.keys(r).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return r[e]}})})),Object.keys(n).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return n[e]}})})),Object.keys(o).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return o[e]}})})),Object.keys(a).forEach((function(e){"default"===e||Object.prototype.hasOwnProperty.call(exports,e)||Object.defineProperty(exports,e,{enumerable:!0,get:function(){return a[e]}})}));