-
Notifications
You must be signed in to change notification settings - Fork 4
JavascriptOptions
floorplanner edited this page Sep 13, 2010
·
31 revisions
The Floorplanner application supports numerous options. These options can change the way the application looks and the way the application behaves.
Floorplanner options must be provided when creating the Floorplanner-object. They should be passed as a Javascript hash as the first argument to the Floorplanner constructor. Note that all options are optional: a default value will be chosen if the options is not explicitly specified.
A simple example:
var fp = new Floorplanner({ project_id: 12, show_3d: true,
content_server: ‘http://cdn.floorplanner.com’, … });fp.embed(‘div_id’);
The following table lists the available options available.
| Option + default | Description |
|---|---|
content_server"http://cdn.floorplanner.com" |
The location from which the asset files should be loaded. We use Amazon’s CloudStorm for our content delivery, so you should only use "http://cdn.floorplanner.com". |
fp2d_version"74" |
The version number of the 2D application. We will try to keep this number up to date. To be sure, check the value of this parameter in the source code of our Demo page |
fp3d_version"32" |
The version number of the 3D application. We will try to keep this number up to date. To be sure, check the value of this parameter in the source code of our Demo page |
language"en" |
All texts in the interface and the names of furniture and textures will be shown in the given language. Only English "en" is supported at this moment, but other languages will soon be added. |
measurement_system"metric" |
The application can work with two different measurement systems. Use "metric" for meters/centimeters and use "imperial" for feet/inches. |
stateFloorplanner.STATE_SHOW |
The configuration of the application can be set to different states_. Use Floorplanner.STATE_EDIT to give the user access to all the functionalities like drawing walls, adding door&windows etc. Use Floorplanner.STATE_SHOW to make sure that the construction (walls, windows, doors) isn’t changed. In this state the user can still add and adjust furniture, change area color and textures. The last state Floorplanner.STATEEMBED is used to show the floor plan design as a static image. |
|
first_color, second_color no default value |
The highlight colors and the colors of the menu’s can be changed by settings these options. Use this format "#F8C663" to specify a color. |
demo_project"0" |
You can set a project as a Demo-project by setting "demo_project" to "1". When a project is a Demo, none of the modifications to a design is saved. See our Demo page for an example. |
empty_project"0" |
When you don’t want to load an existing project, but want to give your users the option to start with a blank sheet you can set the "empty_project" to "1". The created design can be saved by creating a Floorplanner account. See our Start page for an example. |
|
design_id no default value |
Set the "design_id" to load a specific design. The project that’s related to the design will be loaded, but the specified design will be shown (instead of the first design of the first floor). |