scale from svg
cubic calculations