| 325 | |
| 326 | // Build configuration from root and defaults |
| 327 | var buildConfig = function() { |
| 328 | var rootData = root.dataset; |
| 329 | return { |
| 330 | width: lib.util.toNumber( rootData.width, defaults.width ), |
| 331 | height: lib.util.toNumber( rootData.height, defaults.height ), |
| 332 | maxScale: lib.util.toNumber( rootData.maxScale, defaults.maxScale ), |
| 333 | minScale: lib.util.toNumber( rootData.minScale, defaults.minScale ), |
| 334 | perspective: lib.util.toNumber( rootData.perspective, defaults.perspective ), |
| 335 | transitionDuration: lib.util.toNumber( |
| 336 | rootData.transitionDuration, defaults.transitionDuration |
| 337 | ) |
| 338 | }; |
| 339 | }; |
| 340 | |
| 341 | // `init` API function that initializes (and runs) the presentation. |
| 342 | var init = function() { |