I’m seeing a general issue with font sizes in TextBlock"s. It appears that my font sizes are often ignored. Sometimes I see that the text size tries to fit the Part’s container at the expense of the font size. In my most recent example below, I’m seeing that a TextBlock, even by itself with a single TextBlock in Vertical, is rendering the text size small…somewhere around 9 or 10 pt even though I’m requesting 36. I’ve tried "36px"as well as “36pt”.
Chrome. Angular 5. GoJS over Leaflet.
Code snippet below where I’m creating a Part which is intended to be a transient message overlaid on top of the diagram/map.
can you let me know the gojs debug package name in npm? Searching finds nothing. I’m using angular so I’d rather be able to add to my dev dependencies in package.json. If that’s not possible, could you recommend another way to use the debug version while in non-prod?
so is the general workflow then to import from the debug path while in dev, then manually change the import path before pushing to prod? Or is there a more elegant solution?
I don’t know enough about the environment you are in, but yes generally you should reference/include go-debug.js when in development and go.js when in (or when building for) production.
There may be other ways to accomplish this beyond just changing the import path, especially if you are not packing go.js into your built JavaScript, but just referencing it.
Hmmm, ok thanks simon. I’ll think about how this could work. I’m using Angular 5/CLI and so far I’ve just been used to including packages in package.json and having webpack pick the right framework for the environment.