Resize Object only from one side

Hi team,

I am using floor planner app.
Where when an object/node is dropped from palette and when we resize that node/object it should expand/shrink from only one side.
Currently it expands or shrinks from all the side.
how can i override this feature

See the last example of GoJS Tools -- Northwoods Software.

Also there are a number of samples that do something similar. Look for uses of resizeAdornmentTemplate.