Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
fairblue
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
hosting
chat
fairblue
Commits
79c13621
Commit
79c13621
authored
6 years ago
by
Felipe Cecagno
Browse files
Options
Downloads
Patches
Plain Diff
fix shapes display for the simple example
parent
494b007a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
record-and-playback/presentation/playback/presentation/2.0/lib/writing.js
+3
-4
3 additions, 4 deletions
...ack/presentation/playback/presentation/2.0/lib/writing.js
with
3 additions
and
4 deletions
record-and-playback/presentation/playback/presentation/2.0/lib/writing.js
+
3
−
4
View file @
79c13621
...
...
@@ -65,7 +65,7 @@ var timestampToIdKeys = [];
var
mainShapeIds
=
{};
var
currentImage
=
null
;
var
currentImageId
=
"
image0
"
;
var
shapesArray
=
{}
;
var
shapesArray
=
[]
;
var
timestampToId
=
{};
var
shapesSVGContent
=
null
;
var
slideAspectValues
=
{};
...
...
@@ -385,7 +385,6 @@ function runPopcorn() {
lastFrameTime
=
currentTime
;
// Get the time and round to 1 decimal place
var
t
=
currentTime
.
toFixed
(
1
);
let
currentShapes
=
getShapesAtTime
(
t
);
// Create an object referencing the main versions of all the shapes
var
current_shapes
=
Object
.
create
(
mainShapeIds
);
...
...
@@ -703,9 +702,9 @@ function processShapesSVG(response) {
shapesSVGContent
=
response
.
responseXML
;
// Getting all the event tags
let
shapeelement
=
response
.
responseXML
.
getElementsByTagName
(
"
svg
"
)[
0
];
let
shapeelement
=
shapesSVGContent
.
getElementsByTagName
(
"
svg
"
)[
0
];
// Get an array of the elements for each "shape" in the drawing
let
shapesArray
=
response
.
responseXML
.
querySelectorAll
(
'
g[class="shape"]
'
);
shapesArray
=
shapesSVGContent
.
querySelectorAll
(
'
g[class="shape"]
'
);
// To assist in finding the version of a shape shown at a particular time
// (while being drawn, during updates), provide a lookup from time to id
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment