This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component } from 'react'; | |
| import 'intersection-observer'; // optional polyfill | |
| import Observer from '@researchgate/react-intersection-observer'; | |
| import ReactResizeDetector from 'react-resize-detector'; | |
| import './styles.scss'; | |
| let data = ['1', '2', '3', '4', '5', '6', '7', '8', '9']; | |
| let heights = [184,58,96,144,68,98,150,200,240]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @keyframes scroll { | |
| 0% { transform: translateY(0%); } | |
| 100% { transform: translateY(-200%); } | |
| } | |
| .parent { | |
| overflow: hidden; | |
| position: relative; | |
| } | |
| .one { | |
| position: absolute; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| input[type='checkbox'] { | |
| outline: none !important; | |
| padding: 0; | |
| margin: 4px 0 0; | |
| line-height: normal; | |
| border: none; | |
| -webkit-appearance: none; | |
| appearance: none; | |
| cursor: pointer; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const calculateDelaunayPoints = (data, width, height, n) => { | |
| // Initialize the variables | |
| const pointsInput = new Float64Array(n * 2); | |
| const centroid = new Float64Array(n * 2); | |
| const stippling = new Float64Array(n); | |
| // Initialize the pointsInput using rejection sampling. | |
| for (let i = 0; i < n; ++i) { | |
| for (let j = 0; j < 30; ++j) { |
OlderNewer