hyla 1.0.9.pre.2 → 1.0.9.pre.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDQzY2Q3ZjZiYzFmYWQ2NmY4NTM5MDVmMjIwY2FkNzE4MTE5ZDA0YQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZmRjMGRhNWE0N2QyZjJhM2NhMzAzMDJjM2Q5NGZjMTNiZDJhYWFhNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2YzOGM3ZmYyNjVhMzMxYjUzYTFjZDdiZDZiMGEyNWU5M2MyM2YyNzRhZjA2
|
10
|
+
NDIwYjdhYTYwMjllZjU5MDRlZGI3MzRjZmY2MDQwNmViYjFiNWI4ZDEyYTkw
|
11
|
+
NWMyN2E2YWFhY2Q5YjRiY2E4OWQ3ZTQzZmVkZWU5MmM4NWJkNTk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZDQyMDkwNjhhMzExYzU2OTQ4MTU1Yzg4OGQyZDc5NDJiNGM3M2RjYzIwOGFi
|
14
|
+
NDNhZDY3ODcwYTM0ODE4ZDUyYTdiOTFlZjgyMDY0ZmYzMDM0ODZiMzc2YmQx
|
15
|
+
NGRhYTVlYTBiODY1MTcxZWQ5ZmE2YzU3YjhkOTllMDJmYjA0Nzc=
|
@@ -11,6 +11,10 @@ Use `gem install` command to deploy Hyla :
|
|
11
11
|
|
12
12
|
NOTE : The option `-y` will tell to rubyGems to deploy the gem but also the dependencies required
|
13
13
|
|
14
|
+
=== Uninstall the hyla gem
|
15
|
+
|
16
|
+
Use `gem uninstall hyla -v version_number` to remove locally the hyla gem
|
17
|
+
|
14
18
|
=== Build the project from the code
|
15
19
|
|
16
20
|
* Generate the gem
|
data/lib/hyla/project.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module Hyla
|
2
|
-
VERSION = '1.0.9.pre.
|
2
|
+
VERSION = '1.0.9.pre.3'
|
3
3
|
DESCRIPTION = 'Asciidoctor Hyla - Command Line tool to create new project, watch modifications, generate content, publish or consult it live !'
|
4
4
|
SUMMARY = 'Asciidoctor Hyla - builder/generator of HTML5, slideshow. Watch modifications, generate content, publish or consult it live !'
|
5
5
|
end
|
@@ -3,6 +3,7 @@
|
|
3
3
|
* http://lab.hakim.se/reveal-js
|
4
4
|
* MIT licensed
|
5
5
|
* Version 3.1.0
|
6
|
+
* Including modifocations to support margin left & height
|
6
7
|
*
|
7
8
|
* Copyright (C) 2015 Hakim El Hattab, http://hakim.se
|
8
9
|
*/
|
@@ -42,6 +43,10 @@
|
|
42
43
|
// Factor of the display size that should remain empty around the content
|
43
44
|
margin: 0.1,
|
44
45
|
|
46
|
+
// Top and Left margins to reposition the slides
|
47
|
+
marginTop: '',
|
48
|
+
marginLeft: '',
|
49
|
+
|
45
50
|
// Bounds for smallest/largest possible scale to apply to content
|
46
51
|
minScale: 0.2,
|
47
52
|
maxScale: 1.5,
|
@@ -1534,15 +1539,21 @@
|
|
1534
1539
|
// Prefer zooming in desktop Chrome so that content remains crisp
|
1535
1540
|
if( !isMobileDevice && /chrome/i.test( navigator.userAgent ) && typeof dom.slides.style.zoom !== 'undefined' ) {
|
1536
1541
|
dom.slides.style.zoom = scale;
|
1542
|
+
dom.slides.style.marginTop = config.marginTop;
|
1543
|
+
dom.slides.style.marginLeft = config.marginLeft;
|
1537
1544
|
transformSlides( { layout: '' } );
|
1538
1545
|
}
|
1539
1546
|
// Apply scale transform as a fallback
|
1540
1547
|
else {
|
1541
|
-
dom.slides.style.left = '50%';
|
1542
|
-
dom.slides.style.top = '
|
1543
|
-
dom.slides.style.bottom = 'auto';
|
1544
|
-
dom.slides.style.right = 'auto';
|
1545
|
-
|
1548
|
+
// dom.slides.style.left = '50%';
|
1549
|
+
// dom.slides.style.top = '44%';
|
1550
|
+
// dom.slides.style.bottom = 'auto';
|
1551
|
+
// dom.slides.style.right = 'auto';
|
1552
|
+
dom.slides.style.marginTop = config.marginTop;
|
1553
|
+
dom.slides.style.marginLeft = config.marginLeft;
|
1554
|
+
dom.slides.style.marginBottom = 'auto';
|
1555
|
+
dom.slides.style.marginRight = 'auto';
|
1556
|
+
transformSlides( { layout: 'translate(-50%, -50%) scale('+ scale +') translate(50%, 50%)' } );
|
1546
1557
|
}
|
1547
1558
|
}
|
1548
1559
|
|
@@ -1,4 +1,4 @@
|
|
1
|
-
(function(root,factory){if(typeof define==='function'&&define.amd){define(function(){root.Reveal=factory();return root.Reveal;});}else if(typeof exports==='object'){module.exports=factory();}else{root.Reveal=factory();}}(this,function(){'use strict';var Reveal;var SLIDES_SELECTOR='.slides section',HORIZONTAL_SLIDES_SELECTOR='.slides>section',VERTICAL_SLIDES_SELECTOR='.slides>section.present>section',HOME_SLIDE_SELECTOR='.slides>section:first-of-type',config={width:960,height:700,margin:0.1,minScale:0.2,maxScale:1.5,controls:true,progress:true,slideNumber:false,history:false,keyboard:true,keyboardCondition:null,overview:true,center:true,touch:true,loop:false,rtl:false,fragments:true,embedded:false,help:true,pause:true,autoSlide:0,autoSlideStoppable:true,mouseWheel:false,rollingLinks:false,hideAddressBar:true,previewLinks:false,postMessage:true,postMessageEvents:false,focusBodyOnPageVisibilityChange:true,transition:'slide',transitionSpeed:'default',backgroundTransition:'fade',parallaxBackgroundImage:'',parallaxBackgroundSize:'',parallaxBackgroundHorizontal:null,parallaxBackgroundVertical:null,viewDistance:3,dependencies:[]},loaded=false,overview=false,indexh,indexv,previousSlide,currentSlide,previousBackground,state=[],scale=1,slidesTransform={layout:'',overview:''},dom={},features={},isMobileDevice,lastMouseWheelStep=0,writeURLTimeout=0,eventsAreBound=false,autoSlide=0,autoSlidePlayer,autoSlideTimeout=0,autoSlideStartTime=-1,autoSlidePaused=false,touch={startX:0,startY:0,startSpan:0,startCount:0,captured:false,threshold:40},keyboardShortcuts={'N , SPACE':'Next slide','P':'Previous slide','← , H':'Navigate left','→ , L':'Navigate right','↑ , K':'Navigate up','↓ , J':'Navigate down','Home':'First slide','End':'Last slide','B , .':'Pause','F':'Fullscreen','ESC, O':'Slide overview'};function initialize(options){checkCapabilities();if(!features.transforms2d&&!features.transforms3d){document.body.setAttribute('class','no-transforms');var images=toArray(document.getElementsByTagName('img')),iframes=toArray(document.getElementsByTagName('iframe'));var lazyLoadable=images.concat(iframes);for(var i=0,len=lazyLoadable.length;i<len;i++){var element=lazyLoadable[i];if(element.getAttribute('data-src')){element.setAttribute('src',element.getAttribute('data-src'));element.removeAttribute('data-src');}}
|
1
|
+
(function(root,factory){if(typeof define==='function'&&define.amd){define(function(){root.Reveal=factory();return root.Reveal;});}else if(typeof exports==='object'){module.exports=factory();}else{root.Reveal=factory();}}(this,function(){'use strict';var Reveal;var SLIDES_SELECTOR='.slides section',HORIZONTAL_SLIDES_SELECTOR='.slides>section',VERTICAL_SLIDES_SELECTOR='.slides>section.present>section',HOME_SLIDE_SELECTOR='.slides>section:first-of-type',config={width:960,height:700,margin:0.1,marginTop:'',marginLeft:'',minScale:0.2,maxScale:1.5,controls:true,progress:true,slideNumber:false,history:false,keyboard:true,keyboardCondition:null,overview:true,center:true,touch:true,loop:false,rtl:false,fragments:true,embedded:false,help:true,pause:true,autoSlide:0,autoSlideStoppable:true,mouseWheel:false,rollingLinks:false,hideAddressBar:true,previewLinks:false,postMessage:true,postMessageEvents:false,focusBodyOnPageVisibilityChange:true,transition:'slide',transitionSpeed:'default',backgroundTransition:'fade',parallaxBackgroundImage:'',parallaxBackgroundSize:'',parallaxBackgroundHorizontal:null,parallaxBackgroundVertical:null,viewDistance:3,dependencies:[]},loaded=false,overview=false,indexh,indexv,previousSlide,currentSlide,previousBackground,state=[],scale=1,slidesTransform={layout:'',overview:''},dom={},features={},isMobileDevice,lastMouseWheelStep=0,writeURLTimeout=0,eventsAreBound=false,autoSlide=0,autoSlidePlayer,autoSlideTimeout=0,autoSlideStartTime=-1,autoSlidePaused=false,touch={startX:0,startY:0,startSpan:0,startCount:0,captured:false,threshold:40},keyboardShortcuts={'N , SPACE':'Next slide','P':'Previous slide','← , H':'Navigate left','→ , L':'Navigate right','↑ , K':'Navigate up','↓ , J':'Navigate down','Home':'First slide','End':'Last slide','B , .':'Pause','F':'Fullscreen','ESC, O':'Slide overview'};function initialize(options){checkCapabilities();if(!features.transforms2d&&!features.transforms3d){document.body.setAttribute('class','no-transforms');var images=toArray(document.getElementsByTagName('img')),iframes=toArray(document.getElementsByTagName('iframe'));var lazyLoadable=images.concat(iframes);for(var i=0,len=lazyLoadable.length;i<len;i++){var element=lazyLoadable[i];if(element.getAttribute('data-src')){element.setAttribute('src',element.getAttribute('data-src'));element.removeAttribute('data-src');}}
|
2
2
|
return;}
|
3
3
|
dom.wrapper=document.querySelector('.reveal');dom.slides=document.querySelector('.reveal .slides');window.addEventListener('load',layout,false);var query=Reveal.getQueryHash();if(typeof query['dependencies']!=='undefined')delete query['dependencies'];extend(config,options);extend(config,query);hideAddressBar();load();}
|
4
4
|
function checkCapabilities(){features.transforms3d='WebkitPerspective'in document.body.style||'MozPerspective'in document.body.style||'msPerspective'in document.body.style||'OPerspective'in document.body.style||'perspective'in document.body.style;features.transforms2d='WebkitTransform'in document.body.style||'MozTransform'in document.body.style||'msTransform'in document.body.style||'OTransform'in document.body.style||'transform'in document.body.style;features.requestAnimationFrameMethod=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame;features.requestAnimationFrame=typeof features.requestAnimationFrameMethod==='function';features.canvas=!!document.createElement('canvas').getContext;features.touch=!!('ontouchstart'in window);features.overviewTransitions=!/Version\/[\d\.]+.*Safari/.test(navigator.userAgent);isMobileDevice=/(iphone|ipod|ipad|android)/gi.test(navigator.userAgent);}
|
@@ -108,8 +108,8 @@ function showHelp(){if(config.help){closeOverlay();dom.overlay=document.createEl
|
|
108
108
|
html+='</table>';dom.overlay.innerHTML=['<header>','<a class="close" href="#"><span class="icon"></span></a>','</header>','<div class="viewport">','<div class="viewport-inner">'+html+'</div>','</div>'].join('');dom.overlay.querySelector('.close').addEventListener('click',function(event){closeOverlay();event.preventDefault();},false);setTimeout(function(){dom.overlay.classList.add('visible');},1);}}
|
109
109
|
function closeOverlay(){if(dom.overlay){dom.overlay.parentNode.removeChild(dom.overlay);dom.overlay=null;}}
|
110
110
|
function layout(){if(dom.wrapper&&!isPrintingPDF()){var size=getComputedSlideSize();var slidePadding=20;layoutSlideContents(config.width,config.height,slidePadding);dom.slides.style.width=size.width+'px';dom.slides.style.height=size.height+'px';scale=Math.min(size.presentationWidth/size.width,size.presentationHeight/size.height);scale=Math.max(scale,config.minScale);scale=Math.min(scale,config.maxScale);if(scale===1){dom.slides.style.zoom='';dom.slides.style.left='';dom.slides.style.top='';dom.slides.style.bottom='';dom.slides.style.right='';transformSlides({layout:''});}
|
111
|
-
else{if(!isMobileDevice&&/chrome/i.test(navigator.userAgent)&&typeof dom.slides.style.zoom!=='undefined'){dom.slides.style.zoom=scale;transformSlides({layout:''});}
|
112
|
-
else{dom.slides.style.
|
111
|
+
else{if(!isMobileDevice&&/chrome/i.test(navigator.userAgent)&&typeof dom.slides.style.zoom!=='undefined'){dom.slides.style.zoom=scale;dom.slides.style.marginTop=config.marginTop;dom.slides.style.marginLeft=config.marginLeft;transformSlides({layout:''});}
|
112
|
+
else{dom.slides.style.marginTop=config.marginTop;dom.slides.style.marginLeft=config.marginLeft;dom.slides.style.marginBottom='auto';dom.slides.style.marginRight='auto';transformSlides({layout:'translate(-50%, -50%) scale('+scale+') translate(50%, 50%)'});}}
|
113
113
|
var slides=toArray(dom.wrapper.querySelectorAll(SLIDES_SELECTOR));for(var i=0,len=slides.length;i<len;i++){var slide=slides[i];if(slide.style.display==='none'){continue;}
|
114
114
|
if(config.center||slide.classList.contains('center')){if(slide.classList.contains('stack')){slide.style.top=0;}
|
115
115
|
else{slide.style.top=Math.max(((size.height-getAbsoluteHeight(slide))/2)-slidePadding,0)+'px';}}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hyla
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.9.pre.
|
4
|
+
version: 1.0.9.pre.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charles Moulliard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|