![TikZ:如何在“路径图片边界框”之外的“路径图片”环境中绘制](https://linux22.com/image/421328/TikZ%EF%BC%9A%E5%A6%82%E4%BD%95%E5%9C%A8%E2%80%9C%E8%B7%AF%E5%BE%84%E5%9B%BE%E7%89%87%E8%BE%B9%E7%95%8C%E6%A1%86%E2%80%9D%E4%B9%8B%E5%A4%96%E7%9A%84%E2%80%9C%E8%B7%AF%E5%BE%84%E5%9B%BE%E7%89%87%E2%80%9D%E7%8E%AF%E5%A2%83%E4%B8%AD%E7%BB%98%E5%88%B6.png)
有没有办法在环境之外进行绘制path picture bounding box
?path picture
(出于理论兴趣。)
\documentclass[a4paper]{article}
\usepackage{tikz}
\usetikzlibrary{backgrounds}
\begin{document}
\begin{tikzpicture}[gridded]
\fill[yellow] (0,0) circle(10pt);
\fill[orange] (3,4) circle(10pt);
\node[draw, thick, minimum size=3cm,
path picture={
\fill[red, overlay] (path picture bounding box.west) coordinate(X1) circle(2pt);
\fill[red] (3,4) circle(3pt);% not shown
},
]{a};
\end{tikzpicture}
\end{document}