Skip to content

Releases

mod_imagemap 1.3.1

mod_imagemap 1.3.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 18 Nov 16:44
Immutable release. Only release title and notes can be modified.
5bbafb6

Pre-release / Pré-lançamento (ALPHA).

Changed

  • README and documentation point to the repository renamed to moodle-by-kelsoncm/moodle-mod_imagemap.

Instalação / Installation

Download mod_imagemap-1.3.1.zip (root folder imagemap, as Moodle expects) and install it at Site administration > Plugins > Install plugins, then run the Moodle upgrade and purge caches.
Baixe mod_imagemap-1.3.1.zip, instale em Administração do site > Plugins > Instalar plugins, conclua o upgrade do Moodle e limpe os caches.

Docs: https://moodle-by-kelsoncm.github.io/moodle-mod_imagemap/

mod_imagemap 1.3.0

mod_imagemap 1.3.0 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 30 Oct 17:20
Immutable release. Only release title and notes can be modified.
5eed5a4

Pre-release / Pré-lançamento (ALPHA).

Changes requested by the Moodle Marketplace review and alignment with the EduPlay Moodle Suite practices.

Removed

  • lang/pt_br: only English is shipped; translations go through AMOS.
  • Local tooling that the CI now covers: .githooks, .pre-commit-config.yaml, setup-hooks.sh, run-ci.sh, docker-compose.yml, composer.json; the built documentation (docs/_build) is no longer versioned.

Fixed

  • Course restore now finds the restore classes: they moved from restore/moodle2/ to backup/moodle2/, where Moodle looks for them (#2).
  • Area targets are remapped after the whole course is restored, so links to activities placed after the image map are kept; links to items outside the backup are kept only when they belong to the same course (e.g. when duplicating the activity).
  • Files of the activity description are included in backup and restore.
  • Replace the deprecated print_error() with moodle_exception (#3).
  • Area CSS is no longer read with PARAM_RAW: area filters and CSS examples keep only an allowed list of visual properties with plain values (\mod_imagemap\local\css_rules), also on import and restore (#5).
  • area_save.php checks that the image map belongs to the course module whose capability is checked.
  • Missing language strings for the hover types of CSS examples (#11).

Changed

  • The area editor saves coordinates and connection lines through the external services mod_imagemap_update_area_coords, mod_imagemap_save_line and mod_imagemap_delete_line (core/ajax), with capability checks inside the services; area_update_coords.php, line_save.php and line_delete.php were removed (#8). save_line also checks that both areas belong to the image map of the course module.
  • Requires Moodle 4.5 LTS or later; supports 4.5 LTS and 5.3 LTS ($plugin->supported).
  • CI on GitHub Actions with moodle-plugin-ci on Moodle 4.5 and 5.3 (PostgreSQL and MariaDB), code checker and PHPDoc without warnings; release by draft (Prepare release) and verification of the published release (#20).
  • Documentation rewritten in English and Brazilian Portuguese (docs/en, docs/pt_BR) with screenshots, published on GitHub Pages.
  • JavaScript moved to ES6 AMD modules built with grunt (amd/build): mod_imagemap/editor (the area editor, previously editor.js injected inline), mod_imagemap/view, mod_imagemap/admin, mod_imagemap/css_preview and mod_imagemap/shapes; the unused summary.js and editor_init.js were removed (#4, #6, #9).
  • Pages render through templates and start their modules with js_call_amd(); area data travels in a data-config attribute instead of inline JavaScript. Deletions ask for confirmation through core/notification instead of inline onclick handlers (#9).
  • Standard Moodle boilerplate in JavaScript, CSS and Mustache files; templates document their context (#7).
  • editor.css and styles/admin.css merged into styles.css, scoped to .path-mod-imagemap; no more manual $PAGE->requires->css() (#10).

Fixed (editor and viewer)

  • The editor template used {{else}}, which Mustache does not support, so the missing-image warning never showed.
  • Adding or removing a polygon vertex with a double click is now saved.
  • The restriction message of an inactive area shows the names of the activities it refers to (core_availability\info::format_info()).

Instalação / Installation

Download mod_imagemap-1.3.0.zip (root folder imagemap, as Moodle expects) and install it at Site administration > Plugins > Install plugins, then run the Moodle upgrade and purge caches.
Baixe mod_imagemap-1.3.0.zip, instale em Administração do site > Plugins > Instalar plugins, conclua o upgrade do Moodle e limpe os caches.

Docs: https://moodle-by-kelsoncm.github.io/mod_imagemap/

1.2.07

1.2.07 Pre-release
Pre-release

Choose a tag to compare

@kelsoncm kelsoncm released this 11 Mar 23:03

Same 1.2.06

Full Changelog: 1.2.06...1.2.07

1.2.06

Choose a tag to compare

@kelsoncm kelsoncm released this 11 Mar 22:52

Release v1.2.06 — 2026-03-11

Bug Fixes

  • Upgrade (PostgreSQL): corrigido erro ao executar a migração 2026030901 que falhava com a mensagem "column type cannot be modified — depends on index mdl_imagcssexam_typ_ix". A rotina agora remove o índice antes de alterar a precisão da coluna type da tabela imagemap_css_examples e o recria em seguida.

Dependências

  • Requer Moodle 4.1+ (2023041000)
  • Sem impacto em instalações novas (somente em upgrades a partir de 2026013101)

Full Changelog: 1.2.05...1.2.06

Full Changelog: 1.2.05...1.2.06

1.2.05

Choose a tag to compare

@kelsoncm kelsoncm released this 10 Mar 17:20

[1.2.05] - 2026-03-10

Added

  • Full backup and restore support via Moodle Backup API (backup/ and restore/ directories)
  • New admin module (admin/) with CSS examples management: create, edit, delete, import/export
  • Hover type support in CSS examples editor
  • Automated CI/CD pipeline with GitHub Actions (moodle-plugin-ci.yml, release.yml)
  • Pre-commit hooks framework for code quality validation (.githooks/, .pre-commit-config.yaml)
  • Helper functions to check module and section visibility per user
  • Comprehensive database schema documentation (docs/DATABASE.md)
  • Architecture diagram documentation (docs/DIAGRAM.md)
  • Automated backup/restore test suite (tests/backup_restore_test.php)
  • Dependabot configuration for automated dependency updates

Changed

  • Teachers now always see areas as active (bypass completion filter for editing context)
  • Area destination refactored with improved filter UI
  • Rendering logic centralized to eliminate code duplication between view.php and templates
  • Documentation reorganized under /docs directory
  • Inactive filter standardized to grayscale(100%)
  • Improved i18n coverage for both en and pt_br language packs
  • Moodle code validation and Mustache linting moved to Docker-based workflow
  • admin.php refactored to delegate logic to admin/lib.php

Fixed

  • Area borders removed from map visualization
  • Version format corrected in version.php (removed underscores)
  • Increased npm timeout and added retry config for Moodle 5.0.1 compatibility in CI matrix

[Unreleased]

Planned Features

  • Area editing (modify existing areas)
  • Sortable areas (change z-index)
  • Preview mode for testing
  • More CSS filter presets
  • Accessibility improvements (keyboard navigation)
  • Analytics integration
  • Bulk area operations

Full Changelog: 1.2.0...1.2.05

1.2.0

Choose a tag to compare

@kelsoncm kelsoncm released this 23 Feb 21:54

Added

  • Initial release of the Image Map module for Moodle
  • Image upload with file manager integration
  • Interactive canvas-based area editor
  • Support for three shape types:
    • Rectangles (click and drag)
    • Circles (click center and drag radius)
    • Polygons (click points and finish)
  • Flexible linking options:
    • Link to course modules
    • Link to course sections
    • Link to external URLs
  • Conditional display based on module completion
    • Areas can be active or inactive based on completion criteria
    • CSS filters for visual feedback (e.g., grayscale when inactive)
  • Area management interface:
    • Create areas by drawing on image
    • Delete areas
    • View all areas in a list
  • Full bilingual support:
    • English (en)
    • Portuguese Brazil (pt_br)
  • GDPR compliance with privacy provider
  • Proper capability definitions for security
  • Event logging for course module views
  • Database schema with two tables:
    • imagemap (main instances)
    • imagemap_area (clickable areas)

Features

  • Teacher can upload or select image from repository
  • Teacher can draw clickable areas directly on the image
  • Teacher can configure each area with:
    • Shape (rectangle, circle, polygon)
    • Title (tooltip)
    • Destination (module, section, URL)
    • Completion condition (optional)
    • Active/inactive visual filters
  • Students can view interactive image maps
  • Clickable areas navigate to configured destinations
  • Areas can be conditionally shown based on module completion
  • Visual feedback through CSS filters for active/inactive states

Technical Details

  • Compatible with Moodle 3.9+
  • PHP 7.2+
  • Uses Moodle File API for image storage
  • Uses HTML5 Canvas for drawing interface
  • Uses HTML image maps for clickable areas
  • Follows Moodle coding standards
  • Includes proper event classes for logging
  • GDPR compliant (no personal data stored)

Security

  • Capability-based access control
  • Session key validation for form submissions
  • Proper context checks for file access
  • XSS risk assessment for capabilities

[Unreleased]

Planned Features

  • Area editing (modify existing areas)
  • Sortable areas (change z-index)
  • Preview mode for testing
  • Backup and restore support
  • More CSS filter presets
  • Accessibility improvements (keyboard navigation)
  • Analytics integration
  • Bulk area operations