I have been trying to replicate Asymptote's dot style in TikZ, having the outer diameter equal to dotfactor * linewidth(p) where p denotes the given or current pen and dotfactor is 6 by default.
What is wrong with this example, it does not compile at all?
\documentclass{article}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{graphicx}
\usepackage{float}
\usepackage{tikz}
\usepackage{pgfkeys}
\begin{document}
\tikzset{
dot/.style={circle,fill,minimum size=6*\pgfkeysvalueof{/tikz/line width}}
}
\begin{figure}[H]
\centering
\begin{tikzpicture}[scale=2]
\coordinate [dot,label=left:$A$] (A) at (1, 0);
\coordinate [dot,label=below:$B$] (B) at (8, 3);
\draw (A) -- (B);
\end{tikzpicture}
\end{figure}
\end{document}

