awayjs-display
Version:
AwayJS displaylist classes
35 lines • 1.44 kB
JavaScript
/**
* The PixelSnapping class is an enumeration of constant values for setting
* the pixel snapping options by using the <code>pixelSnapping</code> property
* of a Bitmap object.
*/
var PixelSnapping = (function () {
function PixelSnapping() {
}
/**
* A constant value used in the <code>pixelSnapping</code> property of a
* Bitmap object to specify that the bitmap image is always snapped to the
* nearest pixel, independent of any transformation.
*/
PixelSnapping.ALWAYS = "always";
/**
* A constant value used in the <code>pixelSnapping</code> property of a
* Bitmap object to specify that the bitmap image is snapped to the nearest
* pixel if it is drawn with no rotation or skew and it is drawn at a scale
* factor of 99.9% to 100.1%. If these conditions are satisfied, the image is
* drawn at 100% scale, snapped to the nearest pixel. Internally, this
* setting allows the image to be drawn as fast as possible by using the
* vector renderer.
*/
PixelSnapping.AUTO = "auto";
/**
* A constant value used in the <code>pixelSnapping</code> property of a
* Bitmap object to specify that no pixel snapping occurs.
*/
PixelSnapping.NEVER = "never";
return PixelSnapping;
}());
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = PixelSnapping;
//# sourceMappingURL=PixelSnapping.js.map
;