After drawing an area and then clicking to start a new drag in IE 5.5 the rendered height appears as the last height until the user drags, this appears to be the related to another IE error (which has been fixed) where IE does not always redraw the select area properly.Safari animated gifs, only one of each will animate, this seems to be a known Safari issue.dimensions, obj, dimensions object with properities width & height for the dimensions of the select area.Īn example function which outputs the crop values to form fields: function onEndCrop( coords, dimensions ) ).coords, obj, coordinates object with properties x1, y1, x2 & y2 for the coordinates of the select area.The callback function is a function that allows you to capture the crop co-ordinates when the user finished a crop movement, it is passed two arguments: Whether to capture the keys for moving the select area, as these can cause some problems at the moment.Ī coordinates object with properties x1, y1, x2 & y2 for the coordinates of the select area to display onload The callback function to provide the crop details to on end of a crop. Whether to display the select area on initialisation, only used when providing minimum width & height or ratio. The maximum height for the select areas in pixels (if both minHeight & maxHeight set to same the height of the cropper will be fixed) The maximum width for the select areas in pixels (if both minWidth & maxWidth set to same the width of the cropper will be fixed) The mimimum height for the select area in pixels. The minimum width for the select area in pixels. The pixel dimensions to apply as a restrictive ratio, with properties x & y. ‘scripts/cropper/’ and include the script and the required Prototype & scripts: MAC: Camino 1.0, Firefox 1.5, Safari 2.0Įxtract to a directory of your choosing e.g.All functionality & display compatible with most popular browsers supported by Prototype, tested in:.All operations stay within bounds of image.Movement of selection area by arrow keys (shift + arrow key will move selection area by 10 pixels).Allows dynamic preview of resultant crop (if minimum width & height are provided), this is implemented as a subclass so can be removed if not required.Allows maximum dimensions crop areas, if both min & max set as the same value then we’ll get a fixed cropper size on the axes as appropriate and the resize handles will not be displayed as appropriate.Allows dimension ratio limited crop areas. Selection area can be resized using resize handles.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |