Wednesday, July 18, 2018

URLs for Opening MKI3D with Loaded Input Data


The new version ( v0.20 ) of MKI3D PWA can be used to display your mki3d designs in the browser.



You can create links on your pages that can open the MKI3D editor with loaded content.
The link consists of the address of the application  'https://mki1967.github.io/mki3d/mki3d_www/mki3d.html'  with a  parameter 'input' in its query string, which is an URL of the mki3d data file.

Here are some examples of links to the stages of mki3dgame directly on the GitHub:





If the 'input' parameter is releative URL, the MKI3D tries to append the URL base of its 'document.referrer'. ('document.referrer' is the page that contains the opening link.)
You can also specify the parameter 'base' that overrides the URL base of  'document.referrer'.

The following page contains examples of the use cases:

https://mki1967.github.io/mki3d/docs/examples/mki3d-data/test-url.html


(Note that you may need to close and reload MKI3D on-line twice or more  to have the progressive app updated to the new version.)

Wednesday, July 11, 2018

Setting Canvas Dimensions in MKI3D

Update to MKI3D Progressive Web App :


I have just added manual setting of the canvas dimensions on Inputs Page ('QI'):


(You should soon have it on Inputs Page of your copy of the pwa.)

Together with the display mode ('D') and saving of the image from the browser it can be used e.g. for designing of nice square pictures of icons:



The 'RESET DEFAULT' button resets the default canvas dimensions for the current window size.