1. Go to this page and download the library: Download ruelluna/canvas-pointer library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ruelluna / canvas-pointer example snippets
CanvasPointerField::make('body-points')
->pointRadius(15) // default is 5
->imageUrl('your image source')
->width(800) // is 'canvas-pointer'
->label('Select body parts that are in pain'),
CanvasPointerField::make('body-points')
->storageDisk(fn () => config('filesystems.default')) // Use the default disk from config
->storageDirectory(function (Get $get) {
// Use a different directory based on the user or other form data
$userId = $get('user_id');
return "users/{$userId}/pointers";
})
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.