How to use the @frctl/mandelbrot function in @frctl/mandelbrot

To help you get started, we’ve selected a few @frctl/mandelbrot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wellcometrust / wellcomecollection.org / cardigan / fractal-app.js View on Github external
<hr style="margin: 6px 0;" class="divider divider--keyline divider--pumice">
    <h2 style="margin-bottom: 24px;" class="styleguide__font__example--HNM5">${item.label}</h2>
    <div style="margin-bottom: 24px;">
      ${markup}
    </div>
  `);
});

fractal.docs.set('path', serverDir('views/docs'));
fractal.docs.set('ext', 'njk');
fractal.docs.engine(nunjucks);

fractal.web.set('static.path', dir('./../dist'));
fractal.web.set('builder.dest', '.dist');

const cardiganTheme = mandelbrot({
  skin: 'navy',
  styles: ['default', '/dist-styles/styleguide.css'],
  favicon: '/cardigan-theme/assets/favicon.ico'
});
cardiganTheme.addLoadPath(serverDir('cardigan-theme'));
cardiganTheme.addLoadPath(serverDir('views'));
cardiganTheme.addStatic(serverDir('cardigan-theme'), '/cardigan-theme');
cardiganTheme.addStatic(dir('./../dist/assets/css/'), '/dist-styles');
fractal.web.theme(cardiganTheme);

export default fractal;

function dir(relPath) {
  return path.resolve(`${__dirname}${relPath}`);
}

@frctl/mandelbrot

The default theme for Fractal.

MIT
Latest version published 2 years ago

Package Health Score

59 / 100
Full package analysis

Popular @frctl/mandelbrot functions

Similar packages