hart-estate-widget 4.4.33 → 4.4.35
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 +27 -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
@@ -262,6 +262,8 @@ Here you can see a list of accessible options and examples of usage. There are a
|
|
262
262
|
"isMultifloorMap": false,
|
263
263
|
// Automatic crop transparent part of images by rasterizer (may lag a bit)
|
264
264
|
"isNeedCropMultifloorMap": true,
|
265
|
+
// Precision of multifloor map crop
|
266
|
+
"multiFloorMapCropPrecision": 100,
|
265
267
|
|
266
268
|
// Move panorama control buttons to the application context
|
267
269
|
"isAbsolutePanoramaControls": false,
|
@@ -279,6 +281,29 @@ Here you can see a list of accessible options and examples of usage. There are a
|
|
279
281
|
// 'miniplan' - use miniplan_img
|
280
282
|
"2DTabBehavior": "miniplan",
|
281
283
|
|
284
|
+
// Ruler font settings
|
285
|
+
"rulerFontSettings": {
|
286
|
+
"fontSize": "38px",
|
287
|
+
"fontWeight": "Bold",
|
288
|
+
"lineHeight": "1",
|
289
|
+
"fontFamily": "Roboto Flex",
|
290
|
+
"textAlign": "center",
|
291
|
+
"borderRadius": 55,
|
292
|
+
"scale": 1.5,
|
293
|
+
"width": 256,
|
294
|
+
"height": 128,
|
295
|
+
"textFillColor": "#0008",
|
296
|
+
"textHoverColor": "#000f",
|
297
|
+
"fillColor": "#fff8",
|
298
|
+
"hoverColor": "#fffa",
|
299
|
+
"feetsPositionY": 100,
|
300
|
+
"feetsPrecision": 2,
|
301
|
+
"feetsFormat": "$0 ft",
|
302
|
+
"metersPositionY": 50,
|
303
|
+
"metersPrecision": 2,
|
304
|
+
"metersFormat": "$0 m",
|
305
|
+
},
|
306
|
+
|
282
307
|
// Base camera persective FOV
|
283
308
|
"cameraFov": 75,
|
284
309
|
// Custom camera fovs by base FOV Scale
|
@@ -346,8 +371,8 @@ Here you can see a list of accessible options and examples of usage. There are a
|
|
346
371
|
"panoramaMiniplanType": "svg",
|
347
372
|
|
348
373
|
// Overrides for interactive opacity
|
349
|
-
"interactiveHoverOpacity": 0.65
|
350
|
-
"interactiveActiveOpacity": 0.8
|
374
|
+
"interactiveHoverOpacity": 0.65,
|
375
|
+
"interactiveActiveOpacity": 0.8,
|
351
376
|
|
352
377
|
// Widget external integrations
|
353
378
|
"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.35"}}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};
|