hart-estate-widget 4.4.13 → 4.4.15
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
CHANGED
@@ -281,11 +281,54 @@ Here you can see a list of accessible options and examples of usage. There are a
|
|
281
281
|
],
|
282
282
|
// Legacy camera fovs by scale texts (available: 0.5x, 1x, 2x)
|
283
283
|
"scales": ["1x", "2x", "0.5x"],
|
284
|
-
// Custom link icons
|
284
|
+
// Custom link icons
|
285
285
|
"linkIcons": {
|
286
286
|
"door": "https://site.com/door.png",
|
287
287
|
"doorHover": "https://site.com/door-hover.png",
|
288
|
-
|
288
|
+
"spot": "https://site.com/spot.png",
|
289
|
+
"spotHover": "https://site.com/spot-hover.png",
|
290
|
+
"stairUp": "https://site.com/stairUp.png",
|
291
|
+
"stairUpHover": "https://site.com/stairUp-hover.png",
|
292
|
+
"stairDown": "https://site.com/stairDown.png",
|
293
|
+
"stairDownHover": "https://site.com/stairDown-hover.png",
|
294
|
+
},
|
295
|
+
// Custom UI icons
|
296
|
+
"uiIcons": {
|
297
|
+
"tabs.2D": "https://site.com/2D.png",
|
298
|
+
"tabs.3D": "https://site.com/3D.png",
|
299
|
+
"tabs.360": "https://site.com/360.png",
|
300
|
+
"tabs.roomIndexer": "https://site.com/roomIndexer.png",
|
301
|
+
"room.kidroom": "https://site.com/kidroom.png",
|
302
|
+
"room.balcony": "https://site.com/balcony.png",
|
303
|
+
"room.gym": "https://site.com/gym.png",
|
304
|
+
"room.bathroom": "https://site.com/bathroom.png",
|
305
|
+
"room.bedroom": "https://site.com/bedroom.png",
|
306
|
+
"room.garage": "https://site.com/garage.png",
|
307
|
+
"room.hallway": "https://site.com/hallway.png",
|
308
|
+
"room.kitchen": "https://site.com/kitchen.png",
|
309
|
+
"room.office": "https://site.com/office.png",
|
310
|
+
"room.living": "https://site.com/living.png",
|
311
|
+
"room.storage": "https://site.com/storage.png",
|
312
|
+
"room.terrace": "https://site.com/terrace.png",
|
313
|
+
"room.toilet": "https://site.com/toilet.png",
|
314
|
+
"float.close": "https://site.com/close.png",
|
315
|
+
"float.extend": "https://site.com/extend.png",
|
316
|
+
"float.multiMap": "https://site.com/multiMap.png",
|
317
|
+
"float.shrink": "https://site.com/shrink.png",
|
318
|
+
"float.fullscreen": "https://site.com/fullscreen.png",
|
319
|
+
"instructions.move": "https://site.com/move.png",
|
320
|
+
"instructions.research": "https://site.com/research.png",
|
321
|
+
"instructions.createPoints": "https://site.com/createPoints.png",
|
322
|
+
"instructions.deletePoints": "https://site.com/deletePoints.png",
|
323
|
+
"controls.rulerOn": "https://site.com/rulerOn.png",
|
324
|
+
"controls.rulerOff": "https://site.com/rulerOff.png",
|
325
|
+
"controls.prevPanorama": "https://site.com/prevPanorama.png",
|
326
|
+
"controls.nextPanorama": "https://site.com/nextPanorama.png",
|
327
|
+
"controls.minusScale": "https://site.com/minusScale.png",
|
328
|
+
"controls.plusScale": "https://site.com/plusScale.png",
|
329
|
+
"controls.autoRotateOn": "https://site.com/autoRotateOn.png",
|
330
|
+
"controls.autoRotateOff": "https://site.com/autoRotateOff.png",
|
331
|
+
"controls.arrowLeft": "https://site.com/arrowLeft.png"
|
289
332
|
},
|
290
333
|
// Panorama fade time in seconds
|
291
334
|
"panoramaFadeTime": 0.5,
|
package/build/api.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var r={d:(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o:(r,e)=>Object.prototype.hasOwnProperty.call(r,e)},e={};r.d(e,{j:()=>t});class t{baseUrl;constructor(r){this.baseUrl=r}get headers(){return{Accept:"application/json;widget-version=4.4.
|
1
|
+
var r={d:(e,t)=>{for(var a in t)r.o(t,a)&&!r.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},o:(r,e)=>Object.prototype.hasOwnProperty.call(r,e)},e={};r.d(e,{j:()=>t});class t{baseUrl;constructor(r){this.baseUrl=r}get headers(){return{Accept:"application/json;widget-version=4.4.15"}}loadCrmWidgetData=async r=>{if(!r)return this.makeError(404,"No crmPlanId!");try{const e=await this.fetch(`/api/crm/plans/${r}/v4/widget`);return e.ok?e.json():this.makeErrorFromResponse(e,"Failed to get CRM Plan widget data!")}catch(r){return this.makeError(520,r.message)}};loadWidgetData=async r=>{if(!r)return this.makeError(404,"No planId!");try{const e=await this.fetch(`/api/plans/${r}/v4/widget`);return e.ok?e.json():this.makeErrorFromResponse(e,"Failed to get Plan widget data!")}catch(r){return this.makeError(520,r.message)}};loadJson=async r=>{try{return(await fetch(r)).json()}catch(r){return this.makeError(500,r.message)}};makeError(r,e="Unknown error"){return{error:{status:r,message:e}}}async makeErrorFromResponse(r,e){if("application/json"===r.headers.get("Content-Type")){const e=await r.json();if("message"in e&&"string"==typeof e.message)return this.makeError(r.status,e.message)}return this.makeError(r.status,e)}fetch(r,e={headers:this.headers}){return fetch(`${this.baseUrl}${r}`,e)}}var a=e.j;export{a as Api};
|