The line is a whole, while the definition is not a whole. The triangle is a whole, while its definition is not.
The predications given here are analytic propositions ( = wholly verifiable on the basis of the extensions of the concepts used in these propositions), in contrast to synthetic propositions (which can only be verified by observation).