From 6c9deed05b32aeed4c96e05c292b7c2eea3d3c8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Vauclair?= Date: Thu, 18 Jan 2024 17:55:07 +0100 Subject: [PATCH 1/3] Add setter for Mapbox::domain --- plotly/src/layout/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plotly/src/layout/mod.rs b/plotly/src/layout/mod.rs index 6026e6ed..2688e117 100644 --- a/plotly/src/layout/mod.rs +++ b/plotly/src/layout/mod.rs @@ -15,6 +15,7 @@ use crate::{ }, private::{NumOrString, NumOrStringCollection}, }; +use crate::common::Domain; #[derive(Serialize, Debug, Clone)] #[serde(rename_all = "lowercase")] @@ -1370,6 +1371,8 @@ pub struct Mapbox { bearing: Option, /// Sets the latitude and longitude of the center of the map. center: Option
, + /// Sets the domain within which the mapbox will be drawn. + domain: Option, /// Sets the pitch angle of the map in degrees, where `0` means /// perpendicular to the surface of the map. pitch: Option, From 5a1961fa001766a1a7fafdd15751fc7f4087595e Mon Sep 17 00:00:00 2001 From: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com> Date: Fri, 10 May 2024 12:50:57 +0200 Subject: [PATCH 2/3] apply cargo fmt Signed-off-by: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com> --- plotly/src/layout/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plotly/src/layout/mod.rs b/plotly/src/layout/mod.rs index 2688e117..55e2dfd8 100644 --- a/plotly/src/layout/mod.rs +++ b/plotly/src/layout/mod.rs @@ -7,6 +7,7 @@ use plotly_derive::FieldSetter; use serde::{Serialize, Serializer}; use update_menu::UpdateMenu; +use crate::common::Domain; use crate::{ color::Color, common::{ @@ -15,7 +16,6 @@ use crate::{ }, private::{NumOrString, NumOrStringCollection}, }; -use crate::common::Domain; #[derive(Serialize, Debug, Clone)] #[serde(rename_all = "lowercase")] From ecb9c08ecccb8a06b52dc8270d8131cfb408bd4d Mon Sep 17 00:00:00 2001 From: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com> Date: Fri, 10 May 2024 12:52:17 +0200 Subject: [PATCH 3/3] update CHANGELOG Signed-off-by: Andrei Gherghescu <8067229+andrei-ng@users.noreply.github.com> --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index bbc3a1de..cbdca818 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a ## [0.8.5] - 2024-xx-xx ### Added - [[#181](https://github.com/igiagkiozis/plotly/pull/181)] Fix compilation error when mixing the crate with `askama/with-axum` by adding `with-axum` feature. +- [[#180](https://github.com/igiagkiozis/plotly/pull/180)] Add setter for `Mapbox::domain`. - [[#163](https://github.com/plotly/plotly.rs/pull/163)] Added `DensityMapbox`. - [[#153](https://github.com/igiagkiozis/plotly/pull/153)] Added `LayoutScene`.