kritzel-stencil 0.0.65 → 0.0.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3057,9 +3057,16 @@ const KritzelControls = class {
3057
3057
  return (_a = this.activeControl) === null || _a === void 0 ? void 0 : _a.tool;
3058
3058
  }
3059
3059
  async componentDidLoad() {
3060
- await this.initializeEngine();
3061
- await this.initializeTools();
3062
3060
  this.controlsReady.emit();
3061
+ this.initializeEngine().then(() => {
3062
+ this.initializeTools()
3063
+ .then(() => {
3064
+ console.info('KritzelControls initialized with tools:', this.controls);
3065
+ })
3066
+ .catch(error => {
3067
+ console.error('Error initializing tools:', error);
3068
+ });
3069
+ });
3063
3070
  }
3064
3071
  async initializeEngine() {
3065
3072
  await customElements.whenDefined('kritzel-engine');
@@ -3124,11 +3131,11 @@ const KritzelControls = class {
3124
3131
  render() {
3125
3132
  var _a, _b;
3126
3133
  const hasNoConfig = ((_a = this.activeControl) === null || _a === void 0 ? void 0 : _a.config) === undefined || ((_b = this.activeControl) === null || _b === void 0 ? void 0 : _b.config) === null;
3127
- return (index.h(index.Host, { key: 'f6ec4249263ed57efb5ea73e7e560ecf0cabbc8c' }, index.h("kritzel-utility-panel", { key: '70601ea50ac02442209541ecd01ba3d2abe31dd9', style: {
3134
+ return (index.h(index.Host, { key: '67f9678645348eb32cdc07bde7cb3538bab7d7ec' }, index.h("kritzel-utility-panel", { key: 'b73e532e010c6bb6d800aa7b03edecaee1082018', style: {
3128
3135
  position: 'absolute',
3129
3136
  bottom: '56px',
3130
3137
  left: '12px',
3131
- }, onUndo: () => { var _a; return (_a = this.kritzelEngine) === null || _a === void 0 ? void 0 : _a.undo(); }, onRedo: () => { var _a; return (_a = this.kritzelEngine) === null || _a === void 0 ? void 0 : _a.redo(); }, onDelete: () => { var _a; return (_a = this.kritzelEngine) === null || _a === void 0 ? void 0 : _a.delete(); } }), index.h("div", { key: 'e6492953a5435203b96398a0632f7412f22011c1', class: "kritzel-controls" }, this.controls.map(control => {
3138
+ }, onUndo: () => { var _a; return (_a = this.kritzelEngine) === null || _a === void 0 ? void 0 : _a.undo(); }, onRedo: () => { var _a; return (_a = this.kritzelEngine) === null || _a === void 0 ? void 0 : _a.redo(); }, onDelete: () => { var _a; return (_a = this.kritzelEngine) === null || _a === void 0 ? void 0 : _a.delete(); } }), index.h("div", { key: '8fd6be09c6a9b794ab177d5082d5a1f29b0204fe', class: "kritzel-controls" }, this.controls.map(control => {
3132
3139
  var _a, _b, _c, _d, _e, _f, _g, _h;
3133
3140
  if (control.type === 'tool') {
3134
3141
  return (index.h("button", { class: {