feat: initial commit - Phase 1 & 2 core features

This commit is contained in:
hiderfong
2026-04-22 17:07:33 +08:00
commit 1773bda06b
25005 changed files with 6252106 additions and 0 deletions
@@ -0,0 +1,20 @@
"""DrawingML-related objects are in this subpackage."""
from __future__ import annotations
from typing import TYPE_CHECKING
from docx.oxml.drawing import CT_Drawing
from docx.shared import Parented
if TYPE_CHECKING:
import docx.types as t
class Drawing(Parented):
"""Container for a DrawingML object."""
def __init__(self, drawing: CT_Drawing, parent: t.ProvidesStoryPart):
super().__init__(parent)
self._parent = parent
self._drawing = self._element = drawing