element119/module-hyva-canvas
Composer 安装命令:
composer require element119/module-hyva-canvas
包简介
A Magento 2 module that adds an AlpineJS-powered HTML canvas component to Hyvä themes.
README 文档
README
element119 | Hyvä Canvas
📝 Features
✔️ Adds an AlpineJS-powered canvas component to Hyvä themes
✔️ Allows customers to draw, reset, and submit canvas data
✔️ Responsive design to suit mobile and desktop devices
✔️ Supports multiple canvas components per page
🔌 Installation
Run the following command to install this module:
composer require element119/module-hyva-canvas php bin/magento setup:upgrade
⏫ Updating
Run the following command to update this module:
composer update element119/module-hyva-canvas php bin/magento setup:upgrade
❌ Uninstallation
Run the following command to uninstall this module:
composer remove element119/module-hyva-canvas php bin/magento setup:upgrade
📚 User Guide
Adding the Canvas Component
To add the canvas component to a page, simply use layout XML to create a new block using the Element119_HyvaCanvas::canvas.phtml template.
<block name="my.canvas.component" template="Element119_HyvaCanvas::canvas.phtml"/>
Obtaining the Canvas Value
A custom JavaScript event is fired whenever the user submits their canvas data.
This event name is customer-canvas-submitted and the canvas data can be accessed via its detail object:
{
...
detail: {
canvasBlockName: "my_canvas_component",
canvasImage: "data:image/png;base64,iVBORw0...",
},
...
}
element119/module-hyva-canvas 适用场景与选型建议
element119/module-hyva-canvas 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 2.31k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2022 年 10 月 31 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 element119/module-hyva-canvas 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 element119/module-hyva-canvas 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2.31k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2022-10-31

