API users can now create a frameless browser object in Bluescape workspaces.
To create a frameless browser:
-
Create a browser object using Rest or GraphQL.
-
Set the frameless property to
true
. -
In the selected workspace, the browser object does not have the following:
- Title bar
- URL bar
- Element toolbar
Note: The frameless property can only be set when an object is created. The rotation tool and corner resize anchors are hidden for frameless objects. Existing browser elements with the frameless property set to true
will not display the Title bar, URL bar, and Element toolbar.
Examples
As a REST curl call:
curl --location --request POST 'https://api.apps.us.bluescape.com/v3/workspaces/{workspaceId}/elements' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <yourToken>' \
--data '{
"type": "Browser",
"style":{"frameless":true},
"transform":{"x":0, "y":0},
"url": "https://www.bluescape.com/"
}'
As a GraphQL mutation:
endpoint: https://api.apps.us.bluescape.com/v3/graphql
mutation createBrowserExample {
createBrowser(workspaceId: "I99zElvTnOVZtLISix-D", input: {
style: {frameless: true},
transform:{x:0, y:0},
url: "https://www.bluescape.com/"
}) {
id
}
}