mediawiki-extensions-Visual.../modules/ve-mw/dm/nodes
Moriel Schottlender e34fdae776 Make the image model persistent
Make sure the image model can switch parameters when the image
source is switched, rather than having to instantiate a new
image model.

Also, when the image is changed, retain aspect ratio but make sure
to preserve the width of the previous image (unless the new image
is smaller)

Added 'resizeToBoundingBox' and 'scaleToThumbnailSize' static methods
in MWImageNode that return scaled dimensions based on the image
dimensions and the bounding box detals.

Depends on core change Idbb8b29db8e

Bug: 69450
Bug: 68000
Change-Id: I4327c86a9127f46da5522dc1197411fda757d5a4
2014-08-28 12:04:49 -04:00
..
ve.dm.MWAlienExtensionNode.js [BREAKING CHANGE] Separate ExtensionNode in Block/Inline 2014-06-06 20:40:19 -07:00
ve.dm.MWBlockImageNode.js Make the image model persistent 2014-08-28 12:04:49 -04:00
ve.dm.MWEntityNode.js Switch 'disallowQuotedKeysInObjects' jscs rule on and fix up 2014-08-22 13:50:48 -07:00
ve.dm.MWExtensionNode.js Switch 'disallowQuotedKeysInObjects' jscs rule on and fix up 2014-08-22 13:50:48 -07:00
ve.dm.MWGalleryNode.js [BREAKING CHANGE] Separate ExtensionNode in Block/Inline 2014-06-06 20:40:19 -07:00
ve.dm.MWHeadingNode.js
ve.dm.MWImageCaptionNode.js
ve.dm.MWImageNode.js Make the image model persistent 2014-08-28 12:04:49 -04:00
ve.dm.MWInlineImageNode.js Switch 'disallowQuotedKeysInObjects' jscs rule on and fix up 2014-08-22 13:50:48 -07:00
ve.dm.MWNumberedExternalLinkNode.js Switch 'disallowQuotedKeysInObjects' jscs rule on and fix up 2014-08-22 13:50:48 -07:00
ve.dm.MWPreformattedNode.js
ve.dm.MWReferenceNode.js Switch 'disallowQuotedKeysInObjects' jscs rule on and fix up 2014-08-22 13:50:48 -07:00
ve.dm.MWReferencesListNode.js Switch 'disallowQuotedKeysInObjects' jscs rule on and fix up 2014-08-22 13:50:48 -07:00
ve.dm.MWTransclusionNode.js Switch 'disallowQuotedKeysInObjects' jscs rule on and fix up 2014-08-22 13:50:48 -07:00