@colisweb/rescript-toolkit 5.9.6 → 5.9.8

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colisweb/rescript-toolkit",
3
- "version": "5.9.6",
3
+ "version": "5.9.8",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "clean": "rescript clean",
@@ -31,6 +31,7 @@ module Coordinates = {
31
31
  lng: float,
32
32
  }
33
33
  let toGmaps = (t: t): gmaps => {lat: t.latitude, lng: t.longitude}
34
+ let toHere = (t: t): Here.coordinates => {lat: t.latitude, lng: t.longitude}
34
35
  let fromGmaps = (gmaps: gmaps) => {
35
36
  latitude: gmaps.lat,
36
37
  longitude: gmaps.lng,
@@ -119,10 +119,12 @@ module Map = {
119
119
  type instance
120
120
  type object
121
121
  type objectLayer
122
+ type padding = {top?: int, left?: int, bottom?: int, right?: int}
122
123
 
123
124
  type options = {
124
125
  zoom: int,
125
126
  center: coordinates,
127
+ padding?: padding,
126
128
  }
127
129
 
128
130
  @new
@@ -187,6 +189,8 @@ module Map = {
187
189
 
188
190
  @send
189
191
  external resize: (t, unit) => unit = "resize"
192
+ @send
193
+ external setPadding: (t, int, int, int, int) => unit = "setPadding"
190
194
  }
191
195
  module ViewModel = {
192
196
  type t