Skip to content

Commit

Permalink
Changed import mode for color wheel field
Browse files Browse the repository at this point in the history
  • Loading branch information
Nrosa01 committed May 10, 2024
1 parent 9b4c8f8 commit a75eed4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/assets/blockly/blocks.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as Blockly from 'blockly';

import { ColorWheelField } from "blockly-field-color-wheel";
import * as ColorWheel from "blockly-field-color-wheel";
import { FieldSlider } from "@blockly/field-slider";

import { createMinusField } from './field_minus';
Expand Down Expand Up @@ -31,7 +31,7 @@ Blockly.Blocks['particle_base'] = {
.appendField("Name: ")
.appendField(new Blockly.FieldTextInput(""), "NAME")
.appendField(" Colour:")
.appendField(new ColorWheelField("#7fdab4", 150, {
.appendField(new ColorWheel.ColorWheelField("#7fdab4", 150, {
layoutDirection: "vertical",
}),
"COLOR")
Expand All @@ -55,7 +55,7 @@ Blockly.Blocks['custom_input_color'] = {
init: function () {
this.appendDummyInput()

.appendField(new ColorWheelField("#7fdab4", 150, {
.appendField(new ColorWheel.ColorWheelField("#7fdab4", 150, {
layoutDirection: "vertical",
}),
"COLOR")
Expand Down

0 comments on commit a75eed4

Please sign in to comment.