diff --git a/DESCRIPTION b/DESCRIPTION index 297677d..ebc30e0 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: mooring Title: Design and Model Oceanographic Moorings -Version: 0.1.9 +Version: 0.1.10 Authors@R: person(given = "Dan", family = "Kelley", @@ -12,7 +12,7 @@ Description: Calculates the response of oceanographic moorings to horizontal cur Depends: R (>= 4.3.0), S7 Imports: - bslib, + bslib, shiny Suggests: knitr, diff --git a/NEWS.md b/NEWS.md index 97e8ebb..e173f2b 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,7 @@ +# mooring 0.1.10 + +* Improve anchor drawing (issue #66). + # mooring 0.1.9 * Improve `clamped()` example. diff --git a/R/oo.R b/R/oo.R index 01a1b86..97e7b0e 100644 --- a/R/oo.R +++ b/R/oo.R @@ -274,7 +274,8 @@ S7::method(`plot`, mooring:::mooringS7) <- function( # draw anchor (only makes sense for shape diagrams) if (which == "shape") { waterDepth <- attr(m, "waterDepth") - A <- waterDepth - max(depth(m)) + n <- length(m@elements) + A <- m@elements[[n]]@height anchorSymbol <- list(x = sqrt(3.0 / 4.0) * c(-A, 0, A), y = waterDepth - c(0, A, 0)) polygon(anchorSymbol, col = colStagnant) } diff --git a/docs/404.html b/docs/404.html index 34a2f22..e2b2488 100644 --- a/docs/404.html +++ b/docs/404.html @@ -32,7 +32,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/articles/example.html b/docs/articles/example.html index 9201b5c..e412913 100644 --- a/docs/articles/example.html +++ b/docs/articles/example.html @@ -33,7 +33,7 @@ mooring - 0.1.9 + 0.1.10 @@ -96,7 +96,7 @@

A Practical Example

Dan Kelley (https://orcid.org/0000-0001-7808-5911)

-

2024-06-07

+

2024-06-11

Source: vignettes/example.Rmd diff --git a/docs/articles/index.html b/docs/articles/index.html index 6efe450..05d00f6 100644 --- a/docs/articles/index.html +++ b/docs/articles/index.html @@ -17,7 +17,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/articles/mooring.html b/docs/articles/mooring.html index 6da32a0..d9b1905 100644 --- a/docs/articles/mooring.html +++ b/docs/articles/mooring.html @@ -33,7 +33,7 @@ mooring - 0.1.9 + 0.1.10 @@ -96,7 +96,7 @@

The mooring package

Dan Kelley (https://orcid.org/0000-0001-7808-5911)

-

2024-06-07

+

2024-06-11

Source: vignettes/mooring.Rmd diff --git a/docs/articles/mooring_elements.html b/docs/articles/mooring_elements.html index 6aeccfa..e0b91b3 100644 --- a/docs/articles/mooring_elements.html +++ b/docs/articles/mooring_elements.html @@ -33,7 +33,7 @@ mooring - 0.1.9 + 0.1.10 @@ -96,7 +96,7 @@

Default Values for Mooring Elements

Dan Kelley (https://orcid.org/0000-0001-7808-5911)

-

2024-06-07

+

2024-06-11

Source: vignettes/mooring_elements.Rmd diff --git a/docs/articles/mooring_model.html b/docs/articles/mooring_model.html index 74a3689..d4d82e5 100644 --- a/docs/articles/mooring_model.html +++ b/docs/articles/mooring_model.html @@ -33,7 +33,7 @@ mooring - 0.1.9 + 0.1.10 @@ -96,7 +96,7 @@

Mooring Model

Dan Kelley (https://orcid.org/0000-0001-7808-5911)

-

2024-06-07

+

2024-06-11

Source: vignettes/mooring_model.Rmd diff --git a/docs/articles/object_orientation.html b/docs/articles/object_orientation.html index 2cf70df..806386f 100644 --- a/docs/articles/object_orientation.html +++ b/docs/articles/object_orientation.html @@ -33,7 +33,7 @@ mooring - 0.1.9 + 0.1.10 @@ -96,7 +96,7 @@

Object-orientation Scheme

Dan Kelley (https://orcid.org/0000-0001-7808-5911)

-

2024-06-07

+

2024-06-11

Source: vignettes/object_orientation.Rmd diff --git a/docs/articles/table_tennis.html b/docs/articles/table_tennis.html index a1c0c2f..f5c722d 100644 --- a/docs/articles/table_tennis.html +++ b/docs/articles/table_tennis.html @@ -33,7 +33,7 @@ mooring - 0.1.9 + 0.1.10 @@ -96,7 +96,7 @@

Test Case with Table Tennis Ball

Dan Kelley (https://orcid.org/0000-0001-7808-5911)

-

2024-06-07

+

2024-06-11

Source: vignettes/table_tennis.Rmd diff --git a/docs/authors.html b/docs/authors.html index 31ab3ed..0bd8f87 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -17,7 +17,7 @@ mooring - 0.1.9 + 0.1.10 @@ -88,13 +88,13 @@

Citation

Kelley D (2024). mooring: Design and Model Oceanographic Moorings. -R package version 0.1.9, https://dankelley.github.io/mooring/. +R package version 0.1.10, https://dankelley.github.io/mooring/.

@Manual{,
   title = {mooring: Design and Model Oceanographic Moorings},
   author = {Dan Kelley},
   year = {2024},
-  note = {R package version 0.1.9},
+  note = {R package version 0.1.10},
   url = {https://dankelley.github.io/mooring/},
 }
diff --git a/docs/index.html b/docs/index.html index d24c8a1..769e458 100644 --- a/docs/index.html +++ b/docs/index.html @@ -33,7 +33,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/news/index.html b/docs/news/index.html index fca6314..4e072d6 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -17,7 +17,7 @@ mooring - 0.1.9 + 0.1.10 @@ -72,6 +72,10 @@

Changelog

Source: NEWS.md +
+ +
diff --git a/docs/reference/RMS.html b/docs/reference/RMS.html index dc612dc..18989f8 100644 --- a/docs/reference/RMS.html +++ b/docs/reference/RMS.html @@ -17,7 +17,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/anchor.html b/docs/reference/anchor.html index 09573f7..047cd17 100644 --- a/docs/reference/anchor.html +++ b/docs/reference/anchor.html @@ -19,7 +19,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/anchorWeight.html b/docs/reference/anchorWeight.html index 8ed5537..f1e4e48 100644 --- a/docs/reference/anchorWeight.html +++ b/docs/reference/anchorWeight.html @@ -17,7 +17,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/angle.html b/docs/reference/angle.html index 622e9c7..fd1c062 100644 --- a/docs/reference/angle.html +++ b/docs/reference/angle.html @@ -18,7 +18,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/app1.html b/docs/reference/app1.html index 6266a79..0a1c2a3 100644 --- a/docs/reference/app1.html +++ b/docs/reference/app1.html @@ -19,7 +19,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/app2.html b/docs/reference/app2.html index e08cc79..646e978 100644 --- a/docs/reference/app2.html +++ b/docs/reference/app2.html @@ -21,7 +21,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/app2bs.html b/docs/reference/app2bs.html index 002109f..4cc47a6 100644 --- a/docs/reference/app2bs.html +++ b/docs/reference/app2bs.html @@ -21,7 +21,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/area.html b/docs/reference/area.html index e3f0b87..29196bf 100644 --- a/docs/reference/area.html +++ b/docs/reference/area.html @@ -25,7 +25,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/buoyancy.html b/docs/reference/buoyancy.html index 3ce4263..db8fcd0 100644 --- a/docs/reference/buoyancy.html +++ b/docs/reference/buoyancy.html @@ -21,7 +21,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/buoyancyCalculation.html b/docs/reference/buoyancyCalculation.html index 79704c5..c57d31a 100644 --- a/docs/reference/buoyancyCalculation.html +++ b/docs/reference/buoyancyCalculation.html @@ -17,7 +17,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/chain.html b/docs/reference/chain.html index 661833f..9850cca 100644 --- a/docs/reference/chain.html +++ b/docs/reference/chain.html @@ -19,7 +19,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/clamped.html b/docs/reference/clamped.html index f4d8ea3..b2147d1 100644 --- a/docs/reference/clamped.html +++ b/docs/reference/clamped.html @@ -23,7 +23,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/connector.html b/docs/reference/connector.html index 390b603..7e7726b 100644 --- a/docs/reference/connector.html +++ b/docs/reference/connector.html @@ -19,7 +19,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/depth.html b/docs/reference/depth.html index 89b8014..ced6e03 100644 --- a/docs/reference/depth.html +++ b/docs/reference/depth.html @@ -18,7 +18,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/drag.html b/docs/reference/drag.html index 2f9e56b..c05b566 100644 --- a/docs/reference/drag.html +++ b/docs/reference/drag.html @@ -20,7 +20,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/findElement.html b/docs/reference/findElement.html index b73de36..38f1d56 100644 --- a/docs/reference/findElement.html +++ b/docs/reference/findElement.html @@ -22,7 +22,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/float.html b/docs/reference/float.html index 4fa28f3..357dd09 100644 --- a/docs/reference/float.html +++ b/docs/reference/float.html @@ -17,7 +17,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/height.html b/docs/reference/height.html index 411c22a..f96deac 100644 --- a/docs/reference/height.html +++ b/docs/reference/height.html @@ -17,7 +17,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/index.html b/docs/reference/index.html index a649e63..de73dc8 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -17,7 +17,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/instrument.html b/docs/reference/instrument.html index c5d9897..16ea5c9 100644 --- a/docs/reference/instrument.html +++ b/docs/reference/instrument.html @@ -18,7 +18,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/is.anchor.html b/docs/reference/is.anchor.html index ceca912..3f88a4f 100644 --- a/docs/reference/is.anchor.html +++ b/docs/reference/is.anchor.html @@ -17,7 +17,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/is.chain.html b/docs/reference/is.chain.html index 57f845d..3a69a4b 100644 --- a/docs/reference/is.chain.html +++ b/docs/reference/is.chain.html @@ -17,7 +17,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/is.connector.html b/docs/reference/is.connector.html index 3e9d91a..a5fda33 100644 --- a/docs/reference/is.connector.html +++ b/docs/reference/is.connector.html @@ -17,7 +17,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/is.float.html b/docs/reference/is.float.html index 2b4e79d..3014b3f 100644 --- a/docs/reference/is.float.html +++ b/docs/reference/is.float.html @@ -17,7 +17,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/is.instrument.html b/docs/reference/is.instrument.html index 321f062..339cd77 100644 --- a/docs/reference/is.instrument.html +++ b/docs/reference/is.instrument.html @@ -17,7 +17,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/is.misc.html b/docs/reference/is.misc.html index f162974..55b2075 100644 --- a/docs/reference/is.misc.html +++ b/docs/reference/is.misc.html @@ -17,7 +17,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/is.mooring.html b/docs/reference/is.mooring.html index 3e4a1aa..1a3f5ae 100644 --- a/docs/reference/is.mooring.html +++ b/docs/reference/is.mooring.html @@ -23,7 +23,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/is.mooringElement.html b/docs/reference/is.mooringElement.html index fb4e15f..b97e906 100644 --- a/docs/reference/is.mooringElement.html +++ b/docs/reference/is.mooringElement.html @@ -19,7 +19,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/is.release.html b/docs/reference/is.release.html index f4ed814..5ddf263 100644 --- a/docs/reference/is.release.html +++ b/docs/reference/is.release.html @@ -17,7 +17,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/is.wire.html b/docs/reference/is.wire.html index c826aca..33cb0fe 100644 --- a/docs/reference/is.wire.html +++ b/docs/reference/is.wire.html @@ -17,7 +17,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/knockdown.html b/docs/reference/knockdown.html index 69e2cad..f5abfd1 100644 --- a/docs/reference/knockdown.html +++ b/docs/reference/knockdown.html @@ -24,7 +24,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/misc.html b/docs/reference/misc.html index 31fac06..046df59 100644 --- a/docs/reference/misc.html +++ b/docs/reference/misc.html @@ -24,7 +24,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/mooring-package.html b/docs/reference/mooring-package.html index fcbff4d..d58eae1 100644 --- a/docs/reference/mooring-package.html +++ b/docs/reference/mooring-package.html @@ -17,7 +17,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/mooring.html b/docs/reference/mooring.html index 941eb90..df1c600 100644 --- a/docs/reference/mooring.html +++ b/docs/reference/mooring.html @@ -20,7 +20,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/mooringDebug.html b/docs/reference/mooringDebug.html index 55e6541..2d340b9 100644 --- a/docs/reference/mooringDebug.html +++ b/docs/reference/mooringDebug.html @@ -17,7 +17,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/mooringElements.html b/docs/reference/mooringElements.html index 405c891..3b8b160 100644 --- a/docs/reference/mooringElements.html +++ b/docs/reference/mooringElements.html @@ -20,7 +20,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/plot.html b/docs/reference/plot.html index 51477d2..00b34fc 100644 --- a/docs/reference/plot.html +++ b/docs/reference/plot.html @@ -17,7 +17,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/release.html b/docs/reference/release.html index 1c6c1f0..644bb27 100644 --- a/docs/reference/release.html +++ b/docs/reference/release.html @@ -19,7 +19,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/segmentize.html b/docs/reference/segmentize.html index ba0c501..5908f3b 100644 --- a/docs/reference/segmentize.html +++ b/docs/reference/segmentize.html @@ -19,7 +19,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/summary.html b/docs/reference/summary.html index ae7a690..0d8c68d 100644 --- a/docs/reference/summary.html +++ b/docs/reference/summary.html @@ -18,7 +18,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/summaryMooring.html b/docs/reference/summaryMooring.html index a2be4af..466e3b7 100644 --- a/docs/reference/summaryMooring.html +++ b/docs/reference/summaryMooring.html @@ -17,7 +17,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/tension.html b/docs/reference/tension.html index 93f12a5..49120e1 100644 --- a/docs/reference/tension.html +++ b/docs/reference/tension.html @@ -18,7 +18,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/wire.html b/docs/reference/wire.html index 7199f2e..9a01076 100644 --- a/docs/reference/wire.html +++ b/docs/reference/wire.html @@ -18,7 +18,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/x.html b/docs/reference/x.html index ba2e04a..fd37557 100644 --- a/docs/reference/x.html +++ b/docs/reference/x.html @@ -17,7 +17,7 @@ mooring - 0.1.9 + 0.1.10 diff --git a/docs/reference/z.html b/docs/reference/z.html index 2571731..8d30bf8 100644 --- a/docs/reference/z.html +++ b/docs/reference/z.html @@ -18,7 +18,7 @@ mooring - 0.1.9 + 0.1.10