cavalion-vcl 1.1.74 → 1.1.75
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/.md +6 -3
- package/package.json +1 -1
- package/src/Control.js +1 -3
- package/src/Dragger.js +4 -58
- package/src/prototypes/App.console.js +1 -0
- package/src/prototypes/App.toast.js +1 -0
package/.md
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
* [CHANGELOG.md]() - [README.md]() -
|
|
2
|
-
* [
|
|
3
|
-
|
|
1
|
+
* [CHANGELOG.md]() - [README.md]() -[SNIPPETS.md]()
|
|
2
|
+
* [.js]() - [src](:/) - [package.json]()
|
|
3
|
+
|
|
4
|
+
# `2023/06/22` No dragend event?
|
|
5
|
+
|
|
6
|
+

|
|
4
7
|
|
|
5
8
|
# `2023/05/12` Gelijk trekken textRenders en rendering
|
|
6
9
|
|
package/package.json
CHANGED
package/src/Control.js
CHANGED
|
@@ -1488,6 +1488,7 @@ this._updateCalls = this._updateCalls || 0; this._updateCalls++;
|
|
|
1488
1488
|
ondragcancel: function() {},
|
|
1489
1489
|
ondragend: function() {
|
|
1490
1490
|
this.fire("onDragEnd", arguments);
|
|
1491
|
+
delete this._dragger;
|
|
1491
1492
|
},
|
|
1492
1493
|
ondragenter: function(evt) {
|
|
1493
1494
|
this.fire("onDragEnter", arguments);
|
|
@@ -1542,9 +1543,6 @@ this._updateCalls = this._updateCalls || 0; this._updateCalls++;
|
|
|
1542
1543
|
onmouseout: function() {
|
|
1543
1544
|
this.fire("onMouseOut", arguments);
|
|
1544
1545
|
},
|
|
1545
|
-
onmouseleave: function() {
|
|
1546
|
-
this.fire("onMouseOver", arguments);
|
|
1547
|
-
},
|
|
1548
1546
|
ontap: function() {
|
|
1549
1547
|
this.fire("onTap", arguments);
|
|
1550
1548
|
},
|
package/src/Dragger.js
CHANGED
|
@@ -16,9 +16,6 @@ define(function(require) {
|
|
|
16
16
|
|
|
17
17
|
_cursor: null,
|
|
18
18
|
|
|
19
|
-
/**
|
|
20
|
-
* Constructor
|
|
21
|
-
*/
|
|
22
19
|
constructor: function(control, overrides) {
|
|
23
20
|
this._hook = new DocumentHook(undefined, false);
|
|
24
21
|
this._control = control;
|
|
@@ -32,20 +29,12 @@ define(function(require) {
|
|
|
32
29
|
this.override(overrides);
|
|
33
30
|
}
|
|
34
31
|
},
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
*
|
|
38
|
-
*/
|
|
39
32
|
handleEvent: function(evt, type) {
|
|
40
33
|
var f = this[type];
|
|
41
34
|
if(f !== undefined) {
|
|
42
35
|
f.apply(this, arguments);
|
|
43
36
|
}
|
|
44
37
|
},
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
38
|
swapDocCursor: function() {
|
|
50
39
|
if(this.hasOwnProperty("_cursor")) {
|
|
51
40
|
var style = document.body.style;
|
|
@@ -54,17 +43,9 @@ define(function(require) {
|
|
|
54
43
|
this._cursor = cursor;
|
|
55
44
|
}
|
|
56
45
|
},
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
*/
|
|
61
46
|
getCursor: function() {
|
|
62
47
|
return this._cursor;
|
|
63
48
|
},
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
*/
|
|
68
49
|
setCursor: function(value) {
|
|
69
50
|
if( /* isdragging */ 0) {
|
|
70
51
|
document.body.style.cursor = value;
|
|
@@ -72,10 +53,6 @@ define(function(require) {
|
|
|
72
53
|
this._cursor = value;
|
|
73
54
|
}
|
|
74
55
|
},
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
*/
|
|
79
56
|
start: function(evt) {
|
|
80
57
|
HtmlElement.disableSelection();
|
|
81
58
|
this.swapDocCursor();
|
|
@@ -84,27 +61,16 @@ define(function(require) {
|
|
|
84
61
|
this._hook.activate();
|
|
85
62
|
this.createHandles(evt);
|
|
86
63
|
},
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
*/
|
|
91
64
|
end: function(evt) {
|
|
65
|
+
this._control.dispatch("dragend", evt);
|
|
92
66
|
this.destroyHandles(evt);
|
|
93
67
|
this._hook.release();
|
|
94
68
|
this.swapDocCursor();
|
|
95
69
|
HtmlElement.enableSelection();
|
|
96
70
|
},
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
*
|
|
100
|
-
*/
|
|
101
71
|
drop: function(evt) {
|
|
102
|
-
|
|
72
|
+
this._control.dispatch("dragdrop", evt); // ?
|
|
103
73
|
},
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
*
|
|
107
|
-
*/
|
|
108
74
|
keyup: function(evt) {
|
|
109
75
|
if(evt.keyCode === 27) {
|
|
110
76
|
evt.preventDefault();
|
|
@@ -112,40 +78,21 @@ define(function(require) {
|
|
|
112
78
|
this.end(evt);
|
|
113
79
|
}
|
|
114
80
|
},
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
*
|
|
118
|
-
*/
|
|
119
81
|
mouseup: function(evt) {
|
|
120
82
|
if(this._cancelled !== true) {
|
|
121
83
|
this.drop(evt);
|
|
122
84
|
this.end(evt);
|
|
123
85
|
}
|
|
124
86
|
},
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
*
|
|
128
|
-
*/
|
|
129
87
|
mousemove: function(evt) {
|
|
130
88
|
this.updateHandles(evt);
|
|
131
89
|
},
|
|
132
|
-
|
|
133
|
-
/**
|
|
134
|
-
*
|
|
135
|
-
*/
|
|
136
|
-
createHandles: function() {
|
|
137
|
-
},
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
*
|
|
141
|
-
*/
|
|
90
|
+
createHandles: function() {},
|
|
142
91
|
destroyHandles: function() {
|
|
143
92
|
},
|
|
144
93
|
|
|
145
|
-
/**
|
|
146
|
-
* This will just move the control, override to change behaviour
|
|
147
|
-
*/
|
|
148
94
|
updateHandles: function(evt) {
|
|
95
|
+
/** This will just move the control, override to change behaviour */
|
|
149
96
|
var x = this._sx;
|
|
150
97
|
var y = this._sy;
|
|
151
98
|
|
|
@@ -157,7 +104,6 @@ define(function(require) {
|
|
|
157
104
|
this._sx = evt.clientX;
|
|
158
105
|
this._sy = evt.clientY;
|
|
159
106
|
}
|
|
160
|
-
|
|
161
107
|
}
|
|
162
108
|
}));
|
|
163
109
|
|