Skip to content

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
warfaj committed Oct 31, 2024
1 parent d7c469f commit 1893e01
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 24 deletions.
4 changes: 2 additions & 2 deletions examples/src/fireworks/pax
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ set -e
current_dir=$(pwd)
pushd ../../../pax-cli
cargo build
PUB_PAX_SERVER=http://localhost:8090 PAX_WORKSPACE_ROOT=.. ../target/debug/pax-cli "$@" --path="$current_dir" --libdev --verbose
popd
PAX_WORKSPACE_ROOT=.. ../target/debug/pax-cli "$@" --path="$current_dir" --libdev --verbose
popd
14 changes: 2 additions & 12 deletions examples/src/fireworks/src/fireworks.pax
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
<Rectangle width=22.20% height=14.21% x=24.31% y=37.05%/>
<Ellipse width=17.64% height=55.47% x=73.65% y=17.71% fill=rgba(0, 0, 255, 128) rotate={(ticks)deg}/>
<Group @wheel=self.handle_wheel y=30.80% x=41.04% height=43.00% width=53.91%>
<Group @wheel=self.handle_wheel>
<Text x=0% y=0% text="SCROLL" height=100% width=100% style={
font: Font::Web(
"Roboto",
Expand All @@ -14,12 +12,10 @@
align_multiline: TextAlignHorizontal::Center
underline: false
}/>
<Ellipse width=100px height=100px x=50% y=50% fill=rgba(255, 0, 0, 128)/>
for i in 1..200 {
for i in 1..60 {
<Rectangle class=rect width=300px height=300px/>
}
</Group>
<Ellipse width=50px height=50px x={bouncing_x} y=80% fill=rgba(0, 255, 0, 128)/>

@settings {
@tick: handle_tick
Expand All @@ -31,10 +27,4 @@
x: 50%
y: 50%
}
.particle {
fill: {hsl((j * 10.00 + ticks)deg, 85%, 55%)}
x: {(j * 2.00 + ticks) %% 100}
y: {(j * 3.00 + ticks) %% 100}
rotate: {(ticks * 2.00)deg}
}
}
2 changes: 1 addition & 1 deletion examples/src/fireworks/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ impl Fireworks {

pub fn handle_tick(&mut self, _ctx: &NodeContext) {
let old_ticks = self.ticks.get();
self.ticks.set(old_ticks + 20); // Increment by 20 to make it 10x as fast
self.ticks.set(old_ticks + 1);
}
}
5 changes: 0 additions & 5 deletions pax-designer/src/console/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ impl Console {
let mut dt = borrow_mut!(ctx.engine_context.designtime);
let orm = dt.get_orm_mut();
for component in components {
log::warn!(
"replacing templates: {:?}",
component.type_id
);
orm.replace_template(
component.type_id,
component.template.unwrap_or_default(),
Expand All @@ -100,7 +96,6 @@ impl Console {
pax_designtime::orm::MessageType::LLMPartial => {
let mut design_time = dt.borrow_mut();
let mut llm_message = design_time.get_llm_messages(current_id);
//llm_message.reverse();
for message in llm_message {
messages.push(Message {
message_type: MessageType::LLM,
Expand Down
2 changes: 0 additions & 2 deletions pax-designtime/src/privileged_agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,6 @@ impl WebSocketConnection {
}
AgentMessage::LLMFinalResponse(final_response) => {
if let ChangeType::PaxOnly(components) = final_response.changes {
log::warn!("got pax-only changes:");
log::warn!("length: {}", components.len());
manager.add_new_message(
final_response.request_id,
final_response.message,
Expand Down
1 change: 0 additions & 1 deletion pax-engine/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ wasm-bindgen = {version = "0.2.92", optional=true}
wasm-bindgen-futures = {version = "0.4.42", optional=true}
log = "0.4.20"


[features]
gpu = ["pax-chassis-web?/gpu"]
designtime = ["dep:pax-designtime", "pax-runtime/designtime", "pax-chassis-web?/designtime", "pax-chassis-macos?/designtime", "pax-chassis-ios?/designtime", "pax-macro/designtime"]
Expand Down
1 change: 0 additions & 1 deletion pax-generation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ use std::fs;
use std::io;
use std::path::{Path, PathBuf};
use std::process::Command;
use std::thread::sleep;
use futures::channel::mpsc;

const CLAUDE_API_URL: &str = "https://api.anthropic.com/v1/messages";
Expand Down

0 comments on commit 1893e01

Please sign in to comment.