@hyperframes/core 0.9.67 → 0.9.69

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,6 +11,10 @@ export declare const COLOR_GRADING_SOURCE_HIDDEN_ATTR = "data-hf-color-grading-s
11
11
  * never captured). See installAuthoredOpacityCapture in the runtime.
12
12
  */
13
13
  export declare const COLOR_GRADING_AUTHORED_OPACITY_ATTR = "data-hf-authored-opacity";
14
+ export declare function readStampedAuthoredOpacity(element: {
15
+ getAttribute(name: string): string | null;
16
+ }): string | null;
17
+ export declare function applyAuthoredInlineOpacity(style: CSSStyleDeclaration, authored: string): void;
14
18
  export declare const HF_COLOR_GRADING_CANVAS_ID_PREFIX = "__hf_color_grading_";
15
19
  export declare const HF_COLOR_GRADING_COLOR_SPACE = "rec709";
16
20
  export declare const HF_COLOR_GRADING_SOURCE_TAGS: readonly ["video", "img", "canvas"];
@@ -13,6 +13,15 @@ export const COLOR_GRADING_SOURCE_HIDDEN_ATTR = "data-hf-color-grading-source-hi
13
13
  * never captured). See installAuthoredOpacityCapture in the runtime.
14
14
  */
15
15
  export const COLOR_GRADING_AUTHORED_OPACITY_ATTR = "data-hf-authored-opacity";
16
+ export function readStampedAuthoredOpacity(element) {
17
+ return element.getAttribute(COLOR_GRADING_AUTHORED_OPACITY_ATTR);
18
+ }
19
+ export function applyAuthoredInlineOpacity(style, authored) {
20
+ if (authored === "")
21
+ style.removeProperty("opacity");
22
+ else
23
+ style.setProperty("opacity", authored);
24
+ }
16
25
  export const HF_COLOR_GRADING_CANVAS_ID_PREFIX = "__hf_color_grading_";
17
26
  export const HF_COLOR_GRADING_COLOR_SPACE = COLOR_GRADING_COLOR_SPACE;
18
27
  export const HF_COLOR_GRADING_SOURCE_TAGS = COLOR_GRADING_SOURCE_TAGS;