Skip to content

Releases: versatiles-org/versatiles-svg-renderer

v0.7.3

04 Apr 16:05
c11ab96

Choose a tag to compare

Release v0.7.3

Bug Fixes

  • deps: update devDependencies to latest versions
  • simplify upgrade script in package.json
  • deps: update jsdom and npm-check-updates to latest versions
  • update Playwright container image to v1.59.1

Chores

  • deps: bump the action group with 2 updates

v0.7.2

12 Mar 14:40
d7c11a4

Choose a tag to compare

Release v0.7.2

Bug Fixes

  • update SVGRenderer to use xlink:href for and elements
  • add id attribute to element in SVG output
  • update Node.js version to 24 in CI workflows

v0.7.1

12 Mar 13:57
19b2b13

Choose a tag to compare

Release v0.7.1

Features

  • add dev script for render comparison
  • enhance SVG rasterization by supporting multiple Playwright browsers
  • enhance render comparison output with improved HTML structure and styling
  • add Inkscape installation and enhance render comparison output in GitHub Pages workflow
  • update render comparison HTML title and add description for experimental feature
  • update render comparison link text to indicate experimental status
  • set HOME environment variable for render comparison step

Bug Fixes

  • update HTML table structure for rendered images in test-icons
  • refactor location handling and improve HTML output for icon rendering
  • add TypeScript error suppression comments for deep type instantiation
  • swap test and typecheck scripts in package.json
  • simplify MapLibre GL JS map initialization options

Code Refactoring

  • rename render comparison script

Documentation

  • update README to include additional supported layer types and new renderLabels option

CI/CD

  • rename GitHub workflow

Styles

  • format code

v0.7.0

11 Mar 01:29
4966f09

Choose a tag to compare

Release v0.7.0

Features

  • enhance SVG rendering with sprite sheet and symbol definitions for improved icon handling
  • add test-icons script for SVG rendering and rasterization
  • add support for SDF filters in SVG rendering for colorable icons
  • implement SDF icon rendering with color filters and halo effects

Bug Fixes

  • repair feature handling by splitting MultiPoint into individual Point features
  • use retina sprites
  • update check script to include typecheck step
  • update tsconfig.json to exclude 'dev' directory from compilation
  • handle undefined spritePair in loadSpriteAtlas function
  • update format script to include log level warning for prettier

v0.6.0

10 Mar 16:10
23eadfa

Choose a tag to compare

Release v0.6.0

Features

  • add drawSymbols method for rendering text with styles in SVG
  • add support for rendering symbols with dynamic text in SVG
  • add drawSymbols method and SymbolStyle interface for enhanced SVG rendering
  • add option to include text labels in SVG rendering and update related UI components
  • implement icon rendering support in SVG with sprite atlas integration
  • update rendering methods to include layer IDs
  • add support for rendering symbol layers with text and icons in SVG
  • enhance SVG rendering tests with support for symbol and icon layers
  • add tests for loadSpriteAtlas function to validate sprite loading and error handling
  • enable hash support in map configuration for improved URL handling

Bug Fixes

  • add viewport meta tag for better mobile rendering
  • update notice about text label rendering and collision detection in SVG export panel
  • update default font family in SVG rendering to include Helvetica and Arial
  • update label for checkbox to include icons in SVG export options

Chores

  • deps-dev: bump the npm group with 8 updates
  • deps: bump actions/upload-artifact in the action group
  • update sub dependencies

v0.5.2

18 Feb 19:06
d2e407c

Choose a tag to compare

Release v0.5.2

Code Refactoring

  • remove scale parameter from SVG rendering components

v0.5.1

18 Feb 18:45
3d217fd

Choose a tag to compare

Release v0.5.1

Bug Fixes

  • allow sanitized HTML as attribution
  • add coverage reporters to Vitest configuration

Tests

  • SVGExportControl and rendering tests
  • enhance renderMap tests with fill, line, and circle layer scenarios

v0.5.0

18 Feb 16:57
54e1d67

Choose a tag to compare

Release v0.5.0

Features

  • add copyright notice to SVG export panel and style it
  • enhance SVG export panel with attribution notice and styling
  • update TypeScript configurations, enhance ESLint rules, and improve bundle analysis script

Bug Fixes

  • update .prettierignore to include README.md and ensure package.json is properly formatted

Code Refactoring

  • migrate RenderJob and related types to renderer_svg module, remove obsolete types.ts
  • reorganize types and move segment-related functions to svg_path module
  • move helper to processor/sources
  • move processor/source one level up
  • replace Point2D with tuple for center coordinates in rendering and testing modules
  • replace Point2D with tuple for translate coordinates in renderer and types
  • move style_layer module to processor directory and update imports
  • move geometry module to sources directory and update imports
  • update color handling to use MaplibreColor across renderer and styles
  • implement Color class with various constructors and methods for color manipulation
  • move d2h function outside of Color class for better accessibility
  • extract getFeatures function for improved feature retrieval
  • update loadGeoJSONSource to use GeoJSON type for improved type safety
  • update loadVectorSource to use VectorSourceSpec for improved type safety
  • replace magic numbers with VTFeatureType constants for improved readability
  • simplify evaluate calls in StyleLayer for improved clarity
  • enhance error logging in getTile function for improved debugging
  • streamline parameter handling in renderToSVG for improved readability
  • improve error messages in getRasterTiles and Color constructor
  • improve tile wrapping logic in calculateTileGrid for better tile management
  • optimize bbox calculation in Feature class for improved performance
  • change values property to be mutable in Color class
  • rename mergePolygons to mergePolygonsByFeatureId for clarity
  • rename folder renderer to pipeline
  • rename renderer_svg to svg
  • move geometry
  • move types
  • rename to merge.ts
  • rename styles to panel_css
  • merge styles into style_layer
  • rename renderVectorTiles to renderMap and update imports
  • rename processor subgraph to pipeline and update related references
  • move Features and LayerFeatures types to geometry.ts and update imports
  • update TypeScript configurations and improve type safety across multiple files
  • add sideEffects flag to package.json and simplify color tests
  • update notice element to use textContent for safer HTML handling
  • improve error handling in SVG preview by using textContent for safer DOM manipulation
  • update polygon handling in loadGeoJSONSource for improved feature extraction
  • enhance stroke attributes handling in SVGRenderer for improved styling options
  • remove unused style properties from LineStyle and CircleStyle interfaces for cleaner code
  • update loadGeoJSONSource calls to use options object for improved readability
  • optimize loadVectorSource calls by using Promise.all for concurrent loading
  • enhance type safety in getPaint and getLayout functions for improved code clarity
  • replace roundValue with formatScaled for consistent scaling in SVG rendering
  • add filterFn to StyleLayer for enhanced filtering capabilities
  • improve code readability by formatting multi-line expressions in analyze-bundle.ts
  • streamline SVG rendering by removing opacity parameter and enhancing style handling
  • simplify SVG attributes by removing unnecessary decimal places in circle radius and stroke width

Tests

  • add unit tests for geojson, raster, and tile processing
  • improve error handling in geojson and raster tests
  • add unit tests for SVG rendering and vector source loading

v0.4.0

18 Feb 05:00
8ed2561

Choose a tag to compare

Release v0.4.0

Features

  • implement drawCircles method and CircleStyle interface for SVGRenderer
  • add geojson as source
  • add end-to-end tests for geojson rendering with circle, fill, and line layers
  • implement fetch caching mechanism for improved performance in tests
  • implement caching for network requests in fetch-cache and enhance e2e tests
  • add geojson support to regions and enhance style configuration
  • refactor feature creation in loadGeoJSONSource for improved clarity and reusability
  • optimize polygon merging by consolidating feature creation in mergePolygons
  • enforce polygon winding order in makeFeature for consistent geometry processing
  • add rgb and opacity getters to Color class for improved color handling
  • enhance SVG background handling with dynamic color attributes
  • enhance SVG output with clipPath and improved background rect dimensions
  • update e2e workflow for GitHub Pages deployment and add demo HTML

Bug Fixes

  • update type assertion for coordinates in loadGeoJSONSource function
  • update SVG screenshot file extension from .svg to .png
  • lint warnings
  • add script entry for maplibre in package.json exports
  • comment out vulnerability check in CI workflow
  • update CI workflow to omit dev dependencies in vulnerability check
  • update .gitignore and package.json for documentation scripts
  • format globalIgnores array in eslint configuration for better readability

Code Refactoring

  • source handling
  • update CI and E2E workflows, move regions and run scripts
  • update SVG rendering to use rect for background fill and simplify getString method

Tests

  • add end-to-end tests for rendering GeoJSON sources with circle, fill, and line layers
  • improve geojson feature creation
  • update coordinates for LineString in getStyle function

Chores

  • update devDependencies to latest versions
  • update @versatiles/release-tool to version 2.7.2

v0.3.0

16 Feb 01:22
12b692a

Choose a tag to compare

Release v0.3.0

Features

  • add UMD build output for main and maplibre configurations in Rollup

Bug Fixes

  • update @versatiles/style dependency version to 5.9.4 in package.json and package-lock.json
  • update MapLibre integration to use UMD build for SVGExportControl
  • update UMD build output names for SVGExportControl in Rollup and README