mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-10 06:41:59 -05:00
10d5de3ed6
This change also simplified the way classes are exported to PaperScope objects.
29 lines
729 B
JavaScript
29 lines
729 B
JavaScript
/*
|
|
* Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
|
|
* http://paperjs.org/
|
|
*
|
|
* Copyright (c) 2011 - 2013, Juerg Lehni & Jonathan Puckey
|
|
* http://lehni.org/ & http://jonathanpuckey.com/
|
|
*
|
|
* Distributed under the MIT license. See LICENSE file for details.
|
|
*
|
|
* All rights reserved.
|
|
*/
|
|
|
|
/**
|
|
* @name Clip
|
|
*
|
|
* @class A Clip is a collection of items, similar to a Group. But instead of
|
|
* automatically passing on transformations to its children by calling
|
|
* {@link Item#applyMatrix()}, the transformations are stored in the internal
|
|
* matrix.
|
|
*
|
|
* @extends Group
|
|
*/
|
|
var Clip = Group.extend(/** @lends Clip# */{
|
|
_applyMatrix: false,
|
|
|
|
initialize: function Clip() {
|
|
Group.apply(this, arguments);
|
|
}
|
|
});
|