Repository navigation
Releases
mod_imagemap 1.3.1
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
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/tobackup/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()withmoodle_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.phpchecks 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_lineandmod_imagemap_delete_line(core/ajax), with capability checks inside the services;area_update_coords.php,line_save.phpandline_delete.phpwere removed (#8).save_linealso 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-cion 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, previouslyeditor.jsinjected inline),mod_imagemap/view,mod_imagemap/admin,mod_imagemap/css_previewandmod_imagemap/shapes; the unusedsummary.jsandeditor_init.jswere removed (#4, #6, #9). - Pages render through templates and start their modules with
js_call_amd(); area data travels in adata-configattribute instead of inline JavaScript. Deletions ask for confirmation throughcore/notificationinstead of inlineonclickhandlers (#9). - Standard Moodle boilerplate in JavaScript, CSS and Mustache files; templates document their context (#7).
editor.cssandstyles/admin.cssmerged intostyles.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.
1.2.07
Same 1.2.06
Full Changelog: 1.2.06...1.2.07
1.2.06
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
[1.2.05] - 2026-03-10
Added
- Full backup and restore support via Moodle Backup API (
backup/andrestore/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.phpand templates - Documentation reorganized under
/docsdirectory - Inactive filter standardized to
grayscale(100%) - Improved i18n coverage for both
enandpt_brlanguage packs - Moodle code validation and Mustache linting moved to Docker-based workflow
admin.phprefactored to delegate logic toadmin/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
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