Skip to content

Instantly share code, notes, and snippets.

@Masoumeh
Masoumeh / example.css
Last active May 17, 2016 07:54
Geo-Bio (Project)
.countrylabel {
font-size: 12px;
color: red;
text-anchor: middle;
pointer-events: none;
font-weight: 900;
}
.countryborders {
fill: rgba(0,0,0,0);
@Masoumeh
Masoumeh / index.html
Last active May 21, 2016 09:09
QuadTree on Cornu
<html>
<head>
<title>clustering</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="https://rawgit.com/emeeks/abcc82cc61c52fc47b19/raw/61a7ad001f0a3c4323b8b21071d2e749df367519/d3map.css">
<link rel="stylesheet" href="https://rawgit.com/emeeks/abcc82cc61c52fc47b19/raw/61a7ad001f0a3c4323b8b21071d2e749df367519/example.css">
</head>
<style>
html,body {
height: 100%;
@Masoumeh
Masoumeh / d3.carto.map.js
Last active May 26, 2016 12:28
Voronoi for Hierarchy
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),(f.d3||(f.d3={})).carto=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
module.exports={
"name": "d3-carto-map",
"version": "0.4.0",
"description": "easy layer-based maps for d3",
"main": "d3.carto.map.js",
"directories": {
"example": "examples"
@Masoumeh
Masoumeh / index.html
Created May 26, 2016 12:34
Convex Hull on Cornu
<html>
<head>
<title>Convex Hulls</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="https://rawgit.com/emeeks/abcc82cc61c52fc47b19/raw/61a7ad001f0a3c4323b8b21071d2e749df367519/d3map.css">
</head>
<style>
html,body {
height: 100%;
width: 100%;
@Masoumeh
Masoumeh / index.css
Last active May 29, 2016 09:33
Concave Hull on Cornu Data
html,body {
height: 100%;
width: 100%;
}
path,circle,rect,polygon,ellipse,line {
vector-effect: non-scaling-stroke;
}
svg, canvas {
@Masoumeh
Masoumeh / index.html
Created March 7, 2017 06:34
Al-Muqaddasi Hierarchichal Geographical Data
<!DOCTYPE html>
<meta charset="utf-8">
<style>
circle,
path {
cursor: pointer;
}
circle {
@Masoumeh
Masoumeh / index.html
Last active March 8, 2017 11:10
al-Muqaddasi Vs. Cornu: Comparison
<!DOCTYPE html>
<meta charset="utf-8">
<style>
circle,
path {
cursor: pointer;
}
circle {
@Masoumeh
Masoumeh / index.html
Last active October 25, 2017 07:11
Al-Muqaddasi Hierarchy
<!DOCTYPE html>
<meta charset="utf-8">
<style>
circle,
path {
cursor: pointer;
}
circle {
@Masoumeh
Masoumeh / cornu_subRegs_sunBurst.json
Last active November 17, 2017 12:32
Cornu Hierarchichal Geographical Data
{
"description": "Cornu Regions",
"children": [
{
"description": "خراسان",
"children": [
{
"description": "جوين، جوين، كويان",
"size": 1,
"name": "جوين"
@Masoumeh
Masoumeh / d3.carto.map.js
Last active July 21, 2021 10:18
Cornu Voronoi Clipped by Convex Hull of Each Region
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),(f.d3||(f.d3={})).carto=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
module.exports={
"name": "d3-carto-map",
"version": "0.4.0",
"description": "easy layer-based maps for d3",
"main": "d3.carto.map.js",
"directories": {
"example": "examples"