doxa-maps/plugin-designs/doxa-research-map/src
Doxa Maps 93ca8dab91
Some checks are pending
Deploy to GitHub Pages / build (push) Waiting to run
Deploy to GitHub Pages / deploy (push) Blocked by required conditions
Update from source d3d3c3f8
2026-09-26 11:59:17 +00:00
..
api Doxa Maps — the map bundler, 7 production plugins and the Experimental shelf 2026-09-25 20:07:59 +00:00
colors Update from source d3d3c3f8 2026-09-26 11:59:17 +00:00
components Doxa Maps — the map bundler, 7 production plugins and the Experimental shelf 2026-09-25 20:07:59 +00:00
composables Doxa Maps — the map bundler, 7 production plugins and the Experimental shelf 2026-09-25 20:07:59 +00:00
utils Doxa Maps — the map bundler, 7 production plugins and the Experimental shelf 2026-09-25 20:07:59 +00:00
README.md Doxa Maps — the map bundler, 7 production plugins and the Experimental shelf 2026-09-25 20:07:59 +00:00

src/ — doxa-research-map's sandbox

Everything the research map needs that isn't already in the shared library/ gets built here. Nothing here leaks to another map — build freely.

src/
├── api/          which API/CSV/endpoint this map reads
├── colors/       this map's colors: values (colors.json) + strategy .js files
├── components/   this map's own .vue pieces (not reusable)
├── composables/  this map's own logic hooks (useThing.js)
└── utils/        this map's own pure helpers

What's here today: colors/ holds the three research-only strategies — affinity-block.js, doxa-region.js, resource.js — registered by this bundle's index.js. Shared strategies (adoption, engagement, language-family, religion) stay in library/colors/ because other maps use them. api/, components/, composables/, utils/ are empty scaffolds — fill them as the map grows.

Two import styles, two meanings:

import { useMapInstance } from '@map/composables/useMapInstance.js'  // reuse the shared library
import { fmt }            from './src/utils/format.js'               // your own sandbox (relative)

Reusable + parameterized → library/ (an expert move); specific to this map → stays here. Local by default. See also: ../../template-bundle/README.md · ../../../documentation/reference.md.