Repository navigation
Expand file tree
/
Copy pathpubs.html
More file actions
1073 lines (1039 loc) · 68 KB
/
Copy pathpubs.html
File metadata and controls
1073 lines (1039 loc) · 68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head>
<meta charset="utf-8">
<meta name="generator" content="quarto-1.9.38">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title>Publications – Personal Website - Shipeng Sun</title>
<style>
/* Default styles provided by pandoc.
** See https://pandoc.org/MANUAL.html#variables-for-html for config info.
*/
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
div.columns{display: flex; gap: min(4vw, 1.5em);}
div.column{flex: auto; overflow-x: auto;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
ul.task-list li input[type="checkbox"] {
width: 0.8em;
margin: 0 0.8em 0.2em -1em; /* quarto-specific, see https://github.com/quarto-dev/quarto-cli/issues/4556 */
vertical-align: middle;
}
/* CSS for citations */
div.csl-bib-body { }
div.csl-entry {
clear: both;
margin-bottom: 0em;
}
.hanging-indent div.csl-entry {
margin-left:2em;
text-indent:-2em;
}
div.csl-left-margin {
min-width:2em;
float:left;
}
div.csl-right-inline {
margin-left:2em;
padding-left:1em;
}
div.csl-indent {
margin-left: 2em;
}</style>
<script src="site_libs/quarto-nav/quarto-nav.js"></script>
<script src="site_libs/quarto-nav/headroom.min.js"></script>
<script src="site_libs/clipboard/clipboard.min.js"></script>
<script src="site_libs/quarto-search/autocomplete.umd.js"></script>
<script src="site_libs/quarto-search/fuse.min.js"></script>
<script src="site_libs/quarto-search/quarto-search.js"></script>
<meta name="quarto:offset" content="./">
<link href="./images/S_.png" rel="icon" type="image/png">
<script src="site_libs/quarto-html/quarto.js" type="module"></script>
<script src="site_libs/quarto-html/tabsets/tabsets.js" type="module"></script>
<script src="site_libs/quarto-html/popper.min.js"></script>
<script src="site_libs/quarto-html/tippy.umd.min.js"></script>
<script src="site_libs/quarto-html/anchor.min.js"></script>
<link href="site_libs/quarto-html/tippy.css" rel="stylesheet">
<link href="site_libs/quarto-html/quarto-syntax-highlighting-15634bcf2e68342d4ad2dfa704d543f6.css" rel="stylesheet" class="quarto-color-scheme" id="quarto-text-highlighting-styles">
<link href="site_libs/quarto-html/quarto-syntax-highlighting-dark-0a6b7249c26820e032cb0bd839ff02b1.css" rel="stylesheet" class="quarto-color-scheme quarto-color-alternate" id="quarto-text-highlighting-styles">
<link href="site_libs/quarto-html/quarto-syntax-highlighting-15634bcf2e68342d4ad2dfa704d543f6.css" rel="stylesheet" class="quarto-color-scheme-extra" id="quarto-text-highlighting-styles">
<script src="site_libs/bootstrap/bootstrap.min.js"></script>
<link href="site_libs/bootstrap/bootstrap-icons.css" rel="stylesheet">
<link href="site_libs/bootstrap/bootstrap-76b725f893b2cdaf53c846d988205bfc.min.css" rel="stylesheet" append-hash="true" class="quarto-color-scheme" id="quarto-bootstrap" data-mode="light">
<link href="site_libs/bootstrap/bootstrap-dark-c918ba9a0d7c69d39a1d7234d0a658ae.min.css" rel="stylesheet" append-hash="true" class="quarto-color-scheme quarto-color-alternate" id="quarto-bootstrap" data-mode="dark">
<link href="site_libs/bootstrap/bootstrap-76b725f893b2cdaf53c846d988205bfc.min.css" rel="stylesheet" append-hash="true" class="quarto-color-scheme-extra" id="quarto-bootstrap" data-mode="light">
<link href="site_libs/quarto-contrib/fontawesome6-6.7.2/all.min.css" rel="stylesheet">
<link href="site_libs/quarto-contrib/fontawesome6-6.7.2/latex-fontsize.css" rel="stylesheet">
<script id="quarto-search-options" type="application/json">{
"location": "navbar",
"copy-button": false,
"collapse-after": 3,
"panel-placement": "end",
"type": "overlay",
"limit": 50,
"keyboard-shortcut": [
"f",
"/",
"s"
],
"show-item-context": false,
"language": {
"search-no-results-text": "No results",
"search-matching-documents-text": "matching documents",
"search-copy-link-title": "Copy link to search",
"search-hide-matches-text": "Hide additional matches",
"search-more-match-text": "more match in this document",
"search-more-matches-text": "more matches in this document",
"search-clear-button-title": "Clear",
"search-text-placeholder": "",
"search-detached-cancel-button-title": "Cancel",
"search-submit-button-title": "Submit",
"search-label": "Search"
}
}</script>
<link rel="stylesheet" href="styles.css">
</head>
<body class="nav-fixed quarto-light"><script id="quarto-html-before-body" type="application/javascript">
const toggleBodyColorMode = (bsSheetEl) => {
const mode = bsSheetEl.getAttribute("data-mode");
const bodyEl = window.document.querySelector("body");
if (mode === "dark") {
bodyEl.classList.add("quarto-dark");
bodyEl.classList.remove("quarto-light");
} else {
bodyEl.classList.add("quarto-light");
bodyEl.classList.remove("quarto-dark");
}
}
const toggleBodyColorPrimary = () => {
const bsSheetEl = window.document.querySelector("link#quarto-bootstrap:not([rel=disabled-stylesheet])");
if (bsSheetEl) {
toggleBodyColorMode(bsSheetEl);
}
}
const setColorSchemeToggle = (alternate) => {
const toggles = window.document.querySelectorAll('.quarto-color-scheme-toggle');
for (let i=0; i < toggles.length; i++) {
const toggle = toggles[i];
if (toggle) {
if (alternate) {
toggle.classList.add("alternate");
} else {
toggle.classList.remove("alternate");
}
}
}
};
const toggleColorMode = (alternate) => {
// Switch the stylesheets
const primaryStylesheets = window.document.querySelectorAll('link.quarto-color-scheme:not(.quarto-color-alternate)');
const alternateStylesheets = window.document.querySelectorAll('link.quarto-color-scheme.quarto-color-alternate');
manageTransitions('#quarto-margin-sidebar .nav-link', false);
if (alternate) {
// note: dark is layered on light, we don't disable primary!
enableStylesheet(alternateStylesheets);
for (const sheetNode of alternateStylesheets) {
if (sheetNode.id === "quarto-bootstrap") {
toggleBodyColorMode(sheetNode);
}
}
} else {
disableStylesheet(alternateStylesheets);
enableStylesheet(primaryStylesheets)
toggleBodyColorPrimary();
}
manageTransitions('#quarto-margin-sidebar .nav-link', true);
// Switch the toggles
setColorSchemeToggle(alternate)
// Hack to workaround the fact that safari doesn't
// properly recolor the scrollbar when toggling (#1455)
if (navigator.userAgent.indexOf('Safari') > 0 && navigator.userAgent.indexOf('Chrome') == -1) {
manageTransitions("body", false);
window.scrollTo(0, 1);
setTimeout(() => {
window.scrollTo(0, 0);
manageTransitions("body", true);
}, 40);
}
}
const disableStylesheet = (stylesheets) => {
for (let i=0; i < stylesheets.length; i++) {
const stylesheet = stylesheets[i];
stylesheet.rel = 'disabled-stylesheet';
}
}
const enableStylesheet = (stylesheets) => {
for (let i=0; i < stylesheets.length; i++) {
const stylesheet = stylesheets[i];
if(stylesheet.rel !== 'stylesheet') { // for Chrome, which will still FOUC without this check
stylesheet.rel = 'stylesheet';
}
}
}
const manageTransitions = (selector, allowTransitions) => {
const els = window.document.querySelectorAll(selector);
for (let i=0; i < els.length; i++) {
const el = els[i];
if (allowTransitions) {
el.classList.remove('notransition');
} else {
el.classList.add('notransition');
}
}
}
const isFileUrl = () => {
return window.location.protocol === 'file:';
}
const hasAlternateSentinel = () => {
let styleSentinel = getColorSchemeSentinel();
if (styleSentinel !== null) {
return styleSentinel === "alternate";
} else {
return false;
}
}
const setStyleSentinel = (alternate) => {
const value = alternate ? "alternate" : "default";
if (!isFileUrl()) {
window.localStorage.setItem("quarto-color-scheme", value);
} else {
localAlternateSentinel = value;
}
}
const getColorSchemeSentinel = () => {
if (!isFileUrl()) {
const storageValue = window.localStorage.getItem("quarto-color-scheme");
return storageValue != null ? storageValue : localAlternateSentinel;
} else {
return localAlternateSentinel;
}
}
const toggleGiscusIfUsed = (isAlternate, darkModeDefault) => {
const baseTheme = document.querySelector('#giscus-base-theme')?.value ?? 'light';
const alternateTheme = document.querySelector('#giscus-alt-theme')?.value ?? 'dark';
let newTheme = '';
if(authorPrefersDark) {
newTheme = isAlternate ? baseTheme : alternateTheme;
} else {
newTheme = isAlternate ? alternateTheme : baseTheme;
}
const changeGiscusTheme = () => {
// From: https://github.com/giscus/giscus/issues/336
const sendMessage = (message) => {
const iframe = document.querySelector('iframe.giscus-frame');
if (!iframe) return;
iframe.contentWindow.postMessage({ giscus: message }, 'https://giscus.app');
}
sendMessage({
setConfig: {
theme: newTheme
}
});
}
const isGiscussLoaded = window.document.querySelector('iframe.giscus-frame') !== null;
if (isGiscussLoaded) {
changeGiscusTheme();
}
};
const authorPrefersDark = false;
const queryPrefersDark = window.matchMedia('(prefers-color-scheme: dark)');
const darkModeDefault = queryPrefersDark.matches;
document.querySelector('link#quarto-text-highlighting-styles.quarto-color-scheme-extra').rel = 'disabled-stylesheet';
document.querySelector('link#quarto-bootstrap.quarto-color-scheme-extra').rel = 'disabled-stylesheet';
let localAlternateSentinel = darkModeDefault ? 'alternate' : 'default';
// Dark / light mode switch
window.quartoToggleColorScheme = () => {
// Read the current dark / light value
let toAlternate = !hasAlternateSentinel();
toggleColorMode(toAlternate);
setStyleSentinel(toAlternate);
toggleGiscusIfUsed(toAlternate, darkModeDefault);
window.dispatchEvent(new Event('resize'));
};
queryPrefersDark.addEventListener("change", e => {
if(window.localStorage.getItem("quarto-color-scheme") !== null)
return;
const alternate = e.matches
toggleColorMode(alternate);
localAlternateSentinel = e.matches ? 'alternate' : 'default'; // this is used alongside local storage!
toggleGiscusIfUsed(alternate, darkModeDefault);
});
// Switch to dark mode if need be
if (hasAlternateSentinel()) {
toggleColorMode(true);
} else {
toggleColorMode(false);
}
</script>
<div id="quarto-search-results"></div>
<header id="quarto-header" class="headroom fixed-top">
<nav class="navbar navbar-expand-lg " data-bs-theme="dark">
<div class="navbar-container container-fluid">
<div class="navbar-brand-container mx-auto">
<a href="./index.html" class="navbar-brand navbar-brand-logo">
<img src="./images/S_Logo_Cut.png" alt="" class="navbar-logo light-content">
<img src="./images/S_Logo_Cut.png" alt="" class="navbar-logo dark-content">
</a>
<a class="navbar-brand" href="./index.html">
<span class="navbar-title">Live Simply in a Complex World</span>
</a>
</div>
<div id="quarto-search" class="" title="Search"></div>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" role="menu" aria-expanded="false" aria-label="Toggle navigation" onclick="if (window.quartoToggleHeadroom) { window.quartoToggleHeadroom(); }">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav navbar-nav-scroll ms-auto">
<li class="nav-item">
<a class="nav-link" href="./index.html"> <i class="bi bi-house-door" role="img">
</i>
<span class="menu-text">Home</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="./bio.html"> <i class="bi bi-file-person" role="img">
</i>
<span class="menu-text">Bio</span></a>
</li>
<li class="nav-item dropdown ">
<a class="nav-link dropdown-toggle" href="#" id="nav-menu-research" role="link" data-bs-toggle="dropdown" aria-expanded="false">
<i class="bi bi-journals" role="img">
</i>
<span class="menu-text">Research</span>
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="nav-menu-research">
<li>
<a class="dropdown-item" href="./pubs.html"><i class="bi bi-book" role="img">
</i>
<span class="dropdown-text">Publication</span></a>
</li>
<li>
<a class="dropdown-item" href="./portfolio.html"><i class="bi bi-cast" role="img">
</i>
<span class="dropdown-text">Portfolio</span></a>
</li>
<li>
<a class="dropdown-item" href="./download.html"><i class="bi bi-cloud-download" role="img">
</i>
<span class="dropdown-text">Download</span></a>
</li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link" href="./teach.html"> <i class="bi bi-people-fill" role="img">
</i>
<span class="menu-text">Teaching</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="./about.html"> <i class="bi bi-info-square" role="img">
</i>
<span class="menu-text">About</span></a>
</li>
<li class="nav-item dropdown ">
<a class="nav-link dropdown-toggle" href="#" id="nav-menu-social-media" role="link" data-bs-toggle="dropdown" aria-expanded="false">
<i class="bi bi-laptop" role="img">
</i>
<span class="menu-text">Social Media</span>
</a>
<ul class="dropdown-menu dropdown-menu-end" aria-labelledby="nav-menu-social-media">
<li>
<a class="dropdown-item" href="https://twitter.com"><i class="bi bi-twitter-x" role="img">
</i>
<span class="dropdown-text">Geography@Hunter</span></a>
</li>
<li>
<a class="dropdown-item" href="https://www.geo.hunter.cuny.edu"><i class="bi bi-globe" role="img">
</i>
<span class="dropdown-text">Shipeng Sun</span></a>
</li>
<li>
<a class="dropdown-item" href="https://github.com/suncodeearth"><i class="bi bi-github" role="img">
</i>
<span class="dropdown-text">Source Code</span></a>
</li>
<li>
<a class="dropdown-item" href="https://observablehq.com/@suncodeearth"><i class="bi bi-0-circle-fill" role="img">
</i>
<span class="dropdown-text">Observable</span></a>
</li>
</ul>
</li>
</ul>
</div> <!-- /navcollapse -->
<div class="quarto-navbar-tools">
<a href="" class="quarto-color-scheme-toggle quarto-navigation-tool px-1" onclick="window.quartoToggleColorScheme(); return false;" title="Toggle dark mode"><i class="bi"></i></a>
</div>
</div> <!-- /container-fluid -->
</nav>
</header>
<!-- content -->
<div id="quarto-content" class="quarto-container page-columns page-rows-contents page-layout-article page-navbar">
<!-- sidebar -->
<!-- margin-sidebar -->
<div id="quarto-margin-sidebar" class="sidebar margin-sidebar">
<nav id="TOC" role="doc-toc" class="toc-active">
<h2 id="toc-title">On this page</h2>
<ul>
<li><a href="#research-interests" id="toc-research-interests" class="nav-link active" data-scroll-target="#research-interests">Research Interests</a></li>
<li><a href="#journal-articles-and-book-chapters" id="toc-journal-articles-and-book-chapters" class="nav-link" data-scroll-target="#journal-articles-and-book-chapters">Journal Articles and Book Chapters</a></li>
<li><a href="#datasets-models-and-web-maps" id="toc-datasets-models-and-web-maps" class="nav-link" data-scroll-target="#datasets-models-and-web-maps">Datasets, Models, and Web Maps</a></li>
<li><a href="#auto-generated-bibliography" id="toc-auto-generated-bibliography" class="nav-link" data-scroll-target="#auto-generated-bibliography">Auto-generated Bibliography</a></li>
</ul>
</nav>
</div>
<!-- main -->
<main class="content" id="quarto-document-content">
<header id="title-block-header" class="quarto-title-block default">
<div class="quarto-title">
<h1 class="title">Publications</h1>
</div>
<div class="quarto-title-meta">
</div>
</header>
<section id="research-interests" class="level3">
<h3 class="anchored" data-anchor-id="research-interests">Research Interests</h3>
<p>My research interests are primarily in three related areas:</p>
<ul>
<li>GIS Algorithms, geovisualization, sociospatial network analysis, and computational geography;</li>
<li>Coupled human-environment systems, agent-based complexity modeling, and environmental geography;</li>
<li>Intraurban migration, land and housing markets, land use change, and urban geography.</li>
</ul>
</section>
<section id="journal-articles-and-book-chapters" class="level3">
<h3 class="anchored" data-anchor-id="journal-articles-and-book-chapters">Journal Articles and Book Chapters</h3>
<!--
[[]{style="color: darkgrey;"}](https://www.dropbox.com/scl/fi/5huljcozu8ir68j4qkibs/SUN_2023_CEUS_Neighborhood_on_Sprawl.pdf?rlkey=p64p2ssifz5aavx91eakfveid&dl=0)
-->
<p><u><strong>Sun, S.</strong></u>, Di, C., Li, L., Sulkow, B., & Qiu, W. (2024). Quantity of questing black-legged ticks and associated micro-scale environmental data collected from four Suburban Parks near New York City. <em>Data in Brief</em>, <em>52</em>: 109819. <a href="https://doi.org/10.1016/j.dib.2023.109819" class="uri">https://doi.org/10.1016/j.dib.2023.109819</a>. <a href="https://doi.org/10.1016/j.dib.2023.109819" class="ss-no-icon"><i class="fa-solid fa-file-pdf" title="View and Download PDF" aria-label="file-pdf"></i></a></p>
<p><u><strong>Sun, S.</strong></u>, Parker, D. C., & Brown, D. G. (2023). From an agent-based laboratory to the real world: Effects of “neighborhood” size on urban sprawl. <em>Computers, Environment and Urban Systems</em>, <em>99</em>: 101889. <a href="https://doi.org/10.1016/j.compenvurbsys.2022.101889" class="uri">https://doi.org/10.1016/j.compenvurbsys.2022.101889</a>. <a href="https://www.dropbox.com/scl/fi/5huljcozu8ir68j4qkibs/SUN_2023_CEUS_Neighborhood_on_Sprawl.pdf?rlkey=p64p2ssifz5aavx91eakfveid&dl=0" class="ss-no-icon"><i class="fa-solid fa-file-pdf" title="View and Download PDF" aria-label="file-pdf"></i></a></p>
<p><u><strong>Sun, S.</strong></u> (2023, June 28-30). Redrawing electoral maps to curb gerrymandering: a case study of New York State in 2022. <em>5th International Conference on Advanced Research Methods and Analytics (CARMA 2023)</em>, Servilla, Spain. <a href="https://doi.org/10.4995/CARMA2023.2023.16481" class="uri">https://doi.org/10.4995/CARMA2023.2023.16481</a>. <a href="https://www.dropbox.com/scl/fi/kstir0j14oq7p6e0ik41y/Sun_2023_CARMA_NY_Gerrymandering.pdf?rlkey=737eygy1yok54lt7d79nfg98o&dl=0" class="ss-no-icon"><i class="fa-solid fa-file-pdf" title="View and Download PDF" aria-label="file-pdf"></i></a></p>
<p>Di, C., Sulkow, B., Qiu, W., & <u><strong>Sun, S.</strong></u> (2023). Effects of Micro-Scale Environmental Factors on the Quantity of Questing Black-Legged Ticks in Suburban New York. <i>Applied Sciences</i>,<i> 13</i>(20), 11587. <a href="https://doi.org/10.3390/app132011587">https://doi.org/10.3390/app132011587</a>. <a href="https://doi.org/10.3390/app132011587" class="ss-no-icon"><i class="fa-solid fa-file-pdf" title="View and Download PDF" aria-label="file-pdf"></i></a></p>
<p><u><strong>Sun, S.</strong></u> (2022). A Mapping of the Twentieth-Century Urban Geography in North America Using Written Narratives and Network Analysis. <i>The Professional Geographer</i>,<i> 74</i>(4), 668-687. <a href="https://doi.org/10.1080/00330124.2022.2048871">https://doi.org/10.1080/00330124.2022.2048871</a>. <a href="https://www.dropbox.com/scl/fi/i0emr38oqgcfft3q47av6/SUN_2022_PG_A-Mapping-of-the-Twentieth-Century-Urban-Geography-in-North-America-Using-Written-Narratives-and-Network-Analysis.pdf?rlkey=zigds02d2gcr2zf0obd3mybug&dl=0" class="ss-no-icon"><i class="fa-solid fa-file-pdf" title="View and Download PDF" aria-label="file-pdf"></i></a></p>
<p>Kelley, D., & <u><strong>Sun, S.</strong></u> (2021). How Phantom Networks, Provider Qualities, and Poverty Sway Medicaid Dental Care Access: A Geospatial Analysis of Manhattan. <i>International Journal of Environmental Research and Public Health</i>,<i> 18</i>(23), 12383. <a href="https://www.mdpi.com/1660-4601/18/23/12383">https://www.mdpi.com/1660-4601/18/23/12383</a>. <a href="https://www.mdpi.com/1660-4601/18/23/12383" class="ss-no-icon"><i class="fa-solid fa-file-pdf" title="View and Download PDF" aria-label="file-pdf"></i></a></p>
<p><u><strong>Sun, S.</strong></u> (2020). Applying forces to generate cartograms: a fast and flexible transformation framework. <i>Cartography and Geographic Information Science</i>, 1-19. <a href="https://doi.org/10.1080/15230406.2020.1745092">https://doi.org/10.1080/15230406.2020.1745092</a>. <a href="https://www.dropbox.com/scl/fi/yth14ua8c5dmrhr2uclvm/SUN_2020_CaGIS_Applying-forces-to-generate-cartograms-a-fast-and-flexible-transformation-framework.pdf?rlkey=pmpm6wt3924r7nvo4waiwyavx&dl=0" class="ss-no-icon"><i class="fa-solid fa-file-pdf" title="View and Download PDF" aria-label="file-pdf"></i></a></p>
<p><u><strong>Sun, S.</strong></u> (2020). Developing a Comprehensive and Coherent Shape Compactness Metric for Gerrymandering. <i>Annals of the American Association of Geographers</i>, 1-21. <a href="https://doi.org/10.1080/24694452.2020.1760779">https://doi.org/10.1080/24694452.2020.1760779</a>. <a href="https://www.dropbox.com/scl/fi/uovsmzlafl8ujzkz4u5dr/SUN_2020_AAAG_Developing-a-Comprehensive-and-Coherent-Shape-Compactness-Metric-for-Gerrymandering.pdf?rlkey=qsnsjhawet094zck2kbxqgm09&dl=0" class="ss-no-icon"><i class="fa-solid fa-file-pdf" title="View and Download PDF" aria-label="file-pdf"></i></a></p>
<p><u><strong>Sun, S.</strong></u> (2018). A spatial one-to-many flow layout algorithm using triangulation, approximate Steiner trees, and path smoothing. <i>Cartography and Geographic Information Science</i>, 1-17. <a href="https://doi.org/10.1080/15230406.2018.1437359">https://doi.org/10.1080/15230406.2018.1437359</a>. <a href="https://www.dropbox.com/scl/fi/1r05682jmg8rz4nb8k2jb/SUN_2019_CaGIS_TNSS_A-spatial-one-to-many-flow-layout-algorithm-using-triangulation-approximate-Steiner-trees-and-path-smoothing.pdf?rlkey=h1juh44v468jrnukzjx8zq50u&dl=0" class="ss-no-icon"><i class="fa-solid fa-file-pdf" title="View and Download PDF" aria-label="file-pdf"></i></a></p>
<p><u><strong>Sun, S.</strong></u> (2017). Examining intraurban migration in the Twin Cities metropolitan area using parcel data. In L. A. Schintler & Z. Chen (Eds.), <i>Big Data for Regional Science</i> (pp. 64-74). Routledge. <a href="https://www.dropbox.com/scl/fi/va6pp5r2abw5rei2bt8zu/SUN_2017_Big_Data_Parcel_TCMA_Proofread_Ver.pdf?rlkey=ff1ea7jydquaxvllfa145gq39&dl=0" class="ss-no-icon"><i class="fa-solid fa-file-pdf" title="View and Download PDF" aria-label="file-pdf"></i></a></p>
<p><u><strong>Sun, S.</strong></u> (2016, September 14-16). An Automated Spatial Flow Layout Algorithm using Triangulation, Approximate Steiner Tree, and Path Smoothing. AutoCarto 2016: The 21st International Research Symposium on Computer-based Cartography and GIScience, Albuquerque, NM. <a href="https://www.dropbox.com/scl/fi/s8acfbxile9q7krjk4zq3/Sun_2016_AutoCarto_Flow_Map_Layout.pdf?rlkey=eoxfc6hrv6m362iaailj25kb0&dl=0" class="ss-no-icon"><i class="fa-solid fa-file-pdf" title="View and Download PDF" aria-label="file-pdf"></i></a></p>
<p><u><strong>Sun, S.</strong></u> (2016). Symbolize map distortion with inscribed circles in polygons. <i>International Journal of Cartography</i>,<i> 2</i>(2), 166-185. <a href="https://doi.org/10.1080/23729333.2016.1179863">https://doi.org/10.1080/23729333.2016.1179863</a>. <a href="https://www.dropbox.com/scl/fi/niet4vzswn5ygyhcum2nt/SUN_2016_IJCarto_ICIP_Symbolize_distortion_with_inscribed_circles_in_polygons.pdf?rlkey=lj4ih5tch9dcrw4e9j7rnvi9d&dl=0" class="ss-no-icon"><i class="fa-solid fa-file-pdf" title="View and Download PDF" aria-label="file-pdf"></i></a></p>
<p><u><strong>Sun, S.</strong></u>, & Manson, S. M. (2015). Simple Agents, Complex Emergent City: Agent-Based Modeling of Intraurban Migration. In M. Helbich, J. Jokar Arsanjani, & M. Leitner (Eds.), <i>Computational Approaches for Urban Environments</i> (Vol. 13, pp. 123-147). Springer International Publishing. <a href="https://doi.org/10.1007/978-3-319-11469-9_6">https://doi.org/10.1007/978-3-319-11469-9_6</a>. <a href="https://www.dropbox.com/scl/fi/s8acfbxile9q7krjk4zq3/Sun_2016_AutoCarto_Flow_Map_Layout.pdf?rlkey=eoxfc6hrv6m362iaailj25kb0&dl=0" class="ss-no-icon"><i class="fa-solid fa-file-pdf" title="View and Download PDF" aria-label="file-pdf"></i></a></p>
<p><u><strong>Sun, S.</strong></u> (2015). A perception-based color recommendation algorithm for hierarchical regions. <i>Cartography and Geographic Information Science</i>,<i> 42</i>(3), 259-270. <a href="https://doi.org/10.1080/15230406.2014.991424">https://doi.org/10.1080/15230406.2014.991424</a>. <a href="https://www.dropbox.com/scl/fi/5e01cbcx3cimqqnn3rns5/SUN_2015_CaGIS_Hierarchical_Colors.pdf?rlkey=7bivso7wi5dp4ze16yg9r6d1p&dl=0" class="ss-no-icon"><i class="fa-solid fa-file-pdf" title="View and Download PDF" aria-label="file-pdf"></i></a></p>
<p>MacDonald, G. K., Brauman, K. A., <u><strong>Sun, S.</strong></u>, Carlson, K. M., Cassidy, E. S., Gerber, J. S., & West, P. C. (2015). Rethinking Agricultural Trade Relationships in an Era of Globalization. <i>BioScience</i>,<i> 65</i>(3), 275-289. <a href="https://doi.org/10.1093/biosci/biu225">https://doi.org/10.1093/biosci/biu225</a></p>
<p><u><strong>Sun, S.</strong></u>, Parker, D. C., Huang, Q., Filatova, T., Robinson, D. T., Riolo, R. L., Hutchins, M., & Brown, D. G. (2014). Market Impacts on Land-Use Change: An Agent-Based Experiment. <i>Annals of the Association of American Geographers</i>,<i> 104</i>(3), 460-484. <a href="https://doi.org/10.1080/00045608.2014.892338">https://doi.org/10.1080/00045608.2014.892338</a>. <a href="https://www.dropbox.com/scl/fi/uxfglkjx7jttcoy00c58a/SUN_2014_AAAG_Markets_on_LUC_ABM.pdf?rlkey=lrcz7wzrjjje57zkyc3iv6wgu&dl=0" class="ss-no-icon"><i class="fa-solid fa-file-pdf" title="View and Download PDF" aria-label="file-pdf"></i></a></p>
<p>Huang, Q., Parker, D. C., Filatova, T., & <u><strong>Sun, S.</strong></u> (2014). A review of urban residential choice models using agent-based modeling. <i>Environment and Planning B: Planning and Design</i>,<i> 41</i>(4), 661-689. <a href="https://doi.org/10.1068/b120043p">https://doi.org/10.1068/b120043p</a></p>
<p><u><strong>Sun, S.</strong></u> (2013). A Fast Free-Form Rubber-Sheet Algorithm for Contiguous Area Cartograms. <i>International Journal of Geographic Information Science</i>,<i> 27</i>(3), 567-593. <a href="https://doi.org/10.1080/13658816.2012.709247">https://doi.org/10.1080/13658816.2012.709247</a>. <a href="https://www.dropbox.com/scl/fi/3gi9uwfrfsd0c4yknkl2v/SUN_2013_IJGIS_Carto3F.pdf?rlkey=onn70p3eiqxn1ip2nllbla8n6&dl=0" class="ss-no-icon"><i class="fa-solid fa-file-pdf" title="View and Download PDF" aria-label="file-pdf"></i></a></p>
<p><u><strong>Sun, S.</strong></u> (2013). An Optimized Rubber-Sheet Algorithm for Continuous Area Cartograms. <i>The Professional Geographer</i>,<i> 65</i>(1), 16-30. <a href="https://doi.org/10.1080/00330124.2011.639613">https://doi.org/10.1080/00330124.2011.639613</a>. <a href="https://www.dropbox.com/scl/fi/ilcx07hdv2mt2ofb5mdq3/SUN_2013_PG_Opti-DCN.pdf?rlkey=3lglkpp3g33q05myxa4ukr3r9&dl=0" class="ss-no-icon"><i class="fa-solid fa-file-pdf" title="View and Download PDF" aria-label="file-pdf"></i></a></p>
<p>Robinson, D. T., <u><strong>Sun, S.</strong></u>, Hutchins, M., Riolo, R. L., Brown, D. G., Parker, D. C., Filatova, T., Currie, W. S., & Kiger, S. (2013). Effects of land markets and land management on ecosystem function: A framework for modelling exurban land-change. <i>Environmental Modelling & Software</i>,<i> 45</i>(0), 129-140. <a href="https://doi.org/http://dx.doi.org/10.1016/j.envsoft.2012.06.016">https://doi.org/http://dx.doi.org/10.1016/j.envsoft.2012.06.016</a></p>
<p>Huang, Q., Parker, D. C., <u><strong>Sun, S.</strong></u>, & Filatova, T. (2013). Effects of agent heterogeneity in the presence of a land-market: A systematic test in an agent-based laboratory. <i>Computers, Environment and Urban Systems</i>,<i> 41</i>(0), 188-203. <a href="https://doi.org/http://dx.doi.org/10.1016/j.compenvurbsys.2013.06.004">https://doi.org/http://dx.doi.org/10.1016/j.compenvurbsys.2013.06.004</a></p>
<p><u><strong>Sun, S.</strong></u>, & Manson, S. M. (2012). Intraurban Migration, Neighborhoods, and City Structure. <i>Urban Geography</i>,<i> 33</i>(7), 1008-1029. <a href="https://doi.org/10.2747/0272-3638.33.7.1008">https://doi.org/10.2747/0272-3638.33.7.1008</a>. <a href="https://www.dropbox.com/scl/fi/h4xep8wgrjyyf564zizwl/SUN_2012_UG_Migration_Network.pdf?rlkey=fhpw0b19cb4oq79gp5v7lst7o&dl=0" class="ss-no-icon"><i class="fa-solid fa-file-pdf" title="View and Download PDF" aria-label="file-pdf"></i></a></p>
<p>Parker, D. C., <u><strong>Sun, S.</strong></u>, Filatova, T., Magliocca, N., Huang, Q., Brown, D. G., & Riolo, R. (2012). The implications of alternative developer decision-making strategies on land-use and land-cover in an agent-based land market model. <em>The Sixth Biennial Meeting of International Congress on Environmental Modelling and Software</em>, Leipzig, Germany.</p>
<p>Parker, D. C., Brown, D. G., Filatova, T., Riolo, R., Robinson, D. T., & <u><strong>Sun, S.</strong></u> (2012). Do Land Markets Matter? A Modeling Ontology and Experimental Design to Test the Effects of Land Markets for an Agent-Based Model of Ex-Urban Residential Land-Use Change. In A. J. Heppenstall, A. T. Crooks, L. M. See, & M. Batty (Eds.), <i>Agent-Based Models of Geographical Systems</i> (pp. 525-542). Springer Netherlands. <a href="https://doi.org/10.1007/978-90-481-8927-4_26">https://doi.org/10.1007/978-90-481-8927-4_26</a></p>
<p>Manson, S. M., <u><strong>Sun, S.</strong></u>, & Bonsal, D. (2012). Agent-Based Modeling and Complexity. In A. J. Heppenstall, A. T. Crooks, L. M. See, & M. Batty (Eds.), <i>Agent-Based Models of Geographical Systems</i> (pp. 125-139). Springer Netherlands. <a href="https://doi.org/10.1007/978-90-481-8927-4_7">https://doi.org/10.1007/978-90-481-8927-4_7</a></p>
<p><u><strong>Sun, S.</strong></u>, & Manson, S. M. (2011). Social Network Analysis of the Academic GIScience Community. <i>The Professional Geographer</i>,<i> 63</i>(1), 18-33. <a href="https://doi.org/10.1080/00330124.2010.533560">https://doi.org/10.1080/00330124.2010.533560</a>. <a href="https://www.dropbox.com/scl/fi/q1py5h9jf2i6za9jyhf37/SUN_2011_MANSON_PG_SNA_GISc.pdf?rlkey=kpmrjvte0ilbgwb8loctv6wxc&dl=0" class="ss-no-icon"><i class="fa-solid fa-file-pdf" title="View and Download PDF" aria-label="file-pdf"></i></a></p>
<p><u><strong>Sun, S.</strong></u>, & Manson, S. M. (2010). An Agent-based Model of Housing Search and Intraurban Migration in the Twin Cities of Minnesota. <em>IEMSS Fifth Biennial Meeting</em>, Ottawa, Canada. <a href="https://www.dropbox.com/scl/fi/dmeub15zy0jkpwz3g1cx8/SUN_2010_MANSON_IEMSS_Conference.pdf?rlkey=kkti9weoao5ss5syhh4zy37n5&dl=0" class="ss-no-icon"><i class="fa-solid fa-file-pdf" title="View and Download PDF" aria-label="file-pdf"></i></a></p>
<p>Robinson, D. T., Filatova, T., <u><strong>Sun, S.</strong></u>, Riolo, R. L., Brown, D. G., & Parker, D. C. (2010). Integrating Land Markets, Land Management, and Ecosystem Function in a Model of Land Change. <em>IEMSS Fifth Biennial Meeting</em>, Ottawa, Canada.</p>
<p><u><strong>Sun, S.</strong></u> (2009). <i>Intraurban Migration in the Twin Cities Metropolitan Area of Minnesota</i> [Dissertation, University of Minnesota]. Minneapolis, MN USA. <a href="https://www.dropbox.com/scl/fi/exsmwh79gxa382m1c1enq/Sun_2009_Disseration_UMN_Lib_Version.pdf?rlkey=vk6s0rmtofpofqk4dmzldbtil&dl=0" class="ss-no-icon"><i class="fa-solid fa-file-pdf" title="View and Download PDF" aria-label="file-pdf"></i></a></p>
<p>Manson, S. M., Sander, H. A., Ghosh, D., Oakes, J. M., Jr, M. W. O., Craig, W. J., Jr, T. F. L., Myott, E., & <u><strong>Sun, S.</strong></u> (2009). Parcel Data for Research and Policy. <i>Geography Compass</i>,<i> 3</i>(2), 698-726. <a href="http://dx.doi.org/10.1111/j.1749-8198.2008.00209.x">http://dx.doi.org/10.1111/j.1749-8198.2008.00209.x</a></p>
<p><u><strong>Sun, S.</strong></u>, & Manson, S. M. (2007, Sep. 15). <i>Distance Cartogram: Concept, Approximate Algorithm, and Examples</i> <em>2007 International Workshop on Geographic Information Science</em> Beijing, China.</p>
<p>Pan, M., Wang, Y., Li, K., & <u><strong>Sun, S.</strong></u> (2003). Multi-Resolution Octree Data Structure: Theory Research and Application (In Chinese). <i>Geography and Geo-Information Science</i>,<i> 19</i>(4), 37-40.</p>
<p><u><strong>Sun, S.</strong></u>, Li, Y., Xu, S., Meng, X., & Zhong, Z. (2001). Dynamic Positioning and Railway Management Information System (In Chinese). <i>Railway Computer Application</i>,<i> 10</i>(9), 25-27.</p>
<p><u><strong>Sun, S.</strong></u> (2001). <i>GIS Network Analysis Kernel Algorithm Optimization and 3D Scene Simulation</i> [Master’s Thesis, Peking University]. Beijing, China.</p>
<p>Xiao, B., Hou, J., Xiao, K., & <u><strong>Sun, S.</strong></u> (2000). Visual Statistical Software System for Spatial Information (In Chinese). <i>Geological Reivew</i>,<i> 46</i>(Z1), 176-181.</p>
</section>
<section id="datasets-models-and-web-maps" class="level3">
<h3 class="anchored" data-anchor-id="datasets-models-and-web-maps">Datasets, Models, and Web Maps</h3>
<p><u><strong>Sun, S.</strong></u>, & Di, C. (2023). <i>Quantity of Questing Blacklegged Ticks and Micro-scale Environmental Factors in Four Suburban Parks near New York City</i> (Version 2) Mendeley Data. <a href="https://doi.org/10.17632/d24yyp96dc.2">https://doi.org/10.17632/d24yyp96dc.2</a></p>
<p><u><strong>Sun, S.</strong></u> (2023). <i>Mapping and Assessing Four New York State Districting Maps</i>.<i> </i>In (Version 2.0) [Web-based]. CARSI Lab, Hunter College. <a href="https://www.geo.hunter.cuny.edu/~ssun/nys_districting">https://www.geo.hunter.cuny.edu/~ssun/nys_districting</a> and <a href="https://sunsp.net/nys-cd">https://sunsp.net/nys-cd</a></p>
<p><u><strong>Sun, S.</strong></u>, Parker, D., Huang, Q., Brown, D., Filatova, T., Riolo, R. L., Robinson, D., & Hutchins, M. (2022). <i>SLUCEII LUXE (Land Use in an eXurban Environment)</i>.<i> </i>In (Version 2.0.0) CoMSES Computational Model Library. <a href="https://www.comses.net/codebases/3942/releases/2.0.0/">https://www.comses.net/codebases/3942/releases/2.0.0/</a></p>
<p><u><strong>Sun, S.</strong></u> (2022). <i>Personalities in North American Urban Geography</i> (Version V1) Harvard Dataverse. <a href="https://doi.org/doi:10.7910/DVN/UBMRZS">https://doi.org/doi:10.7910/DVN/UBMRZS</a></p>
<p><u><strong>Sun, S.</strong></u>, & Ahearn, S. C. (2021). <i>Mapping the COVID-19 Development and Modeling Results in US Counties </i>In (Version 2.0) CARSI Lab, Hunter College. <a href="https://www.geo.hunter.cuny.edu/~ssun/covid_dashboard">https://www.geo.hunter.cuny/~ssun/covid_dashboard</a> and <a href="http://carsimodel.com">http://carsimodel.com</a></p>
<p><u><strong>Sun, S.</strong></u> (2020). <i>Software and Example Data for F4Carto: A Fast and Flexible Force-based Transformation Framework for Cartograms</i> (Version V1) Harvard Dataverse. <a href="https://doi.org/doi/10.7910/DVN/6ST8NQ">https://doi.org/doi/10.7910/DVN/6ST8NQ</a></p>
</section>
<section id="auto-generated-bibliography" class="level3">
<h3 class="anchored" data-anchor-id="auto-generated-bibliography">Auto-generated Bibliography</h3>
<p><a href="./data/pubs.bib" class="external" target="_blank">Download BibTex Library</a></p>
<div id="refs" class="references csl-bib-body hanging-indent" data-entry-spacing="0" data-line-spacing="2" role="list">
<div id="ref-RN109" class="csl-entry" role="listitem">
Sun, S., Di, C., Li, L., Sulkow, B., & Qiu, W. (2024). Quantity of questing black-legged ticks and associated micro-scale environmental data collected from four suburban parks near new york city [Journal Article]. <em>Data in Brief</em>, <em>52</em>, 109819. <a href="https://doi.org/10.1016/j.dib.2023.109819">https://doi.org/10.1016/j.dib.2023.109819</a>
</div>
<div id="ref-RN108" class="csl-entry" role="listitem">
Di, C., Sulkow, B., Qiu, W., & Sun, S. (2023). Effects of micro-scale environmental factors on the quantity of questing black-legged ticks in suburban new york [Journal Article]. <em>Applied Sciences</em>, <em>13</em>(20), 11587. <a href="https://doi.org/10.3390/app132011587">https://doi.org/10.3390/app132011587</a>
</div>
<div id="ref-RN114" class="csl-entry" role="listitem">
Sun, S. (2023). <em>Mapping and assessing four new york state districting maps</em> (pp. A web–based map and visualization using leaflet, plotly, d3, tabulator, and other JS libraries.) [Computer Program]. CARSI Lab, Hunter College. <a href="https://www.geo.hunter.cuny.edu/~ssun/nys_districting
https://sunsp.net/nys_cd_maps">https://www.geo.hunter.cuny.edu/~ssun/nys_districting https://sunsp.net/nys_cd_maps</a>
</div>
<div id="ref-RN106" class="csl-entry" role="listitem">
Sun, S. (2023). Redrawing electoral maps to curb gerrymandering: A case study of new york state in 2022 [Conference Proceedings]. In R. Martínez-Torres & S. Tora (Eds.), <em>5th international conference on advanced research methods and analytics (CARMA 2023)</em>. Universitat Politècnica de València. <a href="https://doi.org/10.4995/CARMA2023.2023.16481">https://doi.org/10.4995/CARMA2023.2023.16481</a>
</div>
<div id="ref-RN104" class="csl-entry" role="listitem">
Sun, S., & Di, C. (2023). <em>Quantity of questing blacklegged ticks and micro-scale environmental factors in four suburban parks near new york city</em> [Dataset]. Mendeley Data. <a href="https://doi.org/10.17632/d24yyp96dc.2">https://doi.org/10.17632/d24yyp96dc.2</a>
</div>
<div id="ref-RN103" class="csl-entry" role="listitem">
Sun, S., Parker, D. C., & Brown, D. G. (2023). From an agent-based laboratory to the real world: Effects of <span>“neighborhood”</span> size on urban sprawl [Journal Article]. <em>Computers, Environment and Urban Systems</em>, <em>99</em>, 101889. <a href="https://doi.org/10.1016/j.compenvurbsys.2022.101889">https://doi.org/10.1016/j.compenvurbsys.2022.101889</a>
</div>
<div id="ref-RN107" class="csl-entry" role="listitem">
Sun, S. (2022). A mapping of the twentieth-century urban geography in north america using written narratives and network analysis [Journal Article]. <em>The Professional Geographer</em>, <em>74</em>(4), 668–687. <a href="https://doi.org/10.1080/00330124.2022.2048871">https://doi.org/10.1080/00330124.2022.2048871</a>
</div>
<div id="ref-RN100" class="csl-entry" role="listitem">
Sun, S. (2022). <em>Personalities in north american urban geography</em> [Dataset]. Harvard Dataverse. <a href="https://doi.org/doi:10.7910/DVN/UBMRZS">https://doi.org/doi:10.7910/DVN/UBMRZS</a>
</div>
<div id="ref-RN112" class="csl-entry" role="listitem">
Sun, S., Parker, D., Huang, Q., Brown, D., Filatova, T., Riolo, R. L., Robinson, D., & Hutchins, M. (2022). <em>SLUCEII LUXE (land use in an eXurban environment)</em> [Computer Program]. CoMSES Computational Model Library. <a href="https://www.comses.net/codebases/3942/releases/2.0.0/">https://www.comses.net/codebases/3942/releases/2.0.0/</a>
</div>
<div id="ref-RN99" class="csl-entry" role="listitem">
Kelley, D., & Sun, S. (2021). How phantom networks, provider qualities, and poverty sway medicaid dental care access: A geospatial analysis of manhattan [Journal Article]. <em>International Journal of Environmental Research and Public Health</em>, <em>18</em>(23), 12383. <a href="https://www.mdpi.com/1660-4601/18/23/12383">https://www.mdpi.com/1660-4601/18/23/12383</a>
</div>
<div id="ref-RN113" class="csl-entry" role="listitem">
Sun, S., & Ahearn, S. C. (2021). <em>Mapping the COVID-19 development and modeling results in US counties</em> [Computer Program]. CARSI Lab, Hunter College. <a href="http://www.geo.hunter.cuny/~ssun/covid_dashboard
http://carsimodel.com">http://www.geo.hunter.cuny/~ssun/covid_dashboard http://carsimodel.com</a>
</div>
<div id="ref-RN97" class="csl-entry" role="listitem">
Sun, S. (2020). Applying forces to generate cartograms: A fast and flexible transformation framework [Journal Article]. <em>Cartography and Geographic Information Science</em>, 1–19. <a href="https://doi.org/10.1080/15230406.2020.1745092">https://doi.org/10.1080/15230406.2020.1745092</a>
</div>
<div id="ref-RN96" class="csl-entry" role="listitem">
Sun, S. (2020). Developing a comprehensive and coherent shape compactness metric for gerrymandering [Journal Article]. <em>Annals of the American Association of Geographers</em>, 1–21. <a href="https://doi.org/10.1080/24694452.2020.1760779">https://doi.org/10.1080/24694452.2020.1760779</a>
</div>
<div id="ref-RN111" class="csl-entry" role="listitem">
Sun, S. (2020). <em>Software and example data for F4Carto: A fast and flexible force-based transformation framework for cartograms</em> [Dataset]. Harvard Dataverse. <a href="https://doi.org/doi/10.7910/DVN/6ST8NQ">https://doi.org/doi/10.7910/DVN/6ST8NQ</a>
</div>
<div id="ref-RN101" class="csl-entry" role="listitem">
Sun, S. (2020). <em>Software and example data for F4Carto: A fast and flexible force-based transformation framework for cartograms</em> [Dataset]. Harvard Dataverse. <a href="https://doi.org/doi:10.7910/DVN/6ST8NQ">https://doi.org/doi:10.7910/DVN/6ST8NQ</a>
</div>
<div id="ref-RN94" class="csl-entry" role="listitem">
Sun, S. (2018). A spatial one-to-many flow layout algorithm using triangulation, approximate steiner trees, and path smoothing [Journal Article]. <em>Cartography and Geographic Information Science</em>, 1–17. <a href="https://doi.org/10.1080/15230406.2018.1437359">https://doi.org/10.1080/15230406.2018.1437359</a>
</div>
<div id="ref-RN93" class="csl-entry" role="listitem">
Sun, S. (2017). Examining intraurban migration in the twin cities metropolitan area using parcel data [Book Section]. In L. A. Schintler & Z. Chen (Eds.), <em>Big data for regional science</em> (pp. 64–74). Routledge.
</div>
<div id="ref-RN92" class="csl-entry" role="listitem">
Sun, S. (2016). An automated spatial flow layout algorithm using triangulation, approximate steiner tree, and path smoothing [Conference Proceedings]. In S. M. Freundschuh (Ed.), <em>AutoCarto 2016: The 21st international research symposium on computer-based cartography and GIScience</em> (pp. 200–211). Cartography; Geographic Information Society.
</div>
<div id="ref-RN91" class="csl-entry" role="listitem">
Sun, S. (2016). Symbolize map distortion with inscribed circles in polygons [Journal Article]. <em>International Journal of Cartography</em>, <em>2</em>(2), 166–185. <a href="https://doi.org/10.1080/23729333.2016.1179863">https://doi.org/10.1080/23729333.2016.1179863</a>
</div>
<div id="ref-RN32" class="csl-entry" role="listitem">
MacDonald, G. K., Brauman, K. A., Sun, S., Carlson, K. M., Cassidy, E. S., Gerber, J. S., & West, P. C. (2015). Rethinking agricultural trade relationships in an era of globalization [Journal Article]. <em>BioScience</em>, <em>65</em>(3), 275–289. <a href="https://doi.org/10.1093/biosci/biu225">https://doi.org/10.1093/biosci/biu225</a>
</div>
<div id="ref-RN33" class="csl-entry" role="listitem">
Sun, S. (2015). A perception-based color recommendation algorithm for hierarchical regions [Journal Article]. <em>Cartography and Geographic Information Science</em>, <em>42</em>(3), 259–270. <a href="https://doi.org/10.1080/15230406.2014.991424">https://doi.org/10.1080/15230406.2014.991424</a>
</div>
<div id="ref-RN31" class="csl-entry" role="listitem">
Sun, S., & Manson, S. M. (2015). Simple agents, complex emergent city: Agent-based modeling of intraurban migration [Book Section]. In M. Helbich, J. Jokar Arsanjani, & M. Leitner (Eds.), <em>Computational approaches for urban environments</em> (Vol. 13, pp. 123–147). Springer International Publishing. <a href="https://doi.org/10.1007/978-3-319-11469-9_6">https://doi.org/10.1007/978-3-319-11469-9_6</a>
</div>
<div id="ref-RN30" class="csl-entry" role="listitem">
Huang, Q., Parker, D. C., Filatova, T., & Sun, S. (2014). A review of urban residential choice models using agent-based modeling [Journal Article]. <em>Environment and Planning B: Planning and Design</em>, <em>41</em>(4), 661–689. <a href="https://doi.org/10.1068/b120043p">https://doi.org/10.1068/b120043p</a>
</div>
<div id="ref-RN28" class="csl-entry" role="listitem">
Sun, S., Parker, D. C., Huang, Q., Filatova, T., Robinson, D. T., Riolo, R. L., Hutchins, M., & Brown, D. G. (2014). Market impacts on land-use change: An agent-based experiment [Journal Article]. <em>Annals of the Association of American Geographers</em>, <em>104</em>(3), 460–484. <a href="https://doi.org/10.1080/00045608.2014.892338">https://doi.org/10.1080/00045608.2014.892338</a>
</div>
<div id="ref-RN25" class="csl-entry" role="listitem">
Huang, Q., Parker, D. C., Sun, S., & Filatova, T. (2013). Effects of agent heterogeneity in the presence of a land-market: A systematic test in an agent-based laboratory [Journal Article]. <em>Computers, Environment and Urban Systems</em>, <em>41</em>(0), 188–203. https://doi.org/<a href="http://dx.doi.org/10.1016/j.compenvurbsys.2013.06.004">http://dx.doi.org/10.1016/j.compenvurbsys.2013.06.004</a>
</div>
<div id="ref-RN24" class="csl-entry" role="listitem">
Robinson, D. T., Sun, S., Hutchins, M., Riolo, R. L., Brown, D. G., Parker, D. C., Filatova, T., Currie, W. S., & Kiger, S. (2013). Effects of land markets and land management on ecosystem function: A framework for modelling exurban land-change [Journal Article]. <em>Environmental Modelling & Software</em>, <em>45</em>(0), 129–140. https://doi.org/<a href="http://dx.doi.org/10.1016/j.envsoft.2012.06.016">http://dx.doi.org/10.1016/j.envsoft.2012.06.016</a>
</div>
<div id="ref-RN21" class="csl-entry" role="listitem">
Sun, S. (2013). A fast free-form rubber-sheet algorithm for contiguous area cartograms [Journal Article]. <em>International Journal of Geographic Information Science</em>, <em>27</em>(3), 567–593. <a href="https://doi.org/10.1080/13658816.2012.709247">https://doi.org/10.1080/13658816.2012.709247</a>
</div>
<div id="ref-RN17" class="csl-entry" role="listitem">
Sun, S. (2013). An optimized rubber-sheet algorithm for continuous area cartograms [Journal Article]. <em>The Professional Geographer</em>, <em>65</em>(1), 16–30. <a href="https://doi.org/10.1080/00330124.2011.639613">https://doi.org/10.1080/00330124.2011.639613</a>
</div>
<div id="ref-RN15" class="csl-entry" role="listitem">
Manson, S. M., Sun, S., & Bonsal, D. (2012). Agent-based modeling and complexity [Book Section]. In A. J. Heppenstall, A. T. Crooks, L. M. See, & M. Batty (Eds.), <em>Agent-based models of geographical systems</em> (pp. 125–139). Springer Netherlands. <a href="https://doi.org/10.1007/978-90-481-8927-4_7">https://doi.org/10.1007/978-90-481-8927-4_7</a>
</div>
<div id="ref-RN14" class="csl-entry" role="listitem">
Parker, D. C., Brown, D. G., Filatova, T., Riolo, R., Robinson, D. T., & Sun, S. (2012). Do land markets matter? A modeling ontology and experimental design to test the effects of land markets for an agent-based model of ex-urban residential land-use change [Book Section]. In A. J. Heppenstall, A. T. Crooks, L. M. See, & M. Batty (Eds.), <em>Agent-based models of geographical systems</em> (pp. 525–542). Springer Netherlands. <a href="https://doi.org/10.1007/978-90-481-8927-4_26">https://doi.org/10.1007/978-90-481-8927-4_26</a>
</div>
<div id="ref-RN16" class="csl-entry" role="listitem">
Parker, D. C., Sun, S., Filatova, T., Magliocca, N., Huang, Q., Brown, D. G., & Riolo, R. (2012). The implications of alternative developer decision-making strategies on land-use and land-cover in an agent-based land market model [Conference Proceedings]. In R. Seppelt, A. A. Voinov, S. Lange, & D. Bankamp (Eds.), <em>The sixth biennial meeting of international congress on environmental modelling and software</em>.
</div>
<div id="ref-RN19" class="csl-entry" role="listitem">
Sun, S., & Manson, S. M. (2012). Intraurban migration, neighborhoods, and city structure [Journal Article]. <em>Urban Geography</em>, <em>33</em>(7), 1008–1029. <a href="https://doi.org/10.2747/0272-3638.33.7.1008">https://doi.org/10.2747/0272-3638.33.7.1008</a>
</div>
<div id="ref-RN11" class="csl-entry" role="listitem">
Sun, S., & Manson, S. M. (2011). Social network analysis of the academic GIScience community [Journal Article]. <em>The Professional Geographer</em>, <em>63</em>(1), 18–33. <a href="https://doi.org/10.1080/00330124.2010.533560">https://doi.org/10.1080/00330124.2010.533560</a>
</div>
<div id="ref-RN8" class="csl-entry" role="listitem">
Robinson, D. T., Filatova, T., Sun, S., Riolo, R. L., Brown, D. G., & Parker, D. C. (2010). Integrating land markets, land management, and ecosystem function in a model of land change [Conference Proceedings]. In D. A. Swayne, W. Yang, A. A. Voinov, A. Rizzoli, & T. Filatova (Eds.), <em>IEMSS fifth biennial meeting</em>.
</div>
<div id="ref-RN9" class="csl-entry" role="listitem">
Sun, S., & Manson, S. M. (2010). An agent-based model of housing search and intraurban migration in the twin cities of minnesota [Conference Proceedings]. In D. A. Swayne, W. Yang, A. A. Voinov, A. Rizzoli, & T. Filatova (Eds.), <em>IEMSS fifth biennial meeting</em>.
</div>
<div id="ref-RN6" class="csl-entry" role="listitem">
Manson, S. M., Sander, H. A., Ghosh, D., Oakes, J. M., Jr, M. W. O., Craig, W. J., Jr, T. F. L., Myott, E., & Sun, S. (2009). Parcel data for research and policy [Journal Article]. <em>Geography Compass</em>, <em>3</em>(2), 698–726. <a href="http://dx.doi.org/10.1111/j.1749-8198.2008.00209.x ">http://dx.doi.org/10.1111/j.1749-8198.2008.00209.x </a>
</div>
<div id="ref-RN7" class="csl-entry" role="listitem">
Sun, S. (2009). <em>Intraurban migration in the twin cities metropolitan area of minnesota</em> [Thesis].
</div>
<div id="ref-RN5" class="csl-entry" role="listitem">
Sun, S., & Manson, S. M. (2007). <em>Distance cartogram: Concept, approximate algorithm, and examples</em> [Conference Paper].
</div>
<div id="ref-RN4" class="csl-entry" role="listitem">
Pan, M., Wang, Y., Li, K., & Sun, S. (2003). Multi-resolution octree data structure: Theory research and application (in chinese) [Journal Article]. <em>Geography and Geo-Information Science</em>, <em>19</em>(4), 37–40.
</div>
<div id="ref-RN2" class="csl-entry" role="listitem">
Sun, S. (2001). <em>GIS network analysis kernel algorithm optimization and 3D scene simulation</em> [Thesis].
</div>
<div id="ref-RN3" class="csl-entry" role="listitem">
Sun, S., Li, Y., Xu, S., Meng, X., & Zhong, Z. (2001). Dynamic positioning and railway management information system (in chinese) [Journal Article]. <em>Railway Computer Application</em>, <em>10</em>(9), 25–27.
</div>
<div id="ref-RN1" class="csl-entry" role="listitem">
Xiao, B., Hou, J., Xiao, K., & Sun, S. (2000). Visual statistical software system for spatial information (in chinese) [Journal Article]. <em>Geological Reivew</em>, <em>46</em>(Z1), 176–181.
</div>
</div>
</section></main></div>
<!-- /main -->
<script id="quarto-html-after-body" type="application/javascript">
window.document.addEventListener("DOMContentLoaded", function (event) {
// Ensure there is a toggle, if there isn't float one in the top right
if (window.document.querySelector('.quarto-color-scheme-toggle') === null) {
const a = window.document.createElement('a');
a.classList.add('top-right');
a.classList.add('quarto-color-scheme-toggle');
a.href = "";
a.onclick = function() { try { window.quartoToggleColorScheme(); } catch {} return false; };
const i = window.document.createElement("i");
i.classList.add('bi');
a.appendChild(i);
window.document.body.appendChild(a);
}
setColorSchemeToggle(hasAlternateSentinel())
const icon = "";
const anchorJS = new window.AnchorJS();
anchorJS.options = {
placement: 'right',
icon: icon
};
anchorJS.add('.anchored');
const isCodeAnnotation = (el) => {
for (const clz of el.classList) {
if (clz.startsWith('code-annotation-')) {
return true;
}
}
return false;
}
const onCopySuccess = function(e) {
// button target
const button = e.trigger;
// don't keep focus
button.blur();
// flash "checked"
button.classList.add('code-copy-button-checked');
var currentTitle = button.getAttribute("title");
button.setAttribute("title", "Copied!");
let tooltip;
if (window.bootstrap) {
button.setAttribute("data-bs-toggle", "tooltip");
button.setAttribute("data-bs-placement", "left");
button.setAttribute("data-bs-title", "Copied!");
tooltip = new bootstrap.Tooltip(button,
{ trigger: "manual",
customClass: "code-copy-button-tooltip",
offset: [0, -8]});
tooltip.show();
}
setTimeout(function() {
if (tooltip) {
tooltip.hide();
button.removeAttribute("data-bs-title");
button.removeAttribute("data-bs-toggle");
button.removeAttribute("data-bs-placement");
}
button.setAttribute("title", currentTitle);
button.classList.remove('code-copy-button-checked');
}, 1000);
// clear code selection
e.clearSelection();
}
const getTextToCopy = function(trigger) {
const outerScaffold = trigger.parentElement.cloneNode(true);
const codeEl = outerScaffold.querySelector('code');
for (const childEl of codeEl.children) {
if (isCodeAnnotation(childEl)) {
childEl.remove();
}
}
return codeEl.innerText;
}
const clipboard = new window.ClipboardJS('.code-copy-button:not([data-in-quarto-modal])', {
text: getTextToCopy
});
clipboard.on('success', onCopySuccess);
if (window.document.getElementById('quarto-embedded-source-code-modal')) {
const clipboardModal = new window.ClipboardJS('.code-copy-button[data-in-quarto-modal]', {
text: getTextToCopy,
container: window.document.getElementById('quarto-embedded-source-code-modal')
});
clipboardModal.on('success', onCopySuccess);
}
var localhostRegex = new RegExp(/^(?:http|https):\/\/localhost\:?[0-9]*\//);
var mailtoRegex = new RegExp(/^mailto:/);
var filterRegex = new RegExp('/' + window.location.host + '/');
var isInternal = (href) => {
return filterRegex.test(href) || localhostRegex.test(href) || mailtoRegex.test(href);
}
// Inspect non-navigation links and adorn them if external
var links = window.document.querySelectorAll('a[href]:not(.nav-link):not(.navbar-brand):not(.toc-action):not(.sidebar-link):not(.sidebar-item-toggle):not(.pagination-link):not(.no-external):not([aria-hidden]):not(.dropdown-item):not(.quarto-navigation-tool):not(.about-link)');
for (var i=0; i<links.length; i++) {
const link = links[i];
if (!isInternal(link.href)) {
// undo the damage that might have been done by quarto-nav.js in the case of
// links that we want to consider external
if (link.dataset.originalHref !== undefined) {
link.href = link.dataset.originalHref;
}
// target, if specified
link.setAttribute("target", "_blank");
if (link.getAttribute("rel") === null) {
link.setAttribute("rel", "noopener");
}
// default icon
link.classList.add("external");
}
}
function tippyHover(el, contentFn, onTriggerFn, onUntriggerFn) {
const config = {
allowHTML: true,
maxWidth: 500,
delay: 100,
arrow: false,
appendTo: function(el) {
return el.parentElement;
},
interactive: true,
interactiveBorder: 10,
theme: 'quarto',
placement: 'bottom-start',
};
if (contentFn) {
config.content = contentFn;
}
if (onTriggerFn) {
config.onTrigger = onTriggerFn;
}
if (onUntriggerFn) {
config.onUntrigger = onUntriggerFn;
}
window.tippy(el, config);
}
const noterefs = window.document.querySelectorAll('a[role="doc-noteref"]');
for (var i=0; i<noterefs.length; i++) {
const ref = noterefs[i];
tippyHover(ref, function() {
// use id or data attribute instead here
let href = ref.getAttribute('data-footnote-href') || ref.getAttribute('href');
try { href = new URL(href).hash; } catch {}
const id = href.replace(/^#\/?/, "");
const note = window.document.getElementById(id);
if (note) {
return note.innerHTML;
} else {
return "";
}
});
}
const xrefs = window.document.querySelectorAll('a.quarto-xref');
const processXRef = (id, note) => {
// Strip column container classes
const stripColumnClz = (el) => {
el.classList.remove("page-full", "page-columns");
if (el.children) {
for (const child of el.children) {
stripColumnClz(child);
}
}
}
stripColumnClz(note)
if (id === null || id.startsWith('sec-')) {
// Special case sections, only their first couple elements
const container = document.createElement("div");
if (note.children && note.children.length > 2) {
container.appendChild(note.children[0].cloneNode(true));
for (let i = 1; i < note.children.length; i++) {
const child = note.children[i];
if (child.tagName === "P" && child.innerText === "") {
continue;
} else {
container.appendChild(child.cloneNode(true));
break;
}
}
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(container);
}
return container.innerHTML
} else {
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(note);
}
return note.innerHTML;
}
} else {
// Remove any anchor links if they are present
const anchorLink = note.querySelector('a.anchorjs-link');
if (anchorLink) {
anchorLink.remove();
}
if (window.Quarto?.typesetMath) {
window.Quarto.typesetMath(note);
}
if (note.classList.contains("callout")) {
return note.outerHTML;
} else {
return note.innerHTML;
}
}
}
for (var i=0; i<xrefs.length; i++) {
const xref = xrefs[i];
tippyHover(xref, undefined, function(instance) {
instance.disable();
let url = xref.getAttribute('href');
let hash = undefined;
if (url.startsWith('#')) {
hash = url;
} else {
try { hash = new URL(url).hash; } catch {}
}
if (hash) {
const id = hash.replace(/^#\/?/, "");
const note = window.document.getElementById(id);
if (note !== null) {
try {
const html = processXRef(id, note.cloneNode(true));
instance.setContent(html);
} finally {
instance.enable();
instance.show();
}
} else {
// See if we can fetch this
fetch(url.split('#')[0])
.then(res => res.text())
.then(html => {
const parser = new DOMParser();
const htmlDoc = parser.parseFromString(html, "text/html");
const note = htmlDoc.getElementById(id);
if (note !== null) {
const html = processXRef(id, note);
instance.setContent(html);
}
}).finally(() => {
instance.enable();
instance.show();
});
}
} else {
// See if we can fetch a full url (with no hash to target)
// This is a special case and we should probably do some content thinning / targeting
fetch(url)
.then(res => res.text())
.then(html => {
const parser = new DOMParser();
const htmlDoc = parser.parseFromString(html, "text/html");
const note = htmlDoc.querySelector('main.content');
if (note !== null) {
// This should only happen for chapter cross references
// (since there is no id in the URL)
// remove the first header
if (note.children.length > 0 && note.children[0].tagName === "HEADER") {
note.children[0].remove();
}
const html = processXRef(null, note);
instance.setContent(html);
}
}).finally(() => {
instance.enable();
instance.show();
});
}
}, function(instance) {
});
}
let selectedAnnoteEl;
const selectorForAnnotation = ( cell, annotation) => {
let cellAttr = 'data-code-cell="' + cell + '"';
let lineAttr = 'data-code-annotation="' + annotation + '"';
const selector = 'span[' + cellAttr + '][' + lineAttr + ']';
return selector;
}
const selectCodeLines = (annoteEl) => {
const doc = window.document;
const targetCell = annoteEl.getAttribute("data-target-cell");
const targetAnnotation = annoteEl.getAttribute("data-target-annotation");
const annoteSpan = window.document.querySelector(selectorForAnnotation(targetCell, targetAnnotation));
const lines = annoteSpan.getAttribute("data-code-lines").split(",");
const lineIds = lines.map((line) => {
return targetCell + "-" + line;
})
let top = null;
let height = null;
let parent = null;
if (lineIds.length > 0) {
//compute the position of the single el (top and bottom and make a div)
const el = window.document.getElementById(lineIds[0]);
top = el.offsetTop;
height = el.offsetHeight;
parent = el.parentElement.parentElement;
if (lineIds.length > 1) {
const lastEl = window.document.getElementById(lineIds[lineIds.length - 1]);
const bottom = lastEl.offsetTop + lastEl.offsetHeight;
height = bottom - top;
}
if (top !== null && height !== null && parent !== null) {
// cook up a div (if necessary) and position it
let div = window.document.getElementById("code-annotation-line-highlight");
if (div === null) {
div = window.document.createElement("div");
div.setAttribute("id", "code-annotation-line-highlight");
div.style.position = 'absolute';
parent.appendChild(div);
}
div.style.top = top - 2 + "px";
div.style.height = height + 4 + "px";
div.style.left = 0;
let gutterDiv = window.document.getElementById("code-annotation-line-highlight-gutter");
if (gutterDiv === null) {
gutterDiv = window.document.createElement("div");
gutterDiv.setAttribute("id", "code-annotation-line-highlight-gutter");
gutterDiv.style.position = 'absolute';
const codeCell = window.document.getElementById(targetCell);
const gutter = codeCell.querySelector('.code-annotation-gutter');
gutter.appendChild(gutterDiv);
}
gutterDiv.style.top = top - 2 + "px";
gutterDiv.style.height = height + 4 + "px";
}
selectedAnnoteEl = annoteEl;
}
};
const unselectCodeLines = () => {
const elementsIds = ["code-annotation-line-highlight", "code-annotation-line-highlight-gutter"];
elementsIds.forEach((elId) => {
const div = window.document.getElementById(elId);
if (div) {
div.remove();
}
});
selectedAnnoteEl = undefined;
};
// Handle positioning of the toggle
window.addEventListener(
"resize",
throttle(() => {
elRect = undefined;
if (selectedAnnoteEl) {
selectCodeLines(selectedAnnoteEl);
}
}, 10)
);
function throttle(fn, ms) {
let throttle = false;
let timer;
return (...args) => {
if(!throttle) { // first call gets through
fn.apply(this, args);
throttle = true;
} else { // all the others get throttled
if(timer) clearTimeout(timer); // cancel #2
timer = setTimeout(() => {
fn.apply(this, args);
timer = throttle = false;
}, ms);
}
};
}
// Attach click handler to the DT
const annoteDls = window.document.querySelectorAll('dt[data-target-cell]');
for (const annoteDlNode of annoteDls) {
annoteDlNode.addEventListener('click', (event) => {
const clickedEl = event.target;
if (clickedEl !== selectedAnnoteEl) {
unselectCodeLines();
const activeEl = window.document.querySelector('dt[data-target-cell].code-annotation-active');
if (activeEl) {
activeEl.classList.remove('code-annotation-active');
}
selectCodeLines(clickedEl);
clickedEl.classList.add('code-annotation-active');
} else {
// Unselect the line
unselectCodeLines();
clickedEl.classList.remove('code-annotation-active');
}
});
}
const findCites = (el) => {
const parentEl = el.parentElement;
if (parentEl) {
const cites = parentEl.dataset.cites;