 
 ###
 
-module.exports = class V1Writer extends BaseObject
+module.exports = createHotWithPostCreate module, class V1Writer extends BaseObject
   @singletonClass()
 
   @toArtFileTags: (element) => @singleton.toArtFileTags element

Core = require '../core'
Elements = require '../elements'

{BaseObject, log, createObjectTreeFactories} = Foundation
{point} = Atomic
{XbdTag, createTagFactories} = Xbd
{propsEq} = Core.EpochedObject

  ########################
  _encodeLayout: (element, encodedProps) ->
    {currentSize, currentLocation, axis} = element
    e2p = element.getElementToParentMatrix()
    encodedProps.matrix = e2p.withLocation(0).toArray().join ','
    unless floatEq 0, angle = e2p.getAngle()
      encodedProps.angle = "#{angle}"
    encodedProps.w_val = currentSize.x.toString()
    encodedProps.h_val = currentSize.y.toString()

