efront 4.26.1 → 4.27.0
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/#/345/233/275/351/231/205/345/214/226.yml +18 -0
- package/coms/basic/couple.js +78 -0
- package/coms/basic/data.js +14 -1
- package/coms/basic/mark.js +3 -65
- package/coms/basic/mark_test.js +4 -1
- package/coms/basic/size.js +3 -2
- package/coms/compile/Javascript.js +4 -1
- package/coms/compile/Javascript_test.js +4 -0
- package/coms/compile/autoenum.js +2 -2
- package/coms/compile/autoenum_test.js +3 -3
- package/coms/frame/ChatRTC.js +136 -0
- package/coms/frame/chat-rtc.xht +275 -0
- package/coms/frame/chat.html +6 -0
- package/coms/frame/chat.js +246 -9
- package/coms/frame/chat.less +4 -0
- package/coms/zimoli/drag.js +9 -4
- package/coms/zimoli/fullscreen.js +7 -1
- package/coms/zimoli/move.js +6 -2
- package/package.json +1 -1
- package/public/efront.js +1 -1
|
@@ -13,7 +13,7 @@ var fullscreen = {
|
|
|
13
13
|
return hasTarget();
|
|
14
14
|
}(),
|
|
15
15
|
is() {
|
|
16
|
-
if(/Android|iPad|iPhone/i.test(navigator.userAgent)){
|
|
16
|
+
if (/Android|iPad|iPhone/i.test(navigator.userAgent)) {
|
|
17
17
|
return hasTarget();
|
|
18
18
|
}
|
|
19
19
|
if (/chrome/i.test(navigator.userAgent)) {//webkit
|
|
@@ -31,6 +31,12 @@ var fullscreen = {
|
|
|
31
31
|
exec(element) {
|
|
32
32
|
requestFullScreen(element);
|
|
33
33
|
},
|
|
34
|
+
open() {
|
|
35
|
+
if (!this.is()) this.change();
|
|
36
|
+
},
|
|
37
|
+
close() {
|
|
38
|
+
this.exit();
|
|
39
|
+
},
|
|
34
40
|
change() {
|
|
35
41
|
if (this.is()) this.exit(alert);
|
|
36
42
|
else this.exec(arguments[0] || document.documentElement);
|
package/coms/zimoli/move.js
CHANGED
|
@@ -94,7 +94,7 @@ function move(offsetLeft, offsetTop, preventOverflow, keepOriginIfPosible) {
|
|
|
94
94
|
}
|
|
95
95
|
return [offsetLeft, offsetTop];
|
|
96
96
|
}
|
|
97
|
-
move.getPosition = function (target) {
|
|
97
|
+
var getPosition = move.getPosition = function (target) {
|
|
98
98
|
var {
|
|
99
99
|
offsetLeft,
|
|
100
100
|
offsetTop,
|
|
@@ -132,7 +132,11 @@ var setPosition = move.setPosition = function (target, [x, y]) {
|
|
|
132
132
|
var offsetTop = getOffsetLeft(y, offsetHeight, clientHeight);
|
|
133
133
|
move.call(target, offsetLeft, offsetTop, undefined, false);
|
|
134
134
|
};
|
|
135
|
-
|
|
135
|
+
var setSize = move.setSize = function (target, [w, h]) {
|
|
136
|
+
var p = getPosition(target);
|
|
137
|
+
css(target, { width: w, height: h });
|
|
138
|
+
setPosition(target, p);
|
|
139
|
+
};
|
|
136
140
|
var fixPosition = move.fixPosition = function (target) {
|
|
137
141
|
var computed = getComputedStyle(target);
|
|
138
142
|
var {
|