diff --git a/dist/index.js b/dist/index.js index f57f468..512dc94 100644 --- a/dist/index.js +++ b/dist/index.js @@ -22981,12 +22981,18 @@ exports.createContext = Script.createContext = function (context) { Object.defineProperty(exports, "__esModule", { value: true }); +exports.start = undefined; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; -var handTrack = require('../node_modules/handtrackjs/dist/handtrack.min.js'); +var _handtrackMin = require('../node_modules/handtrackjs/dist/handtrack.min.js'); + +var handTrack = _interopRequireWildcard(_handtrackMin); + require('hammer-simulator'); +function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } + var start = async function start(element, video, canvas) { var _ref = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}, _ref$model = _ref.model, diff --git a/src/index.js b/src/index.js index fdd65b6..20b5d2e 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,5 @@ -const handTrack = require('../node_modules/handtrackjs/dist/handtrack.min.js'); -require('hammer-simulator'); +import * as handTrack from '../node_modules/handtrackjs/dist/handtrack.min.js'; +import 'hammer-simulator'; const start = async (element, video, canvas, {