Skip to content

Commit

Permalink
fixed release mode
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelselleck committed Jan 31, 2024
1 parent 40751ab commit 68d32bc
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ var Pax = (() => {
}
};

// node_modules/snarkdown/dist/snarkdown.es.js
// ../node_modules/snarkdown/dist/snarkdown.es.js
var e = { "": ["<em>", "</em>"], _: ["<strong>", "</strong>"], "*": ["<strong>", "</strong>"], "~": ["<s>", "</s>"], "\n": ["<br />"], " ": ["<br />"], "-": ["<hr />"] };
function n(e2) {
return e2.replace(RegExp("^" + (e2.match(/^(\t| )+/) || "")[0], "gm"), "");
Expand Down
6 changes: 3 additions & 3 deletions pax-chassis-web/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ impl PaxChassisWeb {
topmost_node.dispatch_double_click(args_double_click, globals);
}
}
NativeInterrupt::Mousemove(args) => {
NativeInterrupt::MouseMove(args) => {
let prospective_hit = engine.get_topmost_element_beneath_ray((args.x, args.y));
if let Some(topmost_node) = prospective_hit {
let args_mousemove = ArgsMousemove {
Expand Down Expand Up @@ -372,7 +372,7 @@ impl PaxChassisWeb {
topmost_node.dispatch_wheel(args_wheel, globals);
}
}
NativeInterrupt::Mousedown(args) => {
NativeInterrupt::MouseDown(args) => {
let prospective_hit = engine.get_topmost_element_beneath_ray((args.x, args.y));
if let Some(topmost_node) = prospective_hit {
let args_mousedown = ArgsMousedown {
Expand All @@ -390,7 +390,7 @@ impl PaxChassisWeb {
topmost_node.dispatch_mousedown(args_mousedown, globals);
}
}
NativeInterrupt::Mouseup(args) => {
NativeInterrupt::MouseUp(args) => {
let prospective_hit = engine.get_topmost_element_beneath_ray((args.x, args.y));
if let Some(topmost_node) = prospective_hit {
let args_mouseup = ArgsMouseup {
Expand Down
4 changes: 2 additions & 2 deletions pax-core/src/declarative_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use crate::{ExpressionTable, RuntimePropertiesStackFrame};
/// ```text
/// handle_vtable_update!(ptc, self.height, Size);
/// ```
pub fn handle_vtable_update<V: Default + Clone + std::fmt::Debug + 'static>(
pub fn handle_vtable_update<V: Default + Clone + 'static>(
table: &ExpressionTable,
stack: &Rc<RuntimePropertiesStackFrame>,
property: &mut Box<dyn PropertyInstance<V>>,
Expand All @@ -33,7 +33,7 @@ pub fn handle_vtable_update<V: Default + Clone + std::fmt::Debug + 'static>(
/// // In this example `scale_x` is `Option`al (`Option<Rc<RefCell<dyn PropertyInstance<Size>>>>`)
/// handle_vtable_update_optional!(ptc, self.scale_x, Size);
/// ```
pub fn handle_vtable_update_optional<V: Default + Clone + std::fmt::Debug + 'static>(
pub fn handle_vtable_update_optional<V: Default + Clone + 'static>(
table: &ExpressionTable,
stack: &Rc<RuntimePropertiesStackFrame>,
optional_property: Option<&mut Box<dyn PropertyInstance<V>>>,
Expand Down
6 changes: 3 additions & 3 deletions pax-message/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ pub enum NativeInterrupt {
KeyPress(KeyPressInterruptArgs),
Click(ClickInterruptArgs),
DoubleClick(DoubleClickInterruptArgs),
Mousemove(MousemoveInterruptArgs),
MouseMove(MousemoveInterruptArgs),
Wheel(WheelInterruptArgs),
Mousedown(MousedownInterruptArgs),
Mouseup(MouseupInterruptArgs),
MouseDown(MousedownInterruptArgs),
MouseUp(MouseupInterruptArgs),
MouseOver(MouseOverInterruptArgs),
MouseOut(MouseOutInterruptArgs),
ContextMenu(ContextMenuInterruptArgs),
Expand Down
1 change: 1 addition & 0 deletions pax-std/pax-std-primitives/src/button.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ impl InstanceNode for ButtonInstance {
&self.base
}

#[cfg(debug_assertions)]
fn resolve_debug(
&self,
f: &mut std::fmt::Formatter,
Expand Down
1 change: 1 addition & 0 deletions pax-std/pax-std-primitives/src/checkbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ impl InstanceNode for CheckboxInstance {
&self.base
}

#[cfg(debug_assertions)]
fn resolve_debug(
&self,
f: &mut std::fmt::Formatter,
Expand Down
5 changes: 3 additions & 2 deletions pax-std/pax-std-primitives/src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,12 @@ impl InstanceNode for ImageInstance {
&self.base
}

#[cfg(debug_assertions)]
fn resolve_debug(
&self,
_f: &mut std::fmt::Formatter,
f: &mut std::fmt::Formatter,
_expanded_node: Option<&pax_core::ExpandedNode>,
) -> std::fmt::Result {
todo!()
f.debug_struct("Image").finish_non_exhaustive()
}
}
1 change: 1 addition & 0 deletions pax-std/pax-std-primitives/src/textbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ impl InstanceNode for TextboxInstance {
&self.base
}

#[cfg(debug_assertions)]
fn resolve_debug(
&self,
f: &mut std::fmt::Formatter,
Expand Down

0 comments on commit 68d32bc

Please sign in to comment.