/
var
/
www
/
html
/
sugar9
/
include
/
javascript
/
pmse
/
Upload File
HOME
/* * Your installation or use of this SugarCRM file is subject to the applicable * terms available at * http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/. * If you do not agree to all of the applicable terms or do not have the * authority to bind the entity as an authorized representative, then do not * install or use this SugarCRM file. * * Copyright (C) SugarCRM Inc. All rights reserved. */ /*global jCore*/ var AdamArtifactResizeBehavior = function () { }; AdamArtifactResizeBehavior.prototype = new jCore.RegularResizeBehavior(); AdamArtifactResizeBehavior.prototype.type = "AdamArtifactResizeBehavior"; /** * Sets a shape's container to a given container * @param shape */ AdamArtifactResizeBehavior.prototype.onResizeStart = function (shape) { return jCore.RegularResizeBehavior .prototype.onResizeStart.call(this, shape); }; /** * Removes shape from its current container * @param shape */ AdamArtifactResizeBehavior.prototype.onResize = function (shape) { //RegularResizeBehavior.prototype.onResize.call(this, shape); return function (e, ui) { jCore.RegularResizeBehavior .prototype.onResize.call(this, shape)(e, ui); //TODO Rewrite resize functionality using paint function based on segments }; };