Skip to content

guanyang/open-agent-hub / skills/remotion-maps

remotion-maps

Verified

Remotion Map animation knowledge

FileKindSize
SKILL.mdskill md1.0 KB
agents/openai.yamlconfig293 B
assets/remotion-icon.pngbinary1.3 KB
assets/remotion-icon.svgother1.3 KB
techniques/cesium/TECHNIQUE.mdmarkdown3.9 KB
techniques/cesium/assets/CesiumFlythrough.tsxother8.2 KB
techniques/cesium/assets/cesium-path.jsonconfig12.0 KB
techniques/cesium/assets/city-path.jsonconfig223 B
techniques/cesium/assets/example-Root.tsxother923 B
techniques/cesium/assets/flight-path.tsscript1.2 KB
techniques/cesium/assets/sample-river.geojsonother6.3 KB
techniques/cesium/references/3d-data-sources.mdmarkdown1.6 KB
techniques/cesium/references/3d-flyover-architecture.mdmarkdown7.8 KB
techniques/cesium/references/3d-troubleshooting.mdmarkdown6.6 KB
techniques/cesium/scripts/prep-cesium-path.mjsscript5.4 KB
techniques/mapbox/TECHNIQUE.mdmarkdown12.7 KB
techniques/mapbox/references/render-stability.mdmarkdown3.6 KB
techniques/maplibre/TECHNIQUE.mdmarkdown13.5 KB
techniques/maplibre/references/render-stability.mdmarkdown3.6 KB
techniques/maptiler/TECHNIQUE.mdmarkdown3.5 KB
techniques/maptiler/assets/CountryLabel.tsxother1.8 KB
techniques/maptiler/assets/MapTilerVectorElement.tsscript1.5 KB
techniques/maptiler/assets/RiverReveal.tsxother10.6 KB
techniques/maptiler/assets/example-Root.tsxother1.0 KB
techniques/maptiler/assets/sample-data/country-meta.jsonconfig325.3 KB
techniques/maptiler/assets/sample-data/yarlung-flow.jsonconfig12.8 KB
techniques/maptiler/assets/tokens.tsscript1.2 KB
techniques/maptiler/references/map-data-sources.mdmarkdown4.6 KB
techniques/maptiler/references/map-explainer-architecture.mdmarkdown6.7 KB
techniques/maptiler/references/map-geo-prep.mdmarkdown4.0 KB
techniques/maptiler/references/render-stability.mdmarkdown3.6 KB
techniques/maptiler/scripts/prep-geo.mjsscript7.4 KB
techniques/static-map/TECHNIQUE.mdmarkdown1.1 KB

techniques/cesium/assets/flight-path.ts

View on GitHub
export type LngLat = [number, number];

// Chaikin corner cutting turns a sparse route into a continuous curve. Repeated passes round
// direction changes into deliberate swerves instead of left-right heading bumps.
export const smoothFlightPath = (
	source: LngLat[],
	iterations = 3,
): LngLat[] => {
	if (source.length < 2)
		throw new Error('Flyover path needs at least two points');

	// Keep adjacent longitudes continuous for routes that cross the antimeridian.
	const unwrapped: LngLat[] = [source[0]];
	for (let index = 1; index < source.length; index++) {
		const [lng, lat] = source[index];
		const previous = unwrapped[index - 1][0];
		let adjusted = lng;
		while (adjusted - previous > 180) adjusted -= 360;
		while (adjusted - previous < -180) adjusted += 360;
		unwrapped.push([adjusted, lat]);
	}

	let curve = unwrapped;
	for (let iteration = 0; iteration < Math.max(0, iterations); iteration++) {
		const next: LngLat[] = [curve[0]];
		for (let i = 0; i < curve.length - 1; i++) {
			const a = curve[i];
			const b = curve[i + 1];
			next.push(
				[a[0] * 0.75 + b[0] * 0.25, a[1] * 0.75 + b[1] * 0.25],
				[a[0] * 0.25 + b[0] * 0.75, a[1] * 0.25 + b[1] * 0.75],
			);
		}
		next.push(curve[curve.length - 1]);
		curve = next;
	}
	return curve;
};
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall