-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
32 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# SPDX-FileCopyrightText: 2024 BigBlueButton Inc. and by respective authors | ||
# | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
|
||
from __future__ import annotations | ||
|
||
from typing import TypeVar | ||
|
||
import cairo | ||
|
||
from bbb_presentation_video.renderer.tldraw.shape import PollShape, apply_shape_rotation | ||
|
||
CairoSomeSurface = TypeVar("CairoSomeSurface", bound=cairo.Surface) | ||
|
||
|
||
def finalize_poll( | ||
ctx: cairo.Context[CairoSomeSurface], id: str, shape: PollShape | ||
) -> None: | ||
print(f"\tTldraw: Finalizing Poll: {id}") | ||
|
||
apply_shape_rotation(ctx, shape) |