You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The groups attribute on an already existing namespace block category does not get applied to the existing category definition.
For example, if a target defines additional blocks in category Math using the usual namespace declaration, the attribute 'groups' does not seem to be applied to the existing category definition.
For example in the marked up declarations below the intent is to have the Vector group be below the built-in blocks that already exist in category Math.
Is there another way to do this?
//% groups='["other", "Vector"]'declarenamespacemath{/** * Create vector. * @param x number, eg: 0 * @param y number, eg: 0 * @param z number, eg: 0 *///% blockId="vector"//% block="X %x|Y %y|Z %z"//% group="Vector"//% shim=math3d::vectorfunctionvector(x?: number,y?: number,z?: number): Vector;/** * Unit vector. *///% blockId="vector_unit"//% block="unit vector"//% group="Vector"//% shim=math3d::unitVectorfunctionunitVector(): Vector;/** * Convert degress to radians. * @param degrees number, e.g. 0 *///% blockId=convert_deg_to_rad//% block="%degrees degrees in radians"//% shim=math::degreesInRadians//% advanced=truefunctiondegreesInRadians(degrees: number): number;/** * Convert radians to degrees. * @param radians number, e.g. 0 *///% blockId=convert_rad_to_deg//% block="%radians radians in degrees"//% shim=math::radiansInDegrees//% advanced=truefunctionradiansInDegrees(radians: number): number;}
The text was updated successfully, but these errors were encountered:
The
groups
attribute on an already existing namespace block category does not get applied to the existing category definition.For example, if a target defines additional blocks in category Math using the usual namespace declaration, the attribute 'groups' does not seem to be applied to the existing category definition.
For example in the marked up declarations below the intent is to have the Vector group be below the built-in blocks that already exist in category Math.
Is there another way to do this?
The text was updated successfully, but these errors were encountered: