5inf / redmine_advancedimage Goto Github PK
View Code? Open in Web Editor NEWThis macro provides images with subtitles and anotation capabilites for Redmine Wiki pages
License: GNU Affero General Public License v3.0
This macro provides images with subtitles and anotation capabilites for Redmine Wiki pages
License: GNU Affero General Public License v3.0
/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)
{{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.
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
The image tags created by the {figure} macro are missing the alt attribute.
Usually the alt attribute contains the filename of the image.
Especially the Lightbox 2 plugin (https://github.com/paginagmbh/redmine_lightbox2) relies on this information to work correctly
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.