-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.js
54 lines (40 loc) · 2.03 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/*=====================================================================*/
/* serrano/diffusion/talk/pliss23/config.js */
/* ------------------------------------------------------------- */
/* Author : Manuel Serrano */
/* Creation : Wed Oct 14 15:39:31 2015 */
/* Last change : Tue Aug 22 07:27:06 2023 (serrano) */
/* Copyright : 2015-23 Manuel Serrano */
/* ------------------------------------------------------------- */
/* HOPJS talk configuration */
/*=====================================================================*/
"use hopscript";
/*---------------------------------------------------------------------*/
/* module ... */
/*---------------------------------------------------------------------*/
import * as path from "path";
import * as hopconfig from "hop:config";
export { inriaSVG };
/*---------------------------------------------------------------------*/
/* constants */
/*---------------------------------------------------------------------*/
export const ROOT = path.dirname( module.filename );
const inriaSVG = path.join( ROOT, "svg/inria.svgz" );
export const name = "PLISS23";
export const impress = "hopimpress-0.6.*.hz";
export const slideWidth = 1920, slideHeight = 1080;
export const theme = path.join( ROOT, "themes/grey.json" );
export const hopSVG = path.join( hopconfig.shareDir, "icons/hop/hop.svg" );
export function rpath( file ) { return path.normalize( path.join( ROOT, file ) ) }
export let fontSize = 100;
export const colMarginTop = 1180;
export const colMarginLeft = 200;
export function fontSizePx( k = 1 ) {
return `${Math.round( k * fontSize )}px`;
}
export function fpx(fsz) {
return `${Math.round(fsz * 1.5)}px`;
}
export function px(fsz) {
return `${Math.round(fsz * 1.5)}px`;
}