Slide prototype

This commit is contained in:
yflory 2021-03-18 18:12:26 +01:00
parent 13e41d6587
commit dd6cf8c74b
37 changed files with 42 additions and 2 deletions

View file

@ -1089,7 +1089,7 @@ define([
changes: parseChanges(obj.changes), changes: parseChanges(obj.changes),
changesIndex: ooChannel.cpIndex || 0, changesIndex: ooChannel.cpIndex || 0,
locks: getUserLock(getId()), locks: getUserLock(getId()),
excelAdditionalInfo: null excelAdditionalInfo: obj.excelAdditionalInfo
}, null, function (err, hash) { }, null, function (err, hash) {
if (err) { if (err) {
return void console.error(err); return void console.error(err);
@ -1164,6 +1164,17 @@ define([
} }
} }
break; break;
case "cursor":
cursor.updateCursor({
type: "cursor",
messages: [{
cursor: obj.cursor,
time: +new Date(),
user: myUniqueOOId,
useridoriginal: myOOId
}]
});
break;
case "getLock": case "getLock":
handleLock(obj, send); handleLock(obj, send);
break; break;
@ -1498,6 +1509,12 @@ define([
APP.loadingImage = 0; APP.loadingImage = 0;
APP.getImageURL = function(name, callback) { APP.getImageURL = function(name, callback) {
if (name && /^data:image/.test(name)) {
var b = Util.dataURIToBlob(name);
var url = URL.createObjectURL(blob);
return void callback(url);
}
var mediasSources = getMediasSources(); var mediasSources = getMediasSources();
var data = mediasSources[name]; var data = mediasSources[name];
@ -2528,6 +2545,15 @@ define([
initializing = false; initializing = false;
common.openPadChat(APP.onLocal); common.openPadChat(APP.onLocal);
if (!readOnly) {
common.openCursorChannel(APP.onLocal);
cursor = common.createCursor(APP.onLocal);
cursor.onCursorUpdate(function (data) {
if (!data || !data.cursor) { return; }
ooChannel.send(data.cursor);
});
}
if (APP.startWithTemplate) { if (APP.startWithTemplate) {
var template = APP.startWithTemplate; var template = APP.startWithTemplate;
loadTemplate(template.href, template.password, template.content); loadTemplate(template.href, template.password, template.content);

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 378 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 92 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 357 KiB

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
AscCommon.g_defaultThemes = ["Blank","Basic","Classic","Official","Green leaf","Lines","Office","Safari","Dotted","Corner","Turtle"];

Binary file not shown.

After

Width:  |  Height:  |  Size: 704 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 837 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,001 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 870 B

View file

@ -30,6 +30,7 @@ define([
cursor: client.cursor cursor: client.cursor
}; };
chan.sendMsg(JSON.stringify(data)); chan.sendMsg(JSON.stringify(data));
console.error(data);
ctx.emit('MESSAGE', data, chan.clients.filter(function (cl) { ctx.emit('MESSAGE', data, chan.clients.filter(function (cl) {
return cl !== clientId; return cl !== clientId;
})); }));