Giter Site home page Giter Site logo

5inf / redmine_advancedimage Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 69 KB

This macro provides images with subtitles and anotation capabilites for Redmine Wiki pages

License: GNU Affero General Public License v3.0

Ruby 56.20% JavaScript 32.90% CSS 10.89%

redmine_advancedimage's People

Contributors

5inf avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

redmine_advancedimage's Issues

Plugin Load fails in Redmine 5.0.5

/usr/src/redmine# bin/rails zeitwerk:check
/usr/src/redmine/plugins/redmine_filelinks/init.rb:93: warning: key :title is duplicated and overwritten on line 93
I, [2023-03-23T13:14:01.898272 #63] INFO -- : Redmine LaTeX MathJax Macro
Hold on, I am eager loading the application.
rails aborted!
NameError: uninitialized constant RedmineAdvancedimage::Hooks::ViewLayoutsBaseHtmlHeadHook

parent.const_get(cname, false)
      ^^^^^^^^^^

Tasks: TOP => zeitwerk:check
(See full trace by running task with --trace)

Box in figure macro ignoring color parameter

{{figure(test.png,label=test,title=A test image,width=200px,height=400px,border=20)
arrow((10,10),90,20,"red",2)
arrow((20,10),90,20,"green",3)
arrow((30,10),90,20,"blue",5)
box((50,20),(30,40),"red",2)
circle((50,50),20,"green",5)
text((10,55),"text","red")
}}

Changing box to box((50,20),(30,40),"blue",2) the box is still red.

Option to follow the image aspect ratio for the outer SVG in figure macro

When adding an image one has to explicitly specify a height and width parameter.
While the displayed image itself does not get distorted, the outer SVG image is scaled to the given height and width, leaving unnecessary whitespace in the SVG output image.
It would be better to allow setting only width or height parameters or max-height and max-width parameters.

To allow setting such the dimensions of the image to be displayed need to be known beforehand to scale the surrounding SVG image accordingly, while still allowing added borders. To figure out how to obtain the aspect ratio this question was raised in the Redmine forum at https://www.redmine.org/boards/4/topics/60048

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.