A lightweight Clip Studio Paint alternative with real-time multiplayer collaborative drawing. Built with Tauri and React.
TypeScript animationcartoonclip-studio-paintcollaborativedesktop-appdigital-paintingdrawing-appillustrationmangamultiplayeropen-sourcerusttaurithreejswebglwebtoon
import React from 'react';
import { Primitive3DType } from '../utils/primitives3D';
interface Primitive3DIconProps {
type: Primitive3DType;
className?: string;
}
export const Primitive3DIcon: React.FC<Primitive3DIconProps> = ({
type,
className = 'w-3.5 h-3.5',
}) => {
switch (type) {
case 'cube':
return (
<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.3" strokeLinecap="round" strokeLinejoin="round" className={className} aria-hidden="true">
<path d="M8 2L13.5 5V11L8 14L2.5 11V5L8 2Z" />
<path d="M8 8V14" />
<path d="M8 8L13.5 5" />
<path d="M8 8L2.5 5" />
</svg>
);
case 'sphere':
return (
<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.3" strokeLinecap="round" strokeLinejoin="round" className={className} aria-hidden="true">
<circle cx="8" cy="8" r="5.5" />
<ellipse cx="8" cy="8" rx="5.5" ry="2.2" />
<ellipse cx="8" cy="8" rx="2.4" ry="5.5" />
</svg>
);
case 'capsule':
return (
<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.3" strokeLinecap="round" strokeLinejoin="round" className={className} aria-hidden="true">
<rect x="4.5" y="2" width="7" height="12" rx="3.5" />
<path d="M4.5 6.2C5.6 6.9 10.4 6.9 11.5 6.2" />
<path d="M4.5 9.8C5.6 10.5 10.4 10.5 11.5 9.8" />
</svg>
);
case 'cylinder':
return (
<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.3" strokeLinecap="round" strokeLinejoin="round" className={className} aria-hidden="true">
<ellipse cx="8" cy="4" rx="4.5" ry="1.8" />
<path d="M3.5 4V12C3.5 13 5.5 13.8 8 13.8C10.5 13.8 12.5 13 12.5 12V4" />
</svg>
);
case 'pyramid':
return (
<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" strokeWidth="1.3" strokeLinecap="round" strokeLinejoin="round" className={className} aria-hidden="true">
<path d="M8 2.2L13.6 11.6L8 13.8L2.4 11.6L8 2.2Z" />
<path d="M8 2.2V13.8" />
</svg>
);
}
};