quantum-dragons/image-map-field
Composer 安装命令:
composer require quantum-dragons/image-map-field
包简介
README 文档
README
Introduction
This component is for drawing image map areas/region/hotspot overlays on top
of an image. This is to replicate HTML image map <map> and <area> so we
use the same terms for this module.
Getting Started
Add build artifacts (*.js and *.scss) to project's public folder by running the following command in the project's root folder.
$> composer vendor-expose
Add image map field to a page and associate it with an image field.
<?php use ImageMapField\Forms\ImageMapField; use ImageMapField\Traits\ProcessMapData; class TestPage { use ProcessMapData; private static $db = [ 'ProcessMapData' => 'Text', ]; private static $has_one = [ 'ProcessMapImage' => Image::class, ]; public function getCMSFields() { $fields = parent::getCMSFields(); $fields->addFieldToTab( 'Root.Main', ImageMapField::create('ProcessMapData', 'ProcessMapData') ->setImage($this->ProcessMapImage()), ); } ... }
...
$ImageMapView
...
Dependency
- Npm / yarn
- Vue.js
Front-end tooling
To build in dev mode, run the following command in module root:
$> npm run dev
To build in prod mode, run the following command in module root:
$> npm run prod
For more details look into package.json file.
统计信息
- 总下载量: 544
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2018-09-30