hart-estate-widget 4.4.34 → 4.4.36
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 +7 -2
- package/build/api.js +1 -1
- package/build/createWidget.js +1 -1
- package/build/plugins/MultifloorMapPlugin.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -230,6 +230,7 @@ Here you can see a list of accessible options and examples of usage. There are a
|
|
230
230
|
// "autoRotate" - Auto rotate enable/disable button (panorama tab only)
|
231
231
|
// "minusScale" - Scale minus button (panorama tab only)
|
232
232
|
// "plusScale" - Scale plus button (panorama tab only)
|
233
|
+
// "furnished" - Furnished / bareshell button (panorama tab only)
|
233
234
|
// "prevPanorama" - Prev panorama button (panorama tab only)
|
234
235
|
// "nextPanorama" - Next panorama button (panorama tab only)
|
235
236
|
// "2d" - 2D tab button
|
@@ -262,6 +263,8 @@ Here you can see a list of accessible options and examples of usage. There are a
|
|
262
263
|
"isMultifloorMap": false,
|
263
264
|
// Automatic crop transparent part of images by rasterizer (may lag a bit)
|
264
265
|
"isNeedCropMultifloorMap": true,
|
266
|
+
// Precision of multifloor map crop
|
267
|
+
"multiFloorMapCropPrecision": 100,
|
265
268
|
|
266
269
|
// Move panorama control buttons to the application context
|
267
270
|
"isAbsolutePanoramaControls": false,
|
@@ -278,6 +281,8 @@ Here you can see a list of accessible options and examples of usage. There are a
|
|
278
281
|
// 'original' - use original_plan_img
|
279
282
|
// 'miniplan' - use miniplan_img
|
280
283
|
"2DTabBehavior": "miniplan",
|
284
|
+
// Show the "hide furniture" button with a separate switch
|
285
|
+
"isHiddenFurnitureSwitchVisible": true,
|
281
286
|
|
282
287
|
// Ruler font settings
|
283
288
|
"rulerFontSettings": {
|
@@ -369,8 +374,8 @@ Here you can see a list of accessible options and examples of usage. There are a
|
|
369
374
|
"panoramaMiniplanType": "svg",
|
370
375
|
|
371
376
|
// Overrides for interactive opacity
|
372
|
-
"interactiveHoverOpacity": 0.65
|
373
|
-
"interactiveActiveOpacity": 0.8
|
377
|
+
"interactiveHoverOpacity": 0.65,
|
378
|
+
"interactiveActiveOpacity": 0.8,
|
374
379
|
|
375
380
|
// Widget external integrations
|
376
381
|
"integrations": {
|
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.36"}}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)}}const a=e.j;export{a as Api};
|