impl #309 observe font face set changes

This commit is contained in:
Yanzhen Yu
2020-09-17 02:11:34 +08:00
parent 412f6ca95e
commit 2440701926
7 changed files with 121 additions and 4 deletions

View File

@@ -42,6 +42,7 @@ function record<T = eventWithTime>(
sampling = {},
mousemoveWait,
recordCanvas = false,
collectFonts = false,
} = options;
// runtime checks for user options
if (!emit) {
@@ -256,12 +257,23 @@ function record<T = eventWithTime>(
},
}),
),
fontCb: (p) =>
wrappedEmit(
wrapEvent({
type: EventType.IncrementalSnapshot,
data: {
source: IncrementalSource.Font,
...p,
},
}),
),
blockClass,
ignoreClass,
maskInputOptions,
inlineStylesheet,
sampling,
recordCanvas,
collectFonts,
},
hooks,
),