Skip to content

Instantly share code, notes, and snippets.

Prérequis indispensable à la formation

ATTENTION :

Toute personne n'ayant pas rempli ces prérequis ne sera pas accepté à la formation.

@Ephrame
Ephrame / .jsx
Created December 15, 2015 10:31
import React, {Component, PropTypes} from 'react';
const Button = FocusComponents.common.button.action.component;
const defaultProps = {
margin: {top: -5, right: -5, bottom: -5, left: -5},
width: 960,
height: 500,
plan: '<svg><path></path></svg>',
zoomFunction: () => {
d3.select('svg').selectAll('polyline').attr('transform', 'translate(' + d3.event.translate + ')scale(' + d3.event.scale + ')');
},
import React, {Component, PropTypes} from 'react';
const Button = FocusComponents.common.button.action.component;
const defaultProps = {
margin: {top: -5, right: -5, bottom: -5, left: -5},
width: 960,
height: 500,
plan: '<svg><path></path></svg>',
zoomFunction: () => {
d3.select('svg').selectAll('polyline').attr('transform', 'translate(' + d3.event.translate + ')scale(' + d3.event.scale + ')');
},