Difference between revisions of "ACP Diagram Sizes"

(15 intermediate revisions by 4 users not shown)
Line 1: Line 1:
ACP sizes the viewable diagram based on the viewable area in Analytica, which is determined by the size of the top-level module. An easy way to find out the size of a window is using Typescript (Ctrl + '). Type <code>profile Module_Name</code>. The module size is in '''diagState''': x, x, x, width, height, x. The diagState numbers include the Analytica window scrollbars (17 pixels tall or wide), even though they are not part of the viewable area.
+
[[Category: Analytica Cloud Platform]]
  
The [[CloudPlayerStyles Attribute Values|CloudPlayerStyle Attributes]] screen_width and screen_height do not size the viewable diagram but the entire Flash canvas.
+
[[Analytica Cloud Platform (ACP)]] uses a fixed size window within a web browser window. Usually, the ACP window is the size of the main model diagram in Analytica, with some extra space for the logo, title, and navigation tabs at the top -- and on the left if showing Outline or Tabs on the left. In Analytica you can resize any diagram window just by dragging its bottom right corner.  So it's possible that the window of a submodule could be larger than the main model and so some of the window won't be immediately visible.  Here are ways to deal with this:
 +
# In Google Chrome, Microsoft Edge and Internet Explorer (but not Firefox or Safari) users can zoom out the view to see more of the diagram in Browser window. In these browsers, use keyboard shortcut Ctrl -  or Ctrl + mouse scroll-wheel back to zoom out (and Ctrl+  or Ctrl + mouse scroll-wheel forward to zoom back in).  On a Mac use ⌘- or ⌘+. Browsers also offer menu commands for zooming.
 +
# You can also enable scrollbars within the ACP diagram frame, by setting the [[AcpStyles |AcpStyles Attribute]] <code>add_scroll_bars:Yes</code>.
 +
# But, it's much better for your end users if you design your ACP model interface windows to work well inside a browser using a minimum screen resolution so that they can see the whole interface without having to zoom or  scroll.  The next section explains how.  
  
You should design to display resolution, which is not necessarily the given resolution. Many browsers now use higher numbers of pixels per inch so while their resolutions can be very large, their display resolutions will be much smaller. For example, Retina Macbooks have resolutions of 2560x1600 (13") and 2880x1800 (15"), but display at 1280x800 and 1440x900, respectively.
+
==== Set the ACP Diagram size ====
 +
In Analytica, you can resize a diagram window simply by dragging its bottom right corner.  But, how large should it be?  It's best to make sure it will fit within a browser window on the smallest resolution screen your users are likely to use.
  
These are the maximum viewable window sizes by screen resolution and ACP Options from a full-screen browser window.
+
The easiest way is to use the [[ACP Style Library]]. (When you're designing a model for ACP, you should definitely include this standard library in your model.)  Open the library in your model, and open the '''Navigation styles''' section. Select the window size from the '''Minimum Resolution''' choice menu:
+
 
==Maximum Window Size by Screen Resolution and ACP Options==
+
[[File:Min resolution in ACP Navigation style.jpg|400px]]
{| class="wikitable"
+
 
 +
When you make your selection it automatically resizes the main model window allowing space for tabs down the left or across the top if you have selected one of those options from the '''Navigation style''' menu. (Do that first before selecting the '''Minimum Resolution'''.)
 +
 
 +
The default "Custom" option allows you to manually size your top diagram window.
 +
 
 +
===Maximum Recommended Diagram Sizes===
 +
These are the recommended diagram window sizes for common screen resolutions for ACP, assuming the end user has put their web browser in full-screen model. 
 +
 
 +
:{| class="wikitable"
 
|-
 
|-
! Resolution !! Vertical Tabs !! Horizontal Tabs
+
! Screen Resolution !! Tabs down the left !! Tabs across the top
 
|-
 
|-
 
! '''1920 x 1080'''  
 
! '''1920 x 1080'''  
Line 20: Line 32:
 
|-
 
|-
 
! '''1366 x 768'''  
 
! '''1366 x 768'''  
| 1085 x 539 || 1221 x 539
+
| 1075 x 540 || 1350 x 505
 
|-
 
|-
 
!1280 x 1024
 
!1280 x 1024
Line 34: Line 46:
 
|1010 x 490
 
|1010 x 490
 
|}
 
|}
<nowiki>*</nowiki>This dimension is maximized in a full-screen process of Analytica
+
You should design to display resolution, which is not necessarily a screen's given resolution. Many browsers now use higher ppi (pixels per inch) so while their resolutions can be very large, their display resolutions will be much smaller. For example, Retina Macbooks have resolutions of 2560x1600 (13") and 2880x1800 (15"), but display at 1280x800 and 1440x900, respectively.
*As of January 2012 the most popular Screen resolution is 1366 x 768
+
 
*[http://www.w3schools.com/browsers/browsers_display.asp W3Schools.com] table of screen resolution statistics
+
<tip title="Note">The recommended diagram window size depends on which navigation style you choose, Tabs down the left or Tabs across the top. Tabs across the top take up 30 pixels of vertical screen space and Tabs down the left take up 270 pixels of horizontal screen space.</tip>
*The TESS model is 994x775.
+
 
 +
=== Note for Geeks on Diagstate ===
 +
Analytica stores the diagram size in the '''DiagState''' attribute of the module. To see this, open [[Typescript]] (Ctrl + ') and type in command <code>profile <module></code>. This displays a number of attributes of the module, including '''diagState''': x, x, x, width, height, x. The diagState numbers include the Analytica window scroll bars shown below, but they are not part of the viewable area -- only parts of the model contained in the viewable area (in the image the lighter gray area containing the grid) will be displayed in ACP.
 +
 
 +
:[[File:Analyticascrollbars.jpg]]
 +
 
 +
<!--<tip title="Note">The [[CloudPlayerStyles Attribute Values|CloudPlayerStyle Attributes]] <code>screen_width</code> and <code>screen_height</code> do not size the viewable diagram but the entire Flash canvas. Setting these attribute values will not affect the ACP diagram size.</tip>-->
 +
 
 +
=== See Also ===
 +
* [[ACP]]
 +
* [[AcpStyles]]
 +
* [[ACP Style Library]]
 +
* [http://www.w3schools.com/browsers/browsers_display.asp W3Schools.com] table of screen resolution statistics

Revision as of 09:27, 20 June 2022


Analytica Cloud Platform (ACP) uses a fixed size window within a web browser window. Usually, the ACP window is the size of the main model diagram in Analytica, with some extra space for the logo, title, and navigation tabs at the top -- and on the left if showing Outline or Tabs on the left. In Analytica you can resize any diagram window just by dragging its bottom right corner. So it's possible that the window of a submodule could be larger than the main model and so some of the window won't be immediately visible. Here are ways to deal with this:

  1. In Google Chrome, Microsoft Edge and Internet Explorer (but not Firefox or Safari) users can zoom out the view to see more of the diagram in Browser window. In these browsers, use keyboard shortcut Ctrl - or Ctrl + mouse scroll-wheel back to zoom out (and Ctrl+ or Ctrl + mouse scroll-wheel forward to zoom back in). On a Mac use ⌘- or ⌘+. Browsers also offer menu commands for zooming.
  2. You can also enable scrollbars within the ACP diagram frame, by setting the AcpStyles Attribute add_scroll_bars:Yes.
  3. But, it's much better for your end users if you design your ACP model interface windows to work well inside a browser using a minimum screen resolution so that they can see the whole interface without having to zoom or scroll. The next section explains how.

Set the ACP Diagram size

In Analytica, you can resize a diagram window simply by dragging its bottom right corner. But, how large should it be? It's best to make sure it will fit within a browser window on the smallest resolution screen your users are likely to use.

The easiest way is to use the ACP Style Library. (When you're designing a model for ACP, you should definitely include this standard library in your model.) Open the library in your model, and open the Navigation styles section. Select the window size from the Minimum Resolution choice menu:

Min resolution in ACP Navigation style.jpg

When you make your selection it automatically resizes the main model window allowing space for tabs down the left or across the top if you have selected one of those options from the Navigation style menu. (Do that first before selecting the Minimum Resolution.)

The default "Custom" option allows you to manually size your top diagram window.

Maximum Recommended Diagram Sizes

These are the recommended diagram window sizes for common screen resolutions for ACP, assuming the end user has put their web browser in full-screen model.

Screen Resolution Tabs down the left Tabs across the top
1920 x 1080 1635 x 840 1905 x 810
1600 x 900 1315 x 660 1585 x 635
1366 x 768 1075 x 540 1350 x 505
1280 x 1024 990 x 785 1265 x 755
1280 x 800 990 x 555 1265 x 525
1024 x 768 735 x 520 1010 x 490

You should design to display resolution, which is not necessarily a screen's given resolution. Many browsers now use higher ppi (pixels per inch) so while their resolutions can be very large, their display resolutions will be much smaller. For example, Retina Macbooks have resolutions of 2560x1600 (13") and 2880x1800 (15"), but display at 1280x800 and 1440x900, respectively.

Note
The recommended diagram window size depends on which navigation style you choose, Tabs down the left or Tabs across the top. Tabs across the top take up 30 pixels of vertical screen space and Tabs down the left take up 270 pixels of horizontal screen space.

Note for Geeks on Diagstate

Analytica stores the diagram size in the DiagState attribute of the module. To see this, open Typescript (Ctrl + ') and type in command profile <module>. This displays a number of attributes of the module, including diagState: x, x, x, width, height, x. The diagState numbers include the Analytica window scroll bars shown below, but they are not part of the viewable area -- only parts of the model contained in the viewable area (in the image the lighter gray area containing the grid) will be displayed in ACP.

Analyticascrollbars.jpg


See Also

Comments


You are not allowed to post comments.