pubo-web 1.0.21 → 1.0.24
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/pubo-web.js +1 -1
- package/es/dom/drag.d.ts +25 -0
- package/es/dom/drag.js +63 -0
- package/es/index.d.ts +2 -1
- package/es/index.js +2 -1
- package/lib/dom/drag.d.ts +25 -0
- package/lib/dom/drag.js +70 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +11 -2
- package/package.json +3 -3
package/dist/pubo-web.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["pubo-web"]=e():t["pubo-web"]=e()}(this,(function(){return function(t){var e={};function n(
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["pubo-web"]=e():t["pubo-web"]=e()}(this,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=1)}([,function(t,e,n){"use strict";n.r(e),n.d(e,"loadScript",(function(){return r})),n.d(e,"blob2text",(function(){return i})),n.d(e,"blob2base64",(function(){return u})),n.d(e,"blob2file",(function(){return s})),n.d(e,"downloadFile",(function(){return a})),n.d(e,"WebStorage",(function(){return l})),n.d(e,"WebsocketClient",(function(){return b})),n.d(e,"DragMethod",(function(){return w}));var o=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},r=function(t,e){void 0===e&&(e={});return new Promise((function(n){var r,i;if(function(){var e,n,r=document.getElementsByTagName("script");try{for(var i=o(r),u=i.next();!u.done;u=i.next()){var s=u.value;if(s.src===t)return s}}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return null}())return n(t);var u=document.createElement("script");try{for(var s=o(Object.keys(e)),a=s.next();!a.done;a=s.next()){var c=a.value;u[c]=e[c]}}catch(t){r={error:t}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return u.src=t,u.onload=function(){return n(t)},document.body.appendChild(u),"success"}))},i=function(t){return new Promise((function(e){var n=new FileReader;n.onload=function(t){return e(t.target.result)},n.readAsText(t)}))},u=function(t){return new Promise((function(e,n){var o=new FileReader;t?(o.onload=function(t){return e(t.target.result)},o.onabort=function(){return n()},o.readAsDataURL(t)):n("文件爲空!")}))},s=function(t,e,n){return new File(t,e,{type:n})},a=function(t,e){var n=document.createElement("a");n.href=t,e&&(n.download=e),n.style.position="fixed",n.style.visibility="hidden",document.body.appendChild(n),n.click(),document.body.removeChild(n)},c=function(){return(c=Object.assign||function(t){for(var e,n=1,o=arguments.length;n<o;n++)for(var r in e=arguments[n])Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t}).apply(this,arguments)},l=function(){function t(t){var e=t.type,n=void 0===e?"sessionStorage":e,o=t.key;this._key=o,this.storage=window[n]}return Object.defineProperty(t.prototype,"state",{get:function(){var t=this.storage.getItem(this._key);return t?JSON.parse(t):null},set:function(t){var e=JSON.stringify(t);this.storage.setItem(this._key,e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"key",{get:function(){return this._key},enumerable:!1,configurable:!0}),t.prototype.merge=function(t){var e=this.state;this.state=c(c({},e),t)},t.prototype.clear=function(){this.storage.removeItem(this._key)},t}(),f=function(t,e,n,o){return new(n||(n=Promise))((function(r,i){function u(t){try{a(o.next(t))}catch(t){i(t)}}function s(t){try{a(o.throw(t))}catch(t){i(t)}}function a(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(u,s)}a((o=o.apply(t,e||[])).next())}))},h=function(t,e){var n,o,r,i,u={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,o&&(r=2&i[0]?o.return:i[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,i[1])).done)return r;switch(o=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return u.label++,{value:i[1],done:!1};case 5:u.label++,o=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(r=u.trys,(r=r.length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){u=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){u.label=i[1];break}if(6===i[0]&&u.label<r[1]){u.label=r[1],r=i;break}if(r&&u.label<r[2]){u.label=r[2],u.ops.push(i);break}r[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],o=0}finally{n=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},p=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],o=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},d=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)u.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return u},y=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(d(arguments[e]));return t},v=function(){function t(){this.state={},this.ids={}}return t.prototype.on=function(t,e){if(this.state[t]||(this.state[t]=[]),"function"!=typeof e)throw new Error("第二个参数必须为function!");var n=this.state[t].push(e)-1,o=function(t){void 0===t&&(t=8);var e=function(t){return Math.random().toString(32).slice(2,2+t)};if(t<=8)return e(t);for(var n="",o=8;o<=t;o+=8)n+=e(t-o>8?8:t-o);return n}(40);return this.ids[o]={event:t,index:n},o},t.prototype.cancel=function(t){if(t){var e=this.ids[t]||{},n=e.event,o=e.index;n&&Array.isArray(this.state[n])&&this.state[n].splice(o,1)}else this.clear()},t.prototype.clear=function(){this.state.length=0},t.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return f(this,void 0,void 0,(function(){var n,o,r,i,u,s;return h(this,(function(a){switch(a.label){case 0:if(!Array.isArray(this.state[t]))return[3,8];a.label=1;case 1:a.trys.push([1,6,7,8]),n=p(this.state[t]),o=n.next(),a.label=2;case 2:return o.done?[3,5]:"function"!=typeof(r=o.value)?[3,4]:[4,r.apply(void 0,y(e))];case 3:a.sent(),a.label=4;case 4:return o=n.next(),[3,2];case 5:return[3,8];case 6:return i=a.sent(),u={error:i},[3,8];case 7:try{o&&!o.done&&(s=n.return)&&s.call(n)}finally{if(u)throw u.error}return[7];case 8:return[2]}}))}))},t}(),b=function(){function t(t){var e=t.url;this._status=0,this.url="",this.emitter=new v,this.url=e,this.connect()}return t.prototype.reconnect=function(){var t=this;3===this._status&&setTimeout((function(){t.connect()}),1e3)},t.prototype.onClose=function(){2!==this._status&&(this._status=3),this.reconnect()},t.prototype.onMessage=function(t){this.emitter.emit("message",t.data)},t.prototype.connect=function(){var t=this;this.client=new WebSocket(this.url),this.client.onclose=this.onClose.bind(this),this.client.onmessage=this.onMessage.bind(this),this.client.onopen=function(){t._status=1}},t.prototype.close=function(){this.client&&(this.client.close(),this.client=null,this._status=2)},t.prototype.send=function(t,e){var n,o=t;e&&(o=JSON.stringify(t)),null===(n=this.client)||void 0===n||n.send(o)},t}(),m=function(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var o,r,i=n.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(o=i.next()).done;)u.push(o.value)}catch(t){r={error:t}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return u},g=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(m(arguments[e]));return t};var w=function(){function t(t){var e,n,o,r,i=void 0===t?{}:t,u=i.key,s=void 0===u?"":u,a=i.onMove,c=i.onMoveEnd;this.key="",this.cache={pageX:0,pageY:0},this.key=s,this.onMouseDown=this._onMouseDown.bind(this),this.onMouseMove=(e=this._onMouseMove.bind(this),n=10,r=!0,function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];o||(o=setTimeout((function(){r=!0,o=null}),n)),r&&(r=!1,e.apply(void 0,g(t)))}),this.onMouseUp=this._onMouseUp.bind(this),this.onMove=a,this.onMoveEnd=c}return t.prototype._onMouseMove=function(t){"function"==typeof this.onMove&&(this.onMove({offsetX:t.pageX-this.cache.pageX,offsetY:t.pageY-this.cache.pageY,key:this.key}),this.cache.pageX=t.pageX,this.cache.pageY=t.pageY)},t.prototype._onMouseUp=function(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),"function"==typeof this.onMoveEnd&&this.onMoveEnd()},t.prototype._onMouseDown=function(t){"function"==typeof this.onMove&&(this.cache.pageX=t.pageX,this.cache.pageY=t.pageY,window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp))},t}()}])}));
|
package/es/dom/drag.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare type OnMove = (n: {
|
|
2
|
+
offsetX: number;
|
|
3
|
+
offsetY: number;
|
|
4
|
+
key?: string;
|
|
5
|
+
}) => void;
|
|
6
|
+
declare type OnMoveEnd = () => void;
|
|
7
|
+
interface DragMethodProps {
|
|
8
|
+
key?: string;
|
|
9
|
+
onMove?: OnMove;
|
|
10
|
+
onMoveEnd?: OnMoveEnd;
|
|
11
|
+
}
|
|
12
|
+
export declare class DragMethod {
|
|
13
|
+
private readonly key?;
|
|
14
|
+
private readonly cache;
|
|
15
|
+
private readonly onMouseMove;
|
|
16
|
+
private readonly onMouseUp;
|
|
17
|
+
readonly onMouseDown: any;
|
|
18
|
+
onMove?: OnMove;
|
|
19
|
+
onMoveEnd?: OnMoveEnd;
|
|
20
|
+
constructor({ key, onMove, onMoveEnd }?: DragMethodProps);
|
|
21
|
+
private _onMouseMove;
|
|
22
|
+
private _onMouseUp;
|
|
23
|
+
private _onMouseDown;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
package/es/dom/drag.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { throttle } from 'pubo-utils';
|
|
2
|
+
|
|
3
|
+
var DragMethod =
|
|
4
|
+
/** @class */
|
|
5
|
+
function () {
|
|
6
|
+
function DragMethod(_a) {
|
|
7
|
+
var _b = _a === void 0 ? {} : _a,
|
|
8
|
+
_c = _b.key,
|
|
9
|
+
key = _c === void 0 ? '' : _c,
|
|
10
|
+
onMove = _b.onMove,
|
|
11
|
+
onMoveEnd = _b.onMoveEnd;
|
|
12
|
+
|
|
13
|
+
this.key = '';
|
|
14
|
+
this.cache = {
|
|
15
|
+
pageX: 0,
|
|
16
|
+
pageY: 0
|
|
17
|
+
};
|
|
18
|
+
this.key = key;
|
|
19
|
+
this.onMouseDown = this._onMouseDown.bind(this);
|
|
20
|
+
this.onMouseMove = throttle(this._onMouseMove.bind(this), 1000 / 100);
|
|
21
|
+
this.onMouseUp = this._onMouseUp.bind(this);
|
|
22
|
+
this.onMove = onMove;
|
|
23
|
+
this.onMoveEnd = onMoveEnd;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
DragMethod.prototype._onMouseMove = function (e) {
|
|
27
|
+
if (typeof this.onMove !== 'function') {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
this.onMove({
|
|
32
|
+
offsetX: e.pageX - this.cache.pageX,
|
|
33
|
+
offsetY: e.pageY - this.cache.pageY,
|
|
34
|
+
key: this.key
|
|
35
|
+
});
|
|
36
|
+
this.cache.pageX = e.pageX;
|
|
37
|
+
this.cache.pageY = e.pageY;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
DragMethod.prototype._onMouseUp = function () {
|
|
41
|
+
window.removeEventListener('mousemove', this.onMouseMove);
|
|
42
|
+
window.removeEventListener('mouseup', this.onMouseUp);
|
|
43
|
+
|
|
44
|
+
if (typeof this.onMoveEnd === 'function') {
|
|
45
|
+
this.onMoveEnd();
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
DragMethod.prototype._onMouseDown = function (e) {
|
|
50
|
+
if (typeof this.onMove !== 'function') {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
this.cache.pageX = e.pageX;
|
|
55
|
+
this.cache.pageY = e.pageY;
|
|
56
|
+
window.addEventListener('mousemove', this.onMouseMove);
|
|
57
|
+
window.addEventListener('mouseup', this.onMouseUp);
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
return DragMethod;
|
|
61
|
+
}();
|
|
62
|
+
|
|
63
|
+
export { DragMethod };
|
package/es/index.d.ts
CHANGED
|
@@ -3,4 +3,5 @@ import { blob2text, blob2base64, blob2file } from './file/parser';
|
|
|
3
3
|
import { downloadFile } from './file/download';
|
|
4
4
|
import { WebStorage } from './storage';
|
|
5
5
|
import WebsocketClient from './websocket/client';
|
|
6
|
-
|
|
6
|
+
import { DragMethod } from './dom/drag';
|
|
7
|
+
export { loadScript, blob2text, blob2base64, blob2file, downloadFile, WebStorage, WebsocketClient, DragMethod };
|
package/es/index.js
CHANGED
|
@@ -3,4 +3,5 @@ import { blob2text, blob2base64, blob2file } from './file/parser';
|
|
|
3
3
|
import { downloadFile } from './file/download';
|
|
4
4
|
import { WebStorage } from './storage';
|
|
5
5
|
import WebsocketClient from './websocket/client';
|
|
6
|
-
|
|
6
|
+
import { DragMethod } from './dom/drag';
|
|
7
|
+
export { loadScript, blob2text, blob2base64, blob2file, downloadFile, WebStorage, WebsocketClient, DragMethod };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare type OnMove = (n: {
|
|
2
|
+
offsetX: number;
|
|
3
|
+
offsetY: number;
|
|
4
|
+
key?: string;
|
|
5
|
+
}) => void;
|
|
6
|
+
declare type OnMoveEnd = () => void;
|
|
7
|
+
interface DragMethodProps {
|
|
8
|
+
key?: string;
|
|
9
|
+
onMove?: OnMove;
|
|
10
|
+
onMoveEnd?: OnMoveEnd;
|
|
11
|
+
}
|
|
12
|
+
export declare class DragMethod {
|
|
13
|
+
private readonly key?;
|
|
14
|
+
private readonly cache;
|
|
15
|
+
private readonly onMouseMove;
|
|
16
|
+
private readonly onMouseUp;
|
|
17
|
+
readonly onMouseDown: any;
|
|
18
|
+
onMove?: OnMove;
|
|
19
|
+
onMoveEnd?: OnMoveEnd;
|
|
20
|
+
constructor({ key, onMove, onMoveEnd }?: DragMethodProps);
|
|
21
|
+
private _onMouseMove;
|
|
22
|
+
private _onMouseUp;
|
|
23
|
+
private _onMouseDown;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
package/lib/dom/drag.js
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DragMethod = void 0;
|
|
7
|
+
|
|
8
|
+
var pubo_utils_1 = require("pubo-utils");
|
|
9
|
+
|
|
10
|
+
var DragMethod =
|
|
11
|
+
/** @class */
|
|
12
|
+
function () {
|
|
13
|
+
function DragMethod(_a) {
|
|
14
|
+
var _b = _a === void 0 ? {} : _a,
|
|
15
|
+
_c = _b.key,
|
|
16
|
+
key = _c === void 0 ? '' : _c,
|
|
17
|
+
onMove = _b.onMove,
|
|
18
|
+
onMoveEnd = _b.onMoveEnd;
|
|
19
|
+
|
|
20
|
+
this.key = '';
|
|
21
|
+
this.cache = {
|
|
22
|
+
pageX: 0,
|
|
23
|
+
pageY: 0
|
|
24
|
+
};
|
|
25
|
+
this.key = key;
|
|
26
|
+
this.onMouseDown = this._onMouseDown.bind(this);
|
|
27
|
+
this.onMouseMove = pubo_utils_1.throttle(this._onMouseMove.bind(this), 1000 / 100);
|
|
28
|
+
this.onMouseUp = this._onMouseUp.bind(this);
|
|
29
|
+
this.onMove = onMove;
|
|
30
|
+
this.onMoveEnd = onMoveEnd;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
DragMethod.prototype._onMouseMove = function (e) {
|
|
34
|
+
if (typeof this.onMove !== 'function') {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
this.onMove({
|
|
39
|
+
offsetX: e.pageX - this.cache.pageX,
|
|
40
|
+
offsetY: e.pageY - this.cache.pageY,
|
|
41
|
+
key: this.key
|
|
42
|
+
});
|
|
43
|
+
this.cache.pageX = e.pageX;
|
|
44
|
+
this.cache.pageY = e.pageY;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
DragMethod.prototype._onMouseUp = function () {
|
|
48
|
+
window.removeEventListener('mousemove', this.onMouseMove);
|
|
49
|
+
window.removeEventListener('mouseup', this.onMouseUp);
|
|
50
|
+
|
|
51
|
+
if (typeof this.onMoveEnd === 'function') {
|
|
52
|
+
this.onMoveEnd();
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
DragMethod.prototype._onMouseDown = function (e) {
|
|
57
|
+
if (typeof this.onMove !== 'function') {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
this.cache.pageX = e.pageX;
|
|
62
|
+
this.cache.pageY = e.pageY;
|
|
63
|
+
window.addEventListener('mousemove', this.onMouseMove);
|
|
64
|
+
window.addEventListener('mouseup', this.onMouseUp);
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
return DragMethod;
|
|
68
|
+
}();
|
|
69
|
+
|
|
70
|
+
exports.DragMethod = DragMethod;
|
package/lib/index.d.ts
CHANGED
|
@@ -3,4 +3,5 @@ import { blob2text, blob2base64, blob2file } from './file/parser';
|
|
|
3
3
|
import { downloadFile } from './file/download';
|
|
4
4
|
import { WebStorage } from './storage';
|
|
5
5
|
import WebsocketClient from './websocket/client';
|
|
6
|
-
|
|
6
|
+
import { DragMethod } from './dom/drag';
|
|
7
|
+
export { loadScript, blob2text, blob2base64, blob2file, downloadFile, WebStorage, WebsocketClient, DragMethod };
|
package/lib/index.js
CHANGED
|
@@ -9,7 +9,7 @@ var __importDefault = this && this.__importDefault || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", {
|
|
10
10
|
value: true
|
|
11
11
|
});
|
|
12
|
-
exports.WebsocketClient = exports.WebStorage = exports.downloadFile = exports.blob2file = exports.blob2base64 = exports.blob2text = exports.loadScript = void 0;
|
|
12
|
+
exports.DragMethod = exports.WebsocketClient = exports.WebStorage = exports.downloadFile = exports.blob2file = exports.blob2base64 = exports.blob2text = exports.loadScript = void 0;
|
|
13
13
|
|
|
14
14
|
var load_script_1 = require("./load-script");
|
|
15
15
|
|
|
@@ -61,4 +61,13 @@ Object.defineProperty(exports, "WebStorage", {
|
|
|
61
61
|
|
|
62
62
|
var client_1 = __importDefault(require("./websocket/client"));
|
|
63
63
|
|
|
64
|
-
exports.WebsocketClient = client_1["default"];
|
|
64
|
+
exports.WebsocketClient = client_1["default"];
|
|
65
|
+
|
|
66
|
+
var drag_1 = require("./dom/drag");
|
|
67
|
+
|
|
68
|
+
Object.defineProperty(exports, "DragMethod", {
|
|
69
|
+
enumerable: true,
|
|
70
|
+
get: function get() {
|
|
71
|
+
return drag_1.DragMethod;
|
|
72
|
+
}
|
|
73
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pubo-web",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"node": ">=8.0.0"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"pubo-utils": "^1.0.
|
|
22
|
+
"pubo-utils": "^1.0.24",
|
|
23
23
|
"roslib": "^1.2.0"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "ab542b78f98cfab6319cc8eceedcef446eea8cf8"
|
|
26
26
|
}
|