view

The share plugin allows the user to share the current view type and camera orientation (yaw, pitch, roll and fov) through the url. The plugin keeps the url updated with those parameters.

configuration.json

{
    "story":
    {
        "uid": "share-story",
        "name": "Share Story",
        "slug": "share-story",
        "description": "This story demonstrates the share plugin api",
        "default": "scene-0",

        "scenes":
        [
            {
                "uid": "scene-0",
                "name": "First scene",
                "slug": "first-scene",

                "media":
                {
                    "uid": "media-0",
                    "type": "image",

                    "source":
                    {
                        "format": "equi",
                        "url": "https://cdn.forgejs.org/samples/common/panos/01-forest.jpg"
                    }
                }
            }
        ]
    },

    "plugins":
    {
        "prefix": "../../plugins/",

        "engines":
        [
            {
                "uid": "org.forgejs.share",
                "url": "Share/"
            }
        ],

        "instances":
        [
            {
                "uid": "share",
                "engine": "org.forgejs.share",
                "options":
                {
                    "format": "short"
                }
            }
        ]
    }
}

Back to samples

24th Oct 2017