comparison Applications/StoneWebViewer/WebApplication/app.js @ 1562:2a4a6b967053

starting work on print
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 20 Aug 2020 18:17:38 +0200
parents cf652990abb1
children b782f78aed42
comparison
equal deleted inserted replaced
1561:cf652990abb1 1562:2a4a6b967053
114 modalPreferences: false, 114 modalPreferences: false,
115 115
116 // User preferences (stored in the local storage) 116 // User preferences (stored in the local storage)
117 settingNotDiagnostic: true, 117 settingNotDiagnostic: true,
118 settingSoftwareRendering: false, 118 settingSoftwareRendering: false,
119
120 layoutCountX: 1,
121 layoutCountY: 1,
119 122
120 viewport1Width: '100%', 123 viewport1Width: '100%',
121 viewport1Height: '100%', 124 viewport1Height: '100%',
122 viewport1Left: '0%', 125 viewport1Left: '0%',
123 viewport1Top: '0%', 126 viewport1Top: '0%',
372 if (layout == '1x1') { 375 if (layout == '1x1') {
373 this.ShowViewport(1, '0%', '0%', '100%', '100%'); 376 this.ShowViewport(1, '0%', '0%', '100%', '100%');
374 this.HideViewport(2); 377 this.HideViewport(2);
375 this.HideViewport(3); 378 this.HideViewport(3);
376 this.HideViewport(4); 379 this.HideViewport(4);
380 this.layoutCountX = 1;
381 this.layoutCountY = 1;
377 } 382 }
378 else if (layout == '2x2') { 383 else if (layout == '2x2') {
379 this.ShowViewport(1, '0%', '0%', '50%', '50%'); 384 this.ShowViewport(1, '0%', '0%', '50%', '50%');
380 this.ShowViewport(2, '50%', '0%', '50%', '50%'); 385 this.ShowViewport(2, '50%', '0%', '50%', '50%');
381 this.ShowViewport(3, '0%', '50%', '50%', '50%'); 386 this.ShowViewport(3, '0%', '50%', '50%', '50%');
382 this.ShowViewport(4, '50%', '50%', '50%', '50%'); 387 this.ShowViewport(4, '50%', '50%', '50%', '50%');
388 this.layoutCountX = 2;
389 this.layoutCountY = 2;
383 } 390 }
384 else if (layout == '2x1') { 391 else if (layout == '2x1') {
385 this.ShowViewport(1, '0%', '0%', '50%', '100%'); 392 this.ShowViewport(1, '0%', '0%', '50%', '100%');
386 this.ShowViewport(2, '50%', '0%', '50%', '100%'); 393 this.ShowViewport(2, '50%', '0%', '50%', '100%');
387 this.HideViewport(3); 394 this.HideViewport(3);
388 this.HideViewport(4); 395 this.HideViewport(4);
396 this.layoutCountX = 2;
397 this.layoutCountY = 1;
389 } 398 }
390 else if (layout == '1x2') { 399 else if (layout == '1x2') {
391 this.ShowViewport(1, '0%', '0%', '100%', '50%'); 400 this.ShowViewport(1, '0%', '0%', '100%', '50%');
392 this.ShowViewport(2, '0%', '50%', '100%', '50%'); 401 this.ShowViewport(2, '0%', '50%', '100%', '50%');
393 this.HideViewport(3); 402 this.HideViewport(3);
394 this.HideViewport(4); 403 this.HideViewport(4);
404 this.layoutCountX = 1;
405 this.layoutCountY = 2;
395 } 406 }
396 407
397 this.FitContent(); 408 this.FitContent();
398 }, 409 },
399 410