fixed an issue where textShapes would disappear after page refresh
This commit is contained in:
parent
6acc236cc8
commit
639f672e29
@ -31,12 +31,12 @@ Template.slide.helpers
|
||||
|
||||
shapes = Meteor.Shapes.find({whiteboardId: currentSlide?.slide?.id}).fetch()
|
||||
for s in shapes
|
||||
shapeInfo = s.shape?.shape or @data.shape
|
||||
shapeInfo = s.shape?.shape or s?.shape
|
||||
shapeType = shapeInfo?.type
|
||||
|
||||
if shapeType isnt "text"
|
||||
for num in [0..3] # the coordinates must be in the range 0 to 1
|
||||
shapeInfo.points[num] = shapeInfo.points[num] / 100
|
||||
shapeInfo?.points[num] = shapeInfo?.points[num] / 100
|
||||
wpm.makeShape(shapeType, shapeInfo)
|
||||
wpm.updateShape(shapeType, shapeInfo)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user