Releases: WolframResearch/CSSTools
CSSTools-1.3.1
Layout updates and bugfixes:
The project layout is simplified. The paclet structure is fully contained within the CSSTools directory. The docbuild.xml file is edited such that building docs from Eclipse+Workbench now uses the doc templates from WLDocumentationTemplates, builds them into formatted doc notebooks, and installs them to the paclet directory.
With the new layout, using the package is easier even if you don't install the .paclet file. Instead, clone this repo, then in Mathematica use PacletDirectoryLoad[<repo path>]
and Needs["CSSTools`"]
to use the functionality.
See the individual commits for bugfixes.
The exposed functions from the package have added attributes Protected and ReadProtected.
CSSTools-1.3.0
New Features:
Added CSS Images Module Level 3 -
- parsing for CSS functions linear-gradient, repeating-linear-gradient
- parsing for CSS functions radial-gradient, repeating-radial-gradient
- parsing for properties object-fit, object-position, image-orientation, image-rendering
- new WL package functions CSSLinearGradientImage and CSSRadialGradientImage
Details -
The image properties can be parsed and validated, but they do not correspond to available front end options.
The two new WL package functions are named to resemble the existing LinearGradientImage and RadialGradientImage, but the new functions follow the CSS specifications. There are new function documentation pages that detail their use.
Existing properties like "background-image", if given a CSS gradient, will resolve to one of the new WL functions. Because 1)CSS images normally fill the size of the containing block and 2)CSS gradients can depend on image size, in order to maintain similar flexibility in WL, the image size is left as a function parameter.
Bugfixes:
No bugfixes were included as part of this release.
CSSTools-1.2.1
Initial release! See Readme and other files for more info.