PHP Classes

File: plugins/Crop/src/constants.js

Recommend this page to a friend!
  Classes of Laudir Bispo   PHP Real Estate Website   plugins/Crop/src/constants.js   Download  
File: plugins/Crop/src/constants.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Real Estate Website
Manage the properties of a real estate business
Author: By
Last change:
Date: 3 years ago
Size: 1,060 bytes
 

Contents

Class file image Download
export const PLUGIN_KEY = 'cropit'; export const CLASS_NAMES = { PREVIEW: 'cropit-preview', PREVIEW_IMAGE_CONTAINER: 'cropit-preview-image-container', PREVIEW_IMAGE: 'cropit-preview-image', PREVIEW_BACKGROUND_CONTAINER: 'cropit-preview-background-container', PREVIEW_BACKGROUND: 'cropit-preview-background', FILE_INPUT: 'cropit-image-input', ZOOM_SLIDER: 'cropit-image-zoom-input', DRAG_HOVERED: 'cropit-drag-hovered', IMAGE_LOADING: 'cropit-image-loading', IMAGE_LOADED: 'cropit-image-loaded', DISABLED: 'cropit-disabled', }; export const ERRORS = { IMAGE_FAILED_TO_LOAD: { code: 0, message: 'Image failed to load.' }, SMALL_IMAGE: { code: 1, message: 'Image is too small.' }, }; const eventName = (events) => events.map((e) => `${e}.cropit`).join(' '); export const EVENTS = { PREVIEW: eventName([ 'mousedown', 'mouseup', 'mouseleave', 'touchstart', 'touchend', 'touchcancel', 'touchleave', ]), PREVIEW_MOVE: eventName(['mousemove', 'touchmove']), ZOOM_INPUT: eventName(['mousemove', 'touchmove', 'change']), };