hart-estate-widget 2.5.22 → 2.5.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -32
- package/build/widget.bundle.js +1 -1
- package/build/widget.module.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -44,7 +44,7 @@ const createWidget = async (logoUrl) => {
|
|
44
44
|
const planId = searchParams.get("id");
|
45
45
|
|
46
46
|
const planData = await widgetApiHandler.loadWidgetData(planId);
|
47
|
-
const options = { // the parameters you need
|
47
|
+
const options = { // the parameters you need
|
48
48
|
...planData.parsed,
|
49
49
|
API_URL: WIDGET_API_URL,
|
50
50
|
rotationMode: rotationModes.DEFAULT,
|
@@ -106,18 +106,16 @@ body
|
|
106
106
|
|
107
107
|
|
108
108
|
## Parameters:
|
109
|
-
Here you can see list of accessable options and example of using. There are accessable values of each option below in the block "Types of elements"
|
110
109
|
```js
|
111
110
|
{
|
112
111
|
// elements
|
113
112
|
tabs: ['rotation', 'panorama'], // included elements
|
114
113
|
|
115
114
|
// logo
|
116
|
-
logo: '', // path
|
115
|
+
logo: '', // path to logo
|
117
116
|
logoUrl: '', // link opened when logo is clicked
|
118
117
|
|
119
118
|
// localization
|
120
|
-
// accessable languages are in "Types of elements"
|
121
119
|
locale: 'en', // ISO 639 language code
|
122
120
|
|
123
121
|
// width/height
|
@@ -126,11 +124,9 @@ Here you can see list of accessable options and example of using. There are acce
|
|
126
124
|
resizable: true, // automatically resize the widget to the size of the container when the window is resized
|
127
125
|
|
128
126
|
// values
|
129
|
-
rotationMode: '', // mode of operation for plan images
|
127
|
+
rotationMode: 'default', // mode of operation for plan images
|
130
128
|
panoramaFov: 75, // camera field of view angle for panoramic tour
|
131
129
|
enableCameraTransitionBetweenPanoramas: true, // enable / disable camera rotation transition between panoramas (if CameraPoint.Rotation.Yaw is defined in json)
|
132
|
-
instructionVisible: true, // enable / disable modal of instruction in 3D tour
|
133
|
-
autoRotate: false, // enable / disable auto rotation in 3D tour
|
134
130
|
primaryCameraPointId: null, // primary camera point id for panorama tour
|
135
131
|
floors: [ // array of floors, contains 360° images and panoramic tour data
|
136
132
|
{
|
@@ -148,28 +144,6 @@ Here you can see list of accessable options and example of using. There are acce
|
|
148
144
|
mainText: '#HEX', // text color for buttons, elements contrasting with the main color
|
149
145
|
},
|
150
146
|
|
151
|
-
// copyRight: all text in widget
|
152
|
-
dictionaryOverrides: {
|
153
|
-
"create-points": "Create a point", // text for create point
|
154
|
-
"delete-points": "Remove point", // text for delete point
|
155
|
-
"research-plan": "Research plan", // text for research plan
|
156
|
-
"rotate-plan": "Rotate plan", // text for rotate plan
|
157
|
-
"ok": "Ok", // button text
|
158
|
-
"made-by-link": "https://getfloorplan.com/", // watermark link
|
159
|
-
"made-by-text": "getfloorplan.com", // watermark text
|
160
|
-
"instructions-hint-text": "", // additional text on the bottom of instruction modal
|
161
|
-
"floor": "$0 floor" // floor text
|
162
|
-
},
|
163
|
-
|
164
|
-
API_URL: '', // api url
|
165
|
-
|
166
|
-
// branding
|
167
|
-
branding: {
|
168
|
-
company_url: '', // link opened when logo is clicked (more priority than logoUrl)
|
169
|
-
company_name: '', // watermark text (more priority than dictionaryOverrides['made-by-text'])
|
170
|
-
widget_language: 'en', // ISO 639 language code
|
171
|
-
logo_path: '', // path to logo
|
172
|
-
|
173
147
|
// panorama icons
|
174
148
|
panoramaIcons: {
|
175
149
|
spot: 'URL', // icon for camera points in one room
|
@@ -200,8 +174,5 @@ floors[0].panorama.type: [
|
|
200
174
|
locale: [
|
201
175
|
'ru', // Russian language
|
202
176
|
'en', // English language
|
203
|
-
'es', // Spanish language
|
204
|
-
'de', // German language
|
205
|
-
'ja', // Japanese language
|
206
177
|
],
|
207
178
|
```
|