delegate Dimension.transform_to_wcs() to Dimension.transform()
@@ -507,30 +507,6 @@ class Dimension(DXFGraphic, OverrideMixin):
# todo: delete existing anonymous block?
self.override().render()
- def transform_to_wcs(self, ucs: 'UCS') -> 'Dimension':
- """ Transform DIMENSION entity from local :class:`~ezdxf.math.UCS` coordinates to :ref:`WCS` coordinates.
-
- Does not transform the graphical representation in the anonymous block!
-
- .. versionadded:: 0.12
-
- """
- # Transform existing OCS points and angles
- dxf = self.dxf
- vector_names = [
- name for name in ['text_midpoint', 'defpoint5', 'insert'] if dxf.hasattr(name)
- ]
- angle_names = [
- name for name in ['text_rotation', 'horizontal_direction', 'angle'] if dxf.hasattr(name)
- ]
- self._ucs_and_ocs_transformation(ucs, vector_names=vector_names, angle_names=angle_names)
-
- # Transform existing WCS points
- for name in ['defpoint', 'defpoint2', 'defpoint3', 'defpoint4']:
- if dxf.hasattr(name):
- dxf.set(name, ucs.to_wcs(dxf.get(name)))
- return self
-
def transform(self, m: 'Matrix44') -> 'Dimension':
""" Transform DIMENSION entity by transformation matrix `m` inplace.
