Move axes to std constants; move helix, revolve, and mirror2d to be declared in KCL (#6105)

Move axes to std constants; move helix, revolve, and mirror2d to be declated in KCL

Signed-off-by: Nick Cameron <nrc@ncameron.org>
This commit is contained in:
Nick Cameron
2025-04-03 22:44:52 +13:00
committed by GitHub
parent 3e4505e2e3
commit aad583be2e
167 changed files with 11811 additions and 38646 deletions

View File

@ -320,7 +320,10 @@ const OperationItem = (props: {
* TODO: https://github.com/KittyCAD/modeling-app/issues/4442
*/
function enterEditFlow() {
if (props.item.type === 'StdLibCall') {
if (
props.item.type === 'StdLibCall' ||
props.item.type === 'KclStdLibCall'
) {
props.send({
type: 'enterEditFlow',
data: {
@ -332,7 +335,10 @@ const OperationItem = (props: {
}
function enterAppearanceFlow() {
if (props.item.type === 'StdLibCall') {
if (
props.item.type === 'StdLibCall' ||
props.item.type === 'KclStdLibCall'
) {
props.send({
type: 'enterAppearanceFlow',
data: {
@ -346,7 +352,8 @@ const OperationItem = (props: {
function deleteOperation() {
if (
props.item.type === 'StdLibCall' ||
props.item.type === 'UserDefinedFunctionCall'
props.item.type === 'UserDefinedFunctionCall' ||
props.item.type === 'KclStdLibCall'
) {
props.send({
type: 'deleteOperation',
@ -397,7 +404,8 @@ const OperationItem = (props: {
</ContextMenuItem>,
]
: []),
...(props.item.type === 'StdLibCall'
...(props.item.type === 'StdLibCall' ||
props.item.type === 'KclStdLibCall'
? [
<ContextMenuItem
disabled={!stdLibMap[props.item.name]?.supportsAppearance}