""" document_engine — support de formation : entité racine séparée du jeu 2D (voir docs/plan/PLAN.md). Un support = un seul document, structuré en deux couches sur le même canevas : - le flux de contenu (titre/paragraphe/image/bouton/mini-jeux), organisé en rangées ("row") par le moteur d'inférence de layout (voir document_engine/rendering/render_document_element.py) ; - la couche de formes libres (rectangle/cercle/triangle/trait), position- nées en absolu (x/y/width/height/rotation/z_index). Tout est stocké dans support.db (voir db/supports/) : une seule table, _document_elements, portant les deux couches via parent_id (NULL = top- niveau ou forme libre, sinon = enfant d'une rangée). Aucun import croisé avec game_engine ou tout module lié au jeu 2D — voir le contrat import-linter dans pyproject.toml (game_engine | document_engine sont un même palier, mutuellement isolés). Ce module se contente de ré-exporter l'intégralité de l'API publique du paquet (pattern "un fichier = une fonction, un dossier = une responsabi- lité", voir game_engine/__init__.py). """ from .elements.add_document_element import add_document_element from .elements.delete_document_element import delete_document_element from .elements.get_document_element import get_document_element from .elements.list_document_elements import list_document_elements from .elements.move_document_element import move_document_element from .elements.update_document_element_attributes import update_document_element_attributes from .labels.association_config import ( DEFAULT_ASSOCIATION_CONFIG, MAX_PAIRS, MIN_PAIRS, sanitize_association_config, ) from .labels.element_kind_labels import ( CONTENT_KINDS, ELEMENT_KIND_LABELS, ELEMENT_LIBRARY, MINIGAME_KINDS, SHAPE_KINDS, element_default_attributes, ) from .labels.quiz_config import ( DEFAULT_QUIZ_CONFIG, MAX_CHOICES, MAX_TIMER_SECONDS, MIN_CHOICES, MIN_TIMER_SECONDS, quiz_total_points, sanitize_quiz_config, ) from .rendering.render_document_element import render_document, render_document_element __all__ = [ "CONTENT_KINDS", "DEFAULT_ASSOCIATION_CONFIG", "DEFAULT_QUIZ_CONFIG", "ELEMENT_KIND_LABELS", "ELEMENT_LIBRARY", "MAX_CHOICES", "MAX_PAIRS", "MAX_TIMER_SECONDS", "MIN_CHOICES", "MIN_PAIRS", "MIN_TIMER_SECONDS", "MINIGAME_KINDS", "SHAPE_KINDS", "add_document_element", "delete_document_element", "element_default_attributes", "get_document_element", "list_document_elements", "move_document_element", "quiz_total_points", "render_document", "render_document_element", "sanitize_association_config", "sanitize_quiz_config", "update_document_element_attributes", ]