Skip to content

Commit

Permalink
samples
Browse files Browse the repository at this point in the history
  • Loading branch information
Richardpwe committed Sep 12, 2024
1 parent 4eb2f74 commit 4f05430
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 24,088 deletions.
24,083 changes: 0 additions & 24,083 deletions public/samples/BarChart_Ver08_fontsEmbedded.json

This file was deleted.

1 change: 1 addition & 0 deletions public/samples/BarChart_Ver09.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion public/samples/PieChart_Ver08_fontsEmbedded.json

This file was deleted.

1 change: 1 addition & 0 deletions public/samples/PieChart_Ver09.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions src/Player/AnalyzePlayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ function AnalyzePlayer() {

instance.addEventListener('enterFrame', onEnterFrame);
setLottieInstance(instance);
setTimeout(updateTimeFields, 500);
}, 300);

return () => {
clearTimeout(timeoutId);
instance.removeEventListener('enterFrame', onEnterFrame);
instance.destroy();
setTimeout(updateTimeFields, 500);
};

}, [jsonData, textObjects, textObjects]);
Expand Down Expand Up @@ -137,7 +137,6 @@ function AnalyzePlayer() {

function updateTime() {
let formattedTime;

if (format === 'HH:mm:ss') {
formattedTime = new Intl.DateTimeFormat("en-GB", {
hour: "2-digit",
Expand Down
4 changes: 2 additions & 2 deletions src/StartScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ function StartScreen() {
<div id="sampleWrapper">
<h2>Or check out one of our Samples</h2>
<div id="samples">
<div className="sample" onClick={() => handleSampleFile("BarChart_Ver08_fontsEmbedded.json")}>
<div className="sample" onClick={() => handleSampleFile("BarChart_Ver09.json")}>
<FontAwesomeIcon className="icon" icon={faChartSimple}/>
<h4>BarChart</h4>
</div>
<div className="sample" onClick={() => handleSampleFile("PieChart_Ver08_fontsEmbedded.json")}>
<div className="sample" onClick={() => handleSampleFile("PieChart_Ver09.json")}>
<FontAwesomeIcon className="icon" icon={faChartPie}/>
<h4>PieChart</h4>
</div>
Expand Down

0 comments on commit 4f05430

Please sign in to comment.