Custom logic rebase

Add the custom logic that was introduced privately in version 1.4.0, and update via rebase to the latest 1.4.6 version.
* Allow for rotation point to be on the bottom of the layer
* Correct text placement issue when rendered via node