double getRadius(double radius) { if (useOriginSize) { return radius; } try { return radius.r; } catch (e) { return radius; } }