Skip to content

Instantly share code, notes, and snippets.

@Masoumeh
Masoumeh / index.html
Last active Oct 25, 2017
Al-Muqaddasi Hierarchy
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style>
circle,
path {
cursor: pointer;
}
circle {
@Masoumeh
Masoumeh / index.html
Last active Mar 8, 2017
al-Muqaddasi Vs. Cornu: Comparison
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style>
circle,
path {
cursor: pointer;
}
circle {
@Masoumeh
Masoumeh / index.html
Created Mar 7, 2017
Al-Muqaddasi Hierarchichal Geographical Data
View index.html
<!DOCTYPE html>
<meta charset="utf-8">
<style>
circle,
path {
cursor: pointer;
}
circle {
@Masoumeh
Masoumeh / cornu_subRegs_sunBurst.json
Last active Nov 17, 2017
Cornu Hierarchichal Geographical Data
View cornu_subRegs_sunBurst.json
{
"description": "Cornu Regions",
"children": [
{
"description": "خراسان",
"children": [
{
"description": "جوين، جوين، كويان",
"size": 1,
"name": "جوين"
@Masoumeh
Masoumeh / d3.carto.map.js
Last active Jul 21, 2021
Cornu Voronoi Clipped by Convex Hull of All Regions
View d3.carto.map.js
!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 / d3.carto.map.js
Last active Jul 21, 2021
Cornu Voronoi Clipped by Convex Hull of Each Region
View d3.carto.map.js
!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
Convex Hull on Cornu
View index.html
<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.html
Last active May 21, 2016
QuadTree on Cornu
View index.html
<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 / example.css
Last active May 17, 2016
Geo-Bio (Project)
View example.css
.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.css
Last active May 29, 2016
Concave Hull on Cornu Data
View index.css
html,body {
height: 100%;
width: 100%;
}
path,circle,rect,polygon,ellipse,line {
vector-effect: non-scaling-stroke;
}
svg, canvas {